[2025-01-27 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:00:06 [end_date_ymd] => 2025-01-27 00:00:06 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:00:06' and `end` < '2025-01-27 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-01-27 00:00:18] Production.INFO: count ==800 [2025-01-27 00:00:19] Production.ERROR: pbx CDR StartTime 2025-01-26 21:00:06 - End Time 2025-01-27 00:00:06 [2025-01-27 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337841', 'tblTempUsageDetail_20' ) start [2025-01-27 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337841', 'tblTempUsageDetail_20' ) end [2025-01-27 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337841', 'tblTempVendorCDR_20' ) start [2025-01-27 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337841', 'tblTempVendorCDR_20' ) end [2025-01-27 00:00:19] Production.INFO: ProcessCDR(1,14337841,1,1,2) [2025-01-27 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337841', 'tblTempUsageDetail_20' ) start [2025-01-27 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337841', 'tblTempUsageDetail_20' ) end [2025-01-27 00:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:00:23] Production.INFO: ==5135== Releasing lock... [2025-01-27 00:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:00:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-27 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:01:06 [end_date_ymd] => 2025-01-27 00:01:06 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:01:06' and `end` < '2025-01-27 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-01-27 00:01:29] Production.INFO: count ==776 [2025-01-27 00:01:29] Production.ERROR: pbx CDR StartTime 2025-01-26 21:01:06 - End Time 2025-01-27 00:01:06 [2025-01-27 00:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337846', 'tblTempUsageDetail_20' ) start [2025-01-27 00:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337846', 'tblTempUsageDetail_20' ) end [2025-01-27 00:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337846', 'tblTempVendorCDR_20' ) start [2025-01-27 00:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337846', 'tblTempVendorCDR_20' ) end [2025-01-27 00:01:29] Production.INFO: ProcessCDR(1,14337846,1,1,2) [2025-01-27 00:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337846', 'tblTempUsageDetail_20' ) start [2025-01-27 00:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337846', 'tblTempUsageDetail_20' ) end [2025-01-27 00:01:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:01:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:01:32] Production.INFO: ==5264== Releasing lock... [2025-01-27 00:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:01:32] Production.INFO: 33 MB #Memory Used# [2025-01-27 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:02:05 [end_date_ymd] => 2025-01-27 00:02:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:02:05' and `end` < '2025-01-27 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-01-27 00:02:26] Production.INFO: count ==217 [2025-01-27 00:02:26] Production.ERROR: pbx CDR StartTime 2025-01-26 21:02:05 - End Time 2025-01-27 00:02:05 [2025-01-27 00:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337851', 'tblTempUsageDetail_20' ) start [2025-01-27 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337851', 'tblTempUsageDetail_20' ) end [2025-01-27 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337851', 'tblTempVendorCDR_20' ) start [2025-01-27 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337851', 'tblTempVendorCDR_20' ) end [2025-01-27 00:02:26] Production.INFO: ProcessCDR(1,14337851,1,1,2) [2025-01-27 00:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337851', 'tblTempUsageDetail_20' ) start [2025-01-27 00:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337851', 'tblTempUsageDetail_20' ) end [2025-01-27 00:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:02:29] Production.INFO: ==5336== Releasing lock... [2025-01-27 00:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:02:29] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:03:05 [end_date_ymd] => 2025-01-27 00:03:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:03:05' and `end` < '2025-01-27 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-01-27 00:03:27] Production.INFO: count ==213 [2025-01-27 00:03:27] Production.ERROR: pbx CDR StartTime 2025-01-26 21:03:05 - End Time 2025-01-27 00:03:05 [2025-01-27 00:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337856', 'tblTempUsageDetail_20' ) start [2025-01-27 00:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337856', 'tblTempUsageDetail_20' ) end [2025-01-27 00:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337856', 'tblTempVendorCDR_20' ) start [2025-01-27 00:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337856', 'tblTempVendorCDR_20' ) end [2025-01-27 00:03:27] Production.INFO: ProcessCDR(1,14337856,1,1,2) [2025-01-27 00:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337856', 'tblTempUsageDetail_20' ) start [2025-01-27 00:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337856', 'tblTempUsageDetail_20' ) end [2025-01-27 00:03:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:03:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:03:30] Production.INFO: ==5411== Releasing lock... [2025-01-27 00:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:03:30] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:04:05 [end_date_ymd] => 2025-01-27 00:04:05 [RateCDR] => 1 ) [2025-01-27 00: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-01-26 21:04:05' and `end` < '2025-01-27 00: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-01-27 00:04:36] Production.INFO: count ==212 [2025-01-27 00:04:36] Production.ERROR: pbx CDR StartTime 2025-01-26 21:04:05 - End Time 2025-01-27 00:04:05 [2025-01-27 00:04:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337861', 'tblTempUsageDetail_20' ) start [2025-01-27 00:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337861', 'tblTempUsageDetail_20' ) end [2025-01-27 00:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337861', 'tblTempVendorCDR_20' ) start [2025-01-27 00:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337861', 'tblTempVendorCDR_20' ) end [2025-01-27 00:04:36] Production.INFO: ProcessCDR(1,14337861,1,1,2) [2025-01-27 00:04:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:04:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:04:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:04:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337861', 'tblTempUsageDetail_20' ) start [2025-01-27 00:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337861', 'tblTempUsageDetail_20' ) end [2025-01-27 00:04:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:04:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:04:39] Production.INFO: ==5484== Releasing lock... [2025-01-27 00:04:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:04:39] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:05:05 [end_date_ymd] => 2025-01-27 00:05:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:05:05' and `end` < '2025-01-27 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-01-27 00:05:29] Production.INFO: count ==210 [2025-01-27 00:05:29] Production.ERROR: pbx CDR StartTime 2025-01-26 21:05:05 - End Time 2025-01-27 00:05:05 [2025-01-27 00:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337866', 'tblTempUsageDetail_20' ) start [2025-01-27 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337866', 'tblTempUsageDetail_20' ) end [2025-01-27 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337866', 'tblTempVendorCDR_20' ) start [2025-01-27 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337866', 'tblTempVendorCDR_20' ) end [2025-01-27 00:05:29] Production.INFO: ProcessCDR(1,14337866,1,1,2) [2025-01-27 00:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337866', 'tblTempUsageDetail_20' ) start [2025-01-27 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337866', 'tblTempUsageDetail_20' ) end [2025-01-27 00:05:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:05:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:05:32] Production.INFO: ==5561== Releasing lock... [2025-01-27 00:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:05:32] Production.INFO: 30 MB #Memory Used# [2025-01-27 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:06:05 [end_date_ymd] => 2025-01-27 00:06:05 [RateCDR] => 1 ) [2025-01-27 00: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-01-26 21:06:05' and `end` < '2025-01-27 00: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-01-27 00:06:21] Production.INFO: count ==209 [2025-01-27 00:06:22] Production.ERROR: pbx CDR StartTime 2025-01-26 21:06:05 - End Time 2025-01-27 00:06:05 [2025-01-27 00:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337871', 'tblTempUsageDetail_20' ) start [2025-01-27 00:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337871', 'tblTempUsageDetail_20' ) end [2025-01-27 00:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337871', 'tblTempVendorCDR_20' ) start [2025-01-27 00:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337871', 'tblTempVendorCDR_20' ) end [2025-01-27 00:06:22] Production.INFO: ProcessCDR(1,14337871,1,1,2) [2025-01-27 00:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337871', 'tblTempUsageDetail_20' ) start [2025-01-27 00:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337871', 'tblTempUsageDetail_20' ) end [2025-01-27 00:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:06:25] Production.INFO: ==5632== Releasing lock... [2025-01-27 00:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:06:25] Production.INFO: 30 MB #Memory Used# [2025-01-27 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:07:05 [end_date_ymd] => 2025-01-27 00:07:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:07:05' and `end` < '2025-01-27 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-01-27 00:07:18] Production.INFO: count ==209 [2025-01-27 00:07:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:07:05 - End Time 2025-01-27 00:07:05 [2025-01-27 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337876', 'tblTempUsageDetail_20' ) start [2025-01-27 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337876', 'tblTempUsageDetail_20' ) end [2025-01-27 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337876', 'tblTempVendorCDR_20' ) start [2025-01-27 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337876', 'tblTempVendorCDR_20' ) end [2025-01-27 00:07:18] Production.INFO: ProcessCDR(1,14337876,1,1,2) [2025-01-27 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337876', 'tblTempUsageDetail_20' ) start [2025-01-27 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337876', 'tblTempUsageDetail_20' ) end [2025-01-27 00:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:07:21] Production.INFO: ==5704== Releasing lock... [2025-01-27 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:07:21] Production.INFO: 30 MB #Memory Used# [2025-01-27 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:08:05 [end_date_ymd] => 2025-01-27 00:08:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:08:05' and `end` < '2025-01-27 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-01-27 00:08:18] Production.INFO: count ==207 [2025-01-27 00:08:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:08:05 - End Time 2025-01-27 00:08:05 [2025-01-27 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337881', 'tblTempUsageDetail_20' ) start [2025-01-27 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337881', 'tblTempUsageDetail_20' ) end [2025-01-27 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337881', 'tblTempVendorCDR_20' ) start [2025-01-27 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337881', 'tblTempVendorCDR_20' ) end [2025-01-27 00:08:18] Production.INFO: ProcessCDR(1,14337881,1,1,2) [2025-01-27 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337881', 'tblTempUsageDetail_20' ) start [2025-01-27 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337881', 'tblTempUsageDetail_20' ) end [2025-01-27 00:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:08:20] Production.INFO: ==5778== Releasing lock... [2025-01-27 00:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:08:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-27 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:09:05 [end_date_ymd] => 2025-01-27 00:09:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:09:05' and `end` < '2025-01-27 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-01-27 00:09:19] Production.INFO: count ==205 [2025-01-27 00:09:19] Production.ERROR: pbx CDR StartTime 2025-01-26 21:09:05 - End Time 2025-01-27 00:09:05 [2025-01-27 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337886', 'tblTempUsageDetail_20' ) start [2025-01-27 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337886', 'tblTempUsageDetail_20' ) end [2025-01-27 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337886', 'tblTempVendorCDR_20' ) start [2025-01-27 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337886', 'tblTempVendorCDR_20' ) end [2025-01-27 00:09:19] Production.INFO: ProcessCDR(1,14337886,1,1,2) [2025-01-27 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337886', 'tblTempUsageDetail_20' ) start [2025-01-27 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337886', 'tblTempUsageDetail_20' ) end [2025-01-27 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:09:22] Production.INFO: ==5855== Releasing lock... [2025-01-27 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:09:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:10:05 [end_date_ymd] => 2025-01-27 00:10:05 [RateCDR] => 1 ) [2025-01-27 00: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-01-26 21:10:05' and `end` < '2025-01-27 00: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-01-27 00:10:22] Production.INFO: count ==216 [2025-01-27 00:10:22] Production.ERROR: pbx CDR StartTime 2025-01-26 21:10:05 - End Time 2025-01-27 00:10:05 [2025-01-27 00:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337892', 'tblTempUsageDetail_20' ) start [2025-01-27 00:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337892', 'tblTempUsageDetail_20' ) end [2025-01-27 00:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337892', 'tblTempVendorCDR_20' ) start [2025-01-27 00:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337892', 'tblTempVendorCDR_20' ) end [2025-01-27 00:10:22] Production.INFO: ProcessCDR(1,14337892,1,1,2) [2025-01-27 00:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337892', 'tblTempUsageDetail_20' ) start [2025-01-27 00:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337892', 'tblTempUsageDetail_20' ) end [2025-01-27 00:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:10:25] Production.INFO: ==5930== Releasing lock... [2025-01-27 00:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:10:25] Production.INFO: 30 MB #Memory Used# [2025-01-27 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:11:05 [end_date_ymd] => 2025-01-27 00:11:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:11:05' and `end` < '2025-01-27 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-01-27 00:11:40] Production.INFO: count ==234 [2025-01-27 00:11:40] Production.ERROR: pbx CDR StartTime 2025-01-26 21:11:05 - End Time 2025-01-27 00:11:05 [2025-01-27 00:11:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:11:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337897', 'tblTempUsageDetail_20' ) start [2025-01-27 00:11:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337897', 'tblTempUsageDetail_20' ) end [2025-01-27 00:11:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337897', 'tblTempVendorCDR_20' ) start [2025-01-27 00:11:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337897', 'tblTempVendorCDR_20' ) end [2025-01-27 00:11:40] Production.INFO: ProcessCDR(1,14337897,1,1,2) [2025-01-27 00:11:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:11:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:11:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:11:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:11:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337897', 'tblTempUsageDetail_20' ) start [2025-01-27 00:11:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337897', 'tblTempUsageDetail_20' ) end [2025-01-27 00:11:44] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:11:44] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:11:44] Production.INFO: ==6014== Releasing lock... [2025-01-27 00:11:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:11:44] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:12:05 [end_date_ymd] => 2025-01-27 00:12:05 [RateCDR] => 1 ) [2025-01-27 00: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-01-26 21:12:05' and `end` < '2025-01-27 00: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-01-27 00:12:21] Production.INFO: count ==232 [2025-01-27 00:12:21] Production.ERROR: pbx CDR StartTime 2025-01-26 21:12:05 - End Time 2025-01-27 00:12:05 [2025-01-27 00:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337902', 'tblTempUsageDetail_20' ) start [2025-01-27 00:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337902', 'tblTempUsageDetail_20' ) end [2025-01-27 00:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337902', 'tblTempVendorCDR_20' ) start [2025-01-27 00:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337902', 'tblTempVendorCDR_20' ) end [2025-01-27 00:12:21] Production.INFO: ProcessCDR(1,14337902,1,1,2) [2025-01-27 00:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337902', 'tblTempUsageDetail_20' ) start [2025-01-27 00:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337902', 'tblTempUsageDetail_20' ) end [2025-01-27 00:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:12:25] Production.INFO: ==6085== Releasing lock... [2025-01-27 00:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:12:25] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:13:05 [end_date_ymd] => 2025-01-27 00:13:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:13:05' and `end` < '2025-01-27 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-01-27 00:13:18] Production.INFO: count ==228 [2025-01-27 00:13:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:13:05 - End Time 2025-01-27 00:13:05 [2025-01-27 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337907', 'tblTempUsageDetail_20' ) start [2025-01-27 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337907', 'tblTempUsageDetail_20' ) end [2025-01-27 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337907', 'tblTempVendorCDR_20' ) start [2025-01-27 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337907', 'tblTempVendorCDR_20' ) end [2025-01-27 00:13:18] Production.INFO: ProcessCDR(1,14337907,1,1,2) [2025-01-27 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337907', 'tblTempUsageDetail_20' ) start [2025-01-27 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337907', 'tblTempUsageDetail_20' ) end [2025-01-27 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:13:21] Production.INFO: ==6165== Releasing lock... [2025-01-27 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:13:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:14:04 [end_date_ymd] => 2025-01-27 00:14:04 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:14:04' and `end` < '2025-01-27 00: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-01-27 00:14:17] Production.INFO: count ==224 [2025-01-27 00:14:17] Production.ERROR: pbx CDR StartTime 2025-01-26 21:14:04 - End Time 2025-01-27 00:14:04 [2025-01-27 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337912', 'tblTempUsageDetail_20' ) start [2025-01-27 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337912', 'tblTempUsageDetail_20' ) end [2025-01-27 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337912', 'tblTempVendorCDR_20' ) start [2025-01-27 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337912', 'tblTempVendorCDR_20' ) end [2025-01-27 00:14:17] Production.INFO: ProcessCDR(1,14337912,1,1,2) [2025-01-27 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337912', 'tblTempUsageDetail_20' ) start [2025-01-27 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337912', 'tblTempUsageDetail_20' ) end [2025-01-27 00:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:14:20] Production.INFO: ==6238== Releasing lock... [2025-01-27 00:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:14:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:15:05 [end_date_ymd] => 2025-01-27 00:15:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:15:05' and `end` < '2025-01-27 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-01-27 00:15:17] Production.INFO: count ==225 [2025-01-27 00:15:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:15:05 - End Time 2025-01-27 00:15:05 [2025-01-27 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337917', 'tblTempUsageDetail_20' ) start [2025-01-27 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337917', 'tblTempUsageDetail_20' ) end [2025-01-27 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337917', 'tblTempVendorCDR_20' ) start [2025-01-27 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337917', 'tblTempVendorCDR_20' ) end [2025-01-27 00:15:18] Production.INFO: ProcessCDR(1,14337917,1,1,2) [2025-01-27 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337917', 'tblTempUsageDetail_20' ) start [2025-01-27 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337917', 'tblTempUsageDetail_20' ) end [2025-01-27 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:15:21] Production.INFO: ==6315== Releasing lock... [2025-01-27 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:15:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:16:05 [end_date_ymd] => 2025-01-27 00:16:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:16:05' and `end` < '2025-01-27 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-01-27 00:16:19] Production.INFO: count ==223 [2025-01-27 00:16:19] Production.ERROR: pbx CDR StartTime 2025-01-26 21:16:05 - End Time 2025-01-27 00:16:05 [2025-01-27 00:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337922', 'tblTempUsageDetail_20' ) start [2025-01-27 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337922', 'tblTempUsageDetail_20' ) end [2025-01-27 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337922', 'tblTempVendorCDR_20' ) start [2025-01-27 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337922', 'tblTempVendorCDR_20' ) end [2025-01-27 00:16:19] Production.INFO: ProcessCDR(1,14337922,1,1,2) [2025-01-27 00:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337922', 'tblTempUsageDetail_20' ) start [2025-01-27 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337922', 'tblTempUsageDetail_20' ) end [2025-01-27 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:16:21] Production.INFO: ==6428== Releasing lock... [2025-01-27 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:16:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:17:05 [end_date_ymd] => 2025-01-27 00:17:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:17:05' and `end` < '2025-01-27 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-01-27 00:17:27] Production.INFO: count ==222 [2025-01-27 00:17:27] Production.ERROR: pbx CDR StartTime 2025-01-26 21:17:05 - End Time 2025-01-27 00:17:05 [2025-01-27 00:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337927', 'tblTempUsageDetail_20' ) start [2025-01-27 00:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337927', 'tblTempUsageDetail_20' ) end [2025-01-27 00:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337927', 'tblTempVendorCDR_20' ) start [2025-01-27 00:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337927', 'tblTempVendorCDR_20' ) end [2025-01-27 00:17:27] Production.INFO: ProcessCDR(1,14337927,1,1,2) [2025-01-27 00:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337927', 'tblTempUsageDetail_20' ) start [2025-01-27 00:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337927', 'tblTempUsageDetail_20' ) end [2025-01-27 00:17:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:17:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:17:30] Production.INFO: ==6501== Releasing lock... [2025-01-27 00:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:17:30] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:18:05 [end_date_ymd] => 2025-01-27 00:18:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:18:05' and `end` < '2025-01-27 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-01-27 00:18:23] Production.INFO: count ==219 [2025-01-27 00:18:23] Production.ERROR: pbx CDR StartTime 2025-01-26 21:18:05 - End Time 2025-01-27 00:18:05 [2025-01-27 00:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337932', 'tblTempUsageDetail_20' ) start [2025-01-27 00:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337932', 'tblTempUsageDetail_20' ) end [2025-01-27 00:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337932', 'tblTempVendorCDR_20' ) start [2025-01-27 00:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337932', 'tblTempVendorCDR_20' ) end [2025-01-27 00:18:23] Production.INFO: ProcessCDR(1,14337932,1,1,2) [2025-01-27 00:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337932', 'tblTempUsageDetail_20' ) start [2025-01-27 00:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337932', 'tblTempUsageDetail_20' ) end [2025-01-27 00:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:18:26] Production.INFO: ==6585== Releasing lock... [2025-01-27 00:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:18:26] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 00:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:19:04 [end_date_ymd] => 2025-01-27 00:19:04 [RateCDR] => 1 ) [2025-01-27 00:19: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-01-26 21:19:04' and `end` < '2025-01-27 00:19: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-01-27 00:19:20] Production.INFO: count ==215 [2025-01-27 00:19:20] Production.ERROR: pbx CDR StartTime 2025-01-26 21:19:04 - End Time 2025-01-27 00:19:04 [2025-01-27 00:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337937', 'tblTempUsageDetail_20' ) start [2025-01-27 00:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337937', 'tblTempUsageDetail_20' ) end [2025-01-27 00:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337937', 'tblTempVendorCDR_20' ) start [2025-01-27 00:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337937', 'tblTempVendorCDR_20' ) end [2025-01-27 00:19:20] Production.INFO: ProcessCDR(1,14337937,1,1,2) [2025-01-27 00:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337937', 'tblTempUsageDetail_20' ) start [2025-01-27 00:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337937', 'tblTempUsageDetail_20' ) end [2025-01-27 00:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:19:23] Production.INFO: ==6662== Releasing lock... [2025-01-27 00:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:19:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:20:06 [end_date_ymd] => 2025-01-27 00:20:06 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:20:06' and `end` < '2025-01-27 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-01-27 00:20:18] Production.INFO: count ==230 [2025-01-27 00:20:19] Production.ERROR: pbx CDR StartTime 2025-01-26 21:20:06 - End Time 2025-01-27 00:20:06 [2025-01-27 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337943', 'tblTempUsageDetail_20' ) start [2025-01-27 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337943', 'tblTempUsageDetail_20' ) end [2025-01-27 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337943', 'tblTempVendorCDR_20' ) start [2025-01-27 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337943', 'tblTempVendorCDR_20' ) end [2025-01-27 00:20:19] Production.INFO: ProcessCDR(1,14337943,1,1,2) [2025-01-27 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337943', 'tblTempUsageDetail_20' ) start [2025-01-27 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337943', 'tblTempUsageDetail_20' ) end [2025-01-27 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:20:21] Production.INFO: ==6740== Releasing lock... [2025-01-27 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:20:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:21:05 [end_date_ymd] => 2025-01-27 00:21:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:21:05' and `end` < '2025-01-27 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-01-27 00:21:18] Production.INFO: count ==234 [2025-01-27 00:21:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:21:05 - End Time 2025-01-27 00:21:05 [2025-01-27 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337948', 'tblTempUsageDetail_20' ) start [2025-01-27 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337948', 'tblTempUsageDetail_20' ) end [2025-01-27 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337948', 'tblTempVendorCDR_20' ) start [2025-01-27 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337948', 'tblTempVendorCDR_20' ) end [2025-01-27 00:21:18] Production.INFO: ProcessCDR(1,14337948,1,1,2) [2025-01-27 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337948', 'tblTempUsageDetail_20' ) start [2025-01-27 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337948', 'tblTempUsageDetail_20' ) end [2025-01-27 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:21:21] Production.INFO: ==6820== Releasing lock... [2025-01-27 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:22:05 [end_date_ymd] => 2025-01-27 00:22:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:22:05' and `end` < '2025-01-27 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-01-27 00:22:18] Production.INFO: count ==233 [2025-01-27 00:22:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:22:05 - End Time 2025-01-27 00:22:05 [2025-01-27 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337953', 'tblTempUsageDetail_20' ) start [2025-01-27 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337953', 'tblTempUsageDetail_20' ) end [2025-01-27 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337953', 'tblTempVendorCDR_20' ) start [2025-01-27 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337953', 'tblTempVendorCDR_20' ) end [2025-01-27 00:22:18] Production.INFO: ProcessCDR(1,14337953,1,1,2) [2025-01-27 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337953', 'tblTempUsageDetail_20' ) start [2025-01-27 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337953', 'tblTempUsageDetail_20' ) end [2025-01-27 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:22:21] Production.INFO: ==6896== Releasing lock... [2025-01-27 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:22:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:23:05 [end_date_ymd] => 2025-01-27 00:23:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:23:05' and `end` < '2025-01-27 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-01-27 00:23:18] Production.INFO: count ==233 [2025-01-27 00:23:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:23:05 - End Time 2025-01-27 00:23:05 [2025-01-27 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337958', 'tblTempUsageDetail_20' ) start [2025-01-27 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337958', 'tblTempUsageDetail_20' ) end [2025-01-27 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337958', 'tblTempVendorCDR_20' ) start [2025-01-27 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337958', 'tblTempVendorCDR_20' ) end [2025-01-27 00:23:18] Production.INFO: ProcessCDR(1,14337958,1,1,2) [2025-01-27 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337958', 'tblTempUsageDetail_20' ) start [2025-01-27 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337958', 'tblTempUsageDetail_20' ) end [2025-01-27 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:23:22] Production.INFO: ==6972== Releasing lock... [2025-01-27 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:23:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:24:05 [end_date_ymd] => 2025-01-27 00:24:05 [RateCDR] => 1 ) [2025-01-27 00: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-01-26 21:24:05' and `end` < '2025-01-27 00: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-01-27 00:24:18] Production.INFO: count ==231 [2025-01-27 00:24:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:24:05 - End Time 2025-01-27 00:24:05 [2025-01-27 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337963', 'tblTempUsageDetail_20' ) start [2025-01-27 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337963', 'tblTempUsageDetail_20' ) end [2025-01-27 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337963', 'tblTempVendorCDR_20' ) start [2025-01-27 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337963', 'tblTempVendorCDR_20' ) end [2025-01-27 00:24:18] Production.INFO: ProcessCDR(1,14337963,1,1,2) [2025-01-27 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337963', 'tblTempUsageDetail_20' ) start [2025-01-27 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337963', 'tblTempUsageDetail_20' ) end [2025-01-27 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:24:21] Production.INFO: ==7048== Releasing lock... [2025-01-27 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:25:05 [end_date_ymd] => 2025-01-27 00:25:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:25:05' and `end` < '2025-01-27 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-01-27 00:25:17] Production.INFO: count ==230 [2025-01-27 00:25:17] Production.ERROR: pbx CDR StartTime 2025-01-26 21:25:05 - End Time 2025-01-27 00:25:05 [2025-01-27 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337968', 'tblTempUsageDetail_20' ) start [2025-01-27 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337968', 'tblTempUsageDetail_20' ) end [2025-01-27 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337968', 'tblTempVendorCDR_20' ) start [2025-01-27 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337968', 'tblTempVendorCDR_20' ) end [2025-01-27 00:25:17] Production.INFO: ProcessCDR(1,14337968,1,1,2) [2025-01-27 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337968', 'tblTempUsageDetail_20' ) start [2025-01-27 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337968', 'tblTempUsageDetail_20' ) end [2025-01-27 00:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:25:20] Production.INFO: ==7123== Releasing lock... [2025-01-27 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:25:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:26:05 [end_date_ymd] => 2025-01-27 00:26:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:26:05' and `end` < '2025-01-27 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-01-27 00:26:18] Production.INFO: count ==229 [2025-01-27 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:26:05 - End Time 2025-01-27 00:26:05 [2025-01-27 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337973', 'tblTempUsageDetail_20' ) start [2025-01-27 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337973', 'tblTempUsageDetail_20' ) end [2025-01-27 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337973', 'tblTempVendorCDR_20' ) start [2025-01-27 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337973', 'tblTempVendorCDR_20' ) end [2025-01-27 00:26:18] Production.INFO: ProcessCDR(1,14337973,1,1,2) [2025-01-27 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337973', 'tblTempUsageDetail_20' ) start [2025-01-27 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337973', 'tblTempUsageDetail_20' ) end [2025-01-27 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:26:21] Production.INFO: ==7205== Releasing lock... [2025-01-27 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:26:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:27:04 [end_date_ymd] => 2025-01-27 00:27:04 [RateCDR] => 1 ) [2025-01-27 00:27: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-01-26 21:27:04' and `end` < '2025-01-27 00:27: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-01-27 00:27:17] Production.INFO: count ==226 [2025-01-27 00:27:17] Production.ERROR: pbx CDR StartTime 2025-01-26 21:27:04 - End Time 2025-01-27 00:27:04 [2025-01-27 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337978', 'tblTempUsageDetail_20' ) start [2025-01-27 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337978', 'tblTempUsageDetail_20' ) end [2025-01-27 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337978', 'tblTempVendorCDR_20' ) start [2025-01-27 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337978', 'tblTempVendorCDR_20' ) end [2025-01-27 00:27:17] Production.INFO: ProcessCDR(1,14337978,1,1,2) [2025-01-27 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337978', 'tblTempUsageDetail_20' ) start [2025-01-27 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337978', 'tblTempUsageDetail_20' ) end [2025-01-27 00:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:27:20] Production.INFO: ==7283== Releasing lock... [2025-01-27 00:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:27:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:28:05 [end_date_ymd] => 2025-01-27 00:28:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:28:05' and `end` < '2025-01-27 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-01-27 00:28:18] Production.INFO: count ==229 [2025-01-27 00:28:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:28:05 - End Time 2025-01-27 00:28:05 [2025-01-27 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337983', 'tblTempUsageDetail_20' ) start [2025-01-27 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337983', 'tblTempUsageDetail_20' ) end [2025-01-27 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337983', 'tblTempVendorCDR_20' ) start [2025-01-27 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337983', 'tblTempVendorCDR_20' ) end [2025-01-27 00:28:18] Production.INFO: ProcessCDR(1,14337983,1,1,2) [2025-01-27 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337983', 'tblTempUsageDetail_20' ) start [2025-01-27 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337983', 'tblTempUsageDetail_20' ) end [2025-01-27 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:28:21] Production.INFO: ==7356== Releasing lock... [2025-01-27 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:29:05 [end_date_ymd] => 2025-01-27 00:29:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:29:05' and `end` < '2025-01-27 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-01-27 00:29:18] Production.INFO: count ==232 [2025-01-27 00:29:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:29:05 - End Time 2025-01-27 00:29:05 [2025-01-27 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337988', 'tblTempUsageDetail_20' ) start [2025-01-27 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337988', 'tblTempUsageDetail_20' ) end [2025-01-27 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337988', 'tblTempVendorCDR_20' ) start [2025-01-27 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337988', 'tblTempVendorCDR_20' ) end [2025-01-27 00:29:18] Production.INFO: ProcessCDR(1,14337988,1,1,2) [2025-01-27 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337988', 'tblTempUsageDetail_20' ) start [2025-01-27 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337988', 'tblTempUsageDetail_20' ) end [2025-01-27 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:29:21] Production.INFO: ==7433== Releasing lock... [2025-01-27 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:29:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:30:06 [end_date_ymd] => 2025-01-27 00:30:06 [RateCDR] => 1 ) [2025-01-27 00: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-01-26 21:30:06' and `end` < '2025-01-27 00: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-01-27 00:30:18] Production.INFO: count ==249 [2025-01-27 00:30:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:30:06 - End Time 2025-01-27 00:30:06 [2025-01-27 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337994', 'tblTempUsageDetail_20' ) start [2025-01-27 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337994', 'tblTempUsageDetail_20' ) end [2025-01-27 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337994', 'tblTempVendorCDR_20' ) start [2025-01-27 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337994', 'tblTempVendorCDR_20' ) end [2025-01-27 00:30:18] Production.INFO: ProcessCDR(1,14337994,1,1,2) [2025-01-27 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337994', 'tblTempUsageDetail_20' ) start [2025-01-27 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337994', 'tblTempUsageDetail_20' ) end [2025-01-27 00:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:30:23] Production.INFO: ==7508== Releasing lock... [2025-01-27 00:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:30:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:31:05 [end_date_ymd] => 2025-01-27 00:31:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:31:05' and `end` < '2025-01-27 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-01-27 00:31:19] Production.INFO: count ==262 [2025-01-27 00:31:19] Production.ERROR: pbx CDR StartTime 2025-01-26 21:31:05 - End Time 2025-01-27 00:31:05 [2025-01-27 00:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337999', 'tblTempUsageDetail_20' ) start [2025-01-27 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337999', 'tblTempUsageDetail_20' ) end [2025-01-27 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337999', 'tblTempVendorCDR_20' ) start [2025-01-27 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337999', 'tblTempVendorCDR_20' ) end [2025-01-27 00:31:19] Production.INFO: ProcessCDR(1,14337999,1,1,2) [2025-01-27 00:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337999', 'tblTempUsageDetail_20' ) start [2025-01-27 00:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337999', 'tblTempUsageDetail_20' ) end [2025-01-27 00:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:31:24] Production.INFO: ==7588== Releasing lock... [2025-01-27 00:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:31:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:32:05 [end_date_ymd] => 2025-01-27 00:32:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:32:05' and `end` < '2025-01-27 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-01-27 00:32:18] Production.INFO: count ==261 [2025-01-27 00:32:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:32:05 - End Time 2025-01-27 00:32:05 [2025-01-27 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338004', 'tblTempUsageDetail_20' ) start [2025-01-27 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338004', 'tblTempUsageDetail_20' ) end [2025-01-27 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338004', 'tblTempVendorCDR_20' ) start [2025-01-27 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338004', 'tblTempVendorCDR_20' ) end [2025-01-27 00:32:18] Production.INFO: ProcessCDR(1,14338004,1,1,2) [2025-01-27 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338004', 'tblTempUsageDetail_20' ) start [2025-01-27 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338004', 'tblTempUsageDetail_20' ) end [2025-01-27 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:32:21] Production.INFO: ==7707== Releasing lock... [2025-01-27 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:32:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:33:05 [end_date_ymd] => 2025-01-27 00:33:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:33:05' and `end` < '2025-01-27 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-01-27 00:33:18] Production.INFO: count ==264 [2025-01-27 00:33:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:33:05 - End Time 2025-01-27 00:33:05 [2025-01-27 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338009', 'tblTempUsageDetail_20' ) start [2025-01-27 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338009', 'tblTempUsageDetail_20' ) end [2025-01-27 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338009', 'tblTempVendorCDR_20' ) start [2025-01-27 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338009', 'tblTempVendorCDR_20' ) end [2025-01-27 00:33:18] Production.INFO: ProcessCDR(1,14338009,1,1,2) [2025-01-27 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338009', 'tblTempUsageDetail_20' ) start [2025-01-27 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338009', 'tblTempUsageDetail_20' ) end [2025-01-27 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:33:21] Production.INFO: ==7786== Releasing lock... [2025-01-27 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:33:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 00:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:34:04 [end_date_ymd] => 2025-01-27 00:34:04 [RateCDR] => 1 ) [2025-01-27 00: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-01-26 21:34:04' and `end` < '2025-01-27 00: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-01-27 00:34:17] Production.INFO: count ==264 [2025-01-27 00:34:17] Production.ERROR: pbx CDR StartTime 2025-01-26 21:34:04 - End Time 2025-01-27 00:34:04 [2025-01-27 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338014', 'tblTempUsageDetail_20' ) start [2025-01-27 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338014', 'tblTempUsageDetail_20' ) end [2025-01-27 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338014', 'tblTempVendorCDR_20' ) start [2025-01-27 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338014', 'tblTempVendorCDR_20' ) end [2025-01-27 00:34:17] Production.INFO: ProcessCDR(1,14338014,1,1,2) [2025-01-27 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338014', 'tblTempUsageDetail_20' ) start [2025-01-27 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338014', 'tblTempUsageDetail_20' ) end [2025-01-27 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:34:21] Production.INFO: ==7861== Releasing lock... [2025-01-27 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:34:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:35:05 [end_date_ymd] => 2025-01-27 00:35:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:35:05' and `end` < '2025-01-27 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-01-27 00:35:18] Production.INFO: count ==262 [2025-01-27 00:35:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:35:05 - End Time 2025-01-27 00:35:05 [2025-01-27 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338019', 'tblTempUsageDetail_20' ) start [2025-01-27 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338019', 'tblTempUsageDetail_20' ) end [2025-01-27 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338019', 'tblTempVendorCDR_20' ) start [2025-01-27 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338019', 'tblTempVendorCDR_20' ) end [2025-01-27 00:35:18] Production.INFO: ProcessCDR(1,14338019,1,1,2) [2025-01-27 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338019', 'tblTempUsageDetail_20' ) start [2025-01-27 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338019', 'tblTempUsageDetail_20' ) end [2025-01-27 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:35:21] Production.INFO: ==7931== Releasing lock... [2025-01-27 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:36:05 [end_date_ymd] => 2025-01-27 00:36:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:36:05' and `end` < '2025-01-27 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-01-27 00:36:18] Production.INFO: count ==259 [2025-01-27 00:36:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:36:05 - End Time 2025-01-27 00:36:05 [2025-01-27 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338024', 'tblTempUsageDetail_20' ) start [2025-01-27 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338024', 'tblTempUsageDetail_20' ) end [2025-01-27 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338024', 'tblTempVendorCDR_20' ) start [2025-01-27 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338024', 'tblTempVendorCDR_20' ) end [2025-01-27 00:36:18] Production.INFO: ProcessCDR(1,14338024,1,1,2) [2025-01-27 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338024', 'tblTempUsageDetail_20' ) start [2025-01-27 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338024', 'tblTempUsageDetail_20' ) end [2025-01-27 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:36:22] Production.INFO: ==8007== Releasing lock... [2025-01-27 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:36:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:37:05 [end_date_ymd] => 2025-01-27 00:37:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:37:05' and `end` < '2025-01-27 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-01-27 00:37:18] Production.INFO: count ==258 [2025-01-27 00:37:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:37:05 - End Time 2025-01-27 00:37:05 [2025-01-27 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338029', 'tblTempUsageDetail_20' ) start [2025-01-27 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338029', 'tblTempUsageDetail_20' ) end [2025-01-27 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338029', 'tblTempVendorCDR_20' ) start [2025-01-27 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338029', 'tblTempVendorCDR_20' ) end [2025-01-27 00:37:18] Production.INFO: ProcessCDR(1,14338029,1,1,2) [2025-01-27 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338029', 'tblTempUsageDetail_20' ) start [2025-01-27 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338029', 'tblTempUsageDetail_20' ) end [2025-01-27 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:37:21] Production.INFO: ==8081== Releasing lock... [2025-01-27 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:37:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:38:06 [end_date_ymd] => 2025-01-27 00:38:06 [RateCDR] => 1 ) [2025-01-27 00: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-01-26 21:38:06' and `end` < '2025-01-27 00: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-01-27 00:38:19] Production.INFO: count ==257 [2025-01-27 00:38:19] Production.ERROR: pbx CDR StartTime 2025-01-26 21:38:06 - End Time 2025-01-27 00:38:06 [2025-01-27 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338034', 'tblTempUsageDetail_20' ) start [2025-01-27 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338034', 'tblTempUsageDetail_20' ) end [2025-01-27 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338034', 'tblTempVendorCDR_20' ) start [2025-01-27 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338034', 'tblTempVendorCDR_20' ) end [2025-01-27 00:38:19] Production.INFO: ProcessCDR(1,14338034,1,1,2) [2025-01-27 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338034', 'tblTempUsageDetail_20' ) start [2025-01-27 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338034', 'tblTempUsageDetail_20' ) end [2025-01-27 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:38:22] Production.INFO: ==8157== Releasing lock... [2025-01-27 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:38:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:39:05 [end_date_ymd] => 2025-01-27 00:39:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:39:05' and `end` < '2025-01-27 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-01-27 00:39:18] Production.INFO: count ==257 [2025-01-27 00:39:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:39:05 - End Time 2025-01-27 00:39:05 [2025-01-27 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338039', 'tblTempUsageDetail_20' ) start [2025-01-27 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338039', 'tblTempUsageDetail_20' ) end [2025-01-27 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338039', 'tblTempVendorCDR_20' ) start [2025-01-27 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338039', 'tblTempVendorCDR_20' ) end [2025-01-27 00:39:18] Production.INFO: ProcessCDR(1,14338039,1,1,2) [2025-01-27 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338039', 'tblTempUsageDetail_20' ) start [2025-01-27 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338039', 'tblTempUsageDetail_20' ) end [2025-01-27 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:39:21] Production.INFO: ==8234== Releasing lock... [2025-01-27 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:39:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:40:06 [end_date_ymd] => 2025-01-27 00:40:06 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:40:06' and `end` < '2025-01-27 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-01-27 00:40:18] Production.INFO: count ==274 [2025-01-27 00:40:19] Production.ERROR: pbx CDR StartTime 2025-01-26 21:40:06 - End Time 2025-01-27 00:40:06 [2025-01-27 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338045', 'tblTempUsageDetail_20' ) start [2025-01-27 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338045', 'tblTempUsageDetail_20' ) end [2025-01-27 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338045', 'tblTempVendorCDR_20' ) start [2025-01-27 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338045', 'tblTempVendorCDR_20' ) end [2025-01-27 00:40:19] Production.INFO: ProcessCDR(1,14338045,1,1,2) [2025-01-27 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338045', 'tblTempUsageDetail_20' ) start [2025-01-27 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338045', 'tblTempUsageDetail_20' ) end [2025-01-27 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:40:22] Production.INFO: ==8315== Releasing lock... [2025-01-27 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:41:05 [end_date_ymd] => 2025-01-27 00:41:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:41:05' and `end` < '2025-01-27 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-01-27 00:41:18] Production.INFO: count ==295 [2025-01-27 00:41:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:41:05 - End Time 2025-01-27 00:41:05 [2025-01-27 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338050', 'tblTempUsageDetail_20' ) start [2025-01-27 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338050', 'tblTempUsageDetail_20' ) end [2025-01-27 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338050', 'tblTempVendorCDR_20' ) start [2025-01-27 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338050', 'tblTempVendorCDR_20' ) end [2025-01-27 00:41:18] Production.INFO: ProcessCDR(1,14338050,1,1,2) [2025-01-27 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338050', 'tblTempUsageDetail_20' ) start [2025-01-27 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338050', 'tblTempUsageDetail_20' ) end [2025-01-27 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:41:21] Production.INFO: ==8390== Releasing lock... [2025-01-27 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:41:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:42:05 [end_date_ymd] => 2025-01-27 00:42:05 [RateCDR] => 1 ) [2025-01-27 00: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-01-26 21:42:05' and `end` < '2025-01-27 00: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-01-27 00:42:17] Production.INFO: count ==295 [2025-01-27 00:42:17] Production.ERROR: pbx CDR StartTime 2025-01-26 21:42:05 - End Time 2025-01-27 00:42:05 [2025-01-27 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338055', 'tblTempUsageDetail_20' ) start [2025-01-27 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338055', 'tblTempUsageDetail_20' ) end [2025-01-27 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338055', 'tblTempVendorCDR_20' ) start [2025-01-27 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338055', 'tblTempVendorCDR_20' ) end [2025-01-27 00:42:17] Production.INFO: ProcessCDR(1,14338055,1,1,2) [2025-01-27 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338055', 'tblTempUsageDetail_20' ) start [2025-01-27 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338055', 'tblTempUsageDetail_20' ) end [2025-01-27 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:42:21] Production.INFO: ==8462== Releasing lock... [2025-01-27 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:42:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:43:05 [end_date_ymd] => 2025-01-27 00:43:05 [RateCDR] => 1 ) [2025-01-27 00: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-01-26 21:43:05' and `end` < '2025-01-27 00: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-01-27 00:43:18] Production.INFO: count ==295 [2025-01-27 00:43:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:43:05 - End Time 2025-01-27 00:43:05 [2025-01-27 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338060', 'tblTempUsageDetail_20' ) start [2025-01-27 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338060', 'tblTempUsageDetail_20' ) end [2025-01-27 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338060', 'tblTempVendorCDR_20' ) start [2025-01-27 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338060', 'tblTempVendorCDR_20' ) end [2025-01-27 00:43:18] Production.INFO: ProcessCDR(1,14338060,1,1,2) [2025-01-27 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338060', 'tblTempUsageDetail_20' ) start [2025-01-27 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338060', 'tblTempUsageDetail_20' ) end [2025-01-27 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:43:22] Production.INFO: ==8537== Releasing lock... [2025-01-27 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:43:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:44:05 [end_date_ymd] => 2025-01-27 00:44:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:44:05' and `end` < '2025-01-27 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-01-27 00:44:18] Production.INFO: count ==295 [2025-01-27 00:44:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:44:05 - End Time 2025-01-27 00:44:05 [2025-01-27 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338065', 'tblTempUsageDetail_20' ) start [2025-01-27 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338065', 'tblTempUsageDetail_20' ) end [2025-01-27 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338065', 'tblTempVendorCDR_20' ) start [2025-01-27 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338065', 'tblTempVendorCDR_20' ) end [2025-01-27 00:44:18] Production.INFO: ProcessCDR(1,14338065,1,1,2) [2025-01-27 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338065', 'tblTempUsageDetail_20' ) start [2025-01-27 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338065', 'tblTempUsageDetail_20' ) end [2025-01-27 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:44:22] Production.INFO: ==8612== Releasing lock... [2025-01-27 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:44:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:45:05 [end_date_ymd] => 2025-01-27 00:45:05 [RateCDR] => 1 ) [2025-01-27 00: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-01-26 21:45:05' and `end` < '2025-01-27 00: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-01-27 00:45:18] Production.INFO: count ==295 [2025-01-27 00:45:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:45:05 - End Time 2025-01-27 00:45:05 [2025-01-27 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338070', 'tblTempUsageDetail_20' ) start [2025-01-27 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338070', 'tblTempUsageDetail_20' ) end [2025-01-27 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338070', 'tblTempVendorCDR_20' ) start [2025-01-27 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338070', 'tblTempVendorCDR_20' ) end [2025-01-27 00:45:18] Production.INFO: ProcessCDR(1,14338070,1,1,2) [2025-01-27 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338070', 'tblTempUsageDetail_20' ) start [2025-01-27 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338070', 'tblTempUsageDetail_20' ) end [2025-01-27 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:45:21] Production.INFO: ==8688== Releasing lock... [2025-01-27 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:46:05 [end_date_ymd] => 2025-01-27 00:46:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:46:05' and `end` < '2025-01-27 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-01-27 00:46:19] Production.INFO: count ==294 [2025-01-27 00:46:19] Production.ERROR: pbx CDR StartTime 2025-01-26 21:46:05 - End Time 2025-01-27 00:46:05 [2025-01-27 00:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338075', 'tblTempUsageDetail_20' ) start [2025-01-27 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338075', 'tblTempUsageDetail_20' ) end [2025-01-27 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338075', 'tblTempVendorCDR_20' ) start [2025-01-27 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338075', 'tblTempVendorCDR_20' ) end [2025-01-27 00:46:19] Production.INFO: ProcessCDR(1,14338075,1,1,2) [2025-01-27 00:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338075', 'tblTempUsageDetail_20' ) start [2025-01-27 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338075', 'tblTempUsageDetail_20' ) end [2025-01-27 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:46:22] Production.INFO: ==8767== Releasing lock... [2025-01-27 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:46:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:47:04 [end_date_ymd] => 2025-01-27 00:47:04 [RateCDR] => 1 ) [2025-01-27 00:47: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-01-26 21:47:04' and `end` < '2025-01-27 00:47: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-01-27 00:47:18] Production.INFO: count ==288 [2025-01-27 00:47:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:47:04 - End Time 2025-01-27 00:47:04 [2025-01-27 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338080', 'tblTempUsageDetail_20' ) start [2025-01-27 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338080', 'tblTempUsageDetail_20' ) end [2025-01-27 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338080', 'tblTempVendorCDR_20' ) start [2025-01-27 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338080', 'tblTempVendorCDR_20' ) end [2025-01-27 00:47:18] Production.INFO: ProcessCDR(1,14338080,1,1,2) [2025-01-27 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338080', 'tblTempUsageDetail_20' ) start [2025-01-27 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338080', 'tblTempUsageDetail_20' ) end [2025-01-27 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:47:22] Production.INFO: ==8878== Releasing lock... [2025-01-27 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:47:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:48:05 [end_date_ymd] => 2025-01-27 00:48:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:48:05' and `end` < '2025-01-27 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-01-27 00:48:20] Production.INFO: count ==289 [2025-01-27 00:48:20] Production.ERROR: pbx CDR StartTime 2025-01-26 21:48:05 - End Time 2025-01-27 00:48:05 [2025-01-27 00:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338085', 'tblTempUsageDetail_20' ) start [2025-01-27 00:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338085', 'tblTempUsageDetail_20' ) end [2025-01-27 00:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338085', 'tblTempVendorCDR_20' ) start [2025-01-27 00:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338085', 'tblTempVendorCDR_20' ) end [2025-01-27 00:48:20] Production.INFO: ProcessCDR(1,14338085,1,1,2) [2025-01-27 00:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338085', 'tblTempUsageDetail_20' ) start [2025-01-27 00:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338085', 'tblTempUsageDetail_20' ) end [2025-01-27 00:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:48:25] Production.INFO: ==8953== Releasing lock... [2025-01-27 00:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:48:25] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:49:06 [end_date_ymd] => 2025-01-27 00:49:06 [RateCDR] => 1 ) [2025-01-27 00: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-01-26 21:49:06' and `end` < '2025-01-27 00: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-01-27 00:49:19] Production.INFO: count ==288 [2025-01-27 00:49:19] Production.ERROR: pbx CDR StartTime 2025-01-26 21:49:06 - End Time 2025-01-27 00:49:06 [2025-01-27 00:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338090', 'tblTempUsageDetail_20' ) start [2025-01-27 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338090', 'tblTempUsageDetail_20' ) end [2025-01-27 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338090', 'tblTempVendorCDR_20' ) start [2025-01-27 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338090', 'tblTempVendorCDR_20' ) end [2025-01-27 00:49:19] Production.INFO: ProcessCDR(1,14338090,1,1,2) [2025-01-27 00:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338090', 'tblTempUsageDetail_20' ) start [2025-01-27 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338090', 'tblTempUsageDetail_20' ) end [2025-01-27 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:49:22] Production.INFO: ==9031== Releasing lock... [2025-01-27 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:49:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:50:06 [end_date_ymd] => 2025-01-27 00:50:06 [RateCDR] => 1 ) [2025-01-27 00: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-01-26 21:50:06' and `end` < '2025-01-27 00: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-01-27 00:50:19] Production.INFO: count ==294 [2025-01-27 00:50:19] Production.ERROR: pbx CDR StartTime 2025-01-26 21:50:06 - End Time 2025-01-27 00:50:06 [2025-01-27 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338096', 'tblTempUsageDetail_20' ) start [2025-01-27 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338096', 'tblTempUsageDetail_20' ) end [2025-01-27 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338096', 'tblTempVendorCDR_20' ) start [2025-01-27 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338096', 'tblTempVendorCDR_20' ) end [2025-01-27 00:50:19] Production.INFO: ProcessCDR(1,14338096,1,1,2) [2025-01-27 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338096', 'tblTempUsageDetail_20' ) start [2025-01-27 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338096', 'tblTempUsageDetail_20' ) end [2025-01-27 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:50:22] Production.INFO: ==9110== Releasing lock... [2025-01-27 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:50:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:51:06 [end_date_ymd] => 2025-01-27 00:51:06 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:51:06' and `end` < '2025-01-27 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-01-27 00:51:18] Production.INFO: count ==310 [2025-01-27 00:51:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:51:06 - End Time 2025-01-27 00:51:06 [2025-01-27 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338101', 'tblTempUsageDetail_20' ) start [2025-01-27 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338101', 'tblTempUsageDetail_20' ) end [2025-01-27 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338101', 'tblTempVendorCDR_20' ) start [2025-01-27 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338101', 'tblTempVendorCDR_20' ) end [2025-01-27 00:51:18] Production.INFO: ProcessCDR(1,14338101,1,1,2) [2025-01-27 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338101', 'tblTempUsageDetail_20' ) start [2025-01-27 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338101', 'tblTempUsageDetail_20' ) end [2025-01-27 00:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:51:23] Production.INFO: ==9192== Releasing lock... [2025-01-27 00:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:51:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:52:05 [end_date_ymd] => 2025-01-27 00:52:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:52:05' and `end` < '2025-01-27 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-01-27 00:52:17] Production.INFO: count ==309 [2025-01-27 00:52:17] Production.ERROR: pbx CDR StartTime 2025-01-26 21:52:05 - End Time 2025-01-27 00:52:05 [2025-01-27 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338106', 'tblTempUsageDetail_20' ) start [2025-01-27 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338106', 'tblTempUsageDetail_20' ) end [2025-01-27 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338106', 'tblTempVendorCDR_20' ) start [2025-01-27 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338106', 'tblTempVendorCDR_20' ) end [2025-01-27 00:52:17] Production.INFO: ProcessCDR(1,14338106,1,1,2) [2025-01-27 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338106', 'tblTempUsageDetail_20' ) start [2025-01-27 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338106', 'tblTempUsageDetail_20' ) end [2025-01-27 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:52:22] Production.INFO: ==9273== Releasing lock... [2025-01-27 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:52:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:53:05 [end_date_ymd] => 2025-01-27 00:53:05 [RateCDR] => 1 ) [2025-01-27 00: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-01-26 21:53:05' and `end` < '2025-01-27 00: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-01-27 00:53:20] Production.INFO: count ==312 [2025-01-27 00:53:20] Production.ERROR: pbx CDR StartTime 2025-01-26 21:53:05 - End Time 2025-01-27 00:53:05 [2025-01-27 00:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338111', 'tblTempUsageDetail_20' ) start [2025-01-27 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338111', 'tblTempUsageDetail_20' ) end [2025-01-27 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338111', 'tblTempVendorCDR_20' ) start [2025-01-27 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338111', 'tblTempVendorCDR_20' ) end [2025-01-27 00:53:20] Production.INFO: ProcessCDR(1,14338111,1,1,2) [2025-01-27 00:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338111', 'tblTempUsageDetail_20' ) start [2025-01-27 00:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338111', 'tblTempUsageDetail_20' ) end [2025-01-27 00:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:53:24] Production.INFO: ==9354== Releasing lock... [2025-01-27 00:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:53:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:54:05 [end_date_ymd] => 2025-01-27 00:54:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:54:05' and `end` < '2025-01-27 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-01-27 00:54:18] Production.INFO: count ==308 [2025-01-27 00:54:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:54:05 - End Time 2025-01-27 00:54:05 [2025-01-27 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338116', 'tblTempUsageDetail_20' ) start [2025-01-27 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338116', 'tblTempUsageDetail_20' ) end [2025-01-27 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338116', 'tblTempVendorCDR_20' ) start [2025-01-27 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338116', 'tblTempVendorCDR_20' ) end [2025-01-27 00:54:18] Production.INFO: ProcessCDR(1,14338116,1,1,2) [2025-01-27 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338116', 'tblTempUsageDetail_20' ) start [2025-01-27 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338116', 'tblTempUsageDetail_20' ) end [2025-01-27 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:54:21] Production.INFO: ==9427== Releasing lock... [2025-01-27 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:54:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:55:05 [end_date_ymd] => 2025-01-27 00:55:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:55:05' and `end` < '2025-01-27 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-01-27 00:55:18] Production.INFO: count ==308 [2025-01-27 00:55:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:55:05 - End Time 2025-01-27 00:55:05 [2025-01-27 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338121', 'tblTempUsageDetail_20' ) start [2025-01-27 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338121', 'tblTempUsageDetail_20' ) end [2025-01-27 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338121', 'tblTempVendorCDR_20' ) start [2025-01-27 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338121', 'tblTempVendorCDR_20' ) end [2025-01-27 00:55:18] Production.INFO: ProcessCDR(1,14338121,1,1,2) [2025-01-27 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338121', 'tblTempUsageDetail_20' ) start [2025-01-27 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338121', 'tblTempUsageDetail_20' ) end [2025-01-27 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:55:21] Production.INFO: ==9505== Releasing lock... [2025-01-27 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:55:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:56:06 [end_date_ymd] => 2025-01-27 00:56:06 [RateCDR] => 1 ) [2025-01-27 00: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-01-26 21:56:06' and `end` < '2025-01-27 00: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-01-27 00:56:18] Production.INFO: count ==306 [2025-01-27 00:56:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:56:06 - End Time 2025-01-27 00:56:06 [2025-01-27 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338126', 'tblTempUsageDetail_20' ) start [2025-01-27 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338126', 'tblTempUsageDetail_20' ) end [2025-01-27 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338126', 'tblTempVendorCDR_20' ) start [2025-01-27 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338126', 'tblTempVendorCDR_20' ) end [2025-01-27 00:56:18] Production.INFO: ProcessCDR(1,14338126,1,1,2) [2025-01-27 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338126', 'tblTempUsageDetail_20' ) start [2025-01-27 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338126', 'tblTempUsageDetail_20' ) end [2025-01-27 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:56:21] Production.INFO: ==9582== Releasing lock... [2025-01-27 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:56:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:57:05 [end_date_ymd] => 2025-01-27 00:57:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:57:05' and `end` < '2025-01-27 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-01-27 00:57:18] Production.INFO: count ==304 [2025-01-27 00:57:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:57:05 - End Time 2025-01-27 00:57:05 [2025-01-27 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338131', 'tblTempUsageDetail_20' ) start [2025-01-27 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338131', 'tblTempUsageDetail_20' ) end [2025-01-27 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338131', 'tblTempVendorCDR_20' ) start [2025-01-27 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338131', 'tblTempVendorCDR_20' ) end [2025-01-27 00:57:18] Production.INFO: ProcessCDR(1,14338131,1,1,2) [2025-01-27 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338131', 'tblTempUsageDetail_20' ) start [2025-01-27 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338131', 'tblTempUsageDetail_20' ) end [2025-01-27 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:57:21] Production.INFO: ==9661== Releasing lock... [2025-01-27 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:57:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:58:05 [end_date_ymd] => 2025-01-27 00:58:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:58:05' and `end` < '2025-01-27 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-01-27 00:58:18] Production.INFO: count ==304 [2025-01-27 00:58:18] Production.ERROR: pbx CDR StartTime 2025-01-26 21:58:05 - End Time 2025-01-27 00:58:05 [2025-01-27 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338136', 'tblTempUsageDetail_20' ) start [2025-01-27 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338136', 'tblTempUsageDetail_20' ) end [2025-01-27 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338136', 'tblTempVendorCDR_20' ) start [2025-01-27 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338136', 'tblTempVendorCDR_20' ) end [2025-01-27 00:58:18] Production.INFO: ProcessCDR(1,14338136,1,1,2) [2025-01-27 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338136', 'tblTempUsageDetail_20' ) start [2025-01-27 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338136', 'tblTempUsageDetail_20' ) end [2025-01-27 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:58:22] Production.INFO: ==9736== Releasing lock... [2025-01-27 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:58:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 21:59:05 [end_date_ymd] => 2025-01-27 00:59:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 21:59:05' and `end` < '2025-01-27 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-01-27 00:59:17] Production.INFO: count ==304 [2025-01-27 00:59:17] Production.ERROR: pbx CDR StartTime 2025-01-26 21:59:05 - End Time 2025-01-27 00:59:05 [2025-01-27 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338141', 'tblTempUsageDetail_20' ) start [2025-01-27 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338141', 'tblTempUsageDetail_20' ) end [2025-01-27 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338141', 'tblTempVendorCDR_20' ) start [2025-01-27 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338141', 'tblTempVendorCDR_20' ) end [2025-01-27 00:59:18] Production.INFO: ProcessCDR(1,14338141,1,1,2) [2025-01-27 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338141', 'tblTempUsageDetail_20' ) start [2025-01-27 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338141', 'tblTempUsageDetail_20' ) end [2025-01-27 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 00:59:21] Production.INFO: ==9811== Releasing lock... [2025-01-27 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 00:59:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:00:06 [end_date_ymd] => 2025-01-27 01:00:06 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:00:06' and `end` < '2025-01-27 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-01-27 01:00:20] Production.INFO: count ==320 [2025-01-27 01:00:20] Production.ERROR: pbx CDR StartTime 2025-01-26 22:00:06 - End Time 2025-01-27 01:00:06 [2025-01-27 01:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338147', 'tblTempUsageDetail_20' ) start [2025-01-27 01:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338147', 'tblTempUsageDetail_20' ) end [2025-01-27 01:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338147', 'tblTempVendorCDR_20' ) start [2025-01-27 01:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338147', 'tblTempVendorCDR_20' ) end [2025-01-27 01:00:20] Production.INFO: ProcessCDR(1,14338147,1,1,2) [2025-01-27 01:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338147', 'tblTempUsageDetail_20' ) start [2025-01-27 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338147', 'tblTempUsageDetail_20' ) end [2025-01-27 01:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:00:23] Production.INFO: ==9891== Releasing lock... [2025-01-27 01:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:00:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:01:05 [end_date_ymd] => 2025-01-27 01:01:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:01:05' and `end` < '2025-01-27 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-01-27 01:01:18] Production.INFO: count ==321 [2025-01-27 01:01:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:01:05 - End Time 2025-01-27 01:01:05 [2025-01-27 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338152', 'tblTempUsageDetail_20' ) start [2025-01-27 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338152', 'tblTempUsageDetail_20' ) end [2025-01-27 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338152', 'tblTempVendorCDR_20' ) start [2025-01-27 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338152', 'tblTempVendorCDR_20' ) end [2025-01-27 01:01:18] Production.INFO: ProcessCDR(1,14338152,1,1,2) [2025-01-27 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338152', 'tblTempUsageDetail_20' ) start [2025-01-27 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338152', 'tblTempUsageDetail_20' ) end [2025-01-27 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:01:21] Production.INFO: ==9984== Releasing lock... [2025-01-27 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:01:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:02:05 [end_date_ymd] => 2025-01-27 01:02:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:02:05' and `end` < '2025-01-27 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-01-27 01:02:20] Production.INFO: count ==320 [2025-01-27 01:02:20] Production.ERROR: pbx CDR StartTime 2025-01-26 22:02:05 - End Time 2025-01-27 01:02:05 [2025-01-27 01:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338157', 'tblTempUsageDetail_20' ) start [2025-01-27 01:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338157', 'tblTempUsageDetail_20' ) end [2025-01-27 01:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338157', 'tblTempVendorCDR_20' ) start [2025-01-27 01:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338157', 'tblTempVendorCDR_20' ) end [2025-01-27 01:02:21] Production.INFO: ProcessCDR(1,14338157,1,1,2) [2025-01-27 01:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338157', 'tblTempUsageDetail_20' ) start [2025-01-27 01:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338157', 'tblTempUsageDetail_20' ) end [2025-01-27 01:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:02:24] Production.INFO: ==10075== Releasing lock... [2025-01-27 01:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:02:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 01:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:03:04 [end_date_ymd] => 2025-01-27 01:03:04 [RateCDR] => 1 ) [2025-01-27 01:03: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-01-26 22:03:04' and `end` < '2025-01-27 01:03: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-01-27 01:03:18] Production.INFO: count ==322 [2025-01-27 01:03:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:03:04 - End Time 2025-01-27 01:03:04 [2025-01-27 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338162', 'tblTempUsageDetail_20' ) start [2025-01-27 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338162', 'tblTempUsageDetail_20' ) end [2025-01-27 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338162', 'tblTempVendorCDR_20' ) start [2025-01-27 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338162', 'tblTempVendorCDR_20' ) end [2025-01-27 01:03:18] Production.INFO: ProcessCDR(1,14338162,1,1,2) [2025-01-27 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338162', 'tblTempUsageDetail_20' ) start [2025-01-27 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338162', 'tblTempUsageDetail_20' ) end [2025-01-27 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:03:21] Production.INFO: ==10170== Releasing lock... [2025-01-27 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:03:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:04:05 [end_date_ymd] => 2025-01-27 01:04:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:04:05' and `end` < '2025-01-27 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-01-27 01:04:18] Production.INFO: count ==320 [2025-01-27 01:04:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:04:05 - End Time 2025-01-27 01:04:05 [2025-01-27 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338167', 'tblTempUsageDetail_20' ) start [2025-01-27 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338167', 'tblTempUsageDetail_20' ) end [2025-01-27 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338167', 'tblTempVendorCDR_20' ) start [2025-01-27 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338167', 'tblTempVendorCDR_20' ) end [2025-01-27 01:04:18] Production.INFO: ProcessCDR(1,14338167,1,1,2) [2025-01-27 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338167', 'tblTempUsageDetail_20' ) start [2025-01-27 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338167', 'tblTempUsageDetail_20' ) end [2025-01-27 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:04:21] Production.INFO: ==10252== Releasing lock... [2025-01-27 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:04:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 01:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:05:06 [end_date_ymd] => 2025-01-27 01:05:06 [RateCDR] => 1 ) [2025-01-27 01: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-01-26 22:05:06' and `end` < '2025-01-27 01: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-01-27 01:05:18] Production.INFO: count ==320 [2025-01-27 01:05:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:05:06 - End Time 2025-01-27 01:05:06 [2025-01-27 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338172', 'tblTempUsageDetail_20' ) start [2025-01-27 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338172', 'tblTempUsageDetail_20' ) end [2025-01-27 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338172', 'tblTempVendorCDR_20' ) start [2025-01-27 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338172', 'tblTempVendorCDR_20' ) end [2025-01-27 01:05:18] Production.INFO: ProcessCDR(1,14338172,1,1,2) [2025-01-27 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338172', 'tblTempUsageDetail_20' ) start [2025-01-27 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338172', 'tblTempUsageDetail_20' ) end [2025-01-27 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:05:21] Production.INFO: ==10331== Releasing lock... [2025-01-27 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 01:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:06:04 [end_date_ymd] => 2025-01-27 01:06:04 [RateCDR] => 1 ) [2025-01-27 01:06: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-01-26 22:06:04' and `end` < '2025-01-27 01:06: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-01-27 01:06:19] Production.INFO: count ==319 [2025-01-27 01:06:19] Production.ERROR: pbx CDR StartTime 2025-01-26 22:06:04 - End Time 2025-01-27 01:06:04 [2025-01-27 01:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338177', 'tblTempUsageDetail_20' ) start [2025-01-27 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338177', 'tblTempUsageDetail_20' ) end [2025-01-27 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338177', 'tblTempVendorCDR_20' ) start [2025-01-27 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338177', 'tblTempVendorCDR_20' ) end [2025-01-27 01:06:19] Production.INFO: ProcessCDR(1,14338177,1,1,2) [2025-01-27 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338177', 'tblTempUsageDetail_20' ) start [2025-01-27 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338177', 'tblTempUsageDetail_20' ) end [2025-01-27 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:06:22] Production.INFO: ==10404== Releasing lock... [2025-01-27 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:06:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:07:05 [end_date_ymd] => 2025-01-27 01:07:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:07:05' and `end` < '2025-01-27 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-01-27 01:07:18] Production.INFO: count ==315 [2025-01-27 01:07:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:07:05 - End Time 2025-01-27 01:07:05 [2025-01-27 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338182', 'tblTempUsageDetail_20' ) start [2025-01-27 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338182', 'tblTempUsageDetail_20' ) end [2025-01-27 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338182', 'tblTempVendorCDR_20' ) start [2025-01-27 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338182', 'tblTempVendorCDR_20' ) end [2025-01-27 01:07:18] Production.INFO: ProcessCDR(1,14338182,1,1,2) [2025-01-27 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338182', 'tblTempUsageDetail_20' ) start [2025-01-27 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338182', 'tblTempUsageDetail_20' ) end [2025-01-27 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:07:22] Production.INFO: ==10481== Releasing lock... [2025-01-27 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:07:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:08:05 [end_date_ymd] => 2025-01-27 01:08:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:08:05' and `end` < '2025-01-27 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-01-27 01:08:17] Production.INFO: count ==315 [2025-01-27 01:08:17] Production.ERROR: pbx CDR StartTime 2025-01-26 22:08:05 - End Time 2025-01-27 01:08:05 [2025-01-27 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338187', 'tblTempUsageDetail_20' ) start [2025-01-27 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338187', 'tblTempUsageDetail_20' ) end [2025-01-27 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338187', 'tblTempVendorCDR_20' ) start [2025-01-27 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338187', 'tblTempVendorCDR_20' ) end [2025-01-27 01:08:17] Production.INFO: ProcessCDR(1,14338187,1,1,2) [2025-01-27 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338187', 'tblTempUsageDetail_20' ) start [2025-01-27 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338187', 'tblTempUsageDetail_20' ) end [2025-01-27 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:08:22] Production.INFO: ==10555== Releasing lock... [2025-01-27 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:08:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:09:05 [end_date_ymd] => 2025-01-27 01:09:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:09:05' and `end` < '2025-01-27 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-01-27 01:09:18] Production.INFO: count ==312 [2025-01-27 01:09:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:09:05 - End Time 2025-01-27 01:09:05 [2025-01-27 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338192', 'tblTempUsageDetail_20' ) start [2025-01-27 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338192', 'tblTempUsageDetail_20' ) end [2025-01-27 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338192', 'tblTempVendorCDR_20' ) start [2025-01-27 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338192', 'tblTempVendorCDR_20' ) end [2025-01-27 01:09:18] Production.INFO: ProcessCDR(1,14338192,1,1,2) [2025-01-27 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338192', 'tblTempUsageDetail_20' ) start [2025-01-27 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338192', 'tblTempUsageDetail_20' ) end [2025-01-27 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:09:22] Production.INFO: ==10634== Releasing lock... [2025-01-27 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:09:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:10:05 [end_date_ymd] => 2025-01-27 01:10:05 [RateCDR] => 1 ) [2025-01-27 01: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-01-26 22:10:05' and `end` < '2025-01-27 01: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-01-27 01:10:17] Production.INFO: count ==317 [2025-01-27 01:10:17] Production.ERROR: pbx CDR StartTime 2025-01-26 22:10:05 - End Time 2025-01-27 01:10:05 [2025-01-27 01:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338197', 'tblTempUsageDetail_20' ) start [2025-01-27 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338197', 'tblTempUsageDetail_20' ) end [2025-01-27 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338197', 'tblTempVendorCDR_20' ) start [2025-01-27 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338197', 'tblTempVendorCDR_20' ) end [2025-01-27 01:10:17] Production.INFO: ProcessCDR(1,14338197,1,1,2) [2025-01-27 01:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338197', 'tblTempUsageDetail_20' ) start [2025-01-27 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338197', 'tblTempUsageDetail_20' ) end [2025-01-27 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:10:21] Production.INFO: ==10709== Releasing lock... [2025-01-27 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:10:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:11:05 [end_date_ymd] => 2025-01-27 01:11:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:11:05' and `end` < '2025-01-27 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-01-27 01:11:19] Production.INFO: count ==324 [2025-01-27 01:11:19] Production.ERROR: pbx CDR StartTime 2025-01-26 22:11:05 - End Time 2025-01-27 01:11:05 [2025-01-27 01:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338203', 'tblTempUsageDetail_20' ) start [2025-01-27 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338203', 'tblTempUsageDetail_20' ) end [2025-01-27 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338203', 'tblTempVendorCDR_20' ) start [2025-01-27 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338203', 'tblTempVendorCDR_20' ) end [2025-01-27 01:11:19] Production.INFO: ProcessCDR(1,14338203,1,1,2) [2025-01-27 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338203', 'tblTempUsageDetail_20' ) start [2025-01-27 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338203', 'tblTempUsageDetail_20' ) end [2025-01-27 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:11:22] Production.INFO: ==10804== Releasing lock... [2025-01-27 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:11:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:12:05 [end_date_ymd] => 2025-01-27 01:12:05 [RateCDR] => 1 ) [2025-01-27 01: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-01-26 22:12:05' and `end` < '2025-01-27 01: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-01-27 01:12:17] Production.INFO: count ==324 [2025-01-27 01:12:17] Production.ERROR: pbx CDR StartTime 2025-01-26 22:12:05 - End Time 2025-01-27 01:12:05 [2025-01-27 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338208', 'tblTempUsageDetail_20' ) start [2025-01-27 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338208', 'tblTempUsageDetail_20' ) end [2025-01-27 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338208', 'tblTempVendorCDR_20' ) start [2025-01-27 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338208', 'tblTempVendorCDR_20' ) end [2025-01-27 01:12:17] Production.INFO: ProcessCDR(1,14338208,1,1,2) [2025-01-27 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338208', 'tblTempUsageDetail_20' ) start [2025-01-27 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338208', 'tblTempUsageDetail_20' ) end [2025-01-27 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:12:21] Production.INFO: ==10878== Releasing lock... [2025-01-27 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:13:05 [end_date_ymd] => 2025-01-27 01:13:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:13:05' and `end` < '2025-01-27 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-01-27 01:13:18] Production.INFO: count ==327 [2025-01-27 01:13:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:13:05 - End Time 2025-01-27 01:13:05 [2025-01-27 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338213', 'tblTempUsageDetail_20' ) start [2025-01-27 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338213', 'tblTempUsageDetail_20' ) end [2025-01-27 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338213', 'tblTempVendorCDR_20' ) start [2025-01-27 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338213', 'tblTempVendorCDR_20' ) end [2025-01-27 01:13:18] Production.INFO: ProcessCDR(1,14338213,1,1,2) [2025-01-27 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338213', 'tblTempUsageDetail_20' ) start [2025-01-27 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338213', 'tblTempUsageDetail_20' ) end [2025-01-27 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:13:22] Production.INFO: ==10949== Releasing lock... [2025-01-27 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:13:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:14:05 [end_date_ymd] => 2025-01-27 01:14:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:14:05' and `end` < '2025-01-27 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-01-27 01:14:18] Production.INFO: count ==329 [2025-01-27 01:14:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:14:05 - End Time 2025-01-27 01:14:05 [2025-01-27 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338218', 'tblTempUsageDetail_20' ) start [2025-01-27 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338218', 'tblTempUsageDetail_20' ) end [2025-01-27 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338218', 'tblTempVendorCDR_20' ) start [2025-01-27 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338218', 'tblTempVendorCDR_20' ) end [2025-01-27 01:14:18] Production.INFO: ProcessCDR(1,14338218,1,1,2) [2025-01-27 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338218', 'tblTempUsageDetail_20' ) start [2025-01-27 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338218', 'tblTempUsageDetail_20' ) end [2025-01-27 01:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:14:23] Production.INFO: ==11025== Releasing lock... [2025-01-27 01:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:14:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:15:05 [end_date_ymd] => 2025-01-27 01:15:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:15:05' and `end` < '2025-01-27 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-01-27 01:15:18] Production.INFO: count ==338 [2025-01-27 01:15:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:15:05 - End Time 2025-01-27 01:15:05 [2025-01-27 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338223', 'tblTempUsageDetail_20' ) start [2025-01-27 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338223', 'tblTempUsageDetail_20' ) end [2025-01-27 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338223', 'tblTempVendorCDR_20' ) start [2025-01-27 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338223', 'tblTempVendorCDR_20' ) end [2025-01-27 01:15:18] Production.INFO: ProcessCDR(1,14338223,1,1,2) [2025-01-27 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338223', 'tblTempUsageDetail_20' ) start [2025-01-27 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338223', 'tblTempUsageDetail_20' ) end [2025-01-27 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:15:21] Production.INFO: ==11098== Releasing lock... [2025-01-27 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:15:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:16:05 [end_date_ymd] => 2025-01-27 01:16:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:16:05' and `end` < '2025-01-27 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-01-27 01:16:20] Production.INFO: count ==342 [2025-01-27 01:16:20] Production.ERROR: pbx CDR StartTime 2025-01-26 22:16:05 - End Time 2025-01-27 01:16:05 [2025-01-27 01:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338228', 'tblTempUsageDetail_20' ) start [2025-01-27 01:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338228', 'tblTempUsageDetail_20' ) end [2025-01-27 01:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338228', 'tblTempVendorCDR_20' ) start [2025-01-27 01:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338228', 'tblTempVendorCDR_20' ) end [2025-01-27 01:16:20] Production.INFO: ProcessCDR(1,14338228,1,1,2) [2025-01-27 01:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338228', 'tblTempUsageDetail_20' ) start [2025-01-27 01:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338228', 'tblTempUsageDetail_20' ) end [2025-01-27 01:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:16:23] Production.INFO: ==11173== Releasing lock... [2025-01-27 01:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:16:23] Production.INFO: 31 MB #Memory Used# [2025-01-27 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:17:05 [end_date_ymd] => 2025-01-27 01:17:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:17:05' and `end` < '2025-01-27 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-01-27 01:17:18] Production.INFO: count ==350 [2025-01-27 01:17:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:17:05 - End Time 2025-01-27 01:17:05 [2025-01-27 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338233', 'tblTempUsageDetail_20' ) start [2025-01-27 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338233', 'tblTempUsageDetail_20' ) end [2025-01-27 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338233', 'tblTempVendorCDR_20' ) start [2025-01-27 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338233', 'tblTempVendorCDR_20' ) end [2025-01-27 01:17:18] Production.INFO: ProcessCDR(1,14338233,1,1,2) [2025-01-27 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338233', 'tblTempUsageDetail_20' ) start [2025-01-27 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338233', 'tblTempUsageDetail_20' ) end [2025-01-27 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:17:21] Production.INFO: ==11249== Releasing lock... [2025-01-27 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:18:05 [end_date_ymd] => 2025-01-27 01:18:05 [RateCDR] => 1 ) [2025-01-27 01: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-01-26 22:18:05' and `end` < '2025-01-27 01: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-01-27 01:18:20] Production.INFO: count ==350 [2025-01-27 01:18:20] Production.ERROR: pbx CDR StartTime 2025-01-26 22:18:05 - End Time 2025-01-27 01:18:05 [2025-01-27 01:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338238', 'tblTempUsageDetail_20' ) start [2025-01-27 01:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338238', 'tblTempUsageDetail_20' ) end [2025-01-27 01:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338238', 'tblTempVendorCDR_20' ) start [2025-01-27 01:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338238', 'tblTempVendorCDR_20' ) end [2025-01-27 01:18:20] Production.INFO: ProcessCDR(1,14338238,1,1,2) [2025-01-27 01:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338238', 'tblTempUsageDetail_20' ) start [2025-01-27 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338238', 'tblTempUsageDetail_20' ) end [2025-01-27 01:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:18:23] Production.INFO: ==11360== Releasing lock... [2025-01-27 01:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:18:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:19:05 [end_date_ymd] => 2025-01-27 01:19:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:19:05' and `end` < '2025-01-27 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-01-27 01:19:17] Production.INFO: count ==350 [2025-01-27 01:19:17] Production.ERROR: pbx CDR StartTime 2025-01-26 22:19:05 - End Time 2025-01-27 01:19:05 [2025-01-27 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338243', 'tblTempUsageDetail_20' ) start [2025-01-27 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338243', 'tblTempUsageDetail_20' ) end [2025-01-27 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338243', 'tblTempVendorCDR_20' ) start [2025-01-27 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338243', 'tblTempVendorCDR_20' ) end [2025-01-27 01:19:17] Production.INFO: ProcessCDR(1,14338243,1,1,2) [2025-01-27 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338243', 'tblTempUsageDetail_20' ) start [2025-01-27 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338243', 'tblTempUsageDetail_20' ) end [2025-01-27 01:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:19:20] Production.INFO: ==11435== Releasing lock... [2025-01-27 01:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:19:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:20:06 [end_date_ymd] => 2025-01-27 01:20:06 [RateCDR] => 1 ) [2025-01-27 01: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-01-26 22:20:06' and `end` < '2025-01-27 01: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-01-27 01:20:18] Production.INFO: count ==366 [2025-01-27 01:20:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:20:06 - End Time 2025-01-27 01:20:06 [2025-01-27 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338249', 'tblTempUsageDetail_20' ) start [2025-01-27 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338249', 'tblTempUsageDetail_20' ) end [2025-01-27 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338249', 'tblTempVendorCDR_20' ) start [2025-01-27 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338249', 'tblTempVendorCDR_20' ) end [2025-01-27 01:20:18] Production.INFO: ProcessCDR(1,14338249,1,1,2) [2025-01-27 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338249', 'tblTempUsageDetail_20' ) start [2025-01-27 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338249', 'tblTempUsageDetail_20' ) end [2025-01-27 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:20:22] Production.INFO: ==11511== Releasing lock... [2025-01-27 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:21:05 [end_date_ymd] => 2025-01-27 01:21:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:21:05' and `end` < '2025-01-27 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-01-27 01:21:19] Production.INFO: count ==370 [2025-01-27 01:21:19] Production.ERROR: pbx CDR StartTime 2025-01-26 22:21:05 - End Time 2025-01-27 01:21:05 [2025-01-27 01:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338254', 'tblTempUsageDetail_20' ) start [2025-01-27 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338254', 'tblTempUsageDetail_20' ) end [2025-01-27 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338254', 'tblTempVendorCDR_20' ) start [2025-01-27 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338254', 'tblTempVendorCDR_20' ) end [2025-01-27 01:21:19] Production.INFO: ProcessCDR(1,14338254,1,1,2) [2025-01-27 01:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338254', 'tblTempUsageDetail_20' ) start [2025-01-27 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338254', 'tblTempUsageDetail_20' ) end [2025-01-27 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:21:22] Production.INFO: ==11587== Releasing lock... [2025-01-27 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:21:22] Production.INFO: 31 MB #Memory Used# [2025-01-27 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:22:05 [end_date_ymd] => 2025-01-27 01:22:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:22:05' and `end` < '2025-01-27 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-01-27 01:22:18] Production.INFO: count ==370 [2025-01-27 01:22:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:22:05 - End Time 2025-01-27 01:22:05 [2025-01-27 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338259', 'tblTempUsageDetail_20' ) start [2025-01-27 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338259', 'tblTempUsageDetail_20' ) end [2025-01-27 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338259', 'tblTempVendorCDR_20' ) start [2025-01-27 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338259', 'tblTempVendorCDR_20' ) end [2025-01-27 01:22:19] Production.INFO: ProcessCDR(1,14338259,1,1,2) [2025-01-27 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338259', 'tblTempUsageDetail_20' ) start [2025-01-27 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338259', 'tblTempUsageDetail_20' ) end [2025-01-27 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:22:22] Production.INFO: ==11663== Releasing lock... [2025-01-27 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:22:22] Production.INFO: 31 MB #Memory Used# [2025-01-27 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:23:05 [end_date_ymd] => 2025-01-27 01:23:05 [RateCDR] => 1 ) [2025-01-27 01: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-01-26 22:23:05' and `end` < '2025-01-27 01: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-01-27 01:23:17] Production.INFO: count ==371 [2025-01-27 01:23:17] Production.ERROR: pbx CDR StartTime 2025-01-26 22:23:05 - End Time 2025-01-27 01:23:05 [2025-01-27 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338264', 'tblTempUsageDetail_20' ) start [2025-01-27 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338264', 'tblTempUsageDetail_20' ) end [2025-01-27 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338264', 'tblTempVendorCDR_20' ) start [2025-01-27 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338264', 'tblTempVendorCDR_20' ) end [2025-01-27 01:23:17] Production.INFO: ProcessCDR(1,14338264,1,1,2) [2025-01-27 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338264', 'tblTempUsageDetail_20' ) start [2025-01-27 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338264', 'tblTempUsageDetail_20' ) end [2025-01-27 01:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:23:21] Production.INFO: ==11745== Releasing lock... [2025-01-27 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:23:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:24:05 [end_date_ymd] => 2025-01-27 01:24:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:24:05' and `end` < '2025-01-27 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-01-27 01:24:18] Production.INFO: count ==368 [2025-01-27 01:24:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:24:05 - End Time 2025-01-27 01:24:05 [2025-01-27 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338269', 'tblTempUsageDetail_20' ) start [2025-01-27 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338269', 'tblTempUsageDetail_20' ) end [2025-01-27 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338269', 'tblTempVendorCDR_20' ) start [2025-01-27 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338269', 'tblTempVendorCDR_20' ) end [2025-01-27 01:24:18] Production.INFO: ProcessCDR(1,14338269,1,1,2) [2025-01-27 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338269', 'tblTempUsageDetail_20' ) start [2025-01-27 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338269', 'tblTempUsageDetail_20' ) end [2025-01-27 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:24:21] Production.INFO: ==11821== Releasing lock... [2025-01-27 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:24:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:25:06 [end_date_ymd] => 2025-01-27 01:25:06 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:25:06' and `end` < '2025-01-27 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-01-27 01:25:18] Production.INFO: count ==368 [2025-01-27 01:25:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:25:06 - End Time 2025-01-27 01:25:06 [2025-01-27 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338274', 'tblTempUsageDetail_20' ) start [2025-01-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338274', 'tblTempUsageDetail_20' ) end [2025-01-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338274', 'tblTempVendorCDR_20' ) start [2025-01-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338274', 'tblTempVendorCDR_20' ) end [2025-01-27 01:25:18] Production.INFO: ProcessCDR(1,14338274,1,1,2) [2025-01-27 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338274', 'tblTempUsageDetail_20' ) start [2025-01-27 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338274', 'tblTempUsageDetail_20' ) end [2025-01-27 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:25:21] Production.INFO: ==11898== Releasing lock... [2025-01-27 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:25:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:26:05 [end_date_ymd] => 2025-01-27 01:26:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:26:05' and `end` < '2025-01-27 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-01-27 01:26:17] Production.INFO: count ==368 [2025-01-27 01:26:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:26:05 - End Time 2025-01-27 01:26:05 [2025-01-27 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338279', 'tblTempUsageDetail_20' ) start [2025-01-27 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338279', 'tblTempUsageDetail_20' ) end [2025-01-27 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338279', 'tblTempVendorCDR_20' ) start [2025-01-27 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338279', 'tblTempVendorCDR_20' ) end [2025-01-27 01:26:18] Production.INFO: ProcessCDR(1,14338279,1,1,2) [2025-01-27 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338279', 'tblTempUsageDetail_20' ) start [2025-01-27 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338279', 'tblTempUsageDetail_20' ) end [2025-01-27 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:26:21] Production.INFO: ==11975== Releasing lock... [2025-01-27 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:27:05 [end_date_ymd] => 2025-01-27 01:27:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:27:05' and `end` < '2025-01-27 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-01-27 01:27:19] Production.INFO: count ==370 [2025-01-27 01:27:19] Production.ERROR: pbx CDR StartTime 2025-01-26 22:27:05 - End Time 2025-01-27 01:27:05 [2025-01-27 01:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338284', 'tblTempUsageDetail_20' ) start [2025-01-27 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338284', 'tblTempUsageDetail_20' ) end [2025-01-27 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338284', 'tblTempVendorCDR_20' ) start [2025-01-27 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338284', 'tblTempVendorCDR_20' ) end [2025-01-27 01:27:19] Production.INFO: ProcessCDR(1,14338284,1,1,2) [2025-01-27 01:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338284', 'tblTempUsageDetail_20' ) start [2025-01-27 01:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338284', 'tblTempUsageDetail_20' ) end [2025-01-27 01:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:27:24] Production.INFO: ==12048== Releasing lock... [2025-01-27 01:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:27:24] Production.INFO: 31 MB #Memory Used# [2025-01-27 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:28:05 [end_date_ymd] => 2025-01-27 01:28:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:28:05' and `end` < '2025-01-27 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-01-27 01:28:18] Production.INFO: count ==370 [2025-01-27 01:28:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:28:05 - End Time 2025-01-27 01:28:05 [2025-01-27 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338289', 'tblTempUsageDetail_20' ) start [2025-01-27 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338289', 'tblTempUsageDetail_20' ) end [2025-01-27 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338289', 'tblTempVendorCDR_20' ) start [2025-01-27 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338289', 'tblTempVendorCDR_20' ) end [2025-01-27 01:28:18] Production.INFO: ProcessCDR(1,14338289,1,1,2) [2025-01-27 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338289', 'tblTempUsageDetail_20' ) start [2025-01-27 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338289', 'tblTempUsageDetail_20' ) end [2025-01-27 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:28:21] Production.INFO: ==12129== Releasing lock... [2025-01-27 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:28:21] Production.INFO: 31 MB #Memory Used# [2025-01-27 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:29:05 [end_date_ymd] => 2025-01-27 01:29:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:29:05' and `end` < '2025-01-27 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-01-27 01:29:18] Production.INFO: count ==369 [2025-01-27 01:29:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:29:05 - End Time 2025-01-27 01:29:05 [2025-01-27 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338294', 'tblTempUsageDetail_20' ) start [2025-01-27 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338294', 'tblTempUsageDetail_20' ) end [2025-01-27 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338294', 'tblTempVendorCDR_20' ) start [2025-01-27 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338294', 'tblTempVendorCDR_20' ) end [2025-01-27 01:29:18] Production.INFO: ProcessCDR(1,14338294,1,1,2) [2025-01-27 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338294', 'tblTempUsageDetail_20' ) start [2025-01-27 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338294', 'tblTempUsageDetail_20' ) end [2025-01-27 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:29:21] Production.INFO: ==12212== Releasing lock... [2025-01-27 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:29:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:30:05 [end_date_ymd] => 2025-01-27 01:30:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:30:05' and `end` < '2025-01-27 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-01-27 01:30:18] Production.INFO: count ==372 [2025-01-27 01:30:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:30:05 - End Time 2025-01-27 01:30:05 [2025-01-27 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338300', 'tblTempUsageDetail_20' ) start [2025-01-27 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338300', 'tblTempUsageDetail_20' ) end [2025-01-27 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338300', 'tblTempVendorCDR_20' ) start [2025-01-27 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338300', 'tblTempVendorCDR_20' ) end [2025-01-27 01:30:18] Production.INFO: ProcessCDR(1,14338300,1,1,2) [2025-01-27 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338300', 'tblTempUsageDetail_20' ) start [2025-01-27 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338300', 'tblTempUsageDetail_20' ) end [2025-01-27 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:30:21] Production.INFO: ==12298== Releasing lock... [2025-01-27 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:30:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:31:05 [end_date_ymd] => 2025-01-27 01:31:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:31:05' and `end` < '2025-01-27 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-01-27 01:31:17] Production.INFO: count ==380 [2025-01-27 01:31:17] Production.ERROR: pbx CDR StartTime 2025-01-26 22:31:05 - End Time 2025-01-27 01:31:05 [2025-01-27 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338305', 'tblTempUsageDetail_20' ) start [2025-01-27 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338305', 'tblTempUsageDetail_20' ) end [2025-01-27 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338305', 'tblTempVendorCDR_20' ) start [2025-01-27 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338305', 'tblTempVendorCDR_20' ) end [2025-01-27 01:31:17] Production.INFO: ProcessCDR(1,14338305,1,1,2) [2025-01-27 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338305', 'tblTempUsageDetail_20' ) start [2025-01-27 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338305', 'tblTempUsageDetail_20' ) end [2025-01-27 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:31:21] Production.INFO: ==12384== Releasing lock... [2025-01-27 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:31:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 01:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:32:04 [end_date_ymd] => 2025-01-27 01:32:04 [RateCDR] => 1 ) [2025-01-27 01:32: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-01-26 22:32:04' and `end` < '2025-01-27 01:32: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-01-27 01:32:17] Production.INFO: count ==385 [2025-01-27 01:32:17] Production.ERROR: pbx CDR StartTime 2025-01-26 22:32:04 - End Time 2025-01-27 01:32:04 [2025-01-27 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338310', 'tblTempUsageDetail_20' ) start [2025-01-27 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338310', 'tblTempUsageDetail_20' ) end [2025-01-27 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338310', 'tblTempVendorCDR_20' ) start [2025-01-27 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338310', 'tblTempVendorCDR_20' ) end [2025-01-27 01:32:17] Production.INFO: ProcessCDR(1,14338310,1,1,2) [2025-01-27 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338310', 'tblTempUsageDetail_20' ) start [2025-01-27 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338310', 'tblTempUsageDetail_20' ) end [2025-01-27 01:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:32:20] Production.INFO: ==12464== Releasing lock... [2025-01-27 01:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:32:20] Production.INFO: 31 MB #Memory Used# [2025-01-27 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:33:05 [end_date_ymd] => 2025-01-27 01:33:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:33:05' and `end` < '2025-01-27 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-01-27 01:33:17] Production.INFO: count ==388 [2025-01-27 01:33:17] Production.ERROR: pbx CDR StartTime 2025-01-26 22:33:05 - End Time 2025-01-27 01:33:05 [2025-01-27 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338315', 'tblTempUsageDetail_20' ) start [2025-01-27 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338315', 'tblTempUsageDetail_20' ) end [2025-01-27 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338315', 'tblTempVendorCDR_20' ) start [2025-01-27 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338315', 'tblTempVendorCDR_20' ) end [2025-01-27 01:33:17] Production.INFO: ProcessCDR(1,14338315,1,1,2) [2025-01-27 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338315', 'tblTempUsageDetail_20' ) start [2025-01-27 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338315', 'tblTempUsageDetail_20' ) end [2025-01-27 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:33:21] Production.INFO: ==12579== Releasing lock... [2025-01-27 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:33:21] Production.INFO: 31 MB #Memory Used# [2025-01-27 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:34:06 [end_date_ymd] => 2025-01-27 01:34:06 [RateCDR] => 1 ) [2025-01-27 01: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-01-26 22:34:06' and `end` < '2025-01-27 01: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-01-27 01:34:18] Production.INFO: count ==393 [2025-01-27 01:34:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:34:06 - End Time 2025-01-27 01:34:06 [2025-01-27 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338320', 'tblTempUsageDetail_20' ) start [2025-01-27 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338320', 'tblTempUsageDetail_20' ) end [2025-01-27 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338320', 'tblTempVendorCDR_20' ) start [2025-01-27 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338320', 'tblTempVendorCDR_20' ) end [2025-01-27 01:34:18] Production.INFO: ProcessCDR(1,14338320,1,1,2) [2025-01-27 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338320', 'tblTempUsageDetail_20' ) start [2025-01-27 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338320', 'tblTempUsageDetail_20' ) end [2025-01-27 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:34:22] Production.INFO: ==12662== Releasing lock... [2025-01-27 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:34:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:35:05 [end_date_ymd] => 2025-01-27 01:35:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:35:05' and `end` < '2025-01-27 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-01-27 01:35:18] Production.INFO: count ==398 [2025-01-27 01:35:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:35:05 - End Time 2025-01-27 01:35:05 [2025-01-27 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338325', 'tblTempUsageDetail_20' ) start [2025-01-27 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338325', 'tblTempUsageDetail_20' ) end [2025-01-27 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338325', 'tblTempVendorCDR_20' ) start [2025-01-27 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338325', 'tblTempVendorCDR_20' ) end [2025-01-27 01:35:18] Production.INFO: ProcessCDR(1,14338325,1,1,2) [2025-01-27 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338325', 'tblTempUsageDetail_20' ) start [2025-01-27 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338325', 'tblTempUsageDetail_20' ) end [2025-01-27 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:35:22] Production.INFO: ==12741== Releasing lock... [2025-01-27 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:35:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:36:05 [end_date_ymd] => 2025-01-27 01:36:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:36:05' and `end` < '2025-01-27 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-01-27 01:36:17] Production.INFO: count ==398 [2025-01-27 01:36:17] Production.ERROR: pbx CDR StartTime 2025-01-26 22:36:05 - End Time 2025-01-27 01:36:05 [2025-01-27 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338330', 'tblTempUsageDetail_20' ) start [2025-01-27 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338330', 'tblTempUsageDetail_20' ) end [2025-01-27 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338330', 'tblTempVendorCDR_20' ) start [2025-01-27 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338330', 'tblTempVendorCDR_20' ) end [2025-01-27 01:36:17] Production.INFO: ProcessCDR(1,14338330,1,1,2) [2025-01-27 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338330', 'tblTempUsageDetail_20' ) start [2025-01-27 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338330', 'tblTempUsageDetail_20' ) end [2025-01-27 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:36:21] Production.INFO: ==12821== Releasing lock... [2025-01-27 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:36:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:37:05 [end_date_ymd] => 2025-01-27 01:37:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:37:05' and `end` < '2025-01-27 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-01-27 01:37:18] Production.INFO: count ==406 [2025-01-27 01:37:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:37:05 - End Time 2025-01-27 01:37:05 [2025-01-27 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338335', 'tblTempUsageDetail_20' ) start [2025-01-27 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338335', 'tblTempUsageDetail_20' ) end [2025-01-27 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338335', 'tblTempVendorCDR_20' ) start [2025-01-27 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338335', 'tblTempVendorCDR_20' ) end [2025-01-27 01:37:18] Production.INFO: ProcessCDR(1,14338335,1,1,2) [2025-01-27 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338335', 'tblTempUsageDetail_20' ) start [2025-01-27 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338335', 'tblTempUsageDetail_20' ) end [2025-01-27 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:37:21] Production.INFO: ==12900== Releasing lock... [2025-01-27 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:37:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:38:05 [end_date_ymd] => 2025-01-27 01:38:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:38:05' and `end` < '2025-01-27 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-01-27 01:38:19] Production.INFO: count ==410 [2025-01-27 01:38:19] Production.ERROR: pbx CDR StartTime 2025-01-26 22:38:05 - End Time 2025-01-27 01:38:05 [2025-01-27 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338340', 'tblTempUsageDetail_20' ) start [2025-01-27 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338340', 'tblTempUsageDetail_20' ) end [2025-01-27 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338340', 'tblTempVendorCDR_20' ) start [2025-01-27 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338340', 'tblTempVendorCDR_20' ) end [2025-01-27 01:38:19] Production.INFO: ProcessCDR(1,14338340,1,1,2) [2025-01-27 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338340', 'tblTempUsageDetail_20' ) start [2025-01-27 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338340', 'tblTempUsageDetail_20' ) end [2025-01-27 01:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:38:23] Production.INFO: ==12986== Releasing lock... [2025-01-27 01:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:38:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-27 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:39:05 [end_date_ymd] => 2025-01-27 01:39:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:39:05' and `end` < '2025-01-27 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-01-27 01:39:19] Production.INFO: count ==416 [2025-01-27 01:39:19] Production.ERROR: pbx CDR StartTime 2025-01-26 22:39:05 - End Time 2025-01-27 01:39:05 [2025-01-27 01:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338345', 'tblTempUsageDetail_20' ) start [2025-01-27 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338345', 'tblTempUsageDetail_20' ) end [2025-01-27 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338345', 'tblTempVendorCDR_20' ) start [2025-01-27 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338345', 'tblTempVendorCDR_20' ) end [2025-01-27 01:39:19] Production.INFO: ProcessCDR(1,14338345,1,1,2) [2025-01-27 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338345', 'tblTempUsageDetail_20' ) start [2025-01-27 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338345', 'tblTempUsageDetail_20' ) end [2025-01-27 01:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:39:23] Production.INFO: ==13066== Releasing lock... [2025-01-27 01:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:39:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:40:06 [end_date_ymd] => 2025-01-27 01:40:06 [RateCDR] => 1 ) [2025-01-27 01: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-01-26 22:40:06' and `end` < '2025-01-27 01: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-01-27 01:40:19] Production.INFO: count ==432 [2025-01-27 01:40:19] Production.ERROR: pbx CDR StartTime 2025-01-26 22:40:06 - End Time 2025-01-27 01:40:06 [2025-01-27 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338350', 'tblTempUsageDetail_20' ) start [2025-01-27 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338350', 'tblTempUsageDetail_20' ) end [2025-01-27 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338350', 'tblTempVendorCDR_20' ) start [2025-01-27 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338350', 'tblTempVendorCDR_20' ) end [2025-01-27 01:40:19] Production.INFO: ProcessCDR(1,14338350,1,1,2) [2025-01-27 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338350', 'tblTempUsageDetail_20' ) start [2025-01-27 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338350', 'tblTempUsageDetail_20' ) end [2025-01-27 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:40:23] Production.INFO: ==13140== Releasing lock... [2025-01-27 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:40:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-27 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:41:05 [end_date_ymd] => 2025-01-27 01:41:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:41:05' and `end` < '2025-01-27 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-01-27 01:41:18] Production.INFO: count ==432 [2025-01-27 01:41:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:41:05 - End Time 2025-01-27 01:41:05 [2025-01-27 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338356', 'tblTempUsageDetail_20' ) start [2025-01-27 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338356', 'tblTempUsageDetail_20' ) end [2025-01-27 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338356', 'tblTempVendorCDR_20' ) start [2025-01-27 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338356', 'tblTempVendorCDR_20' ) end [2025-01-27 01:41:18] Production.INFO: ProcessCDR(1,14338356,1,1,2) [2025-01-27 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338356', 'tblTempUsageDetail_20' ) start [2025-01-27 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338356', 'tblTempUsageDetail_20' ) end [2025-01-27 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:41:22] Production.INFO: ==13224== Releasing lock... [2025-01-27 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:41:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-27 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:42:05 [end_date_ymd] => 2025-01-27 01:42:05 [RateCDR] => 1 ) [2025-01-27 01: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-01-26 22:42:05' and `end` < '2025-01-27 01: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-01-27 01:42:19] Production.INFO: count ==436 [2025-01-27 01:42:19] Production.ERROR: pbx CDR StartTime 2025-01-26 22:42:05 - End Time 2025-01-27 01:42:05 [2025-01-27 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338361', 'tblTempUsageDetail_20' ) start [2025-01-27 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338361', 'tblTempUsageDetail_20' ) end [2025-01-27 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338361', 'tblTempVendorCDR_20' ) start [2025-01-27 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338361', 'tblTempVendorCDR_20' ) end [2025-01-27 01:42:19] Production.INFO: ProcessCDR(1,14338361,1,1,2) [2025-01-27 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338361', 'tblTempUsageDetail_20' ) start [2025-01-27 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338361', 'tblTempUsageDetail_20' ) end [2025-01-27 01:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:42:23] Production.INFO: ==13305== Releasing lock... [2025-01-27 01:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:42:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:43:06 [end_date_ymd] => 2025-01-27 01:43:06 [RateCDR] => 1 ) [2025-01-27 01: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-01-26 22:43:06' and `end` < '2025-01-27 01: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-01-27 01:43:18] Production.INFO: count ==436 [2025-01-27 01:43:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:43:06 - End Time 2025-01-27 01:43:06 [2025-01-27 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338366', 'tblTempUsageDetail_20' ) start [2025-01-27 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338366', 'tblTempUsageDetail_20' ) end [2025-01-27 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338366', 'tblTempVendorCDR_20' ) start [2025-01-27 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338366', 'tblTempVendorCDR_20' ) end [2025-01-27 01:43:18] Production.INFO: ProcessCDR(1,14338366,1,1,2) [2025-01-27 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338366', 'tblTempUsageDetail_20' ) start [2025-01-27 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338366', 'tblTempUsageDetail_20' ) end [2025-01-27 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:43:22] Production.INFO: ==13381== Releasing lock... [2025-01-27 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:43:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:44:05 [end_date_ymd] => 2025-01-27 01:44:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:44:05' and `end` < '2025-01-27 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-01-27 01:44:18] Production.INFO: count ==436 [2025-01-27 01:44:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:44:05 - End Time 2025-01-27 01:44:05 [2025-01-27 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338371', 'tblTempUsageDetail_20' ) start [2025-01-27 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338371', 'tblTempUsageDetail_20' ) end [2025-01-27 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338371', 'tblTempVendorCDR_20' ) start [2025-01-27 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338371', 'tblTempVendorCDR_20' ) end [2025-01-27 01:44:18] Production.INFO: ProcessCDR(1,14338371,1,1,2) [2025-01-27 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338371', 'tblTempUsageDetail_20' ) start [2025-01-27 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338371', 'tblTempUsageDetail_20' ) end [2025-01-27 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:44:21] Production.INFO: ==13457== Releasing lock... [2025-01-27 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:44:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:45:06 [end_date_ymd] => 2025-01-27 01:45:06 [RateCDR] => 1 ) [2025-01-27 01: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-01-26 22:45:06' and `end` < '2025-01-27 01: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-01-27 01:45:18] Production.INFO: count ==436 [2025-01-27 01:45:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:45:06 - End Time 2025-01-27 01:45:06 [2025-01-27 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338376', 'tblTempUsageDetail_20' ) start [2025-01-27 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338376', 'tblTempUsageDetail_20' ) end [2025-01-27 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338376', 'tblTempVendorCDR_20' ) start [2025-01-27 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338376', 'tblTempVendorCDR_20' ) end [2025-01-27 01:45:18] Production.INFO: ProcessCDR(1,14338376,1,1,2) [2025-01-27 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338376', 'tblTempUsageDetail_20' ) start [2025-01-27 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338376', 'tblTempUsageDetail_20' ) end [2025-01-27 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:45:22] Production.INFO: ==13539== Releasing lock... [2025-01-27 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:45:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:46:05 [end_date_ymd] => 2025-01-27 01:46:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:46:05' and `end` < '2025-01-27 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-01-27 01:46:18] Production.INFO: count ==435 [2025-01-27 01:46:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:46:05 - End Time 2025-01-27 01:46:05 [2025-01-27 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338381', 'tblTempUsageDetail_20' ) start [2025-01-27 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338381', 'tblTempUsageDetail_20' ) end [2025-01-27 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338381', 'tblTempVendorCDR_20' ) start [2025-01-27 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338381', 'tblTempVendorCDR_20' ) end [2025-01-27 01:46:18] Production.INFO: ProcessCDR(1,14338381,1,1,2) [2025-01-27 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338381', 'tblTempUsageDetail_20' ) start [2025-01-27 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338381', 'tblTempUsageDetail_20' ) end [2025-01-27 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:46:22] Production.INFO: ==13617== Releasing lock... [2025-01-27 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:46:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:47:06 [end_date_ymd] => 2025-01-27 01:47:06 [RateCDR] => 1 ) [2025-01-27 01: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-01-26 22:47:06' and `end` < '2025-01-27 01: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-01-27 01:47:19] Production.INFO: count ==435 [2025-01-27 01:47:19] Production.ERROR: pbx CDR StartTime 2025-01-26 22:47:06 - End Time 2025-01-27 01:47:06 [2025-01-27 01:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338386', 'tblTempUsageDetail_20' ) start [2025-01-27 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338386', 'tblTempUsageDetail_20' ) end [2025-01-27 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338386', 'tblTempVendorCDR_20' ) start [2025-01-27 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338386', 'tblTempVendorCDR_20' ) end [2025-01-27 01:47:19] Production.INFO: ProcessCDR(1,14338386,1,1,2) [2025-01-27 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338386', 'tblTempUsageDetail_20' ) start [2025-01-27 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338386', 'tblTempUsageDetail_20' ) end [2025-01-27 01:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:47:23] Production.INFO: ==13692== Releasing lock... [2025-01-27 01:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:47:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:48:05 [end_date_ymd] => 2025-01-27 01:48:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:48:05' and `end` < '2025-01-27 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-01-27 01:48:18] Production.INFO: count ==435 [2025-01-27 01:48:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:48:05 - End Time 2025-01-27 01:48:05 [2025-01-27 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338391', 'tblTempUsageDetail_20' ) start [2025-01-27 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338391', 'tblTempUsageDetail_20' ) end [2025-01-27 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338391', 'tblTempVendorCDR_20' ) start [2025-01-27 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338391', 'tblTempVendorCDR_20' ) end [2025-01-27 01:48:18] Production.INFO: ProcessCDR(1,14338391,1,1,2) [2025-01-27 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338391', 'tblTempUsageDetail_20' ) start [2025-01-27 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338391', 'tblTempUsageDetail_20' ) end [2025-01-27 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:48:22] Production.INFO: ==13772== Releasing lock... [2025-01-27 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:48:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 01:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:49:06 [end_date_ymd] => 2025-01-27 01:49:06 [RateCDR] => 1 ) [2025-01-27 01: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-01-26 22:49:06' and `end` < '2025-01-27 01: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-01-27 01:49:18] Production.INFO: count ==436 [2025-01-27 01:49:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:49:06 - End Time 2025-01-27 01:49:06 [2025-01-27 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338396', 'tblTempUsageDetail_20' ) start [2025-01-27 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338396', 'tblTempUsageDetail_20' ) end [2025-01-27 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338396', 'tblTempVendorCDR_20' ) start [2025-01-27 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338396', 'tblTempVendorCDR_20' ) end [2025-01-27 01:49:18] Production.INFO: ProcessCDR(1,14338396,1,1,2) [2025-01-27 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338396', 'tblTempUsageDetail_20' ) start [2025-01-27 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338396', 'tblTempUsageDetail_20' ) end [2025-01-27 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:49:22] Production.INFO: ==13891== Releasing lock... [2025-01-27 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:49:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:50:06 [end_date_ymd] => 2025-01-27 01:50:06 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:50:06' and `end` < '2025-01-27 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-01-27 01:50:19] Production.INFO: count ==452 [2025-01-27 01:50:19] Production.ERROR: pbx CDR StartTime 2025-01-26 22:50:06 - End Time 2025-01-27 01:50:06 [2025-01-27 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338402', 'tblTempUsageDetail_20' ) start [2025-01-27 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338402', 'tblTempUsageDetail_20' ) end [2025-01-27 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338402', 'tblTempVendorCDR_20' ) start [2025-01-27 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338402', 'tblTempVendorCDR_20' ) end [2025-01-27 01:50:19] Production.INFO: ProcessCDR(1,14338402,1,1,2) [2025-01-27 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338402', 'tblTempUsageDetail_20' ) start [2025-01-27 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338402', 'tblTempUsageDetail_20' ) end [2025-01-27 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:50:22] Production.INFO: ==13969== Releasing lock... [2025-01-27 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:50:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:51:06 [end_date_ymd] => 2025-01-27 01:51:06 [RateCDR] => 1 ) [2025-01-27 01: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-01-26 22:51:06' and `end` < '2025-01-27 01: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-01-27 01:51:19] Production.INFO: count ==456 [2025-01-27 01:51:19] Production.ERROR: pbx CDR StartTime 2025-01-26 22:51:06 - End Time 2025-01-27 01:51:06 [2025-01-27 01:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338407', 'tblTempUsageDetail_20' ) start [2025-01-27 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338407', 'tblTempUsageDetail_20' ) end [2025-01-27 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338407', 'tblTempVendorCDR_20' ) start [2025-01-27 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338407', 'tblTempVendorCDR_20' ) end [2025-01-27 01:51:19] Production.INFO: ProcessCDR(1,14338407,1,1,2) [2025-01-27 01:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338407', 'tblTempUsageDetail_20' ) start [2025-01-27 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338407', 'tblTempUsageDetail_20' ) end [2025-01-27 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:51:22] Production.INFO: ==14052== Releasing lock... [2025-01-27 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:51:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:52:05 [end_date_ymd] => 2025-01-27 01:52:05 [RateCDR] => 1 ) [2025-01-27 01: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-01-26 22:52:05' and `end` < '2025-01-27 01: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-01-27 01:52:18] Production.INFO: count ==456 [2025-01-27 01:52:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:52:05 - End Time 2025-01-27 01:52:05 [2025-01-27 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338412', 'tblTempUsageDetail_20' ) start [2025-01-27 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338412', 'tblTempUsageDetail_20' ) end [2025-01-27 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338412', 'tblTempVendorCDR_20' ) start [2025-01-27 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338412', 'tblTempVendorCDR_20' ) end [2025-01-27 01:52:18] Production.INFO: ProcessCDR(1,14338412,1,1,2) [2025-01-27 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338412', 'tblTempUsageDetail_20' ) start [2025-01-27 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338412', 'tblTempUsageDetail_20' ) end [2025-01-27 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:52:22] Production.INFO: ==14135== Releasing lock... [2025-01-27 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:52:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:53:05 [end_date_ymd] => 2025-01-27 01:53:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:53:05' and `end` < '2025-01-27 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-01-27 01:53:18] Production.INFO: count ==455 [2025-01-27 01:53:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:53:05 - End Time 2025-01-27 01:53:05 [2025-01-27 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338417', 'tblTempUsageDetail_20' ) start [2025-01-27 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338417', 'tblTempUsageDetail_20' ) end [2025-01-27 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338417', 'tblTempVendorCDR_20' ) start [2025-01-27 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338417', 'tblTempVendorCDR_20' ) end [2025-01-27 01:53:18] Production.INFO: ProcessCDR(1,14338417,1,1,2) [2025-01-27 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338417', 'tblTempUsageDetail_20' ) start [2025-01-27 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338417', 'tblTempUsageDetail_20' ) end [2025-01-27 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:53:22] Production.INFO: ==14216== Releasing lock... [2025-01-27 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:53:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:54:06 [end_date_ymd] => 2025-01-27 01:54:06 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:54:06' and `end` < '2025-01-27 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-01-27 01:54:18] Production.INFO: count ==451 [2025-01-27 01:54:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:54:06 - End Time 2025-01-27 01:54:06 [2025-01-27 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338422', 'tblTempUsageDetail_20' ) start [2025-01-27 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338422', 'tblTempUsageDetail_20' ) end [2025-01-27 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338422', 'tblTempVendorCDR_20' ) start [2025-01-27 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338422', 'tblTempVendorCDR_20' ) end [2025-01-27 01:54:18] Production.INFO: ProcessCDR(1,14338422,1,1,2) [2025-01-27 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338422', 'tblTempUsageDetail_20' ) start [2025-01-27 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338422', 'tblTempUsageDetail_20' ) end [2025-01-27 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:54:22] Production.INFO: ==14295== Releasing lock... [2025-01-27 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:54:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-27 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:55:05 [end_date_ymd] => 2025-01-27 01:55:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:55:05' and `end` < '2025-01-27 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-01-27 01:55:18] Production.INFO: count ==447 [2025-01-27 01:55:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:55:05 - End Time 2025-01-27 01:55:05 [2025-01-27 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338427', 'tblTempUsageDetail_20' ) start [2025-01-27 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338427', 'tblTempUsageDetail_20' ) end [2025-01-27 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338427', 'tblTempVendorCDR_20' ) start [2025-01-27 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338427', 'tblTempVendorCDR_20' ) end [2025-01-27 01:55:18] Production.INFO: ProcessCDR(1,14338427,1,1,2) [2025-01-27 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338427', 'tblTempUsageDetail_20' ) start [2025-01-27 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338427', 'tblTempUsageDetail_20' ) end [2025-01-27 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:55:22] Production.INFO: ==14375== Releasing lock... [2025-01-27 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:55:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-27 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:56:06 [end_date_ymd] => 2025-01-27 01:56:06 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:56:06' and `end` < '2025-01-27 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-01-27 01:56:19] Production.INFO: count ==444 [2025-01-27 01:56:19] Production.ERROR: pbx CDR StartTime 2025-01-26 22:56:06 - End Time 2025-01-27 01:56:06 [2025-01-27 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338432', 'tblTempUsageDetail_20' ) start [2025-01-27 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338432', 'tblTempUsageDetail_20' ) end [2025-01-27 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338432', 'tblTempVendorCDR_20' ) start [2025-01-27 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338432', 'tblTempVendorCDR_20' ) end [2025-01-27 01:56:19] Production.INFO: ProcessCDR(1,14338432,1,1,2) [2025-01-27 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338432', 'tblTempUsageDetail_20' ) start [2025-01-27 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338432', 'tblTempUsageDetail_20' ) end [2025-01-27 01:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:56:23] Production.INFO: ==14452== Releasing lock... [2025-01-27 01:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:56:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:57:05 [end_date_ymd] => 2025-01-27 01:57:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:57:05' and `end` < '2025-01-27 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-01-27 01:57:19] Production.INFO: count ==443 [2025-01-27 01:57:19] Production.ERROR: pbx CDR StartTime 2025-01-26 22:57:05 - End Time 2025-01-27 01:57:05 [2025-01-27 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338437', 'tblTempUsageDetail_20' ) start [2025-01-27 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338437', 'tblTempUsageDetail_20' ) end [2025-01-27 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338437', 'tblTempVendorCDR_20' ) start [2025-01-27 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338437', 'tblTempVendorCDR_20' ) end [2025-01-27 01:57:19] Production.INFO: ProcessCDR(1,14338437,1,1,2) [2025-01-27 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338437', 'tblTempUsageDetail_20' ) start [2025-01-27 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338437', 'tblTempUsageDetail_20' ) end [2025-01-27 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:57:22] Production.INFO: ==14527== Releasing lock... [2025-01-27 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:57:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:58:06 [end_date_ymd] => 2025-01-27 01:58:06 [RateCDR] => 1 ) [2025-01-27 01: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-01-26 22:58:06' and `end` < '2025-01-27 01: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-01-27 01:58:19] Production.INFO: count ==447 [2025-01-27 01:58:19] Production.ERROR: pbx CDR StartTime 2025-01-26 22:58:06 - End Time 2025-01-27 01:58:06 [2025-01-27 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338442', 'tblTempUsageDetail_20' ) start [2025-01-27 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338442', 'tblTempUsageDetail_20' ) end [2025-01-27 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338442', 'tblTempVendorCDR_20' ) start [2025-01-27 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338442', 'tblTempVendorCDR_20' ) end [2025-01-27 01:58:19] Production.INFO: ProcessCDR(1,14338442,1,1,2) [2025-01-27 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338442', 'tblTempUsageDetail_20' ) start [2025-01-27 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338442', 'tblTempUsageDetail_20' ) end [2025-01-27 01:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:58:23] Production.INFO: ==14603== Releasing lock... [2025-01-27 01:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:58:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-27 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 22:59:05 [end_date_ymd] => 2025-01-27 01:59:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 22:59:05' and `end` < '2025-01-27 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-01-27 01:59:18] Production.INFO: count ==446 [2025-01-27 01:59:18] Production.ERROR: pbx CDR StartTime 2025-01-26 22:59:05 - End Time 2025-01-27 01:59:05 [2025-01-27 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338447', 'tblTempUsageDetail_20' ) start [2025-01-27 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338447', 'tblTempUsageDetail_20' ) end [2025-01-27 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338447', 'tblTempVendorCDR_20' ) start [2025-01-27 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338447', 'tblTempVendorCDR_20' ) end [2025-01-27 01:59:18] Production.INFO: ProcessCDR(1,14338447,1,1,2) [2025-01-27 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338447', 'tblTempUsageDetail_20' ) start [2025-01-27 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338447', 'tblTempUsageDetail_20' ) end [2025-01-27 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 01:59:21] Production.INFO: ==14682== Releasing lock... [2025-01-27 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 01:59:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:00:07 [end_date_ymd] => 2025-01-27 02:00:07 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:00:07' and `end` < '2025-01-27 02: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-01-27 02:00:20] Production.INFO: count ==462 [2025-01-27 02:00:20] Production.ERROR: pbx CDR StartTime 2025-01-26 23:00:07 - End Time 2025-01-27 02:00:07 [2025-01-27 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338453', 'tblTempUsageDetail_20' ) start [2025-01-27 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338453', 'tblTempUsageDetail_20' ) end [2025-01-27 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338453', 'tblTempVendorCDR_20' ) start [2025-01-27 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338453', 'tblTempVendorCDR_20' ) end [2025-01-27 02:00:20] Production.INFO: ProcessCDR(1,14338453,1,1,2) [2025-01-27 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338453', 'tblTempUsageDetail_20' ) start [2025-01-27 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338453', 'tblTempUsageDetail_20' ) end [2025-01-27 02:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:00:24] Production.INFO: ==14765== Releasing lock... [2025-01-27 02:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:00:24] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:01:05 [end_date_ymd] => 2025-01-27 02:01:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:01:05' and `end` < '2025-01-27 02: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-01-27 02:01:19] Production.INFO: count ==462 [2025-01-27 02:01:19] Production.ERROR: pbx CDR StartTime 2025-01-26 23:01:05 - End Time 2025-01-27 02:01:05 [2025-01-27 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338458', 'tblTempUsageDetail_20' ) start [2025-01-27 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338458', 'tblTempUsageDetail_20' ) end [2025-01-27 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338458', 'tblTempVendorCDR_20' ) start [2025-01-27 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338458', 'tblTempVendorCDR_20' ) end [2025-01-27 02:01:19] Production.INFO: ProcessCDR(1,14338458,1,1,2) [2025-01-27 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338458', 'tblTempUsageDetail_20' ) start [2025-01-27 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338458', 'tblTempUsageDetail_20' ) end [2025-01-27 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:01:22] Production.INFO: ==14941== Releasing lock... [2025-01-27 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:01:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:02:06 [end_date_ymd] => 2025-01-27 02:02:06 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:02:06' and `end` < '2025-01-27 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-01-27 02:02:18] Production.INFO: count ==462 [2025-01-27 02:02:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:02:06 - End Time 2025-01-27 02:02:06 [2025-01-27 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338463', 'tblTempUsageDetail_20' ) start [2025-01-27 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338463', 'tblTempUsageDetail_20' ) end [2025-01-27 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338463', 'tblTempVendorCDR_20' ) start [2025-01-27 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338463', 'tblTempVendorCDR_20' ) end [2025-01-27 02:02:18] Production.INFO: ProcessCDR(1,14338463,1,1,2) [2025-01-27 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338463', 'tblTempUsageDetail_20' ) start [2025-01-27 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338463', 'tblTempUsageDetail_20' ) end [2025-01-27 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:02:22] Production.INFO: ==15021== Releasing lock... [2025-01-27 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:02:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:03:05 [end_date_ymd] => 2025-01-27 02:03:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:03:05' and `end` < '2025-01-27 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-01-27 02:03:19] Production.INFO: count ==462 [2025-01-27 02:03:19] Production.ERROR: pbx CDR StartTime 2025-01-26 23:03:05 - End Time 2025-01-27 02:03:05 [2025-01-27 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338468', 'tblTempUsageDetail_20' ) start [2025-01-27 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338468', 'tblTempUsageDetail_20' ) end [2025-01-27 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338468', 'tblTempVendorCDR_20' ) start [2025-01-27 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338468', 'tblTempVendorCDR_20' ) end [2025-01-27 02:03:19] Production.INFO: ProcessCDR(1,14338468,1,1,2) [2025-01-27 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338468', 'tblTempUsageDetail_20' ) start [2025-01-27 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338468', 'tblTempUsageDetail_20' ) end [2025-01-27 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:03:22] Production.INFO: ==15099== Releasing lock... [2025-01-27 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:03:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:04:06 [end_date_ymd] => 2025-01-27 02:04:06 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:04:06' and `end` < '2025-01-27 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-01-27 02:04:19] Production.INFO: count ==462 [2025-01-27 02:04:19] Production.ERROR: pbx CDR StartTime 2025-01-26 23:04:06 - End Time 2025-01-27 02:04:06 [2025-01-27 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338473', 'tblTempUsageDetail_20' ) start [2025-01-27 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338473', 'tblTempUsageDetail_20' ) end [2025-01-27 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338473', 'tblTempVendorCDR_20' ) start [2025-01-27 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338473', 'tblTempVendorCDR_20' ) end [2025-01-27 02:04:19] Production.INFO: ProcessCDR(1,14338473,1,1,2) [2025-01-27 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338473', 'tblTempUsageDetail_20' ) start [2025-01-27 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338473', 'tblTempUsageDetail_20' ) end [2025-01-27 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:04:22] Production.INFO: ==15215== Releasing lock... [2025-01-27 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:04:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:05:05 [end_date_ymd] => 2025-01-27 02:05:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:05:05' and `end` < '2025-01-27 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-01-27 02:05:17] Production.INFO: count ==462 [2025-01-27 02:05:17] Production.ERROR: pbx CDR StartTime 2025-01-26 23:05:05 - End Time 2025-01-27 02:05:05 [2025-01-27 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338478', 'tblTempUsageDetail_20' ) start [2025-01-27 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338478', 'tblTempUsageDetail_20' ) end [2025-01-27 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338478', 'tblTempVendorCDR_20' ) start [2025-01-27 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338478', 'tblTempVendorCDR_20' ) end [2025-01-27 02:05:17] Production.INFO: ProcessCDR(1,14338478,1,1,2) [2025-01-27 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338478', 'tblTempUsageDetail_20' ) start [2025-01-27 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338478', 'tblTempUsageDetail_20' ) end [2025-01-27 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:05:21] Production.INFO: ==15291== Releasing lock... [2025-01-27 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:05:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:06:06 [end_date_ymd] => 2025-01-27 02:06:06 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:06:06' and `end` < '2025-01-27 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-01-27 02:06:18] Production.INFO: count ==458 [2025-01-27 02:06:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:06:06 - End Time 2025-01-27 02:06:06 [2025-01-27 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338483', 'tblTempUsageDetail_20' ) start [2025-01-27 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338483', 'tblTempUsageDetail_20' ) end [2025-01-27 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338483', 'tblTempVendorCDR_20' ) start [2025-01-27 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338483', 'tblTempVendorCDR_20' ) end [2025-01-27 02:06:19] Production.INFO: ProcessCDR(1,14338483,1,1,2) [2025-01-27 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338483', 'tblTempUsageDetail_20' ) start [2025-01-27 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338483', 'tblTempUsageDetail_20' ) end [2025-01-27 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:06:22] Production.INFO: ==15375== Releasing lock... [2025-01-27 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:06:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:07:05 [end_date_ymd] => 2025-01-27 02:07:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:07:05' and `end` < '2025-01-27 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-01-27 02:07:19] Production.INFO: count ==455 [2025-01-27 02:07:19] Production.ERROR: pbx CDR StartTime 2025-01-26 23:07:05 - End Time 2025-01-27 02:07:05 [2025-01-27 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338488', 'tblTempUsageDetail_20' ) start [2025-01-27 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338488', 'tblTempUsageDetail_20' ) end [2025-01-27 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338488', 'tblTempVendorCDR_20' ) start [2025-01-27 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338488', 'tblTempVendorCDR_20' ) end [2025-01-27 02:07:19] Production.INFO: ProcessCDR(1,14338488,1,1,2) [2025-01-27 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338488', 'tblTempUsageDetail_20' ) start [2025-01-27 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338488', 'tblTempUsageDetail_20' ) end [2025-01-27 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:07:22] Production.INFO: ==15456== Releasing lock... [2025-01-27 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:07:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:08:06 [end_date_ymd] => 2025-01-27 02:08:06 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:08:06' and `end` < '2025-01-27 02: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-01-27 02:08:18] Production.INFO: count ==454 [2025-01-27 02:08:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:08:06 - End Time 2025-01-27 02:08:06 [2025-01-27 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338493', 'tblTempUsageDetail_20' ) start [2025-01-27 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338493', 'tblTempUsageDetail_20' ) end [2025-01-27 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338493', 'tblTempVendorCDR_20' ) start [2025-01-27 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338493', 'tblTempVendorCDR_20' ) end [2025-01-27 02:08:18] Production.INFO: ProcessCDR(1,14338493,1,1,2) [2025-01-27 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338493', 'tblTempUsageDetail_20' ) start [2025-01-27 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338493', 'tblTempUsageDetail_20' ) end [2025-01-27 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:08:21] Production.INFO: ==15533== Releasing lock... [2025-01-27 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:08:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:09:05 [end_date_ymd] => 2025-01-27 02:09:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:09:05' and `end` < '2025-01-27 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-01-27 02:09:18] Production.INFO: count ==453 [2025-01-27 02:09:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:09:05 - End Time 2025-01-27 02:09:05 [2025-01-27 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338498', 'tblTempUsageDetail_20' ) start [2025-01-27 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338498', 'tblTempUsageDetail_20' ) end [2025-01-27 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338498', 'tblTempVendorCDR_20' ) start [2025-01-27 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338498', 'tblTempVendorCDR_20' ) end [2025-01-27 02:09:18] Production.INFO: ProcessCDR(1,14338498,1,1,2) [2025-01-27 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338498', 'tblTempUsageDetail_20' ) start [2025-01-27 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338498', 'tblTempUsageDetail_20' ) end [2025-01-27 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:09:21] Production.INFO: ==15617== Releasing lock... [2025-01-27 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:09:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 02:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:10:07 [end_date_ymd] => 2025-01-27 02:10:07 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:10:07' and `end` < '2025-01-27 02: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-01-27 02:10:20] Production.INFO: count ==455 [2025-01-27 02:10:20] Production.ERROR: pbx CDR StartTime 2025-01-26 23:10:07 - End Time 2025-01-27 02:10:07 [2025-01-27 02:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338504', 'tblTempUsageDetail_20' ) start [2025-01-27 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338504', 'tblTempUsageDetail_20' ) end [2025-01-27 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338504', 'tblTempVendorCDR_20' ) start [2025-01-27 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338504', 'tblTempVendorCDR_20' ) end [2025-01-27 02:10:20] Production.INFO: ProcessCDR(1,14338504,1,1,2) [2025-01-27 02:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338504', 'tblTempUsageDetail_20' ) start [2025-01-27 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338504', 'tblTempUsageDetail_20' ) end [2025-01-27 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:10:23] Production.INFO: ==15697== Releasing lock... [2025-01-27 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:10:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:11:05 [end_date_ymd] => 2025-01-27 02:11:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:11:05' and `end` < '2025-01-27 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-01-27 02:11:18] Production.INFO: count ==455 [2025-01-27 02:11:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:11:05 - End Time 2025-01-27 02:11:05 [2025-01-27 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338509', 'tblTempUsageDetail_20' ) start [2025-01-27 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338509', 'tblTempUsageDetail_20' ) end [2025-01-27 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338509', 'tblTempVendorCDR_20' ) start [2025-01-27 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338509', 'tblTempVendorCDR_20' ) end [2025-01-27 02:11:18] Production.INFO: ProcessCDR(1,14338509,1,1,2) [2025-01-27 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338509', 'tblTempUsageDetail_20' ) start [2025-01-27 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338509', 'tblTempUsageDetail_20' ) end [2025-01-27 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:11:21] Production.INFO: ==15776== Releasing lock... [2025-01-27 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:12:05 [end_date_ymd] => 2025-01-27 02:12:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:12:05' and `end` < '2025-01-27 02: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-01-27 02:12:19] Production.INFO: count ==453 [2025-01-27 02:12:19] Production.ERROR: pbx CDR StartTime 2025-01-26 23:12:05 - End Time 2025-01-27 02:12:05 [2025-01-27 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338514', 'tblTempUsageDetail_20' ) start [2025-01-27 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338514', 'tblTempUsageDetail_20' ) end [2025-01-27 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338514', 'tblTempVendorCDR_20' ) start [2025-01-27 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338514', 'tblTempVendorCDR_20' ) end [2025-01-27 02:12:19] Production.INFO: ProcessCDR(1,14338514,1,1,2) [2025-01-27 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338514', 'tblTempUsageDetail_20' ) start [2025-01-27 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338514', 'tblTempUsageDetail_20' ) end [2025-01-27 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:12:22] Production.INFO: ==15875== Releasing lock... [2025-01-27 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:12:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:13:05 [end_date_ymd] => 2025-01-27 02:13:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:13:05' and `end` < '2025-01-27 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-01-27 02:13:18] Production.INFO: count ==452 [2025-01-27 02:13:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:13:05 - End Time 2025-01-27 02:13:05 [2025-01-27 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338519', 'tblTempUsageDetail_20' ) start [2025-01-27 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338519', 'tblTempUsageDetail_20' ) end [2025-01-27 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338519', 'tblTempVendorCDR_20' ) start [2025-01-27 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338519', 'tblTempVendorCDR_20' ) end [2025-01-27 02:13:18] Production.INFO: ProcessCDR(1,14338519,1,1,2) [2025-01-27 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338519', 'tblTempUsageDetail_20' ) start [2025-01-27 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338519', 'tblTempUsageDetail_20' ) end [2025-01-27 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:13:22] Production.INFO: ==15948== Releasing lock... [2025-01-27 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:13:22] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:14:05 [end_date_ymd] => 2025-01-27 02:14:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:14:05' and `end` < '2025-01-27 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-01-27 02:14:19] Production.INFO: count ==451 [2025-01-27 02:14:19] Production.ERROR: pbx CDR StartTime 2025-01-26 23:14:05 - End Time 2025-01-27 02:14:05 [2025-01-27 02:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338524', 'tblTempUsageDetail_20' ) start [2025-01-27 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338524', 'tblTempUsageDetail_20' ) end [2025-01-27 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338524', 'tblTempVendorCDR_20' ) start [2025-01-27 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338524', 'tblTempVendorCDR_20' ) end [2025-01-27 02:14:19] Production.INFO: ProcessCDR(1,14338524,1,1,2) [2025-01-27 02:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338524', 'tblTempUsageDetail_20' ) start [2025-01-27 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338524', 'tblTempUsageDetail_20' ) end [2025-01-27 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:14:22] Production.INFO: ==16023== Releasing lock... [2025-01-27 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:14:22] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:15:05 [end_date_ymd] => 2025-01-27 02:15:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:15:05' and `end` < '2025-01-27 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-01-27 02:15:18] Production.INFO: count ==450 [2025-01-27 02:15:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:15:05 - End Time 2025-01-27 02:15:05 [2025-01-27 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338529', 'tblTempUsageDetail_20' ) start [2025-01-27 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338529', 'tblTempUsageDetail_20' ) end [2025-01-27 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338529', 'tblTempVendorCDR_20' ) start [2025-01-27 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338529', 'tblTempVendorCDR_20' ) end [2025-01-27 02:15:18] Production.INFO: ProcessCDR(1,14338529,1,1,2) [2025-01-27 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338529', 'tblTempUsageDetail_20' ) start [2025-01-27 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338529', 'tblTempUsageDetail_20' ) end [2025-01-27 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:15:21] Production.INFO: ==16097== Releasing lock... [2025-01-27 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:15:21] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:16:05 [end_date_ymd] => 2025-01-27 02:16:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:16:05' and `end` < '2025-01-27 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-01-27 02:16:18] Production.INFO: count ==449 [2025-01-27 02:16:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:16:05 - End Time 2025-01-27 02:16:05 [2025-01-27 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338534', 'tblTempUsageDetail_20' ) start [2025-01-27 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338534', 'tblTempUsageDetail_20' ) end [2025-01-27 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338534', 'tblTempVendorCDR_20' ) start [2025-01-27 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338534', 'tblTempVendorCDR_20' ) end [2025-01-27 02:16:18] Production.INFO: ProcessCDR(1,14338534,1,1,2) [2025-01-27 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338534', 'tblTempUsageDetail_20' ) start [2025-01-27 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338534', 'tblTempUsageDetail_20' ) end [2025-01-27 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:16:21] Production.INFO: ==16169== Releasing lock... [2025-01-27 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:17:05 [end_date_ymd] => 2025-01-27 02:17:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:17:05' and `end` < '2025-01-27 02: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-01-27 02:17:19] Production.INFO: count ==449 [2025-01-27 02:17:19] Production.ERROR: pbx CDR StartTime 2025-01-26 23:17:05 - End Time 2025-01-27 02:17:05 [2025-01-27 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338539', 'tblTempUsageDetail_20' ) start [2025-01-27 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338539', 'tblTempUsageDetail_20' ) end [2025-01-27 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338539', 'tblTempVendorCDR_20' ) start [2025-01-27 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338539', 'tblTempVendorCDR_20' ) end [2025-01-27 02:17:19] Production.INFO: ProcessCDR(1,14338539,1,1,2) [2025-01-27 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338539', 'tblTempUsageDetail_20' ) start [2025-01-27 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338539', 'tblTempUsageDetail_20' ) end [2025-01-27 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:17:22] Production.INFO: ==16241== Releasing lock... [2025-01-27 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:17:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 02:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:18:04 [end_date_ymd] => 2025-01-27 02:18:04 [RateCDR] => 1 ) [2025-01-27 02:18: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-01-26 23:18:04' and `end` < '2025-01-27 02:18: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-01-27 02:18:17] Production.INFO: count ==449 [2025-01-27 02:18:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:18:04 - End Time 2025-01-27 02:18:04 [2025-01-27 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338544', 'tblTempUsageDetail_20' ) start [2025-01-27 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338544', 'tblTempUsageDetail_20' ) end [2025-01-27 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338544', 'tblTempVendorCDR_20' ) start [2025-01-27 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338544', 'tblTempVendorCDR_20' ) end [2025-01-27 02:18:18] Production.INFO: ProcessCDR(1,14338544,1,1,2) [2025-01-27 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338544', 'tblTempUsageDetail_20' ) start [2025-01-27 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338544', 'tblTempUsageDetail_20' ) end [2025-01-27 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:18:21] Production.INFO: ==16314== Releasing lock... [2025-01-27 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:18:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:19:05 [end_date_ymd] => 2025-01-27 02:19:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:19:05' and `end` < '2025-01-27 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-01-27 02:19:18] Production.INFO: count ==446 [2025-01-27 02:19:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:19:05 - End Time 2025-01-27 02:19:05 [2025-01-27 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338549', 'tblTempUsageDetail_20' ) start [2025-01-27 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338549', 'tblTempUsageDetail_20' ) end [2025-01-27 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338549', 'tblTempVendorCDR_20' ) start [2025-01-27 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338549', 'tblTempVendorCDR_20' ) end [2025-01-27 02:19:18] Production.INFO: ProcessCDR(1,14338549,1,1,2) [2025-01-27 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338549', 'tblTempUsageDetail_20' ) start [2025-01-27 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338549', 'tblTempUsageDetail_20' ) end [2025-01-27 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:19:21] Production.INFO: ==16387== Releasing lock... [2025-01-27 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:19:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:20:06 [end_date_ymd] => 2025-01-27 02:20:06 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:20:06' and `end` < '2025-01-27 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-01-27 02:20:18] Production.INFO: count ==450 [2025-01-27 02:20:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:20:06 - End Time 2025-01-27 02:20:06 [2025-01-27 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338555', 'tblTempUsageDetail_20' ) start [2025-01-27 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338555', 'tblTempUsageDetail_20' ) end [2025-01-27 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338555', 'tblTempVendorCDR_20' ) start [2025-01-27 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338555', 'tblTempVendorCDR_20' ) end [2025-01-27 02:20:18] Production.INFO: ProcessCDR(1,14338555,1,1,2) [2025-01-27 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338555', 'tblTempUsageDetail_20' ) start [2025-01-27 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338555', 'tblTempUsageDetail_20' ) end [2025-01-27 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:20:22] Production.INFO: ==16500== Releasing lock... [2025-01-27 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:20:22] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:21:05 [end_date_ymd] => 2025-01-27 02:21:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:21:05' and `end` < '2025-01-27 02: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-01-27 02:21:18] Production.INFO: count ==450 [2025-01-27 02:21:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:21:05 - End Time 2025-01-27 02:21:05 [2025-01-27 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338560', 'tblTempUsageDetail_20' ) start [2025-01-27 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338560', 'tblTempUsageDetail_20' ) end [2025-01-27 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338560', 'tblTempVendorCDR_20' ) start [2025-01-27 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338560', 'tblTempVendorCDR_20' ) end [2025-01-27 02:21:18] Production.INFO: ProcessCDR(1,14338560,1,1,2) [2025-01-27 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338560', 'tblTempUsageDetail_20' ) start [2025-01-27 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338560', 'tblTempUsageDetail_20' ) end [2025-01-27 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:21:21] Production.INFO: ==16577== Releasing lock... [2025-01-27 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:21:21] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:22:05 [end_date_ymd] => 2025-01-27 02:22:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:22:05' and `end` < '2025-01-27 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-01-27 02:22:19] Production.INFO: count ==448 [2025-01-27 02:22:19] Production.ERROR: pbx CDR StartTime 2025-01-26 23:22:05 - End Time 2025-01-27 02:22:05 [2025-01-27 02:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338565', 'tblTempUsageDetail_20' ) start [2025-01-27 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338565', 'tblTempUsageDetail_20' ) end [2025-01-27 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338565', 'tblTempVendorCDR_20' ) start [2025-01-27 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338565', 'tblTempVendorCDR_20' ) end [2025-01-27 02:22:19] Production.INFO: ProcessCDR(1,14338565,1,1,2) [2025-01-27 02:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338565', 'tblTempUsageDetail_20' ) start [2025-01-27 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338565', 'tblTempUsageDetail_20' ) end [2025-01-27 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:22:22] Production.INFO: ==16649== Releasing lock... [2025-01-27 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:22:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:23:05 [end_date_ymd] => 2025-01-27 02:23:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:23:05' and `end` < '2025-01-27 02: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-01-27 02:23:19] Production.INFO: count ==448 [2025-01-27 02:23:19] Production.ERROR: pbx CDR StartTime 2025-01-26 23:23:05 - End Time 2025-01-27 02:23:05 [2025-01-27 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338570', 'tblTempUsageDetail_20' ) start [2025-01-27 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338570', 'tblTempUsageDetail_20' ) end [2025-01-27 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338570', 'tblTempVendorCDR_20' ) start [2025-01-27 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338570', 'tblTempVendorCDR_20' ) end [2025-01-27 02:23:19] Production.INFO: ProcessCDR(1,14338570,1,1,2) [2025-01-27 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338570', 'tblTempUsageDetail_20' ) start [2025-01-27 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338570', 'tblTempUsageDetail_20' ) end [2025-01-27 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:23:22] Production.INFO: ==16721== Releasing lock... [2025-01-27 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:23:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:24:05 [end_date_ymd] => 2025-01-27 02:24:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:24:05' and `end` < '2025-01-27 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-01-27 02:24:18] Production.INFO: count ==448 [2025-01-27 02:24:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:24:05 - End Time 2025-01-27 02:24:05 [2025-01-27 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338575', 'tblTempUsageDetail_20' ) start [2025-01-27 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338575', 'tblTempUsageDetail_20' ) end [2025-01-27 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338575', 'tblTempVendorCDR_20' ) start [2025-01-27 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338575', 'tblTempVendorCDR_20' ) end [2025-01-27 02:24:18] Production.INFO: ProcessCDR(1,14338575,1,1,2) [2025-01-27 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338575', 'tblTempUsageDetail_20' ) start [2025-01-27 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338575', 'tblTempUsageDetail_20' ) end [2025-01-27 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:24:21] Production.INFO: ==16797== Releasing lock... [2025-01-27 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:24:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:25:05 [end_date_ymd] => 2025-01-27 02:25:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:25:05' and `end` < '2025-01-27 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-01-27 02:25:18] Production.INFO: count ==446 [2025-01-27 02:25:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:25:05 - End Time 2025-01-27 02:25:05 [2025-01-27 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338580', 'tblTempUsageDetail_20' ) start [2025-01-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338580', 'tblTempUsageDetail_20' ) end [2025-01-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338580', 'tblTempVendorCDR_20' ) start [2025-01-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338580', 'tblTempVendorCDR_20' ) end [2025-01-27 02:25:18] Production.INFO: ProcessCDR(1,14338580,1,1,2) [2025-01-27 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338580', 'tblTempUsageDetail_20' ) start [2025-01-27 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338580', 'tblTempUsageDetail_20' ) end [2025-01-27 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:25:21] Production.INFO: ==16866== Releasing lock... [2025-01-27 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:26:05 [end_date_ymd] => 2025-01-27 02:26:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:26:05' and `end` < '2025-01-27 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-01-27 02:26:18] Production.INFO: count ==444 [2025-01-27 02:26:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:26:05 - End Time 2025-01-27 02:26:05 [2025-01-27 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338585', 'tblTempUsageDetail_20' ) start [2025-01-27 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338585', 'tblTempUsageDetail_20' ) end [2025-01-27 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338585', 'tblTempVendorCDR_20' ) start [2025-01-27 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338585', 'tblTempVendorCDR_20' ) end [2025-01-27 02:26:18] Production.INFO: ProcessCDR(1,14338585,1,1,2) [2025-01-27 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338585', 'tblTempUsageDetail_20' ) start [2025-01-27 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338585', 'tblTempUsageDetail_20' ) end [2025-01-27 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:26:21] Production.INFO: ==16937== Releasing lock... [2025-01-27 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:27:05 [end_date_ymd] => 2025-01-27 02:27:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:27:05' and `end` < '2025-01-27 02: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-01-27 02:27:19] Production.INFO: count ==449 [2025-01-27 02:27:19] Production.ERROR: pbx CDR StartTime 2025-01-26 23:27:05 - End Time 2025-01-27 02:27:05 [2025-01-27 02:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338590', 'tblTempUsageDetail_20' ) start [2025-01-27 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338590', 'tblTempUsageDetail_20' ) end [2025-01-27 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338590', 'tblTempVendorCDR_20' ) start [2025-01-27 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338590', 'tblTempVendorCDR_20' ) end [2025-01-27 02:27:19] Production.INFO: ProcessCDR(1,14338590,1,1,2) [2025-01-27 02:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338590', 'tblTempUsageDetail_20' ) start [2025-01-27 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338590', 'tblTempUsageDetail_20' ) end [2025-01-27 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:27:22] Production.INFO: ==17008== Releasing lock... [2025-01-27 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:27:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:28:05 [end_date_ymd] => 2025-01-27 02:28:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:28:05' and `end` < '2025-01-27 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-01-27 02:28:17] Production.INFO: count ==449 [2025-01-27 02:28:17] Production.ERROR: pbx CDR StartTime 2025-01-26 23:28:05 - End Time 2025-01-27 02:28:05 [2025-01-27 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338595', 'tblTempUsageDetail_20' ) start [2025-01-27 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338595', 'tblTempUsageDetail_20' ) end [2025-01-27 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338595', 'tblTempVendorCDR_20' ) start [2025-01-27 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338595', 'tblTempVendorCDR_20' ) end [2025-01-27 02:28:17] Production.INFO: ProcessCDR(1,14338595,1,1,2) [2025-01-27 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338595', 'tblTempUsageDetail_20' ) start [2025-01-27 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338595', 'tblTempUsageDetail_20' ) end [2025-01-27 02:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:28:20] Production.INFO: ==17082== Releasing lock... [2025-01-27 02:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:28:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:29:05 [end_date_ymd] => 2025-01-27 02:29:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:29:05' and `end` < '2025-01-27 02: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-01-27 02:29:17] Production.INFO: count ==449 [2025-01-27 02:29:17] Production.ERROR: pbx CDR StartTime 2025-01-26 23:29:05 - End Time 2025-01-27 02:29:05 [2025-01-27 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338600', 'tblTempUsageDetail_20' ) start [2025-01-27 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338600', 'tblTempUsageDetail_20' ) end [2025-01-27 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338600', 'tblTempVendorCDR_20' ) start [2025-01-27 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338600', 'tblTempVendorCDR_20' ) end [2025-01-27 02:29:17] Production.INFO: ProcessCDR(1,14338600,1,1,2) [2025-01-27 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338600', 'tblTempUsageDetail_20' ) start [2025-01-27 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338600', 'tblTempUsageDetail_20' ) end [2025-01-27 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:29:21] Production.INFO: ==17153== Releasing lock... [2025-01-27 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:29:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:30:06 [end_date_ymd] => 2025-01-27 02:30:06 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:30:06' and `end` < '2025-01-27 02: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-01-27 02:30:18] Production.INFO: count ==465 [2025-01-27 02:30:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:30:06 - End Time 2025-01-27 02:30:06 [2025-01-27 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338606', 'tblTempUsageDetail_20' ) start [2025-01-27 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338606', 'tblTempUsageDetail_20' ) end [2025-01-27 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338606', 'tblTempVendorCDR_20' ) start [2025-01-27 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338606', 'tblTempVendorCDR_20' ) end [2025-01-27 02:30:18] Production.INFO: ProcessCDR(1,14338606,1,1,2) [2025-01-27 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338606', 'tblTempUsageDetail_20' ) start [2025-01-27 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338606', 'tblTempUsageDetail_20' ) end [2025-01-27 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:30:21] Production.INFO: ==17230== Releasing lock... [2025-01-27 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:30:21] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:31:04 [end_date_ymd] => 2025-01-27 02:31:04 [RateCDR] => 1 ) [2025-01-27 02:31: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-01-26 23:31:04' and `end` < '2025-01-27 02:31: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-01-27 02:31:17] Production.INFO: count ==466 [2025-01-27 02:31:17] Production.ERROR: pbx CDR StartTime 2025-01-26 23:31:04 - End Time 2025-01-27 02:31:04 [2025-01-27 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338611', 'tblTempUsageDetail_20' ) start [2025-01-27 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338611', 'tblTempUsageDetail_20' ) end [2025-01-27 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338611', 'tblTempVendorCDR_20' ) start [2025-01-27 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338611', 'tblTempVendorCDR_20' ) end [2025-01-27 02:31:17] Production.INFO: ProcessCDR(1,14338611,1,1,2) [2025-01-27 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338611', 'tblTempUsageDetail_20' ) start [2025-01-27 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338611', 'tblTempUsageDetail_20' ) end [2025-01-27 02:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:31:20] Production.INFO: ==17301== Releasing lock... [2025-01-27 02:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:31:20] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:32:05 [end_date_ymd] => 2025-01-27 02:32:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:32:05' and `end` < '2025-01-27 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-01-27 02:32:19] Production.INFO: count ==467 [2025-01-27 02:32:19] Production.ERROR: pbx CDR StartTime 2025-01-26 23:32:05 - End Time 2025-01-27 02:32:05 [2025-01-27 02:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338616', 'tblTempUsageDetail_20' ) start [2025-01-27 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338616', 'tblTempUsageDetail_20' ) end [2025-01-27 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338616', 'tblTempVendorCDR_20' ) start [2025-01-27 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338616', 'tblTempVendorCDR_20' ) end [2025-01-27 02:32:19] Production.INFO: ProcessCDR(1,14338616,1,1,2) [2025-01-27 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338616', 'tblTempUsageDetail_20' ) start [2025-01-27 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338616', 'tblTempUsageDetail_20' ) end [2025-01-27 02:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:32:23] Production.INFO: ==17374== Releasing lock... [2025-01-27 02:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:32:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:33:05 [end_date_ymd] => 2025-01-27 02:33:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:33:05' and `end` < '2025-01-27 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-01-27 02:33:18] Production.INFO: count ==466 [2025-01-27 02:33:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:33:05 - End Time 2025-01-27 02:33:05 [2025-01-27 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338621', 'tblTempUsageDetail_20' ) start [2025-01-27 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338621', 'tblTempUsageDetail_20' ) end [2025-01-27 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338621', 'tblTempVendorCDR_20' ) start [2025-01-27 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338621', 'tblTempVendorCDR_20' ) end [2025-01-27 02:33:18] Production.INFO: ProcessCDR(1,14338621,1,1,2) [2025-01-27 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338621', 'tblTempUsageDetail_20' ) start [2025-01-27 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338621', 'tblTempUsageDetail_20' ) end [2025-01-27 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:33:22] Production.INFO: ==17443== Releasing lock... [2025-01-27 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:33:22] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:34:05 [end_date_ymd] => 2025-01-27 02:34:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:34:05' and `end` < '2025-01-27 02: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-01-27 02:34:18] Production.INFO: count ==466 [2025-01-27 02:34:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:34:05 - End Time 2025-01-27 02:34:05 [2025-01-27 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338626', 'tblTempUsageDetail_20' ) start [2025-01-27 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338626', 'tblTempUsageDetail_20' ) end [2025-01-27 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338626', 'tblTempVendorCDR_20' ) start [2025-01-27 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338626', 'tblTempVendorCDR_20' ) end [2025-01-27 02:34:18] Production.INFO: ProcessCDR(1,14338626,1,1,2) [2025-01-27 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338626', 'tblTempUsageDetail_20' ) start [2025-01-27 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338626', 'tblTempUsageDetail_20' ) end [2025-01-27 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:34:21] Production.INFO: ==17515== Releasing lock... [2025-01-27 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:34:21] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:35:05 [end_date_ymd] => 2025-01-27 02:35:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:35:05' and `end` < '2025-01-27 02: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-01-27 02:35:17] Production.INFO: count ==464 [2025-01-27 02:35:17] Production.ERROR: pbx CDR StartTime 2025-01-26 23:35:05 - End Time 2025-01-27 02:35:05 [2025-01-27 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338631', 'tblTempUsageDetail_20' ) start [2025-01-27 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338631', 'tblTempUsageDetail_20' ) end [2025-01-27 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338631', 'tblTempVendorCDR_20' ) start [2025-01-27 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338631', 'tblTempVendorCDR_20' ) end [2025-01-27 02:35:17] Production.INFO: ProcessCDR(1,14338631,1,1,2) [2025-01-27 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338631', 'tblTempUsageDetail_20' ) start [2025-01-27 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338631', 'tblTempUsageDetail_20' ) end [2025-01-27 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:35:21] Production.INFO: ==17628== Releasing lock... [2025-01-27 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:35:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:36:05 [end_date_ymd] => 2025-01-27 02:36:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:36:05' and `end` < '2025-01-27 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-01-27 02:36:18] Production.INFO: count ==457 [2025-01-27 02:36:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:36:05 - End Time 2025-01-27 02:36:05 [2025-01-27 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338636', 'tblTempUsageDetail_20' ) start [2025-01-27 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338636', 'tblTempUsageDetail_20' ) end [2025-01-27 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338636', 'tblTempVendorCDR_20' ) start [2025-01-27 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338636', 'tblTempVendorCDR_20' ) end [2025-01-27 02:36:18] Production.INFO: ProcessCDR(1,14338636,1,1,2) [2025-01-27 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338636', 'tblTempUsageDetail_20' ) start [2025-01-27 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338636', 'tblTempUsageDetail_20' ) end [2025-01-27 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:36:21] Production.INFO: ==17702== Releasing lock... [2025-01-27 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:36:21] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:37:05 [end_date_ymd] => 2025-01-27 02:37:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:37:05' and `end` < '2025-01-27 02: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-01-27 02:37:18] Production.INFO: count ==454 [2025-01-27 02:37:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:37:05 - End Time 2025-01-27 02:37:05 [2025-01-27 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338641', 'tblTempUsageDetail_20' ) start [2025-01-27 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338641', 'tblTempUsageDetail_20' ) end [2025-01-27 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338641', 'tblTempVendorCDR_20' ) start [2025-01-27 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338641', 'tblTempVendorCDR_20' ) end [2025-01-27 02:37:18] Production.INFO: ProcessCDR(1,14338641,1,1,2) [2025-01-27 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338641', 'tblTempUsageDetail_20' ) start [2025-01-27 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338641', 'tblTempUsageDetail_20' ) end [2025-01-27 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:37:22] Production.INFO: ==17774== Releasing lock... [2025-01-27 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:37:22] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:38:05 [end_date_ymd] => 2025-01-27 02:38:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:38:05' and `end` < '2025-01-27 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-01-27 02:38:18] Production.INFO: count ==452 [2025-01-27 02:38:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:38:05 - End Time 2025-01-27 02:38:05 [2025-01-27 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338646', 'tblTempUsageDetail_20' ) start [2025-01-27 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338646', 'tblTempUsageDetail_20' ) end [2025-01-27 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338646', 'tblTempVendorCDR_20' ) start [2025-01-27 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338646', 'tblTempVendorCDR_20' ) end [2025-01-27 02:38:18] Production.INFO: ProcessCDR(1,14338646,1,1,2) [2025-01-27 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338646', 'tblTempUsageDetail_20' ) start [2025-01-27 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338646', 'tblTempUsageDetail_20' ) end [2025-01-27 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:38:21] Production.INFO: ==17845== Releasing lock... [2025-01-27 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:38:21] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:39:05 [end_date_ymd] => 2025-01-27 02:39:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:39:05' and `end` < '2025-01-27 02: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-01-27 02:39:18] Production.INFO: count ==451 [2025-01-27 02:39:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:39:05 - End Time 2025-01-27 02:39:05 [2025-01-27 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338651', 'tblTempUsageDetail_20' ) start [2025-01-27 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338651', 'tblTempUsageDetail_20' ) end [2025-01-27 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338651', 'tblTempVendorCDR_20' ) start [2025-01-27 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338651', 'tblTempVendorCDR_20' ) end [2025-01-27 02:39:18] Production.INFO: ProcessCDR(1,14338651,1,1,2) [2025-01-27 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338651', 'tblTempUsageDetail_20' ) start [2025-01-27 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338651', 'tblTempUsageDetail_20' ) end [2025-01-27 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:39:21] Production.INFO: ==17914== Releasing lock... [2025-01-27 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:39:21] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:40:06 [end_date_ymd] => 2025-01-27 02:40:06 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:40:06' and `end` < '2025-01-27 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-01-27 02:40:18] Production.INFO: count ==457 [2025-01-27 02:40:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:40:06 - End Time 2025-01-27 02:40:06 [2025-01-27 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338657', 'tblTempUsageDetail_20' ) start [2025-01-27 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338657', 'tblTempUsageDetail_20' ) end [2025-01-27 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338657', 'tblTempVendorCDR_20' ) start [2025-01-27 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338657', 'tblTempVendorCDR_20' ) end [2025-01-27 02:40:18] Production.INFO: ProcessCDR(1,14338657,1,1,2) [2025-01-27 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338657', 'tblTempUsageDetail_20' ) start [2025-01-27 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338657', 'tblTempUsageDetail_20' ) end [2025-01-27 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:40:21] Production.INFO: ==17987== Releasing lock... [2025-01-27 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:40:21] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:41:06 [end_date_ymd] => 2025-01-27 02:41:06 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:41:06' and `end` < '2025-01-27 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-01-27 02:41:18] Production.INFO: count ==458 [2025-01-27 02:41:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:41:06 - End Time 2025-01-27 02:41:06 [2025-01-27 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338662', 'tblTempUsageDetail_20' ) start [2025-01-27 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338662', 'tblTempUsageDetail_20' ) end [2025-01-27 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338662', 'tblTempVendorCDR_20' ) start [2025-01-27 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338662', 'tblTempVendorCDR_20' ) end [2025-01-27 02:41:18] Production.INFO: ProcessCDR(1,14338662,1,1,2) [2025-01-27 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338662', 'tblTempUsageDetail_20' ) start [2025-01-27 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338662', 'tblTempUsageDetail_20' ) end [2025-01-27 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:41:21] Production.INFO: ==18059== Releasing lock... [2025-01-27 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:41:21] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:42:05 [end_date_ymd] => 2025-01-27 02:42:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:42:05' and `end` < '2025-01-27 02: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-01-27 02:42:19] Production.INFO: count ==458 [2025-01-27 02:42:19] Production.ERROR: pbx CDR StartTime 2025-01-26 23:42:05 - End Time 2025-01-27 02:42:05 [2025-01-27 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338667', 'tblTempUsageDetail_20' ) start [2025-01-27 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338667', 'tblTempUsageDetail_20' ) end [2025-01-27 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338667', 'tblTempVendorCDR_20' ) start [2025-01-27 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338667', 'tblTempVendorCDR_20' ) end [2025-01-27 02:42:19] Production.INFO: ProcessCDR(1,14338667,1,1,2) [2025-01-27 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338667', 'tblTempUsageDetail_20' ) start [2025-01-27 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338667', 'tblTempUsageDetail_20' ) end [2025-01-27 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:42:22] Production.INFO: ==18128== Releasing lock... [2025-01-27 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:42:22] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:43:05 [end_date_ymd] => 2025-01-27 02:43:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:43:05' and `end` < '2025-01-27 02: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-01-27 02:43:18] Production.INFO: count ==456 [2025-01-27 02:43:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:43:05 - End Time 2025-01-27 02:43:05 [2025-01-27 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338672', 'tblTempUsageDetail_20' ) start [2025-01-27 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338672', 'tblTempUsageDetail_20' ) end [2025-01-27 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338672', 'tblTempVendorCDR_20' ) start [2025-01-27 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338672', 'tblTempVendorCDR_20' ) end [2025-01-27 02:43:18] Production.INFO: ProcessCDR(1,14338672,1,1,2) [2025-01-27 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338672', 'tblTempUsageDetail_20' ) start [2025-01-27 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338672', 'tblTempUsageDetail_20' ) end [2025-01-27 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:43:21] Production.INFO: ==18199== Releasing lock... [2025-01-27 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:43:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:44:05 [end_date_ymd] => 2025-01-27 02:44:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:44:05' and `end` < '2025-01-27 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-01-27 02:44:18] Production.INFO: count ==455 [2025-01-27 02:44:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:44:05 - End Time 2025-01-27 02:44:05 [2025-01-27 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338677', 'tblTempUsageDetail_20' ) start [2025-01-27 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338677', 'tblTempUsageDetail_20' ) end [2025-01-27 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338677', 'tblTempVendorCDR_20' ) start [2025-01-27 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338677', 'tblTempVendorCDR_20' ) end [2025-01-27 02:44:18] Production.INFO: ProcessCDR(1,14338677,1,1,2) [2025-01-27 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338677', 'tblTempUsageDetail_20' ) start [2025-01-27 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338677', 'tblTempUsageDetail_20' ) end [2025-01-27 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:44:21] Production.INFO: ==18269== Releasing lock... [2025-01-27 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:44:21] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:45:05 [end_date_ymd] => 2025-01-27 02:45:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:45:05' and `end` < '2025-01-27 02: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-01-27 02:45:19] Production.INFO: count ==454 [2025-01-27 02:45:19] Production.ERROR: pbx CDR StartTime 2025-01-26 23:45:05 - End Time 2025-01-27 02:45:05 [2025-01-27 02:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338682', 'tblTempUsageDetail_20' ) start [2025-01-27 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338682', 'tblTempUsageDetail_20' ) end [2025-01-27 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338682', 'tblTempVendorCDR_20' ) start [2025-01-27 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338682', 'tblTempVendorCDR_20' ) end [2025-01-27 02:45:19] Production.INFO: ProcessCDR(1,14338682,1,1,2) [2025-01-27 02:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338682', 'tblTempUsageDetail_20' ) start [2025-01-27 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338682', 'tblTempUsageDetail_20' ) end [2025-01-27 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:45:22] Production.INFO: ==18340== Releasing lock... [2025-01-27 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:45:22] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:46:05 [end_date_ymd] => 2025-01-27 02:46:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:46:05' and `end` < '2025-01-27 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-01-27 02:46:18] Production.INFO: count ==454 [2025-01-27 02:46:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:46:05 - End Time 2025-01-27 02:46:05 [2025-01-27 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338687', 'tblTempUsageDetail_20' ) start [2025-01-27 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338687', 'tblTempUsageDetail_20' ) end [2025-01-27 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338687', 'tblTempVendorCDR_20' ) start [2025-01-27 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338687', 'tblTempVendorCDR_20' ) end [2025-01-27 02:46:18] Production.INFO: ProcessCDR(1,14338687,1,1,2) [2025-01-27 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338687', 'tblTempUsageDetail_20' ) start [2025-01-27 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338687', 'tblTempUsageDetail_20' ) end [2025-01-27 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:46:21] Production.INFO: ==18410== Releasing lock... [2025-01-27 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:46:21] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:47:05 [end_date_ymd] => 2025-01-27 02:47:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:47:05' and `end` < '2025-01-27 02: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-01-27 02:47:18] Production.INFO: count ==454 [2025-01-27 02:47:19] Production.ERROR: pbx CDR StartTime 2025-01-26 23:47:05 - End Time 2025-01-27 02:47:05 [2025-01-27 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338692', 'tblTempUsageDetail_20' ) start [2025-01-27 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338692', 'tblTempUsageDetail_20' ) end [2025-01-27 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338692', 'tblTempVendorCDR_20' ) start [2025-01-27 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338692', 'tblTempVendorCDR_20' ) end [2025-01-27 02:47:19] Production.INFO: ProcessCDR(1,14338692,1,1,2) [2025-01-27 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338692', 'tblTempUsageDetail_20' ) start [2025-01-27 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338692', 'tblTempUsageDetail_20' ) end [2025-01-27 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:47:22] Production.INFO: ==18493== Releasing lock... [2025-01-27 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:47:22] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:48:06 [end_date_ymd] => 2025-01-27 02:48:06 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:48:06' and `end` < '2025-01-27 02: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-01-27 02:48:18] Production.INFO: count ==454 [2025-01-27 02:48:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:48:06 - End Time 2025-01-27 02:48:06 [2025-01-27 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338697', 'tblTempUsageDetail_20' ) start [2025-01-27 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338697', 'tblTempUsageDetail_20' ) end [2025-01-27 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338697', 'tblTempVendorCDR_20' ) start [2025-01-27 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338697', 'tblTempVendorCDR_20' ) end [2025-01-27 02:48:18] Production.INFO: ProcessCDR(1,14338697,1,1,2) [2025-01-27 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338697', 'tblTempUsageDetail_20' ) start [2025-01-27 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338697', 'tblTempUsageDetail_20' ) end [2025-01-27 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:48:21] Production.INFO: ==18568== Releasing lock... [2025-01-27 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:48:21] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:49:05 [end_date_ymd] => 2025-01-27 02:49:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:49:05' and `end` < '2025-01-27 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-01-27 02:49:18] Production.INFO: count ==454 [2025-01-27 02:49:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:49:05 - End Time 2025-01-27 02:49:05 [2025-01-27 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338702', 'tblTempUsageDetail_20' ) start [2025-01-27 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338702', 'tblTempUsageDetail_20' ) end [2025-01-27 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338702', 'tblTempVendorCDR_20' ) start [2025-01-27 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338702', 'tblTempVendorCDR_20' ) end [2025-01-27 02:49:18] Production.INFO: ProcessCDR(1,14338702,1,1,2) [2025-01-27 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338702', 'tblTempUsageDetail_20' ) start [2025-01-27 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338702', 'tblTempUsageDetail_20' ) end [2025-01-27 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:49:22] Production.INFO: ==18638== Releasing lock... [2025-01-27 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:49:22] Production.INFO: 31 MB #Memory Used# [2025-01-27 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:50:06 [end_date_ymd] => 2025-01-27 02:50:06 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:50:06' and `end` < '2025-01-27 02: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-01-27 02:50:19] Production.INFO: count ==458 [2025-01-27 02:50:19] Production.ERROR: pbx CDR StartTime 2025-01-26 23:50:06 - End Time 2025-01-27 02:50:06 [2025-01-27 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338707', 'tblTempUsageDetail_20' ) start [2025-01-27 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338707', 'tblTempUsageDetail_20' ) end [2025-01-27 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338707', 'tblTempVendorCDR_20' ) start [2025-01-27 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338707', 'tblTempVendorCDR_20' ) end [2025-01-27 02:50:19] Production.INFO: ProcessCDR(1,14338707,1,1,2) [2025-01-27 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338707', 'tblTempUsageDetail_20' ) start [2025-01-27 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338707', 'tblTempUsageDetail_20' ) end [2025-01-27 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:50:23] Production.INFO: ==18716== Releasing lock... [2025-01-27 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:50:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:51:05 [end_date_ymd] => 2025-01-27 02:51:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:51:05' and `end` < '2025-01-27 02: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-01-27 02:51:19] Production.INFO: count ==458 [2025-01-27 02:51:19] Production.ERROR: pbx CDR StartTime 2025-01-26 23:51:05 - End Time 2025-01-27 02:51:05 [2025-01-27 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338713', 'tblTempUsageDetail_20' ) start [2025-01-27 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338713', 'tblTempUsageDetail_20' ) end [2025-01-27 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338713', 'tblTempVendorCDR_20' ) start [2025-01-27 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338713', 'tblTempVendorCDR_20' ) end [2025-01-27 02:51:19] Production.INFO: ProcessCDR(1,14338713,1,1,2) [2025-01-27 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338713', 'tblTempUsageDetail_20' ) start [2025-01-27 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338713', 'tblTempUsageDetail_20' ) end [2025-01-27 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:51:22] Production.INFO: ==18830== Releasing lock... [2025-01-27 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:51:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:52:05 [end_date_ymd] => 2025-01-27 02:52:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:52:05' and `end` < '2025-01-27 02: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-01-27 02:52:18] Production.INFO: count ==458 [2025-01-27 02:52:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:52:05 - End Time 2025-01-27 02:52:05 [2025-01-27 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338718', 'tblTempUsageDetail_20' ) start [2025-01-27 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338718', 'tblTempUsageDetail_20' ) end [2025-01-27 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338718', 'tblTempVendorCDR_20' ) start [2025-01-27 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338718', 'tblTempVendorCDR_20' ) end [2025-01-27 02:52:18] Production.INFO: ProcessCDR(1,14338718,1,1,2) [2025-01-27 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338718', 'tblTempUsageDetail_20' ) start [2025-01-27 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338718', 'tblTempUsageDetail_20' ) end [2025-01-27 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:52:21] Production.INFO: ==18902== Releasing lock... [2025-01-27 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:52:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:53:05 [end_date_ymd] => 2025-01-27 02:53:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:53:05' and `end` < '2025-01-27 02: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-01-27 02:53:18] Production.INFO: count ==458 [2025-01-27 02:53:19] Production.ERROR: pbx CDR StartTime 2025-01-26 23:53:05 - End Time 2025-01-27 02:53:05 [2025-01-27 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338723', 'tblTempUsageDetail_20' ) start [2025-01-27 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338723', 'tblTempUsageDetail_20' ) end [2025-01-27 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338723', 'tblTempVendorCDR_20' ) start [2025-01-27 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338723', 'tblTempVendorCDR_20' ) end [2025-01-27 02:53:19] Production.INFO: ProcessCDR(1,14338723,1,1,2) [2025-01-27 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338723', 'tblTempUsageDetail_20' ) start [2025-01-27 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338723', 'tblTempUsageDetail_20' ) end [2025-01-27 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:53:22] Production.INFO: ==18974== Releasing lock... [2025-01-27 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:53:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:54:05 [end_date_ymd] => 2025-01-27 02:54:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:54:05' and `end` < '2025-01-27 02: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-01-27 02:54:18] Production.INFO: count ==458 [2025-01-27 02:54:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:54:05 - End Time 2025-01-27 02:54:05 [2025-01-27 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338728', 'tblTempUsageDetail_20' ) start [2025-01-27 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338728', 'tblTempUsageDetail_20' ) end [2025-01-27 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338728', 'tblTempVendorCDR_20' ) start [2025-01-27 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338728', 'tblTempVendorCDR_20' ) end [2025-01-27 02:54:18] Production.INFO: ProcessCDR(1,14338728,1,1,2) [2025-01-27 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338728', 'tblTempUsageDetail_20' ) start [2025-01-27 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338728', 'tblTempUsageDetail_20' ) end [2025-01-27 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:54:22] Production.INFO: ==19044== Releasing lock... [2025-01-27 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:54:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:55:05 [end_date_ymd] => 2025-01-27 02:55:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:55:05' and `end` < '2025-01-27 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-01-27 02:55:18] Production.INFO: count ==458 [2025-01-27 02:55:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:55:05 - End Time 2025-01-27 02:55:05 [2025-01-27 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338733', 'tblTempUsageDetail_20' ) start [2025-01-27 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338733', 'tblTempUsageDetail_20' ) end [2025-01-27 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338733', 'tblTempVendorCDR_20' ) start [2025-01-27 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338733', 'tblTempVendorCDR_20' ) end [2025-01-27 02:55:18] Production.INFO: ProcessCDR(1,14338733,1,1,2) [2025-01-27 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338733', 'tblTempUsageDetail_20' ) start [2025-01-27 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338733', 'tblTempUsageDetail_20' ) end [2025-01-27 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:55:21] Production.INFO: ==19120== Releasing lock... [2025-01-27 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:55:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:56:06 [end_date_ymd] => 2025-01-27 02:56:06 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:56:06' and `end` < '2025-01-27 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-01-27 02:56:19] Production.INFO: count ==458 [2025-01-27 02:56:19] Production.ERROR: pbx CDR StartTime 2025-01-26 23:56:06 - End Time 2025-01-27 02:56:06 [2025-01-27 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338738', 'tblTempUsageDetail_20' ) start [2025-01-27 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338738', 'tblTempUsageDetail_20' ) end [2025-01-27 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338738', 'tblTempVendorCDR_20' ) start [2025-01-27 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338738', 'tblTempVendorCDR_20' ) end [2025-01-27 02:56:19] Production.INFO: ProcessCDR(1,14338738,1,1,2) [2025-01-27 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338738', 'tblTempUsageDetail_20' ) start [2025-01-27 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338738', 'tblTempUsageDetail_20' ) end [2025-01-27 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:56:22] Production.INFO: ==19192== Releasing lock... [2025-01-27 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:56:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:57:05 [end_date_ymd] => 2025-01-27 02:57:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:57:05' and `end` < '2025-01-27 02: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-01-27 02:57:17] Production.INFO: count ==458 [2025-01-27 02:57:17] Production.ERROR: pbx CDR StartTime 2025-01-26 23:57:05 - End Time 2025-01-27 02:57:05 [2025-01-27 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338743', 'tblTempUsageDetail_20' ) start [2025-01-27 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338743', 'tblTempUsageDetail_20' ) end [2025-01-27 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338743', 'tblTempVendorCDR_20' ) start [2025-01-27 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338743', 'tblTempVendorCDR_20' ) end [2025-01-27 02:57:17] Production.INFO: ProcessCDR(1,14338743,1,1,2) [2025-01-27 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338743', 'tblTempUsageDetail_20' ) start [2025-01-27 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338743', 'tblTempUsageDetail_20' ) end [2025-01-27 02:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:57:20] Production.INFO: ==19264== Releasing lock... [2025-01-27 02:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:57:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:58:05 [end_date_ymd] => 2025-01-27 02:58:05 [RateCDR] => 1 ) [2025-01-27 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-01-26 23:58:05' and `end` < '2025-01-27 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-01-27 02:58:18] Production.INFO: count ==458 [2025-01-27 02:58:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:58:05 - End Time 2025-01-27 02:58:05 [2025-01-27 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338748', 'tblTempUsageDetail_20' ) start [2025-01-27 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338748', 'tblTempUsageDetail_20' ) end [2025-01-27 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338748', 'tblTempVendorCDR_20' ) start [2025-01-27 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338748', 'tblTempVendorCDR_20' ) end [2025-01-27 02:58:18] Production.INFO: ProcessCDR(1,14338748,1,1,2) [2025-01-27 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338748', 'tblTempUsageDetail_20' ) start [2025-01-27 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338748', 'tblTempUsageDetail_20' ) end [2025-01-27 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:58:21] Production.INFO: ==19333== Releasing lock... [2025-01-27 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:58:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 23:59:05 [end_date_ymd] => 2025-01-27 02:59:05 [RateCDR] => 1 ) [2025-01-27 02: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-01-26 23:59:05' and `end` < '2025-01-27 02: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-01-27 02:59:18] Production.INFO: count ==458 [2025-01-27 02:59:18] Production.ERROR: pbx CDR StartTime 2025-01-26 23:59:05 - End Time 2025-01-27 02:59:05 [2025-01-27 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338753', 'tblTempUsageDetail_20' ) start [2025-01-27 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338753', 'tblTempUsageDetail_20' ) end [2025-01-27 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338753', 'tblTempVendorCDR_20' ) start [2025-01-27 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338753', 'tblTempVendorCDR_20' ) end [2025-01-27 02:59:18] Production.INFO: ProcessCDR(1,14338753,1,1,2) [2025-01-27 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338753', 'tblTempUsageDetail_20' ) start [2025-01-27 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338753', 'tblTempUsageDetail_20' ) end [2025-01-27 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 02:59:21] Production.INFO: ==19404== Releasing lock... [2025-01-27 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 02:59:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:00:06 [end_date_ymd] => 2025-01-27 03:00:06 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:00:06' and `end` < '2025-01-27 03: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-01-27 03:00:19] Production.INFO: count ==462 [2025-01-27 03:00:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:00:06 - End Time 2025-01-27 03:00:06 [2025-01-27 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338759', 'tblTempUsageDetail_20' ) start [2025-01-27 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338759', 'tblTempUsageDetail_20' ) end [2025-01-27 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338759', 'tblTempVendorCDR_20' ) start [2025-01-27 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338759', 'tblTempVendorCDR_20' ) end [2025-01-27 03:00:19] Production.INFO: ProcessCDR(1,14338759,1,1,2) [2025-01-27 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338759', 'tblTempUsageDetail_20' ) start [2025-01-27 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338759', 'tblTempUsageDetail_20' ) end [2025-01-27 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:00:22] Production.INFO: ==19478== Releasing lock... [2025-01-27 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:00:22] Production.INFO: 31 MB #Memory Used# [2025-01-27 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:01:05 [end_date_ymd] => 2025-01-27 03:01:05 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:01:05' and `end` < '2025-01-27 03: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-01-27 03:01:18] Production.INFO: count ==462 [2025-01-27 03:01:18] Production.ERROR: pbx CDR StartTime 2025-01-27 00:01:05 - End Time 2025-01-27 03:01:05 [2025-01-27 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338764', 'tblTempUsageDetail_20' ) start [2025-01-27 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338764', 'tblTempUsageDetail_20' ) end [2025-01-27 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338764', 'tblTempVendorCDR_20' ) start [2025-01-27 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338764', 'tblTempVendorCDR_20' ) end [2025-01-27 03:01:18] Production.INFO: ProcessCDR(1,14338764,1,1,2) [2025-01-27 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338764', 'tblTempUsageDetail_20' ) start [2025-01-27 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338764', 'tblTempUsageDetail_20' ) end [2025-01-27 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:01:21] Production.INFO: ==19563== Releasing lock... [2025-01-27 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:01:21] Production.INFO: 31 MB #Memory Used# [2025-01-27 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:02:06 [end_date_ymd] => 2025-01-27 03:02:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:02:06' and `end` < '2025-01-27 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-01-27 03:02:19] Production.INFO: count ==462 [2025-01-27 03:02:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:02:06 - End Time 2025-01-27 03:02:06 [2025-01-27 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338769', 'tblTempUsageDetail_20' ) start [2025-01-27 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338769', 'tblTempUsageDetail_20' ) end [2025-01-27 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338769', 'tblTempVendorCDR_20' ) start [2025-01-27 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338769', 'tblTempVendorCDR_20' ) end [2025-01-27 03:02:19] Production.INFO: ProcessCDR(1,14338769,1,1,2) [2025-01-27 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338769', 'tblTempUsageDetail_20' ) start [2025-01-27 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338769', 'tblTempUsageDetail_20' ) end [2025-01-27 03:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:02:23] Production.INFO: ==19711== Releasing lock... [2025-01-27 03:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:02:23] Production.INFO: 31 MB #Memory Used# [2025-01-27 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:03:05 [end_date_ymd] => 2025-01-27 03:03:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:03:05' and `end` < '2025-01-27 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-01-27 03:03:19] Production.INFO: count ==462 [2025-01-27 03:03:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:03:05 - End Time 2025-01-27 03:03:05 [2025-01-27 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338774', 'tblTempUsageDetail_20' ) start [2025-01-27 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338774', 'tblTempUsageDetail_20' ) end [2025-01-27 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338774', 'tblTempVendorCDR_20' ) start [2025-01-27 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338774', 'tblTempVendorCDR_20' ) end [2025-01-27 03:03:19] Production.INFO: ProcessCDR(1,14338774,1,1,2) [2025-01-27 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338774', 'tblTempUsageDetail_20' ) start [2025-01-27 03:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338774', 'tblTempUsageDetail_20' ) end [2025-01-27 03:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:03:23] Production.INFO: ==19779== Releasing lock... [2025-01-27 03:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:03:23] Production.INFO: 31 MB #Memory Used# [2025-01-27 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:04:06 [end_date_ymd] => 2025-01-27 03:04:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:04:06' and `end` < '2025-01-27 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-01-27 03:04:19] Production.INFO: count ==462 [2025-01-27 03:04:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:04:06 - End Time 2025-01-27 03:04:06 [2025-01-27 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338779', 'tblTempUsageDetail_20' ) start [2025-01-27 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338779', 'tblTempUsageDetail_20' ) end [2025-01-27 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338779', 'tblTempVendorCDR_20' ) start [2025-01-27 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338779', 'tblTempVendorCDR_20' ) end [2025-01-27 03:04:19] Production.INFO: ProcessCDR(1,14338779,1,1,2) [2025-01-27 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338779', 'tblTempUsageDetail_20' ) start [2025-01-27 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338779', 'tblTempUsageDetail_20' ) end [2025-01-27 03:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:04:23] Production.INFO: ==19853== Releasing lock... [2025-01-27 03:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:04:23] Production.INFO: 31 MB #Memory Used# [2025-01-27 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:05:05 [end_date_ymd] => 2025-01-27 03:05:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:05:05' and `end` < '2025-01-27 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-01-27 03:05:18] Production.INFO: count ==460 [2025-01-27 03:05:18] Production.ERROR: pbx CDR StartTime 2025-01-27 00:05:05 - End Time 2025-01-27 03:05:05 [2025-01-27 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338783', 'tblTempUsageDetail_20' ) start [2025-01-27 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338783', 'tblTempUsageDetail_20' ) end [2025-01-27 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338783', 'tblTempVendorCDR_20' ) start [2025-01-27 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338783', 'tblTempVendorCDR_20' ) end [2025-01-27 03:05:18] Production.INFO: ProcessCDR(1,14338783,1,1,2) [2025-01-27 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338783', 'tblTempUsageDetail_20' ) start [2025-01-27 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338783', 'tblTempUsageDetail_20' ) end [2025-01-27 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:05:22] Production.INFO: ==19962== Releasing lock... [2025-01-27 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:05:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:06:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:06:06 [end_date_ymd] => 2025-01-27 03:06:06 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:06:06' and `end` < '2025-01-27 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-01-27 03:06:20] Production.INFO: count ==460 [2025-01-27 03:06:20] Production.ERROR: pbx CDR StartTime 2025-01-27 00:06:06 - End Time 2025-01-27 03:06:06 [2025-01-27 03:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338789', 'tblTempUsageDetail_20' ) start [2025-01-27 03:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338789', 'tblTempUsageDetail_20' ) end [2025-01-27 03:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338789', 'tblTempVendorCDR_20' ) start [2025-01-27 03:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338789', 'tblTempVendorCDR_20' ) end [2025-01-27 03:06:20] Production.INFO: ProcessCDR(1,14338789,1,1,2) [2025-01-27 03:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338789', 'tblTempUsageDetail_20' ) start [2025-01-27 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338789', 'tblTempUsageDetail_20' ) end [2025-01-27 03:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:06:23] Production.INFO: ==20110== Releasing lock... [2025-01-27 03:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:06:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:07:05 [end_date_ymd] => 2025-01-27 03:07:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:07:05' and `end` < '2025-01-27 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-01-27 03:07:18] Production.INFO: count ==460 [2025-01-27 03:07:18] Production.ERROR: pbx CDR StartTime 2025-01-27 00:07:05 - End Time 2025-01-27 03:07:05 [2025-01-27 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338794', 'tblTempUsageDetail_20' ) start [2025-01-27 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338794', 'tblTempUsageDetail_20' ) end [2025-01-27 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338794', 'tblTempVendorCDR_20' ) start [2025-01-27 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338794', 'tblTempVendorCDR_20' ) end [2025-01-27 03:07:18] Production.INFO: ProcessCDR(1,14338794,1,1,2) [2025-01-27 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338794', 'tblTempUsageDetail_20' ) start [2025-01-27 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338794', 'tblTempUsageDetail_20' ) end [2025-01-27 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:07:21] Production.INFO: ==20183== Releasing lock... [2025-01-27 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:07:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:08:06 [end_date_ymd] => 2025-01-27 03:08:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:08:06' and `end` < '2025-01-27 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-01-27 03:08:19] Production.INFO: count ==457 [2025-01-27 03:08:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:08:06 - End Time 2025-01-27 03:08:06 [2025-01-27 03:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338799', 'tblTempUsageDetail_20' ) start [2025-01-27 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338799', 'tblTempUsageDetail_20' ) end [2025-01-27 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338799', 'tblTempVendorCDR_20' ) start [2025-01-27 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338799', 'tblTempVendorCDR_20' ) end [2025-01-27 03:08:19] Production.INFO: ProcessCDR(1,14338799,1,1,2) [2025-01-27 03:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338799', 'tblTempUsageDetail_20' ) start [2025-01-27 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338799', 'tblTempUsageDetail_20' ) end [2025-01-27 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:08:22] Production.INFO: ==20255== Releasing lock... [2025-01-27 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:08:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:09:06 [end_date_ymd] => 2025-01-27 03:09:06 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:09:06' and `end` < '2025-01-27 03: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-01-27 03:09:19] Production.INFO: count ==457 [2025-01-27 03:09:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:09:06 - End Time 2025-01-27 03:09:06 [2025-01-27 03:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338804', 'tblTempUsageDetail_20' ) start [2025-01-27 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338804', 'tblTempUsageDetail_20' ) end [2025-01-27 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338804', 'tblTempVendorCDR_20' ) start [2025-01-27 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338804', 'tblTempVendorCDR_20' ) end [2025-01-27 03:09:19] Production.INFO: ProcessCDR(1,14338804,1,1,2) [2025-01-27 03:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338804', 'tblTempUsageDetail_20' ) start [2025-01-27 03:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338804', 'tblTempUsageDetail_20' ) end [2025-01-27 03:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:09:23] Production.INFO: ==20401== Releasing lock... [2025-01-27 03:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:09:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:10:06 [end_date_ymd] => 2025-01-27 03:10:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:10:06' and `end` < '2025-01-27 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-01-27 03:10:19] Production.INFO: count ==444 [2025-01-27 03:10:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:10:06 - End Time 2025-01-27 03:10:06 [2025-01-27 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338810', 'tblTempUsageDetail_20' ) start [2025-01-27 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338810', 'tblTempUsageDetail_20' ) end [2025-01-27 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338810', 'tblTempVendorCDR_20' ) start [2025-01-27 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338810', 'tblTempVendorCDR_20' ) end [2025-01-27 03:10:19] Production.INFO: ProcessCDR(1,14338810,1,1,2) [2025-01-27 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338810', 'tblTempUsageDetail_20' ) start [2025-01-27 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338810', 'tblTempUsageDetail_20' ) end [2025-01-27 03:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:10:23] Production.INFO: ==20472== Releasing lock... [2025-01-27 03:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:10:23] Production.INFO: 31 MB #Memory Used# [2025-01-27 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:11:05 [end_date_ymd] => 2025-01-27 03:11:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:11:05' and `end` < '2025-01-27 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-01-27 03:11:17] Production.INFO: count ==432 [2025-01-27 03:11:17] Production.ERROR: pbx CDR StartTime 2025-01-27 00:11:05 - End Time 2025-01-27 03:11:05 [2025-01-27 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338815', 'tblTempUsageDetail_20' ) start [2025-01-27 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338815', 'tblTempUsageDetail_20' ) end [2025-01-27 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338815', 'tblTempVendorCDR_20' ) start [2025-01-27 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338815', 'tblTempVendorCDR_20' ) end [2025-01-27 03:11:17] Production.INFO: ProcessCDR(1,14338815,1,1,2) [2025-01-27 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338815', 'tblTempUsageDetail_20' ) start [2025-01-27 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338815', 'tblTempUsageDetail_20' ) end [2025-01-27 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:11:21] Production.INFO: ==20542== Releasing lock... [2025-01-27 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:11:21] Production.INFO: 31 MB #Memory Used# [2025-01-27 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:12:05 [end_date_ymd] => 2025-01-27 03:12:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:12:05' and `end` < '2025-01-27 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-01-27 03:12:19] Production.INFO: count ==432 [2025-01-27 03:12:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:12:05 - End Time 2025-01-27 03:12:05 [2025-01-27 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338820', 'tblTempUsageDetail_20' ) start [2025-01-27 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338820', 'tblTempUsageDetail_20' ) end [2025-01-27 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338820', 'tblTempVendorCDR_20' ) start [2025-01-27 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338820', 'tblTempVendorCDR_20' ) end [2025-01-27 03:12:19] Production.INFO: ProcessCDR(1,14338820,1,1,2) [2025-01-27 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338820', 'tblTempUsageDetail_20' ) start [2025-01-27 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338820', 'tblTempUsageDetail_20' ) end [2025-01-27 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:12:23] Production.INFO: ==20613== Releasing lock... [2025-01-27 03:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:12:23] Production.INFO: 31 MB #Memory Used# [2025-01-27 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:13:05 [end_date_ymd] => 2025-01-27 03:13:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:13:05' and `end` < '2025-01-27 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-01-27 03:13:18] Production.INFO: count ==429 [2025-01-27 03:13:18] Production.ERROR: pbx CDR StartTime 2025-01-27 00:13:05 - End Time 2025-01-27 03:13:05 [2025-01-27 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338825', 'tblTempUsageDetail_20' ) start [2025-01-27 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338825', 'tblTempUsageDetail_20' ) end [2025-01-27 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338825', 'tblTempVendorCDR_20' ) start [2025-01-27 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338825', 'tblTempVendorCDR_20' ) end [2025-01-27 03:13:18] Production.INFO: ProcessCDR(1,14338825,1,1,2) [2025-01-27 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338825', 'tblTempUsageDetail_20' ) start [2025-01-27 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338825', 'tblTempUsageDetail_20' ) end [2025-01-27 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:13:22] Production.INFO: ==20760== Releasing lock... [2025-01-27 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:13:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:14:05 [end_date_ymd] => 2025-01-27 03:14:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:14:05' and `end` < '2025-01-27 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-01-27 03:14:18] Production.INFO: count ==429 [2025-01-27 03:14:18] Production.ERROR: pbx CDR StartTime 2025-01-27 00:14:05 - End Time 2025-01-27 03:14:05 [2025-01-27 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338830', 'tblTempUsageDetail_20' ) start [2025-01-27 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338830', 'tblTempUsageDetail_20' ) end [2025-01-27 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338830', 'tblTempVendorCDR_20' ) start [2025-01-27 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338830', 'tblTempVendorCDR_20' ) end [2025-01-27 03:14:18] Production.INFO: ProcessCDR(1,14338830,1,1,2) [2025-01-27 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338830', 'tblTempUsageDetail_20' ) start [2025-01-27 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338830', 'tblTempUsageDetail_20' ) end [2025-01-27 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:14:22] Production.INFO: ==20829== Releasing lock... [2025-01-27 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:14:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:15:05 [end_date_ymd] => 2025-01-27 03:15:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:15:05' and `end` < '2025-01-27 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-01-27 03:15:18] Production.INFO: count ==429 [2025-01-27 03:15:18] Production.ERROR: pbx CDR StartTime 2025-01-27 00:15:05 - End Time 2025-01-27 03:15:05 [2025-01-27 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338835', 'tblTempUsageDetail_20' ) start [2025-01-27 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338835', 'tblTempUsageDetail_20' ) end [2025-01-27 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338835', 'tblTempVendorCDR_20' ) start [2025-01-27 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338835', 'tblTempVendorCDR_20' ) end [2025-01-27 03:15:18] Production.INFO: ProcessCDR(1,14338835,1,1,2) [2025-01-27 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338835', 'tblTempUsageDetail_20' ) start [2025-01-27 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338835', 'tblTempUsageDetail_20' ) end [2025-01-27 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:15:21] Production.INFO: ==20898== Releasing lock... [2025-01-27 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:15:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:16:05 [end_date_ymd] => 2025-01-27 03:16:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:16:05' and `end` < '2025-01-27 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-01-27 03:16:18] Production.INFO: count ==429 [2025-01-27 03:16:18] Production.ERROR: pbx CDR StartTime 2025-01-27 00:16:05 - End Time 2025-01-27 03:16:05 [2025-01-27 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338840', 'tblTempUsageDetail_20' ) start [2025-01-27 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338840', 'tblTempUsageDetail_20' ) end [2025-01-27 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338840', 'tblTempVendorCDR_20' ) start [2025-01-27 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338840', 'tblTempVendorCDR_20' ) end [2025-01-27 03:16:18] Production.INFO: ProcessCDR(1,14338840,1,1,2) [2025-01-27 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338840', 'tblTempUsageDetail_20' ) start [2025-01-27 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338840', 'tblTempUsageDetail_20' ) end [2025-01-27 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:16:21] Production.INFO: ==20969== Releasing lock... [2025-01-27 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:17:05 [end_date_ymd] => 2025-01-27 03:17:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:17:05' and `end` < '2025-01-27 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-01-27 03:17:18] Production.INFO: count ==429 [2025-01-27 03:17:18] Production.ERROR: pbx CDR StartTime 2025-01-27 00:17:05 - End Time 2025-01-27 03:17:05 [2025-01-27 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338845', 'tblTempUsageDetail_20' ) start [2025-01-27 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338845', 'tblTempUsageDetail_20' ) end [2025-01-27 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338845', 'tblTempVendorCDR_20' ) start [2025-01-27 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338845', 'tblTempVendorCDR_20' ) end [2025-01-27 03:17:18] Production.INFO: ProcessCDR(1,14338845,1,1,2) [2025-01-27 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338845', 'tblTempUsageDetail_20' ) start [2025-01-27 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338845', 'tblTempUsageDetail_20' ) end [2025-01-27 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:17:21] Production.INFO: ==21115== Releasing lock... [2025-01-27 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:18:05 [end_date_ymd] => 2025-01-27 03:18:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:18:05' and `end` < '2025-01-27 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-01-27 03:18:19] Production.INFO: count ==429 [2025-01-27 03:18:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:18:05 - End Time 2025-01-27 03:18:05 [2025-01-27 03:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338850', 'tblTempUsageDetail_20' ) start [2025-01-27 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338850', 'tblTempUsageDetail_20' ) end [2025-01-27 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338850', 'tblTempVendorCDR_20' ) start [2025-01-27 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338850', 'tblTempVendorCDR_20' ) end [2025-01-27 03:18:19] Production.INFO: ProcessCDR(1,14338850,1,1,2) [2025-01-27 03:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338850', 'tblTempUsageDetail_20' ) start [2025-01-27 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338850', 'tblTempUsageDetail_20' ) end [2025-01-27 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:18:22] Production.INFO: ==21184== Releasing lock... [2025-01-27 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:18:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:19:05 [end_date_ymd] => 2025-01-27 03:19:05 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:19:05' and `end` < '2025-01-27 03: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-01-27 03:19:18] Production.INFO: count ==429 [2025-01-27 03:19:18] Production.ERROR: pbx CDR StartTime 2025-01-27 00:19:05 - End Time 2025-01-27 03:19:05 [2025-01-27 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338855', 'tblTempUsageDetail_20' ) start [2025-01-27 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338855', 'tblTempUsageDetail_20' ) end [2025-01-27 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338855', 'tblTempVendorCDR_20' ) start [2025-01-27 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338855', 'tblTempVendorCDR_20' ) end [2025-01-27 03:19:18] Production.INFO: ProcessCDR(1,14338855,1,1,2) [2025-01-27 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338855', 'tblTempUsageDetail_20' ) start [2025-01-27 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338855', 'tblTempUsageDetail_20' ) end [2025-01-27 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:19:21] Production.INFO: ==21261== Releasing lock... [2025-01-27 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:19:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:20:06 [end_date_ymd] => 2025-01-27 03:20:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:20:06' and `end` < '2025-01-27 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-01-27 03:20:19] Production.INFO: count ==421 [2025-01-27 03:20:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:20:06 - End Time 2025-01-27 03:20:06 [2025-01-27 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338861', 'tblTempUsageDetail_20' ) start [2025-01-27 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338861', 'tblTempUsageDetail_20' ) end [2025-01-27 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338861', 'tblTempVendorCDR_20' ) start [2025-01-27 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338861', 'tblTempVendorCDR_20' ) end [2025-01-27 03:20:19] Production.INFO: ProcessCDR(1,14338861,1,1,2) [2025-01-27 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338861', 'tblTempUsageDetail_20' ) start [2025-01-27 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338861', 'tblTempUsageDetail_20' ) end [2025-01-27 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:20:22] Production.INFO: ==21336== Releasing lock... [2025-01-27 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:20:22] Production.INFO: 31 MB #Memory Used# [2025-01-27 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:21:05 [end_date_ymd] => 2025-01-27 03:21:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:21:05' and `end` < '2025-01-27 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-01-27 03:21:18] Production.INFO: count ==417 [2025-01-27 03:21:18] Production.ERROR: pbx CDR StartTime 2025-01-27 00:21:05 - End Time 2025-01-27 03:21:05 [2025-01-27 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338866', 'tblTempUsageDetail_20' ) start [2025-01-27 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338866', 'tblTempUsageDetail_20' ) end [2025-01-27 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338866', 'tblTempVendorCDR_20' ) start [2025-01-27 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338866', 'tblTempVendorCDR_20' ) end [2025-01-27 03:21:18] Production.INFO: ProcessCDR(1,14338866,1,1,2) [2025-01-27 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338866', 'tblTempUsageDetail_20' ) start [2025-01-27 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338866', 'tblTempUsageDetail_20' ) end [2025-01-27 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:21:21] Production.INFO: ==21407== Releasing lock... [2025-01-27 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:21:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:22:05 [end_date_ymd] => 2025-01-27 03:22:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:22:05' and `end` < '2025-01-27 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-01-27 03:22:19] Production.INFO: count ==416 [2025-01-27 03:22:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:22:05 - End Time 2025-01-27 03:22:05 [2025-01-27 03:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338871', 'tblTempUsageDetail_20' ) start [2025-01-27 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338871', 'tblTempUsageDetail_20' ) end [2025-01-27 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338871', 'tblTempVendorCDR_20' ) start [2025-01-27 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338871', 'tblTempVendorCDR_20' ) end [2025-01-27 03:22:19] Production.INFO: ProcessCDR(1,14338871,1,1,2) [2025-01-27 03:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338871', 'tblTempUsageDetail_20' ) start [2025-01-27 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338871', 'tblTempUsageDetail_20' ) end [2025-01-27 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:22:22] Production.INFO: ==21478== Releasing lock... [2025-01-27 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:22:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:23:05 [end_date_ymd] => 2025-01-27 03:23:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:23:05' and `end` < '2025-01-27 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-01-27 03:23:18] Production.INFO: count ==415 [2025-01-27 03:23:18] Production.ERROR: pbx CDR StartTime 2025-01-27 00:23:05 - End Time 2025-01-27 03:23:05 [2025-01-27 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338876', 'tblTempUsageDetail_20' ) start [2025-01-27 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338876', 'tblTempUsageDetail_20' ) end [2025-01-27 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338876', 'tblTempVendorCDR_20' ) start [2025-01-27 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338876', 'tblTempVendorCDR_20' ) end [2025-01-27 03:23:18] Production.INFO: ProcessCDR(1,14338876,1,1,2) [2025-01-27 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338876', 'tblTempUsageDetail_20' ) start [2025-01-27 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338876', 'tblTempUsageDetail_20' ) end [2025-01-27 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:23:22] Production.INFO: ==21592== Releasing lock... [2025-01-27 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:23:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:24:06 [end_date_ymd] => 2025-01-27 03:24:06 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:24:06' and `end` < '2025-01-27 03: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-01-27 03:24:19] Production.INFO: count ==415 [2025-01-27 03:24:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:24:06 - End Time 2025-01-27 03:24:06 [2025-01-27 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338881', 'tblTempUsageDetail_20' ) start [2025-01-27 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338881', 'tblTempUsageDetail_20' ) end [2025-01-27 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338881', 'tblTempVendorCDR_20' ) start [2025-01-27 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338881', 'tblTempVendorCDR_20' ) end [2025-01-27 03:24:19] Production.INFO: ProcessCDR(1,14338881,1,1,2) [2025-01-27 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338881', 'tblTempUsageDetail_20' ) start [2025-01-27 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338881', 'tblTempUsageDetail_20' ) end [2025-01-27 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:24:22] Production.INFO: ==21662== Releasing lock... [2025-01-27 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:24:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:25:05 [end_date_ymd] => 2025-01-27 03:25:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:25:05' and `end` < '2025-01-27 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-01-27 03:25:17] Production.INFO: count ==415 [2025-01-27 03:25:17] Production.ERROR: pbx CDR StartTime 2025-01-27 00:25:05 - End Time 2025-01-27 03:25:05 [2025-01-27 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338886', 'tblTempUsageDetail_20' ) start [2025-01-27 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338886', 'tblTempUsageDetail_20' ) end [2025-01-27 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338886', 'tblTempVendorCDR_20' ) start [2025-01-27 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338886', 'tblTempVendorCDR_20' ) end [2025-01-27 03:25:17] Production.INFO: ProcessCDR(1,14338886,1,1,2) [2025-01-27 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338886', 'tblTempUsageDetail_20' ) start [2025-01-27 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338886', 'tblTempUsageDetail_20' ) end [2025-01-27 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:25:21] Production.INFO: ==21731== Releasing lock... [2025-01-27 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:25:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:26:06 [end_date_ymd] => 2025-01-27 03:26:06 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:26:06' and `end` < '2025-01-27 03: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-01-27 03:26:19] Production.INFO: count ==415 [2025-01-27 03:26:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:26:06 - End Time 2025-01-27 03:26:06 [2025-01-27 03:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338891', 'tblTempUsageDetail_20' ) start [2025-01-27 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338891', 'tblTempUsageDetail_20' ) end [2025-01-27 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338891', 'tblTempVendorCDR_20' ) start [2025-01-27 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338891', 'tblTempVendorCDR_20' ) end [2025-01-27 03:26:19] Production.INFO: ProcessCDR(1,14338891,1,1,2) [2025-01-27 03:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338891', 'tblTempUsageDetail_20' ) start [2025-01-27 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338891', 'tblTempUsageDetail_20' ) end [2025-01-27 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:26:22] Production.INFO: ==21814== Releasing lock... [2025-01-27 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:26:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:27:05 [end_date_ymd] => 2025-01-27 03:27:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:27:05' and `end` < '2025-01-27 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-01-27 03:27:19] Production.INFO: count ==412 [2025-01-27 03:27:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:27:05 - End Time 2025-01-27 03:27:05 [2025-01-27 03:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338896', 'tblTempUsageDetail_20' ) start [2025-01-27 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338896', 'tblTempUsageDetail_20' ) end [2025-01-27 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338896', 'tblTempVendorCDR_20' ) start [2025-01-27 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338896', 'tblTempVendorCDR_20' ) end [2025-01-27 03:27:19] Production.INFO: ProcessCDR(1,14338896,1,1,2) [2025-01-27 03:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338896', 'tblTempUsageDetail_20' ) start [2025-01-27 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338896', 'tblTempUsageDetail_20' ) end [2025-01-27 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:27:22] Production.INFO: ==21913== Releasing lock... [2025-01-27 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:27:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 03:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:28:06 [end_date_ymd] => 2025-01-27 03:28:06 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:28:06' and `end` < '2025-01-27 03: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-01-27 03:28:18] Production.INFO: count ==407 [2025-01-27 03:28:18] Production.ERROR: pbx CDR StartTime 2025-01-27 00:28:06 - End Time 2025-01-27 03:28:06 [2025-01-27 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338901', 'tblTempUsageDetail_20' ) start [2025-01-27 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338901', 'tblTempUsageDetail_20' ) end [2025-01-27 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338901', 'tblTempVendorCDR_20' ) start [2025-01-27 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338901', 'tblTempVendorCDR_20' ) end [2025-01-27 03:28:18] Production.INFO: ProcessCDR(1,14338901,1,1,2) [2025-01-27 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338901', 'tblTempUsageDetail_20' ) start [2025-01-27 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338901', 'tblTempUsageDetail_20' ) end [2025-01-27 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:28:21] Production.INFO: ==22006== Releasing lock... [2025-01-27 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:28:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:29:06 [end_date_ymd] => 2025-01-27 03:29:06 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:29:06' and `end` < '2025-01-27 03: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-01-27 03:29:19] Production.INFO: count ==408 [2025-01-27 03:29:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:29:06 - End Time 2025-01-27 03:29:06 [2025-01-27 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338906', 'tblTempUsageDetail_20' ) start [2025-01-27 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338906', 'tblTempUsageDetail_20' ) end [2025-01-27 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338906', 'tblTempVendorCDR_20' ) start [2025-01-27 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338906', 'tblTempVendorCDR_20' ) end [2025-01-27 03:29:19] Production.INFO: ProcessCDR(1,14338906,1,1,2) [2025-01-27 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338906', 'tblTempUsageDetail_20' ) start [2025-01-27 03:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338906', 'tblTempUsageDetail_20' ) end [2025-01-27 03:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:29:24] Production.INFO: ==22102== Releasing lock... [2025-01-27 03:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:29:24] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:30:06 [end_date_ymd] => 2025-01-27 03:30:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:30:06' and `end` < '2025-01-27 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-01-27 03:30:19] Production.INFO: count ==395 [2025-01-27 03:30:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:30:06 - End Time 2025-01-27 03:30:06 [2025-01-27 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338912', 'tblTempUsageDetail_20' ) start [2025-01-27 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338912', 'tblTempUsageDetail_20' ) end [2025-01-27 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338912', 'tblTempVendorCDR_20' ) start [2025-01-27 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338912', 'tblTempVendorCDR_20' ) end [2025-01-27 03:30:19] Production.INFO: ProcessCDR(1,14338912,1,1,2) [2025-01-27 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338912', 'tblTempUsageDetail_20' ) start [2025-01-27 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338912', 'tblTempUsageDetail_20' ) end [2025-01-27 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:30:23] Production.INFO: ==22204== Releasing lock... [2025-01-27 03:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:30:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:31:06 [end_date_ymd] => 2025-01-27 03:31:06 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:31:06' and `end` < '2025-01-27 03: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-01-27 03:31:19] Production.INFO: count ==380 [2025-01-27 03:31:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:31:06 - End Time 2025-01-27 03:31:06 [2025-01-27 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338917', 'tblTempUsageDetail_20' ) start [2025-01-27 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338917', 'tblTempUsageDetail_20' ) end [2025-01-27 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338917', 'tblTempVendorCDR_20' ) start [2025-01-27 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338917', 'tblTempVendorCDR_20' ) end [2025-01-27 03:31:19] Production.INFO: ProcessCDR(1,14338917,1,1,2) [2025-01-27 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338917', 'tblTempUsageDetail_20' ) start [2025-01-27 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338917', 'tblTempUsageDetail_20' ) end [2025-01-27 03:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:31:23] Production.INFO: ==22301== Releasing lock... [2025-01-27 03:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:31:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:32:06 [end_date_ymd] => 2025-01-27 03:32:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:32:06' and `end` < '2025-01-27 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-01-27 03:32:19] Production.INFO: count ==379 [2025-01-27 03:32:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:32:06 - End Time 2025-01-27 03:32:06 [2025-01-27 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338922', 'tblTempUsageDetail_20' ) start [2025-01-27 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338922', 'tblTempUsageDetail_20' ) end [2025-01-27 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338922', 'tblTempVendorCDR_20' ) start [2025-01-27 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338922', 'tblTempVendorCDR_20' ) end [2025-01-27 03:32:19] Production.INFO: ProcessCDR(1,14338922,1,1,2) [2025-01-27 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338922', 'tblTempUsageDetail_20' ) start [2025-01-27 03:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338922', 'tblTempUsageDetail_20' ) end [2025-01-27 03:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:32:24] Production.INFO: ==22398== Releasing lock... [2025-01-27 03:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:32:24] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:33:05 [end_date_ymd] => 2025-01-27 03:33:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:33:05' and `end` < '2025-01-27 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-01-27 03:33:18] Production.INFO: count ==379 [2025-01-27 03:33:18] Production.ERROR: pbx CDR StartTime 2025-01-27 00:33:05 - End Time 2025-01-27 03:33:05 [2025-01-27 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338927', 'tblTempUsageDetail_20' ) start [2025-01-27 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338927', 'tblTempUsageDetail_20' ) end [2025-01-27 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338927', 'tblTempVendorCDR_20' ) start [2025-01-27 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338927', 'tblTempVendorCDR_20' ) end [2025-01-27 03:33:18] Production.INFO: ProcessCDR(1,14338927,1,1,2) [2025-01-27 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338927', 'tblTempUsageDetail_20' ) start [2025-01-27 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338927', 'tblTempUsageDetail_20' ) end [2025-01-27 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:33:22] Production.INFO: ==22501== Releasing lock... [2025-01-27 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:33:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:34:05 [end_date_ymd] => 2025-01-27 03:34:05 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:34:05' and `end` < '2025-01-27 03: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-01-27 03:34:19] Production.INFO: count ==379 [2025-01-27 03:34:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:34:05 - End Time 2025-01-27 03:34:05 [2025-01-27 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338932', 'tblTempUsageDetail_20' ) start [2025-01-27 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338932', 'tblTempUsageDetail_20' ) end [2025-01-27 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338932', 'tblTempVendorCDR_20' ) start [2025-01-27 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338932', 'tblTempVendorCDR_20' ) end [2025-01-27 03:34:19] Production.INFO: ProcessCDR(1,14338932,1,1,2) [2025-01-27 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338932', 'tblTempUsageDetail_20' ) start [2025-01-27 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338932', 'tblTempUsageDetail_20' ) end [2025-01-27 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:34:22] Production.INFO: ==22596== Releasing lock... [2025-01-27 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:34:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:35:06 [end_date_ymd] => 2025-01-27 03:35:06 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:35:06' and `end` < '2025-01-27 03: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-01-27 03:35:19] Production.INFO: count ==379 [2025-01-27 03:35:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:35:06 - End Time 2025-01-27 03:35:06 [2025-01-27 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338937', 'tblTempUsageDetail_20' ) start [2025-01-27 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338937', 'tblTempUsageDetail_20' ) end [2025-01-27 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338937', 'tblTempVendorCDR_20' ) start [2025-01-27 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338937', 'tblTempVendorCDR_20' ) end [2025-01-27 03:35:19] Production.INFO: ProcessCDR(1,14338937,1,1,2) [2025-01-27 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338937', 'tblTempUsageDetail_20' ) start [2025-01-27 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338937', 'tblTempUsageDetail_20' ) end [2025-01-27 03:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:35:23] Production.INFO: ==22694== Releasing lock... [2025-01-27 03:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:35:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:36:05 [end_date_ymd] => 2025-01-27 03:36:05 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:36:05' and `end` < '2025-01-27 03: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-01-27 03:36:18] Production.INFO: count ==379 [2025-01-27 03:36:18] Production.ERROR: pbx CDR StartTime 2025-01-27 00:36:05 - End Time 2025-01-27 03:36:05 [2025-01-27 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338942', 'tblTempUsageDetail_20' ) start [2025-01-27 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338942', 'tblTempUsageDetail_20' ) end [2025-01-27 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338942', 'tblTempVendorCDR_20' ) start [2025-01-27 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338942', 'tblTempVendorCDR_20' ) end [2025-01-27 03:36:18] Production.INFO: ProcessCDR(1,14338942,1,1,2) [2025-01-27 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338942', 'tblTempUsageDetail_20' ) start [2025-01-27 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338942', 'tblTempUsageDetail_20' ) end [2025-01-27 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:36:22] Production.INFO: ==22790== Releasing lock... [2025-01-27 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:36:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:37:05 [end_date_ymd] => 2025-01-27 03:37:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:37:05' and `end` < '2025-01-27 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-01-27 03:37:19] Production.INFO: count ==379 [2025-01-27 03:37:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:37:05 - End Time 2025-01-27 03:37:05 [2025-01-27 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338947', 'tblTempUsageDetail_20' ) start [2025-01-27 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338947', 'tblTempUsageDetail_20' ) end [2025-01-27 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338947', 'tblTempVendorCDR_20' ) start [2025-01-27 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338947', 'tblTempVendorCDR_20' ) end [2025-01-27 03:37:19] Production.INFO: ProcessCDR(1,14338947,1,1,2) [2025-01-27 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338947', 'tblTempUsageDetail_20' ) start [2025-01-27 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338947', 'tblTempUsageDetail_20' ) end [2025-01-27 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:37:22] Production.INFO: ==22895== Releasing lock... [2025-01-27 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:37:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:38:06 [end_date_ymd] => 2025-01-27 03:38:06 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:38:06' and `end` < '2025-01-27 03: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-01-27 03:38:19] Production.INFO: count ==379 [2025-01-27 03:38:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:38:06 - End Time 2025-01-27 03:38:06 [2025-01-27 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338952', 'tblTempUsageDetail_20' ) start [2025-01-27 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338952', 'tblTempUsageDetail_20' ) end [2025-01-27 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338952', 'tblTempVendorCDR_20' ) start [2025-01-27 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338952', 'tblTempVendorCDR_20' ) end [2025-01-27 03:38:19] Production.INFO: ProcessCDR(1,14338952,1,1,2) [2025-01-27 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338952', 'tblTempUsageDetail_20' ) start [2025-01-27 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338952', 'tblTempUsageDetail_20' ) end [2025-01-27 03:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:38:23] Production.INFO: ==23006== Releasing lock... [2025-01-27 03:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:38:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:39:06 [end_date_ymd] => 2025-01-27 03:39:06 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:39:06' and `end` < '2025-01-27 03: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-01-27 03:39:20] Production.INFO: count ==379 [2025-01-27 03:39:20] Production.ERROR: pbx CDR StartTime 2025-01-27 00:39:06 - End Time 2025-01-27 03:39:06 [2025-01-27 03:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338957', 'tblTempUsageDetail_20' ) start [2025-01-27 03:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338957', 'tblTempUsageDetail_20' ) end [2025-01-27 03:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338957', 'tblTempVendorCDR_20' ) start [2025-01-27 03:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338957', 'tblTempVendorCDR_20' ) end [2025-01-27 03:39:20] Production.INFO: ProcessCDR(1,14338957,1,1,2) [2025-01-27 03:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338957', 'tblTempUsageDetail_20' ) start [2025-01-27 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338957', 'tblTempUsageDetail_20' ) end [2025-01-27 03:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:39:23] Production.INFO: ==23155== Releasing lock... [2025-01-27 03:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:39:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:40:06 [end_date_ymd] => 2025-01-27 03:40:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:40:06' and `end` < '2025-01-27 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-01-27 03:40:19] Production.INFO: count ==370 [2025-01-27 03:40:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:40:06 - End Time 2025-01-27 03:40:06 [2025-01-27 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338963', 'tblTempUsageDetail_20' ) start [2025-01-27 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338963', 'tblTempUsageDetail_20' ) end [2025-01-27 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338963', 'tblTempVendorCDR_20' ) start [2025-01-27 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338963', 'tblTempVendorCDR_20' ) end [2025-01-27 03:40:19] Production.INFO: ProcessCDR(1,14338963,1,1,2) [2025-01-27 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338963', 'tblTempUsageDetail_20' ) start [2025-01-27 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338963', 'tblTempUsageDetail_20' ) end [2025-01-27 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:40:22] Production.INFO: ==23266== Releasing lock... [2025-01-27 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:41:06 [end_date_ymd] => 2025-01-27 03:41:06 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:41:06' and `end` < '2025-01-27 03: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-01-27 03:41:19] Production.INFO: count ==348 [2025-01-27 03:41:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:41:06 - End Time 2025-01-27 03:41:06 [2025-01-27 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338968', 'tblTempUsageDetail_20' ) start [2025-01-27 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338968', 'tblTempUsageDetail_20' ) end [2025-01-27 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338968', 'tblTempVendorCDR_20' ) start [2025-01-27 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338968', 'tblTempVendorCDR_20' ) end [2025-01-27 03:41:19] Production.INFO: ProcessCDR(1,14338968,1,1,2) [2025-01-27 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338968', 'tblTempUsageDetail_20' ) start [2025-01-27 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338968', 'tblTempUsageDetail_20' ) end [2025-01-27 03:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:41:23] Production.INFO: ==23378== Releasing lock... [2025-01-27 03:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:41:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:42:05 [end_date_ymd] => 2025-01-27 03:42:05 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:42:05' and `end` < '2025-01-27 03: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-01-27 03:42:18] Production.INFO: count ==348 [2025-01-27 03:42:18] Production.ERROR: pbx CDR StartTime 2025-01-27 00:42:05 - End Time 2025-01-27 03:42:05 [2025-01-27 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338973', 'tblTempUsageDetail_20' ) start [2025-01-27 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338973', 'tblTempUsageDetail_20' ) end [2025-01-27 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338973', 'tblTempVendorCDR_20' ) start [2025-01-27 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338973', 'tblTempVendorCDR_20' ) end [2025-01-27 03:42:18] Production.INFO: ProcessCDR(1,14338973,1,1,2) [2025-01-27 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338973', 'tblTempUsageDetail_20' ) start [2025-01-27 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338973', 'tblTempUsageDetail_20' ) end [2025-01-27 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:42:21] Production.INFO: ==23494== Releasing lock... [2025-01-27 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:42:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:43:06 [end_date_ymd] => 2025-01-27 03:43:06 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:43:06' and `end` < '2025-01-27 03: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-01-27 03:43:19] Production.INFO: count ==348 [2025-01-27 03:43:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:43:06 - End Time 2025-01-27 03:43:06 [2025-01-27 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338978', 'tblTempUsageDetail_20' ) start [2025-01-27 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338978', 'tblTempUsageDetail_20' ) end [2025-01-27 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338978', 'tblTempVendorCDR_20' ) start [2025-01-27 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338978', 'tblTempVendorCDR_20' ) end [2025-01-27 03:43:19] Production.INFO: ProcessCDR(1,14338978,1,1,2) [2025-01-27 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338978', 'tblTempUsageDetail_20' ) start [2025-01-27 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338978', 'tblTempUsageDetail_20' ) end [2025-01-27 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:43:22] Production.INFO: ==23620== Releasing lock... [2025-01-27 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:43:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:44:05 [end_date_ymd] => 2025-01-27 03:44:05 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:44:05' and `end` < '2025-01-27 03: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-01-27 03:44:18] Production.INFO: count ==348 [2025-01-27 03:44:18] Production.ERROR: pbx CDR StartTime 2025-01-27 00:44:05 - End Time 2025-01-27 03:44:05 [2025-01-27 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338983', 'tblTempUsageDetail_20' ) start [2025-01-27 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338983', 'tblTempUsageDetail_20' ) end [2025-01-27 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338983', 'tblTempVendorCDR_20' ) start [2025-01-27 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338983', 'tblTempVendorCDR_20' ) end [2025-01-27 03:44:18] Production.INFO: ProcessCDR(1,14338983,1,1,2) [2025-01-27 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338983', 'tblTempUsageDetail_20' ) start [2025-01-27 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338983', 'tblTempUsageDetail_20' ) end [2025-01-27 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:44:21] Production.INFO: ==23726== Releasing lock... [2025-01-27 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:44:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:45:05 [end_date_ymd] => 2025-01-27 03:45:05 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:45:05' and `end` < '2025-01-27 03: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-01-27 03:45:18] Production.INFO: count ==348 [2025-01-27 03:45:18] Production.ERROR: pbx CDR StartTime 2025-01-27 00:45:05 - End Time 2025-01-27 03:45:05 [2025-01-27 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338988', 'tblTempUsageDetail_20' ) start [2025-01-27 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338988', 'tblTempUsageDetail_20' ) end [2025-01-27 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338988', 'tblTempVendorCDR_20' ) start [2025-01-27 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338988', 'tblTempVendorCDR_20' ) end [2025-01-27 03:45:18] Production.INFO: ProcessCDR(1,14338988,1,1,2) [2025-01-27 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338988', 'tblTempUsageDetail_20' ) start [2025-01-27 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338988', 'tblTempUsageDetail_20' ) end [2025-01-27 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:45:21] Production.INFO: ==23837== Releasing lock... [2025-01-27 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 03:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:46:04 [end_date_ymd] => 2025-01-27 03:46:04 [RateCDR] => 1 ) [2025-01-27 03:46: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-01-27 00:46:04' and `end` < '2025-01-27 03:46: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-01-27 03:46:17] Production.INFO: count ==348 [2025-01-27 03:46:17] Production.ERROR: pbx CDR StartTime 2025-01-27 00:46:04 - End Time 2025-01-27 03:46:04 [2025-01-27 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338993', 'tblTempUsageDetail_20' ) start [2025-01-27 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338993', 'tblTempUsageDetail_20' ) end [2025-01-27 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338993', 'tblTempVendorCDR_20' ) start [2025-01-27 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338993', 'tblTempVendorCDR_20' ) end [2025-01-27 03:46:17] Production.INFO: ProcessCDR(1,14338993,1,1,2) [2025-01-27 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338993', 'tblTempUsageDetail_20' ) start [2025-01-27 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338993', 'tblTempUsageDetail_20' ) end [2025-01-27 03:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:46:20] Production.INFO: ==23918== Releasing lock... [2025-01-27 03:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:46:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:47:06 [end_date_ymd] => 2025-01-27 03:47:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:47:06' and `end` < '2025-01-27 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-01-27 03:47:19] Production.INFO: count ==344 [2025-01-27 03:47:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:47:06 - End Time 2025-01-27 03:47:06 [2025-01-27 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338998', 'tblTempUsageDetail_20' ) start [2025-01-27 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14338998', 'tblTempUsageDetail_20' ) end [2025-01-27 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338998', 'tblTempVendorCDR_20' ) start [2025-01-27 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14338998', 'tblTempVendorCDR_20' ) end [2025-01-27 03:47:19] Production.INFO: ProcessCDR(1,14338998,1,1,2) [2025-01-27 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14338998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14338998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14338998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14338998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338998', 'tblTempUsageDetail_20' ) start [2025-01-27 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14338998', 'tblTempUsageDetail_20' ) end [2025-01-27 03:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:47:23] Production.INFO: ==24050== Releasing lock... [2025-01-27 03:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:47:23] Production.INFO: 30 MB #Memory Used# [2025-01-27 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:48:05 [end_date_ymd] => 2025-01-27 03:48:05 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:48:05' and `end` < '2025-01-27 03: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-01-27 03:48:19] Production.INFO: count ==343 [2025-01-27 03:48:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:48:05 - End Time 2025-01-27 03:48:05 [2025-01-27 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339003', 'tblTempUsageDetail_20' ) start [2025-01-27 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339003', 'tblTempUsageDetail_20' ) end [2025-01-27 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339003', 'tblTempVendorCDR_20' ) start [2025-01-27 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339003', 'tblTempVendorCDR_20' ) end [2025-01-27 03:48:19] Production.INFO: ProcessCDR(1,14339003,1,1,2) [2025-01-27 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339003', 'tblTempUsageDetail_20' ) start [2025-01-27 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339003', 'tblTempUsageDetail_20' ) end [2025-01-27 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:48:22] Production.INFO: ==24151== Releasing lock... [2025-01-27 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:48:22] Production.INFO: 30 MB #Memory Used# [2025-01-27 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:49:06 [end_date_ymd] => 2025-01-27 03:49:06 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:49:06' and `end` < '2025-01-27 03: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-01-27 03:49:19] Production.INFO: count ==342 [2025-01-27 03:49:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:49:06 - End Time 2025-01-27 03:49:06 [2025-01-27 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339008', 'tblTempUsageDetail_20' ) start [2025-01-27 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339008', 'tblTempUsageDetail_20' ) end [2025-01-27 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339008', 'tblTempVendorCDR_20' ) start [2025-01-27 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339008', 'tblTempVendorCDR_20' ) end [2025-01-27 03:49:19] Production.INFO: ProcessCDR(1,14339008,1,1,2) [2025-01-27 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339008', 'tblTempUsageDetail_20' ) start [2025-01-27 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339008', 'tblTempUsageDetail_20' ) end [2025-01-27 03:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:49:23] Production.INFO: ==24249== Releasing lock... [2025-01-27 03:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:49:23] Production.INFO: 30 MB #Memory Used# [2025-01-27 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:50:06 [end_date_ymd] => 2025-01-27 03:50:06 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:50:06' and `end` < '2025-01-27 03: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-01-27 03:50:18] Production.INFO: count ==342 [2025-01-27 03:50:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:50:06 - End Time 2025-01-27 03:50:06 [2025-01-27 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339014', 'tblTempUsageDetail_20' ) start [2025-01-27 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339014', 'tblTempUsageDetail_20' ) end [2025-01-27 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339014', 'tblTempVendorCDR_20' ) start [2025-01-27 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339014', 'tblTempVendorCDR_20' ) end [2025-01-27 03:50:19] Production.INFO: ProcessCDR(1,14339014,1,1,2) [2025-01-27 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339014', 'tblTempUsageDetail_20' ) start [2025-01-27 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339014', 'tblTempUsageDetail_20' ) end [2025-01-27 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:50:22] Production.INFO: ==24337== Releasing lock... [2025-01-27 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:50:22] Production.INFO: 30 MB #Memory Used# [2025-01-27 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:51:05 [end_date_ymd] => 2025-01-27 03:51:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:51:05' and `end` < '2025-01-27 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-01-27 03:51:19] Production.INFO: count ==331 [2025-01-27 03:51:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:51:05 - End Time 2025-01-27 03:51:05 [2025-01-27 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339019', 'tblTempUsageDetail_20' ) start [2025-01-27 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339019', 'tblTempUsageDetail_20' ) end [2025-01-27 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339019', 'tblTempVendorCDR_20' ) start [2025-01-27 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339019', 'tblTempVendorCDR_20' ) end [2025-01-27 03:51:19] Production.INFO: ProcessCDR(1,14339019,1,1,2) [2025-01-27 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339019', 'tblTempUsageDetail_20' ) start [2025-01-27 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339019', 'tblTempUsageDetail_20' ) end [2025-01-27 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:51:22] Production.INFO: ==24437== Releasing lock... [2025-01-27 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:51:22] Production.INFO: 30 MB #Memory Used# [2025-01-27 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:52:05 [end_date_ymd] => 2025-01-27 03:52:05 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:52:05' and `end` < '2025-01-27 03: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-01-27 03:52:18] Production.INFO: count ==330 [2025-01-27 03:52:18] Production.ERROR: pbx CDR StartTime 2025-01-27 00:52:05 - End Time 2025-01-27 03:52:05 [2025-01-27 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339024', 'tblTempUsageDetail_20' ) start [2025-01-27 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339024', 'tblTempUsageDetail_20' ) end [2025-01-27 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339024', 'tblTempVendorCDR_20' ) start [2025-01-27 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339024', 'tblTempVendorCDR_20' ) end [2025-01-27 03:52:18] Production.INFO: ProcessCDR(1,14339024,1,1,2) [2025-01-27 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339024', 'tblTempUsageDetail_20' ) start [2025-01-27 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339024', 'tblTempUsageDetail_20' ) end [2025-01-27 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:52:22] Production.INFO: ==24531== Releasing lock... [2025-01-27 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:52:22] Production.INFO: 30 MB #Memory Used# [2025-01-27 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:53:05 [end_date_ymd] => 2025-01-27 03:53:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:53:05' and `end` < '2025-01-27 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-01-27 03:53:20] Production.INFO: count ==329 [2025-01-27 03:53:20] Production.ERROR: pbx CDR StartTime 2025-01-27 00:53:05 - End Time 2025-01-27 03:53:05 [2025-01-27 03:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339029', 'tblTempUsageDetail_20' ) start [2025-01-27 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339029', 'tblTempUsageDetail_20' ) end [2025-01-27 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339029', 'tblTempVendorCDR_20' ) start [2025-01-27 03:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339029', 'tblTempVendorCDR_20' ) end [2025-01-27 03:53:20] Production.INFO: ProcessCDR(1,14339029,1,1,2) [2025-01-27 03:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339029', 'tblTempUsageDetail_20' ) start [2025-01-27 03:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339029', 'tblTempUsageDetail_20' ) end [2025-01-27 03:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:53:25] Production.INFO: ==24624== Releasing lock... [2025-01-27 03:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:53:25] Production.INFO: 30 MB #Memory Used# [2025-01-27 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:54:05 [end_date_ymd] => 2025-01-27 03:54:05 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:54:05' and `end` < '2025-01-27 03: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-01-27 03:54:19] Production.INFO: count ==330 [2025-01-27 03:54:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:54:05 - End Time 2025-01-27 03:54:05 [2025-01-27 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339034', 'tblTempUsageDetail_20' ) start [2025-01-27 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339034', 'tblTempUsageDetail_20' ) end [2025-01-27 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339034', 'tblTempVendorCDR_20' ) start [2025-01-27 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339034', 'tblTempVendorCDR_20' ) end [2025-01-27 03:54:19] Production.INFO: ProcessCDR(1,14339034,1,1,2) [2025-01-27 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339034', 'tblTempUsageDetail_20' ) start [2025-01-27 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339034', 'tblTempUsageDetail_20' ) end [2025-01-27 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:54:22] Production.INFO: ==24770== Releasing lock... [2025-01-27 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:54:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:55:06 [end_date_ymd] => 2025-01-27 03:55:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:55:06' and `end` < '2025-01-27 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-01-27 03:55:19] Production.INFO: count ==330 [2025-01-27 03:55:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:55:06 - End Time 2025-01-27 03:55:06 [2025-01-27 03:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339039', 'tblTempUsageDetail_20' ) start [2025-01-27 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339039', 'tblTempUsageDetail_20' ) end [2025-01-27 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339039', 'tblTempVendorCDR_20' ) start [2025-01-27 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339039', 'tblTempVendorCDR_20' ) end [2025-01-27 03:55:19] Production.INFO: ProcessCDR(1,14339039,1,1,2) [2025-01-27 03:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339039', 'tblTempUsageDetail_20' ) start [2025-01-27 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339039', 'tblTempUsageDetail_20' ) end [2025-01-27 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:55:22] Production.INFO: ==24860== Releasing lock... [2025-01-27 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:55:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:56:06 [end_date_ymd] => 2025-01-27 03:56:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 00:56:06' and `end` < '2025-01-27 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-01-27 03:56:19] Production.INFO: count ==330 [2025-01-27 03:56:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:56:06 - End Time 2025-01-27 03:56:06 [2025-01-27 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339044', 'tblTempUsageDetail_20' ) start [2025-01-27 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339044', 'tblTempUsageDetail_20' ) end [2025-01-27 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339044', 'tblTempVendorCDR_20' ) start [2025-01-27 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339044', 'tblTempVendorCDR_20' ) end [2025-01-27 03:56:19] Production.INFO: ProcessCDR(1,14339044,1,1,2) [2025-01-27 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339044', 'tblTempUsageDetail_20' ) start [2025-01-27 03:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339044', 'tblTempUsageDetail_20' ) end [2025-01-27 03:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:56:23] Production.INFO: ==24965== Releasing lock... [2025-01-27 03:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:56:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:57:05 [end_date_ymd] => 2025-01-27 03:57:05 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:57:05' and `end` < '2025-01-27 03: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-01-27 03:57:19] Production.INFO: count ==329 [2025-01-27 03:57:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:57:05 - End Time 2025-01-27 03:57:05 [2025-01-27 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339049', 'tblTempUsageDetail_20' ) start [2025-01-27 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339049', 'tblTempUsageDetail_20' ) end [2025-01-27 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339049', 'tblTempVendorCDR_20' ) start [2025-01-27 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339049', 'tblTempVendorCDR_20' ) end [2025-01-27 03:57:19] Production.INFO: ProcessCDR(1,14339049,1,1,2) [2025-01-27 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339049', 'tblTempUsageDetail_20' ) start [2025-01-27 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339049', 'tblTempUsageDetail_20' ) end [2025-01-27 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:57:22] Production.INFO: ==25063== Releasing lock... [2025-01-27 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:57:22] Production.INFO: 30 MB #Memory Used# [2025-01-27 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:58:05 [end_date_ymd] => 2025-01-27 03:58:05 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:58:05' and `end` < '2025-01-27 03: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-01-27 03:58:18] Production.INFO: count ==328 [2025-01-27 03:58:18] Production.ERROR: pbx CDR StartTime 2025-01-27 00:58:05 - End Time 2025-01-27 03:58:05 [2025-01-27 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339054', 'tblTempUsageDetail_20' ) start [2025-01-27 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339054', 'tblTempUsageDetail_20' ) end [2025-01-27 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339054', 'tblTempVendorCDR_20' ) start [2025-01-27 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339054', 'tblTempVendorCDR_20' ) end [2025-01-27 03:58:18] Production.INFO: ProcessCDR(1,14339054,1,1,2) [2025-01-27 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339054', 'tblTempUsageDetail_20' ) start [2025-01-27 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339054', 'tblTempUsageDetail_20' ) end [2025-01-27 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:58:21] Production.INFO: ==25163== Releasing lock... [2025-01-27 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:58:21] Production.INFO: 30 MB #Memory Used# [2025-01-27 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 00:59:06 [end_date_ymd] => 2025-01-27 03:59:06 [RateCDR] => 1 ) [2025-01-27 03: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-01-27 00:59:06' and `end` < '2025-01-27 03: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-01-27 03:59:19] Production.INFO: count ==328 [2025-01-27 03:59:19] Production.ERROR: pbx CDR StartTime 2025-01-27 00:59:06 - End Time 2025-01-27 03:59:06 [2025-01-27 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339059', 'tblTempUsageDetail_20' ) start [2025-01-27 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339059', 'tblTempUsageDetail_20' ) end [2025-01-27 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339059', 'tblTempVendorCDR_20' ) start [2025-01-27 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339059', 'tblTempVendorCDR_20' ) end [2025-01-27 03:59:19] Production.INFO: ProcessCDR(1,14339059,1,1,2) [2025-01-27 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339059', 'tblTempUsageDetail_20' ) start [2025-01-27 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339059', 'tblTempUsageDetail_20' ) end [2025-01-27 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 03:59:22] Production.INFO: ==25260== Releasing lock... [2025-01-27 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 03:59:22] Production.INFO: 30 MB #Memory Used# [2025-01-27 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:00:06 [end_date_ymd] => 2025-01-27 04:00:06 [RateCDR] => 1 ) [2025-01-27 04: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-01-27 01:00:06' and `end` < '2025-01-27 04: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-01-27 04:00:19] Production.INFO: count ==318 [2025-01-27 04:00:19] Production.ERROR: pbx CDR StartTime 2025-01-27 01:00:06 - End Time 2025-01-27 04:00:06 [2025-01-27 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339066', 'tblTempUsageDetail_20' ) start [2025-01-27 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339066', 'tblTempUsageDetail_20' ) end [2025-01-27 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339066', 'tblTempVendorCDR_20' ) start [2025-01-27 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339066', 'tblTempVendorCDR_20' ) end [2025-01-27 04:00:19] Production.INFO: ProcessCDR(1,14339066,1,1,2) [2025-01-27 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339066', 'tblTempUsageDetail_20' ) start [2025-01-27 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339066', 'tblTempUsageDetail_20' ) end [2025-01-27 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:00:22] Production.INFO: ==25361== Releasing lock... [2025-01-27 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:00:22] Production.INFO: 30 MB #Memory Used# [2025-01-27 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:01:06 [end_date_ymd] => 2025-01-27 04:01:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:01:06' and `end` < '2025-01-27 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-01-27 04:01:19] Production.INFO: count ==316 [2025-01-27 04:01:19] Production.ERROR: pbx CDR StartTime 2025-01-27 01:01:06 - End Time 2025-01-27 04:01:06 [2025-01-27 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339071', 'tblTempUsageDetail_20' ) start [2025-01-27 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339071', 'tblTempUsageDetail_20' ) end [2025-01-27 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339071', 'tblTempVendorCDR_20' ) start [2025-01-27 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339071', 'tblTempVendorCDR_20' ) end [2025-01-27 04:01:19] Production.INFO: ProcessCDR(1,14339071,1,1,2) [2025-01-27 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339071', 'tblTempUsageDetail_20' ) start [2025-01-27 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339071', 'tblTempUsageDetail_20' ) end [2025-01-27 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:01:22] Production.INFO: ==25458== Releasing lock... [2025-01-27 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:01:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:02:05 [end_date_ymd] => 2025-01-27 04:02:05 [RateCDR] => 1 ) [2025-01-27 04: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-01-27 01:02:05' and `end` < '2025-01-27 04: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-01-27 04:02:18] Production.INFO: count ==316 [2025-01-27 04:02:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:02:05 - End Time 2025-01-27 04:02:05 [2025-01-27 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339076', 'tblTempUsageDetail_20' ) start [2025-01-27 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339076', 'tblTempUsageDetail_20' ) end [2025-01-27 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339076', 'tblTempVendorCDR_20' ) start [2025-01-27 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339076', 'tblTempVendorCDR_20' ) end [2025-01-27 04:02:18] Production.INFO: ProcessCDR(1,14339076,1,1,2) [2025-01-27 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339076', 'tblTempUsageDetail_20' ) start [2025-01-27 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339076', 'tblTempUsageDetail_20' ) end [2025-01-27 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:02:21] Production.INFO: ==25542== Releasing lock... [2025-01-27 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:02:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:03:05 [end_date_ymd] => 2025-01-27 04:03:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:03:05' and `end` < '2025-01-27 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-01-27 04:03:18] Production.INFO: count ==313 [2025-01-27 04:03:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:03:05 - End Time 2025-01-27 04:03:05 [2025-01-27 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339081', 'tblTempUsageDetail_20' ) start [2025-01-27 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339081', 'tblTempUsageDetail_20' ) end [2025-01-27 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339081', 'tblTempVendorCDR_20' ) start [2025-01-27 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339081', 'tblTempVendorCDR_20' ) end [2025-01-27 04:03:18] Production.INFO: ProcessCDR(1,14339081,1,1,2) [2025-01-27 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339081', 'tblTempUsageDetail_20' ) start [2025-01-27 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339081', 'tblTempUsageDetail_20' ) end [2025-01-27 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:03:21] Production.INFO: ==25623== Releasing lock... [2025-01-27 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:03:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-27 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:04:05 [end_date_ymd] => 2025-01-27 04:04:05 [RateCDR] => 1 ) [2025-01-27 04: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-01-27 01:04:05' and `end` < '2025-01-27 04: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-01-27 04:04:17] Production.INFO: count ==313 [2025-01-27 04:04:17] Production.ERROR: pbx CDR StartTime 2025-01-27 01:04:05 - End Time 2025-01-27 04:04:05 [2025-01-27 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339086', 'tblTempUsageDetail_20' ) start [2025-01-27 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339086', 'tblTempUsageDetail_20' ) end [2025-01-27 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339086', 'tblTempVendorCDR_20' ) start [2025-01-27 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339086', 'tblTempVendorCDR_20' ) end [2025-01-27 04:04:17] Production.INFO: ProcessCDR(1,14339086,1,1,2) [2025-01-27 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339086', 'tblTempUsageDetail_20' ) start [2025-01-27 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339086', 'tblTempUsageDetail_20' ) end [2025-01-27 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:04:21] Production.INFO: ==25708== Releasing lock... [2025-01-27 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-27 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:05:05 [end_date_ymd] => 2025-01-27 04:05:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:05:05' and `end` < '2025-01-27 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-01-27 04:05:18] Production.INFO: count ==313 [2025-01-27 04:05:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:05:05 - End Time 2025-01-27 04:05:05 [2025-01-27 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339091', 'tblTempUsageDetail_20' ) start [2025-01-27 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339091', 'tblTempUsageDetail_20' ) end [2025-01-27 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339091', 'tblTempVendorCDR_20' ) start [2025-01-27 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339091', 'tblTempVendorCDR_20' ) end [2025-01-27 04:05:18] Production.INFO: ProcessCDR(1,14339091,1,1,2) [2025-01-27 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339091', 'tblTempUsageDetail_20' ) start [2025-01-27 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339091', 'tblTempUsageDetail_20' ) end [2025-01-27 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:05:21] Production.INFO: ==25794== Releasing lock... [2025-01-27 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:05:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-27 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:06:05 [end_date_ymd] => 2025-01-27 04:06:05 [RateCDR] => 1 ) [2025-01-27 04: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-01-27 01:06:05' and `end` < '2025-01-27 04: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-01-27 04:06:18] Production.INFO: count ==313 [2025-01-27 04:06:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:06:05 - End Time 2025-01-27 04:06:05 [2025-01-27 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339096', 'tblTempUsageDetail_20' ) start [2025-01-27 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339096', 'tblTempUsageDetail_20' ) end [2025-01-27 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339096', 'tblTempVendorCDR_20' ) start [2025-01-27 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339096', 'tblTempVendorCDR_20' ) end [2025-01-27 04:06:18] Production.INFO: ProcessCDR(1,14339096,1,1,2) [2025-01-27 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339096', 'tblTempUsageDetail_20' ) start [2025-01-27 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339096', 'tblTempUsageDetail_20' ) end [2025-01-27 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:06:21] Production.INFO: ==25875== Releasing lock... [2025-01-27 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:06:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-27 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:07:05 [end_date_ymd] => 2025-01-27 04:07:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:07:05' and `end` < '2025-01-27 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-01-27 04:07:18] Production.INFO: count ==311 [2025-01-27 04:07:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:07:05 - End Time 2025-01-27 04:07:05 [2025-01-27 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339101', 'tblTempUsageDetail_20' ) start [2025-01-27 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339101', 'tblTempUsageDetail_20' ) end [2025-01-27 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339101', 'tblTempVendorCDR_20' ) start [2025-01-27 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339101', 'tblTempVendorCDR_20' ) end [2025-01-27 04:07:18] Production.INFO: ProcessCDR(1,14339101,1,1,2) [2025-01-27 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339101', 'tblTempUsageDetail_20' ) start [2025-01-27 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339101', 'tblTempUsageDetail_20' ) end [2025-01-27 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:07:21] Production.INFO: ==25956== Releasing lock... [2025-01-27 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:07:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-27 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:08:05 [end_date_ymd] => 2025-01-27 04:08:05 [RateCDR] => 1 ) [2025-01-27 04: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-01-27 01:08:05' and `end` < '2025-01-27 04: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-01-27 04:08:18] Production.INFO: count ==308 [2025-01-27 04:08:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:08:05 - End Time 2025-01-27 04:08:05 [2025-01-27 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339106', 'tblTempUsageDetail_20' ) start [2025-01-27 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339106', 'tblTempUsageDetail_20' ) end [2025-01-27 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339106', 'tblTempVendorCDR_20' ) start [2025-01-27 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339106', 'tblTempVendorCDR_20' ) end [2025-01-27 04:08:18] Production.INFO: ProcessCDR(1,14339106,1,1,2) [2025-01-27 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339106', 'tblTempUsageDetail_20' ) start [2025-01-27 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339106', 'tblTempUsageDetail_20' ) end [2025-01-27 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:08:21] Production.INFO: ==26037== Releasing lock... [2025-01-27 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:08:21] Production.INFO: 30 MB #Memory Used# [2025-01-27 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:09:05 [end_date_ymd] => 2025-01-27 04:09:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:09:05' and `end` < '2025-01-27 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-01-27 04:09:18] Production.INFO: count ==307 [2025-01-27 04:09:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:09:05 - End Time 2025-01-27 04:09:05 [2025-01-27 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339111', 'tblTempUsageDetail_20' ) start [2025-01-27 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339111', 'tblTempUsageDetail_20' ) end [2025-01-27 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339111', 'tblTempVendorCDR_20' ) start [2025-01-27 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339111', 'tblTempVendorCDR_20' ) end [2025-01-27 04:09:18] Production.INFO: ProcessCDR(1,14339111,1,1,2) [2025-01-27 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339111', 'tblTempUsageDetail_20' ) start [2025-01-27 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339111', 'tblTempUsageDetail_20' ) end [2025-01-27 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:09:21] Production.INFO: ==26163== Releasing lock... [2025-01-27 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:09:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-27 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:10:06 [end_date_ymd] => 2025-01-27 04:10:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:10:06' and `end` < '2025-01-27 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-01-27 04:10:19] Production.INFO: count ==303 [2025-01-27 04:10:19] Production.ERROR: pbx CDR StartTime 2025-01-27 01:10:06 - End Time 2025-01-27 04:10:06 [2025-01-27 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339117', 'tblTempUsageDetail_20' ) start [2025-01-27 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339117', 'tblTempUsageDetail_20' ) end [2025-01-27 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339117', 'tblTempVendorCDR_20' ) start [2025-01-27 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339117', 'tblTempVendorCDR_20' ) end [2025-01-27 04:10:19] Production.INFO: ProcessCDR(1,14339117,1,1,2) [2025-01-27 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339117', 'tblTempUsageDetail_20' ) start [2025-01-27 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339117', 'tblTempUsageDetail_20' ) end [2025-01-27 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:10:22] Production.INFO: ==26246== Releasing lock... [2025-01-27 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:10:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-27 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:11:05 [end_date_ymd] => 2025-01-27 04:11:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:11:05' and `end` < '2025-01-27 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-01-27 04:11:17] Production.INFO: count ==295 [2025-01-27 04:11:17] Production.ERROR: pbx CDR StartTime 2025-01-27 01:11:05 - End Time 2025-01-27 04:11:05 [2025-01-27 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339122', 'tblTempUsageDetail_20' ) start [2025-01-27 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339122', 'tblTempUsageDetail_20' ) end [2025-01-27 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339122', 'tblTempVendorCDR_20' ) start [2025-01-27 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339122', 'tblTempVendorCDR_20' ) end [2025-01-27 04:11:17] Production.INFO: ProcessCDR(1,14339122,1,1,2) [2025-01-27 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339122', 'tblTempUsageDetail_20' ) start [2025-01-27 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339122', 'tblTempUsageDetail_20' ) end [2025-01-27 04:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:11:20] Production.INFO: ==26330== Releasing lock... [2025-01-27 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:11:20] Production.INFO: 30 MB #Memory Used# [2025-01-27 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:12:06 [end_date_ymd] => 2025-01-27 04:12:06 [RateCDR] => 1 ) [2025-01-27 04: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-01-27 01:12:06' and `end` < '2025-01-27 04: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-01-27 04:12:19] Production.INFO: count ==294 [2025-01-27 04:12:19] Production.ERROR: pbx CDR StartTime 2025-01-27 01:12:06 - End Time 2025-01-27 04:12:06 [2025-01-27 04:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339127', 'tblTempUsageDetail_20' ) start [2025-01-27 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339127', 'tblTempUsageDetail_20' ) end [2025-01-27 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339127', 'tblTempVendorCDR_20' ) start [2025-01-27 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339127', 'tblTempVendorCDR_20' ) end [2025-01-27 04:12:19] Production.INFO: ProcessCDR(1,14339127,1,1,2) [2025-01-27 04:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339127', 'tblTempUsageDetail_20' ) start [2025-01-27 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339127', 'tblTempUsageDetail_20' ) end [2025-01-27 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:12:23] Production.INFO: ==26414== Releasing lock... [2025-01-27 04:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:12:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-27 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:13:05 [end_date_ymd] => 2025-01-27 04:13:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:13:05' and `end` < '2025-01-27 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-01-27 04:13:18] Production.INFO: count ==290 [2025-01-27 04:13:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:13:05 - End Time 2025-01-27 04:13:05 [2025-01-27 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339132', 'tblTempUsageDetail_20' ) start [2025-01-27 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339132', 'tblTempUsageDetail_20' ) end [2025-01-27 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339132', 'tblTempVendorCDR_20' ) start [2025-01-27 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339132', 'tblTempVendorCDR_20' ) end [2025-01-27 04:13:18] Production.INFO: ProcessCDR(1,14339132,1,1,2) [2025-01-27 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339132', 'tblTempUsageDetail_20' ) start [2025-01-27 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339132', 'tblTempUsageDetail_20' ) end [2025-01-27 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:13:21] Production.INFO: ==26498== Releasing lock... [2025-01-27 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:13:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-27 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:14:06 [end_date_ymd] => 2025-01-27 04:14:06 [RateCDR] => 1 ) [2025-01-27 04: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-01-27 01:14:06' and `end` < '2025-01-27 04: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-01-27 04:14:19] Production.INFO: count ==285 [2025-01-27 04:14:19] Production.ERROR: pbx CDR StartTime 2025-01-27 01:14:06 - End Time 2025-01-27 04:14:06 [2025-01-27 04:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339137', 'tblTempUsageDetail_20' ) start [2025-01-27 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339137', 'tblTempUsageDetail_20' ) end [2025-01-27 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339137', 'tblTempVendorCDR_20' ) start [2025-01-27 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339137', 'tblTempVendorCDR_20' ) end [2025-01-27 04:14:19] Production.INFO: ProcessCDR(1,14339137,1,1,2) [2025-01-27 04:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339137', 'tblTempUsageDetail_20' ) start [2025-01-27 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339137', 'tblTempUsageDetail_20' ) end [2025-01-27 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:14:22] Production.INFO: ==26575== Releasing lock... [2025-01-27 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:14:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-27 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:15:05 [end_date_ymd] => 2025-01-27 04:15:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:15:05' and `end` < '2025-01-27 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-01-27 04:15:17] Production.INFO: count ==273 [2025-01-27 04:15:17] Production.ERROR: pbx CDR StartTime 2025-01-27 01:15:05 - End Time 2025-01-27 04:15:05 [2025-01-27 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339142', 'tblTempUsageDetail_20' ) start [2025-01-27 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339142', 'tblTempUsageDetail_20' ) end [2025-01-27 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339142', 'tblTempVendorCDR_20' ) start [2025-01-27 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339142', 'tblTempVendorCDR_20' ) end [2025-01-27 04:15:17] Production.INFO: ProcessCDR(1,14339142,1,1,2) [2025-01-27 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339142', 'tblTempUsageDetail_20' ) start [2025-01-27 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339142', 'tblTempUsageDetail_20' ) end [2025-01-27 04:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:15:20] Production.INFO: ==26656== Releasing lock... [2025-01-27 04:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:15:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-27 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:16:06 [end_date_ymd] => 2025-01-27 04:16:06 [RateCDR] => 1 ) [2025-01-27 04: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-01-27 01:16:06' and `end` < '2025-01-27 04: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-01-27 04:16:19] Production.INFO: count ==269 [2025-01-27 04:16:19] Production.ERROR: pbx CDR StartTime 2025-01-27 01:16:06 - End Time 2025-01-27 04:16:06 [2025-01-27 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339147', 'tblTempUsageDetail_20' ) start [2025-01-27 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339147', 'tblTempUsageDetail_20' ) end [2025-01-27 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339147', 'tblTempVendorCDR_20' ) start [2025-01-27 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339147', 'tblTempVendorCDR_20' ) end [2025-01-27 04:16:19] Production.INFO: ProcessCDR(1,14339147,1,1,2) [2025-01-27 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339147', 'tblTempUsageDetail_20' ) start [2025-01-27 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339147', 'tblTempUsageDetail_20' ) end [2025-01-27 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:16:22] Production.INFO: ==26738== Releasing lock... [2025-01-27 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:16:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-27 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:17:05 [end_date_ymd] => 2025-01-27 04:17:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:17:05' and `end` < '2025-01-27 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-01-27 04:17:18] Production.INFO: count ==261 [2025-01-27 04:17:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:17:05 - End Time 2025-01-27 04:17:05 [2025-01-27 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339152', 'tblTempUsageDetail_20' ) start [2025-01-27 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339152', 'tblTempUsageDetail_20' ) end [2025-01-27 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339152', 'tblTempVendorCDR_20' ) start [2025-01-27 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339152', 'tblTempVendorCDR_20' ) end [2025-01-27 04:17:18] Production.INFO: ProcessCDR(1,14339152,1,1,2) [2025-01-27 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339152', 'tblTempUsageDetail_20' ) start [2025-01-27 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339152', 'tblTempUsageDetail_20' ) end [2025-01-27 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:17:21] Production.INFO: ==26824== Releasing lock... [2025-01-27 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:17:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-27 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:18:05 [end_date_ymd] => 2025-01-27 04:18:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:18:05' and `end` < '2025-01-27 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-01-27 04:18:18] Production.INFO: count ==261 [2025-01-27 04:18:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:18:05 - End Time 2025-01-27 04:18:05 [2025-01-27 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339157', 'tblTempUsageDetail_20' ) start [2025-01-27 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339157', 'tblTempUsageDetail_20' ) end [2025-01-27 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339157', 'tblTempVendorCDR_20' ) start [2025-01-27 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339157', 'tblTempVendorCDR_20' ) end [2025-01-27 04:18:18] Production.INFO: ProcessCDR(1,14339157,1,1,2) [2025-01-27 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339157', 'tblTempUsageDetail_20' ) start [2025-01-27 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339157', 'tblTempUsageDetail_20' ) end [2025-01-27 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:18:21] Production.INFO: ==26915== Releasing lock... [2025-01-27 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:18:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-27 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:19:05 [end_date_ymd] => 2025-01-27 04:19:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:19:05' and `end` < '2025-01-27 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-01-27 04:19:18] Production.INFO: count ==261 [2025-01-27 04:19:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:19:05 - End Time 2025-01-27 04:19:05 [2025-01-27 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339162', 'tblTempUsageDetail_20' ) start [2025-01-27 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339162', 'tblTempUsageDetail_20' ) end [2025-01-27 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339162', 'tblTempVendorCDR_20' ) start [2025-01-27 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339162', 'tblTempVendorCDR_20' ) end [2025-01-27 04:19:18] Production.INFO: ProcessCDR(1,14339162,1,1,2) [2025-01-27 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339162', 'tblTempUsageDetail_20' ) start [2025-01-27 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339162', 'tblTempUsageDetail_20' ) end [2025-01-27 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:19:21] Production.INFO: ==26994== Releasing lock... [2025-01-27 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:19:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-27 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:20:06 [end_date_ymd] => 2025-01-27 04:20:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:20:06' and `end` < '2025-01-27 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-01-27 04:20:19] Production.INFO: count ==249 [2025-01-27 04:20:19] Production.ERROR: pbx CDR StartTime 2025-01-27 01:20:06 - End Time 2025-01-27 04:20:06 [2025-01-27 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339168', 'tblTempUsageDetail_20' ) start [2025-01-27 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339168', 'tblTempUsageDetail_20' ) end [2025-01-27 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339168', 'tblTempVendorCDR_20' ) start [2025-01-27 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339168', 'tblTempVendorCDR_20' ) end [2025-01-27 04:20:19] Production.INFO: ProcessCDR(1,14339168,1,1,2) [2025-01-27 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339168', 'tblTempUsageDetail_20' ) start [2025-01-27 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339168', 'tblTempUsageDetail_20' ) end [2025-01-27 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:20:22] Production.INFO: ==27080== Releasing lock... [2025-01-27 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-27 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:21:05 [end_date_ymd] => 2025-01-27 04:21:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:21:05' and `end` < '2025-01-27 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-01-27 04:21:18] Production.INFO: count ==245 [2025-01-27 04:21:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:21:05 - End Time 2025-01-27 04:21:05 [2025-01-27 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339173', 'tblTempUsageDetail_20' ) start [2025-01-27 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339173', 'tblTempUsageDetail_20' ) end [2025-01-27 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339173', 'tblTempVendorCDR_20' ) start [2025-01-27 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339173', 'tblTempVendorCDR_20' ) end [2025-01-27 04:21:18] Production.INFO: ProcessCDR(1,14339173,1,1,2) [2025-01-27 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339173', 'tblTempUsageDetail_20' ) start [2025-01-27 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339173', 'tblTempUsageDetail_20' ) end [2025-01-27 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:21:21] Production.INFO: ==27157== Releasing lock... [2025-01-27 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-27 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:22:05 [end_date_ymd] => 2025-01-27 04:22:05 [RateCDR] => 1 ) [2025-01-27 04: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-01-27 01:22:05' and `end` < '2025-01-27 04: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-01-27 04:22:17] Production.INFO: count ==245 [2025-01-27 04:22:17] Production.ERROR: pbx CDR StartTime 2025-01-27 01:22:05 - End Time 2025-01-27 04:22:05 [2025-01-27 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339178', 'tblTempUsageDetail_20' ) start [2025-01-27 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339178', 'tblTempUsageDetail_20' ) end [2025-01-27 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339178', 'tblTempVendorCDR_20' ) start [2025-01-27 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339178', 'tblTempVendorCDR_20' ) end [2025-01-27 04:22:17] Production.INFO: ProcessCDR(1,14339178,1,1,2) [2025-01-27 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339178', 'tblTempUsageDetail_20' ) start [2025-01-27 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339178', 'tblTempUsageDetail_20' ) end [2025-01-27 04:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:22:20] Production.INFO: ==27238== Releasing lock... [2025-01-27 04:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:22:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-27 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:23:05 [end_date_ymd] => 2025-01-27 04:23:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:23:05' and `end` < '2025-01-27 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-01-27 04:23:18] Production.INFO: count ==244 [2025-01-27 04:23:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:23:05 - End Time 2025-01-27 04:23:05 [2025-01-27 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339183', 'tblTempUsageDetail_20' ) start [2025-01-27 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339183', 'tblTempUsageDetail_20' ) end [2025-01-27 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339183', 'tblTempVendorCDR_20' ) start [2025-01-27 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339183', 'tblTempVendorCDR_20' ) end [2025-01-27 04:23:18] Production.INFO: ProcessCDR(1,14339183,1,1,2) [2025-01-27 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339183', 'tblTempUsageDetail_20' ) start [2025-01-27 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339183', 'tblTempUsageDetail_20' ) end [2025-01-27 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:23:21] Production.INFO: ==27321== Releasing lock... [2025-01-27 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-27 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:24:05 [end_date_ymd] => 2025-01-27 04:24:05 [RateCDR] => 1 ) [2025-01-27 04: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-01-27 01:24:05' and `end` < '2025-01-27 04: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-01-27 04:24:18] Production.INFO: count ==244 [2025-01-27 04:24:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:24:05 - End Time 2025-01-27 04:24:05 [2025-01-27 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339188', 'tblTempUsageDetail_20' ) start [2025-01-27 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339188', 'tblTempUsageDetail_20' ) end [2025-01-27 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339188', 'tblTempVendorCDR_20' ) start [2025-01-27 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339188', 'tblTempVendorCDR_20' ) end [2025-01-27 04:24:18] Production.INFO: ProcessCDR(1,14339188,1,1,2) [2025-01-27 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339188', 'tblTempUsageDetail_20' ) start [2025-01-27 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339188', 'tblTempUsageDetail_20' ) end [2025-01-27 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:24:21] Production.INFO: ==27405== Releasing lock... [2025-01-27 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-27 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:25:05 [end_date_ymd] => 2025-01-27 04:25:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:25:05' and `end` < '2025-01-27 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-01-27 04:25:18] Production.INFO: count ==244 [2025-01-27 04:25:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:25:05 - End Time 2025-01-27 04:25:05 [2025-01-27 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339193', 'tblTempUsageDetail_20' ) start [2025-01-27 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339193', 'tblTempUsageDetail_20' ) end [2025-01-27 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339193', 'tblTempVendorCDR_20' ) start [2025-01-27 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339193', 'tblTempVendorCDR_20' ) end [2025-01-27 04:25:18] Production.INFO: ProcessCDR(1,14339193,1,1,2) [2025-01-27 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339193', 'tblTempUsageDetail_20' ) start [2025-01-27 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339193', 'tblTempUsageDetail_20' ) end [2025-01-27 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:25:21] Production.INFO: ==27524== Releasing lock... [2025-01-27 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-27 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:26:05 [end_date_ymd] => 2025-01-27 04:26:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:26:05' and `end` < '2025-01-27 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-01-27 04:26:18] Production.INFO: count ==243 [2025-01-27 04:26:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:26:05 - End Time 2025-01-27 04:26:05 [2025-01-27 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339198', 'tblTempUsageDetail_20' ) start [2025-01-27 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339198', 'tblTempUsageDetail_20' ) end [2025-01-27 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339198', 'tblTempVendorCDR_20' ) start [2025-01-27 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339198', 'tblTempVendorCDR_20' ) end [2025-01-27 04:26:18] Production.INFO: ProcessCDR(1,14339198,1,1,2) [2025-01-27 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339198', 'tblTempUsageDetail_20' ) start [2025-01-27 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339198', 'tblTempUsageDetail_20' ) end [2025-01-27 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:26:21] Production.INFO: ==27611== Releasing lock... [2025-01-27 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-27 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:27:05 [end_date_ymd] => 2025-01-27 04:27:05 [RateCDR] => 1 ) [2025-01-27 04: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-01-27 01:27:05' and `end` < '2025-01-27 04: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-01-27 04:27:19] Production.INFO: count ==242 [2025-01-27 04:27:19] Production.ERROR: pbx CDR StartTime 2025-01-27 01:27:05 - End Time 2025-01-27 04:27:05 [2025-01-27 04:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339203', 'tblTempUsageDetail_20' ) start [2025-01-27 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339203', 'tblTempUsageDetail_20' ) end [2025-01-27 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339203', 'tblTempVendorCDR_20' ) start [2025-01-27 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339203', 'tblTempVendorCDR_20' ) end [2025-01-27 04:27:19] Production.INFO: ProcessCDR(1,14339203,1,1,2) [2025-01-27 04:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339203', 'tblTempUsageDetail_20' ) start [2025-01-27 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339203', 'tblTempUsageDetail_20' ) end [2025-01-27 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:27:22] Production.INFO: ==27690== Releasing lock... [2025-01-27 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:27:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-27 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:28:05 [end_date_ymd] => 2025-01-27 04:28:05 [RateCDR] => 1 ) [2025-01-27 04: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-01-27 01:28:05' and `end` < '2025-01-27 04: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-01-27 04:28:17] Production.INFO: count ==242 [2025-01-27 04:28:17] Production.ERROR: pbx CDR StartTime 2025-01-27 01:28:05 - End Time 2025-01-27 04:28:05 [2025-01-27 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339208', 'tblTempUsageDetail_20' ) start [2025-01-27 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339208', 'tblTempUsageDetail_20' ) end [2025-01-27 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339208', 'tblTempVendorCDR_20' ) start [2025-01-27 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339208', 'tblTempVendorCDR_20' ) end [2025-01-27 04:28:17] Production.INFO: ProcessCDR(1,14339208,1,1,2) [2025-01-27 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339208', 'tblTempUsageDetail_20' ) start [2025-01-27 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339208', 'tblTempUsageDetail_20' ) end [2025-01-27 04:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:28:20] Production.INFO: ==27769== Releasing lock... [2025-01-27 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:28:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-27 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:29:05 [end_date_ymd] => 2025-01-27 04:29:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:29:05' and `end` < '2025-01-27 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-01-27 04:29:25] Production.INFO: count ==242 [2025-01-27 04:29:25] Production.ERROR: pbx CDR StartTime 2025-01-27 01:29:05 - End Time 2025-01-27 04:29:05 [2025-01-27 04:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339213', 'tblTempUsageDetail_20' ) start [2025-01-27 04:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339213', 'tblTempUsageDetail_20' ) end [2025-01-27 04:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339213', 'tblTempVendorCDR_20' ) start [2025-01-27 04:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339213', 'tblTempVendorCDR_20' ) end [2025-01-27 04:29:25] Production.INFO: ProcessCDR(1,14339213,1,1,2) [2025-01-27 04:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339213', 'tblTempUsageDetail_20' ) start [2025-01-27 04:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339213', 'tblTempUsageDetail_20' ) end [2025-01-27 04:29:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:29:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:29:28] Production.INFO: ==27852== Releasing lock... [2025-01-27 04:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:29:28] Production.INFO: 29.25 MB #Memory Used# [2025-01-27 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:30:05 [end_date_ymd] => 2025-01-27 04:30:05 [RateCDR] => 1 ) [2025-01-27 04: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-01-27 01:30:05' and `end` < '2025-01-27 04: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-01-27 04:30:18] Production.INFO: count ==242 [2025-01-27 04:30:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:30:05 - End Time 2025-01-27 04:30:05 [2025-01-27 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339218', 'tblTempUsageDetail_20' ) start [2025-01-27 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339218', 'tblTempUsageDetail_20' ) end [2025-01-27 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339218', 'tblTempVendorCDR_20' ) start [2025-01-27 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339218', 'tblTempVendorCDR_20' ) end [2025-01-27 04:30:18] Production.INFO: ProcessCDR(1,14339218,1,1,2) [2025-01-27 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339218', 'tblTempUsageDetail_20' ) start [2025-01-27 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339218', 'tblTempUsageDetail_20' ) end [2025-01-27 04:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:30:21] Production.INFO: ==27933== Releasing lock... [2025-01-27 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:30:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-27 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:31:05 [end_date_ymd] => 2025-01-27 04:31:05 [RateCDR] => 1 ) [2025-01-27 04: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-01-27 01:31:05' and `end` < '2025-01-27 04: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-01-27 04:31:18] Production.INFO: count ==235 [2025-01-27 04:31:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:31:05 - End Time 2025-01-27 04:31:05 [2025-01-27 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339225', 'tblTempUsageDetail_20' ) start [2025-01-27 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339225', 'tblTempUsageDetail_20' ) end [2025-01-27 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339225', 'tblTempVendorCDR_20' ) start [2025-01-27 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339225', 'tblTempVendorCDR_20' ) end [2025-01-27 04:31:18] Production.INFO: ProcessCDR(1,14339225,1,1,2) [2025-01-27 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339225', 'tblTempUsageDetail_20' ) start [2025-01-27 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339225', 'tblTempUsageDetail_20' ) end [2025-01-27 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:31:22] Production.INFO: ==28025== Releasing lock... [2025-01-27 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:31:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-27 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:32:05 [end_date_ymd] => 2025-01-27 04:32:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:32:05' and `end` < '2025-01-27 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-01-27 04:32:18] Production.INFO: count ==227 [2025-01-27 04:32:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:32:05 - End Time 2025-01-27 04:32:05 [2025-01-27 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339230', 'tblTempUsageDetail_20' ) start [2025-01-27 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339230', 'tblTempUsageDetail_20' ) end [2025-01-27 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339230', 'tblTempVendorCDR_20' ) start [2025-01-27 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339230', 'tblTempVendorCDR_20' ) end [2025-01-27 04:32:18] Production.INFO: ProcessCDR(1,14339230,1,1,2) [2025-01-27 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339230', 'tblTempUsageDetail_20' ) start [2025-01-27 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339230', 'tblTempUsageDetail_20' ) end [2025-01-27 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:32:21] Production.INFO: ==28193== Releasing lock... [2025-01-27 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:32:21] Production.INFO: 29 MB #Memory Used# [2025-01-27 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:33:05 [end_date_ymd] => 2025-01-27 04:33:05 [RateCDR] => 1 ) [2025-01-27 04: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-01-27 01:33:05' and `end` < '2025-01-27 04: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-01-27 04:33:17] Production.INFO: count ==223 [2025-01-27 04:33:17] Production.ERROR: pbx CDR StartTime 2025-01-27 01:33:05 - End Time 2025-01-27 04:33:05 [2025-01-27 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339235', 'tblTempUsageDetail_20' ) start [2025-01-27 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339235', 'tblTempUsageDetail_20' ) end [2025-01-27 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339235', 'tblTempVendorCDR_20' ) start [2025-01-27 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339235', 'tblTempVendorCDR_20' ) end [2025-01-27 04:33:17] Production.INFO: ProcessCDR(1,14339235,1,1,2) [2025-01-27 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339235', 'tblTempUsageDetail_20' ) start [2025-01-27 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339235', 'tblTempUsageDetail_20' ) end [2025-01-27 04:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:33:20] Production.INFO: ==28272== Releasing lock... [2025-01-27 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:33:20] Production.INFO: 29 MB #Memory Used# [2025-01-27 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:34:05 [end_date_ymd] => 2025-01-27 04:34:05 [RateCDR] => 1 ) [2025-01-27 04: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-01-27 01:34:05' and `end` < '2025-01-27 04: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-01-27 04:34:18] Production.INFO: count ==215 [2025-01-27 04:34:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:34:05 - End Time 2025-01-27 04:34:05 [2025-01-27 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339240', 'tblTempUsageDetail_20' ) start [2025-01-27 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339240', 'tblTempUsageDetail_20' ) end [2025-01-27 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339240', 'tblTempVendorCDR_20' ) start [2025-01-27 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339240', 'tblTempVendorCDR_20' ) end [2025-01-27 04:34:18] Production.INFO: ProcessCDR(1,14339240,1,1,2) [2025-01-27 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339240', 'tblTempUsageDetail_20' ) start [2025-01-27 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339240', 'tblTempUsageDetail_20' ) end [2025-01-27 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:34:21] Production.INFO: ==28355== Releasing lock... [2025-01-27 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:34:21] Production.INFO: 29 MB #Memory Used# [2025-01-27 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:35:05 [end_date_ymd] => 2025-01-27 04:35:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:35:05' and `end` < '2025-01-27 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-01-27 04:35:17] Production.INFO: count ==207 [2025-01-27 04:35:17] Production.ERROR: pbx CDR StartTime 2025-01-27 01:35:05 - End Time 2025-01-27 04:35:05 [2025-01-27 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339245', 'tblTempUsageDetail_20' ) start [2025-01-27 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339245', 'tblTempUsageDetail_20' ) end [2025-01-27 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339245', 'tblTempVendorCDR_20' ) start [2025-01-27 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339245', 'tblTempVendorCDR_20' ) end [2025-01-27 04:35:17] Production.INFO: ProcessCDR(1,14339245,1,1,2) [2025-01-27 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339245', 'tblTempUsageDetail_20' ) start [2025-01-27 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339245', 'tblTempUsageDetail_20' ) end [2025-01-27 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:35:21] Production.INFO: ==28438== Releasing lock... [2025-01-27 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:35:21] Production.INFO: 29 MB #Memory Used# [2025-01-27 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:36:05 [end_date_ymd] => 2025-01-27 04:36:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:36:05' and `end` < '2025-01-27 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-01-27 04:36:18] Production.INFO: count ==203 [2025-01-27 04:36:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:36:05 - End Time 2025-01-27 04:36:05 [2025-01-27 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339250', 'tblTempUsageDetail_20' ) start [2025-01-27 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339250', 'tblTempUsageDetail_20' ) end [2025-01-27 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339250', 'tblTempVendorCDR_20' ) start [2025-01-27 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339250', 'tblTempVendorCDR_20' ) end [2025-01-27 04:36:18] Production.INFO: ProcessCDR(1,14339250,1,1,2) [2025-01-27 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339250', 'tblTempUsageDetail_20' ) start [2025-01-27 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339250', 'tblTempUsageDetail_20' ) end [2025-01-27 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:36:21] Production.INFO: ==28521== Releasing lock... [2025-01-27 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-27 04:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:37:04 [end_date_ymd] => 2025-01-27 04:37:04 [RateCDR] => 1 ) [2025-01-27 04:37: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-01-27 01:37:04' and `end` < '2025-01-27 04:37: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-01-27 04:37:17] Production.INFO: count ==195 [2025-01-27 04:37:17] Production.ERROR: pbx CDR StartTime 2025-01-27 01:37:04 - End Time 2025-01-27 04:37:04 [2025-01-27 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339255', 'tblTempUsageDetail_20' ) start [2025-01-27 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339255', 'tblTempUsageDetail_20' ) end [2025-01-27 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339255', 'tblTempVendorCDR_20' ) start [2025-01-27 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339255', 'tblTempVendorCDR_20' ) end [2025-01-27 04:37:17] Production.INFO: ProcessCDR(1,14339255,1,1,2) [2025-01-27 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339255', 'tblTempUsageDetail_20' ) start [2025-01-27 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339255', 'tblTempUsageDetail_20' ) end [2025-01-27 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:37:20] Production.INFO: ==28609== Releasing lock... [2025-01-27 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:37:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-27 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:38:05 [end_date_ymd] => 2025-01-27 04:38:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:38:05' and `end` < '2025-01-27 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-01-27 04:38:17] Production.INFO: count ==191 [2025-01-27 04:38:17] Production.ERROR: pbx CDR StartTime 2025-01-27 01:38:05 - End Time 2025-01-27 04:38:05 [2025-01-27 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339260', 'tblTempUsageDetail_20' ) start [2025-01-27 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339260', 'tblTempUsageDetail_20' ) end [2025-01-27 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339260', 'tblTempVendorCDR_20' ) start [2025-01-27 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339260', 'tblTempVendorCDR_20' ) end [2025-01-27 04:38:17] Production.INFO: ProcessCDR(1,14339260,1,1,2) [2025-01-27 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339260', 'tblTempUsageDetail_20' ) start [2025-01-27 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339260', 'tblTempUsageDetail_20' ) end [2025-01-27 04:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:38:20] Production.INFO: ==28691== Releasing lock... [2025-01-27 04:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:38:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-27 04:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:39:06 [end_date_ymd] => 2025-01-27 04:39:06 [RateCDR] => 1 ) [2025-01-27 04: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-01-27 01:39:06' and `end` < '2025-01-27 04: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-01-27 04:39:18] Production.INFO: count ==183 [2025-01-27 04:39:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:39:06 - End Time 2025-01-27 04:39:06 [2025-01-27 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339265', 'tblTempUsageDetail_20' ) start [2025-01-27 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339265', 'tblTempUsageDetail_20' ) end [2025-01-27 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339265', 'tblTempVendorCDR_20' ) start [2025-01-27 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339265', 'tblTempVendorCDR_20' ) end [2025-01-27 04:39:18] Production.INFO: ProcessCDR(1,14339265,1,1,2) [2025-01-27 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339265', 'tblTempUsageDetail_20' ) start [2025-01-27 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339265', 'tblTempUsageDetail_20' ) end [2025-01-27 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:39:21] Production.INFO: ==28780== Releasing lock... [2025-01-27 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-27 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:40:05 [end_date_ymd] => 2025-01-27 04:40:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:40:05' and `end` < '2025-01-27 04: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-01-27 04:40:18] Production.INFO: count ==168 [2025-01-27 04:40:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:40:05 - End Time 2025-01-27 04:40:05 [2025-01-27 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339270', 'tblTempUsageDetail_20' ) start [2025-01-27 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339270', 'tblTempUsageDetail_20' ) end [2025-01-27 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339270', 'tblTempVendorCDR_20' ) start [2025-01-27 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339270', 'tblTempVendorCDR_20' ) end [2025-01-27 04:40:18] Production.INFO: ProcessCDR(1,14339270,1,1,2) [2025-01-27 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339270', 'tblTempUsageDetail_20' ) start [2025-01-27 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339270', 'tblTempUsageDetail_20' ) end [2025-01-27 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:40:21] Production.INFO: ==28906== Releasing lock... [2025-01-27 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:41:05 [end_date_ymd] => 2025-01-27 04:41:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:41:05' and `end` < '2025-01-27 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-01-27 04:41:18] Production.INFO: count ==168 [2025-01-27 04:41:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:41:05 - End Time 2025-01-27 04:41:05 [2025-01-27 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339276', 'tblTempUsageDetail_20' ) start [2025-01-27 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339276', 'tblTempUsageDetail_20' ) end [2025-01-27 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339276', 'tblTempVendorCDR_20' ) start [2025-01-27 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339276', 'tblTempVendorCDR_20' ) end [2025-01-27 04:41:18] Production.INFO: ProcessCDR(1,14339276,1,1,2) [2025-01-27 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339276', 'tblTempUsageDetail_20' ) start [2025-01-27 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339276', 'tblTempUsageDetail_20' ) end [2025-01-27 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:41:21] Production.INFO: ==28990== Releasing lock... [2025-01-27 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:42:05 [end_date_ymd] => 2025-01-27 04:42:05 [RateCDR] => 1 ) [2025-01-27 04: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-01-27 01:42:05' and `end` < '2025-01-27 04: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-01-27 04:42:17] Production.INFO: count ==167 [2025-01-27 04:42:17] Production.ERROR: pbx CDR StartTime 2025-01-27 01:42:05 - End Time 2025-01-27 04:42:05 [2025-01-27 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339281', 'tblTempUsageDetail_20' ) start [2025-01-27 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339281', 'tblTempUsageDetail_20' ) end [2025-01-27 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339281', 'tblTempVendorCDR_20' ) start [2025-01-27 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339281', 'tblTempVendorCDR_20' ) end [2025-01-27 04:42:17] Production.INFO: ProcessCDR(1,14339281,1,1,2) [2025-01-27 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339281', 'tblTempUsageDetail_20' ) start [2025-01-27 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339281', 'tblTempUsageDetail_20' ) end [2025-01-27 04:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:42:20] Production.INFO: ==29078== Releasing lock... [2025-01-27 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:42:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:43:05 [end_date_ymd] => 2025-01-27 04:43:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:43:05' and `end` < '2025-01-27 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-01-27 04:43:17] Production.INFO: count ==167 [2025-01-27 04:43:17] Production.ERROR: pbx CDR StartTime 2025-01-27 01:43:05 - End Time 2025-01-27 04:43:05 [2025-01-27 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339286', 'tblTempUsageDetail_20' ) start [2025-01-27 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339286', 'tblTempUsageDetail_20' ) end [2025-01-27 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339286', 'tblTempVendorCDR_20' ) start [2025-01-27 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339286', 'tblTempVendorCDR_20' ) end [2025-01-27 04:43:17] Production.INFO: ProcessCDR(1,14339286,1,1,2) [2025-01-27 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339286', 'tblTempUsageDetail_20' ) start [2025-01-27 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339286', 'tblTempUsageDetail_20' ) end [2025-01-27 04:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:43:20] Production.INFO: ==29165== Releasing lock... [2025-01-27 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:43:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:44:05 [end_date_ymd] => 2025-01-27 04:44:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:44:05' and `end` < '2025-01-27 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-01-27 04:44:17] Production.INFO: count ==167 [2025-01-27 04:44:17] Production.ERROR: pbx CDR StartTime 2025-01-27 01:44:05 - End Time 2025-01-27 04:44:05 [2025-01-27 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339291', 'tblTempUsageDetail_20' ) start [2025-01-27 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339291', 'tblTempUsageDetail_20' ) end [2025-01-27 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339291', 'tblTempVendorCDR_20' ) start [2025-01-27 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339291', 'tblTempVendorCDR_20' ) end [2025-01-27 04:44:17] Production.INFO: ProcessCDR(1,14339291,1,1,2) [2025-01-27 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339291', 'tblTempUsageDetail_20' ) start [2025-01-27 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339291', 'tblTempUsageDetail_20' ) end [2025-01-27 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:44:21] Production.INFO: ==29252== Releasing lock... [2025-01-27 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:45:05 [end_date_ymd] => 2025-01-27 04:45:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:45:05' and `end` < '2025-01-27 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-01-27 04:45:18] Production.INFO: count ==167 [2025-01-27 04:45:18] Production.ERROR: pbx CDR StartTime 2025-01-27 01:45:05 - End Time 2025-01-27 04:45:05 [2025-01-27 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339296', 'tblTempUsageDetail_20' ) start [2025-01-27 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339296', 'tblTempUsageDetail_20' ) end [2025-01-27 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339296', 'tblTempVendorCDR_20' ) start [2025-01-27 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339296', 'tblTempVendorCDR_20' ) end [2025-01-27 04:45:18] Production.INFO: ProcessCDR(1,14339296,1,1,2) [2025-01-27 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339296', 'tblTempUsageDetail_20' ) start [2025-01-27 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339296', 'tblTempUsageDetail_20' ) end [2025-01-27 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:45:21] Production.INFO: ==29342== Releasing lock... [2025-01-27 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 04:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:46:04 [end_date_ymd] => 2025-01-27 04:46:04 [RateCDR] => 1 ) [2025-01-27 04:46: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-01-27 01:46:04' and `end` < '2025-01-27 04:46: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-01-27 04:46:59] Production.INFO: count ==167 [2025-01-27 04:46:59] Production.ERROR: pbx CDR StartTime 2025-01-27 01:46:04 - End Time 2025-01-27 04:46:04 [2025-01-27 04:46:59] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:46:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339301', 'tblTempUsageDetail_20' ) start [2025-01-27 04:46:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339301', 'tblTempUsageDetail_20' ) end [2025-01-27 04:46:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339301', 'tblTempVendorCDR_20' ) start [2025-01-27 04:46:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339301', 'tblTempVendorCDR_20' ) end [2025-01-27 04:46:59] Production.INFO: ProcessCDR(1,14339301,1,1,2) [2025-01-27 04:46:59] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:47:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:47:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:47:03] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:47:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339301', 'tblTempUsageDetail_20' ) start [2025-01-27 04:47:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339301', 'tblTempUsageDetail_20' ) end [2025-01-27 04:47:03] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:47:03] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:47:03] Production.INFO: ==29416== Releasing lock... [2025-01-27 04:47:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:47:03] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:48:05 [end_date_ymd] => 2025-01-27 04:48:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:48:05' and `end` < '2025-01-27 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-01-27 04:48:22] Production.INFO: count ==167 [2025-01-27 04:48:22] Production.ERROR: pbx CDR StartTime 2025-01-27 01:48:05 - End Time 2025-01-27 04:48:05 [2025-01-27 04:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339310', 'tblTempUsageDetail_20' ) start [2025-01-27 04:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339310', 'tblTempUsageDetail_20' ) end [2025-01-27 04:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339310', 'tblTempVendorCDR_20' ) start [2025-01-27 04:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339310', 'tblTempVendorCDR_20' ) end [2025-01-27 04:48:22] Production.INFO: ProcessCDR(1,14339310,1,1,2) [2025-01-27 04:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339310', 'tblTempUsageDetail_20' ) start [2025-01-27 04:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339310', 'tblTempUsageDetail_20' ) end [2025-01-27 04:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:48:25] Production.INFO: ==29581== Releasing lock... [2025-01-27 04:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:48:25] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:49:05 [end_date_ymd] => 2025-01-27 04:49:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:49:05' and `end` < '2025-01-27 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-01-27 04:49:20] Production.INFO: count ==166 [2025-01-27 04:49:20] Production.ERROR: pbx CDR StartTime 2025-01-27 01:49:05 - End Time 2025-01-27 04:49:05 [2025-01-27 04:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339315', 'tblTempUsageDetail_20' ) start [2025-01-27 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339315', 'tblTempUsageDetail_20' ) end [2025-01-27 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339315', 'tblTempVendorCDR_20' ) start [2025-01-27 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339315', 'tblTempVendorCDR_20' ) end [2025-01-27 04:49:20] Production.INFO: ProcessCDR(1,14339315,1,1,2) [2025-01-27 04:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339315', 'tblTempUsageDetail_20' ) start [2025-01-27 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339315', 'tblTempUsageDetail_20' ) end [2025-01-27 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:49:23] Production.INFO: ==29665== Releasing lock... [2025-01-27 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:49:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:50:06 [end_date_ymd] => 2025-01-27 04:50:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:50:06' and `end` < '2025-01-27 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-01-27 04:50:21] Production.INFO: count ==154 [2025-01-27 04:50:21] Production.ERROR: pbx CDR StartTime 2025-01-27 01:50:06 - End Time 2025-01-27 04:50:06 [2025-01-27 04:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339321', 'tblTempUsageDetail_20' ) start [2025-01-27 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339321', 'tblTempUsageDetail_20' ) end [2025-01-27 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339321', 'tblTempVendorCDR_20' ) start [2025-01-27 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339321', 'tblTempVendorCDR_20' ) end [2025-01-27 04:50:21] Production.INFO: ProcessCDR(1,14339321,1,1,2) [2025-01-27 04:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339321', 'tblTempUsageDetail_20' ) start [2025-01-27 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339321', 'tblTempUsageDetail_20' ) end [2025-01-27 04:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:50:24] Production.INFO: ==29744== Releasing lock... [2025-01-27 04:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:50:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:51:05 [end_date_ymd] => 2025-01-27 04:51:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:51:05' and `end` < '2025-01-27 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-01-27 04:51:20] Production.INFO: count ==150 [2025-01-27 04:51:20] Production.ERROR: pbx CDR StartTime 2025-01-27 01:51:05 - End Time 2025-01-27 04:51:05 [2025-01-27 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339326', 'tblTempUsageDetail_20' ) start [2025-01-27 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339326', 'tblTempUsageDetail_20' ) end [2025-01-27 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339326', 'tblTempVendorCDR_20' ) start [2025-01-27 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339326', 'tblTempVendorCDR_20' ) end [2025-01-27 04:51:20] Production.INFO: ProcessCDR(1,14339326,1,1,2) [2025-01-27 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339326', 'tblTempUsageDetail_20' ) start [2025-01-27 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339326', 'tblTempUsageDetail_20' ) end [2025-01-27 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:51:23] Production.INFO: ==29829== Releasing lock... [2025-01-27 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:51:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:52:05 [end_date_ymd] => 2025-01-27 04:52:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:52:05' and `end` < '2025-01-27 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-01-27 04:52:19] Production.INFO: count ==150 [2025-01-27 04:52:19] Production.ERROR: pbx CDR StartTime 2025-01-27 01:52:05 - End Time 2025-01-27 04:52:05 [2025-01-27 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339331', 'tblTempUsageDetail_20' ) start [2025-01-27 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339331', 'tblTempUsageDetail_20' ) end [2025-01-27 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339331', 'tblTempVendorCDR_20' ) start [2025-01-27 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339331', 'tblTempVendorCDR_20' ) end [2025-01-27 04:52:19] Production.INFO: ProcessCDR(1,14339331,1,1,2) [2025-01-27 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339331', 'tblTempUsageDetail_20' ) start [2025-01-27 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339331', 'tblTempUsageDetail_20' ) end [2025-01-27 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:52:22] Production.INFO: ==29904== Releasing lock... [2025-01-27 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:52:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 04:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:53:06 [end_date_ymd] => 2025-01-27 04:53:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:53:06' and `end` < '2025-01-27 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-01-27 04:53:23] Production.INFO: count ==150 [2025-01-27 04:53:23] Production.ERROR: pbx CDR StartTime 2025-01-27 01:53:06 - End Time 2025-01-27 04:53:06 [2025-01-27 04:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339336', 'tblTempUsageDetail_20' ) start [2025-01-27 04:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339336', 'tblTempUsageDetail_20' ) end [2025-01-27 04:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339336', 'tblTempVendorCDR_20' ) start [2025-01-27 04:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339336', 'tblTempVendorCDR_20' ) end [2025-01-27 04:53:23] Production.INFO: ProcessCDR(1,14339336,1,1,2) [2025-01-27 04:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339336', 'tblTempUsageDetail_20' ) start [2025-01-27 04:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339336', 'tblTempUsageDetail_20' ) end [2025-01-27 04:53:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:53:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:53:26] Production.INFO: ==29986== Releasing lock... [2025-01-27 04:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:53:26] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:54:05 [end_date_ymd] => 2025-01-27 04:54:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:54:05' and `end` < '2025-01-27 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-01-27 04:54:19] Production.INFO: count ==150 [2025-01-27 04:54:19] Production.ERROR: pbx CDR StartTime 2025-01-27 01:54:05 - End Time 2025-01-27 04:54:05 [2025-01-27 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339341', 'tblTempUsageDetail_20' ) start [2025-01-27 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339341', 'tblTempUsageDetail_20' ) end [2025-01-27 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339341', 'tblTempVendorCDR_20' ) start [2025-01-27 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339341', 'tblTempVendorCDR_20' ) end [2025-01-27 04:54:19] Production.INFO: ProcessCDR(1,14339341,1,1,2) [2025-01-27 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339341', 'tblTempUsageDetail_20' ) start [2025-01-27 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339341', 'tblTempUsageDetail_20' ) end [2025-01-27 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:54:22] Production.INFO: ==30062== Releasing lock... [2025-01-27 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:54:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:55:05 [end_date_ymd] => 2025-01-27 04:55:05 [RateCDR] => 1 ) [2025-01-27 04: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-01-27 01:55:05' and `end` < '2025-01-27 04: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-01-27 04:55:19] Production.INFO: count ==150 [2025-01-27 04:55:19] Production.ERROR: pbx CDR StartTime 2025-01-27 01:55:05 - End Time 2025-01-27 04:55:05 [2025-01-27 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339346', 'tblTempUsageDetail_20' ) start [2025-01-27 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339346', 'tblTempUsageDetail_20' ) end [2025-01-27 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339346', 'tblTempVendorCDR_20' ) start [2025-01-27 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339346', 'tblTempVendorCDR_20' ) end [2025-01-27 04:55:19] Production.INFO: ProcessCDR(1,14339346,1,1,2) [2025-01-27 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339346', 'tblTempUsageDetail_20' ) start [2025-01-27 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339346', 'tblTempUsageDetail_20' ) end [2025-01-27 04:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:55:23] Production.INFO: ==30140== Releasing lock... [2025-01-27 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:55:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 04:56:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:56:07 [end_date_ymd] => 2025-01-27 04:56:07 [RateCDR] => 1 ) [2025-01-27 04:56: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-01-27 01:56:07' and `end` < '2025-01-27 04:56: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-01-27 04:56:21] Production.INFO: count ==147 [2025-01-27 04:56:21] Production.ERROR: pbx CDR StartTime 2025-01-27 01:56:07 - End Time 2025-01-27 04:56:07 [2025-01-27 04:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339351', 'tblTempUsageDetail_20' ) start [2025-01-27 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339351', 'tblTempUsageDetail_20' ) end [2025-01-27 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339351', 'tblTempVendorCDR_20' ) start [2025-01-27 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339351', 'tblTempVendorCDR_20' ) end [2025-01-27 04:56:21] Production.INFO: ProcessCDR(1,14339351,1,1,2) [2025-01-27 04:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339351', 'tblTempUsageDetail_20' ) start [2025-01-27 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339351', 'tblTempUsageDetail_20' ) end [2025-01-27 04:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:56:24] Production.INFO: ==30262== Releasing lock... [2025-01-27 04:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:56:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:57:05 [end_date_ymd] => 2025-01-27 04:57:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:57:05' and `end` < '2025-01-27 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-01-27 04:57:19] Production.INFO: count ==147 [2025-01-27 04:57:19] Production.ERROR: pbx CDR StartTime 2025-01-27 01:57:05 - End Time 2025-01-27 04:57:05 [2025-01-27 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339356', 'tblTempUsageDetail_20' ) start [2025-01-27 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339356', 'tblTempUsageDetail_20' ) end [2025-01-27 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339356', 'tblTempVendorCDR_20' ) start [2025-01-27 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339356', 'tblTempVendorCDR_20' ) end [2025-01-27 04:57:19] Production.INFO: ProcessCDR(1,14339356,1,1,2) [2025-01-27 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339356', 'tblTempUsageDetail_20' ) start [2025-01-27 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339356', 'tblTempUsageDetail_20' ) end [2025-01-27 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:57:22] Production.INFO: ==30341== Releasing lock... [2025-01-27 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:57:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:58:05 [end_date_ymd] => 2025-01-27 04:58:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:58:05' and `end` < '2025-01-27 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-01-27 04:58:22] Production.INFO: count ==146 [2025-01-27 04:58:22] Production.ERROR: pbx CDR StartTime 2025-01-27 01:58:05 - End Time 2025-01-27 04:58:05 [2025-01-27 04:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339361', 'tblTempUsageDetail_20' ) start [2025-01-27 04:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339361', 'tblTempUsageDetail_20' ) end [2025-01-27 04:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339361', 'tblTempVendorCDR_20' ) start [2025-01-27 04:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339361', 'tblTempVendorCDR_20' ) end [2025-01-27 04:58:22] Production.INFO: ProcessCDR(1,14339361,1,1,2) [2025-01-27 04:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339361', 'tblTempUsageDetail_20' ) start [2025-01-27 04:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339361', 'tblTempUsageDetail_20' ) end [2025-01-27 04:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:58:25] Production.INFO: ==30425== Releasing lock... [2025-01-27 04:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:58:25] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 01:59:05 [end_date_ymd] => 2025-01-27 04:59:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 01:59:05' and `end` < '2025-01-27 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-01-27 04:59:19] Production.INFO: count ==146 [2025-01-27 04:59:19] Production.ERROR: pbx CDR StartTime 2025-01-27 01:59:05 - End Time 2025-01-27 04:59:05 [2025-01-27 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339366', 'tblTempUsageDetail_20' ) start [2025-01-27 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339366', 'tblTempUsageDetail_20' ) end [2025-01-27 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339366', 'tblTempVendorCDR_20' ) start [2025-01-27 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339366', 'tblTempVendorCDR_20' ) end [2025-01-27 04:59:19] Production.INFO: ProcessCDR(1,14339366,1,1,2) [2025-01-27 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339366', 'tblTempUsageDetail_20' ) start [2025-01-27 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339366', 'tblTempUsageDetail_20' ) end [2025-01-27 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 04:59:22] Production.INFO: ==30501== Releasing lock... [2025-01-27 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 04:59:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:00:06 [end_date_ymd] => 2025-01-27 05:00:06 [RateCDR] => 1 ) [2025-01-27 05: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-01-27 02:00:06' and `end` < '2025-01-27 05: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-01-27 05:00:21] Production.INFO: count ==133 [2025-01-27 05:00:21] Production.ERROR: pbx CDR StartTime 2025-01-27 02:00:06 - End Time 2025-01-27 05:00:06 [2025-01-27 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339372', 'tblTempUsageDetail_20' ) start [2025-01-27 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339372', 'tblTempUsageDetail_20' ) end [2025-01-27 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339372', 'tblTempVendorCDR_20' ) start [2025-01-27 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339372', 'tblTempVendorCDR_20' ) end [2025-01-27 05:00:21] Production.INFO: ProcessCDR(1,14339372,1,1,2) [2025-01-27 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339372', 'tblTempUsageDetail_20' ) start [2025-01-27 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339372', 'tblTempUsageDetail_20' ) end [2025-01-27 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:00:24] Production.INFO: ==30587== Releasing lock... [2025-01-27 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:00:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:01:05 [end_date_ymd] => 2025-01-27 05:01:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:01:05' and `end` < '2025-01-27 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-01-27 05:01:19] Production.INFO: count ==131 [2025-01-27 05:01:19] Production.ERROR: pbx CDR StartTime 2025-01-27 02:01:05 - End Time 2025-01-27 05:01:05 [2025-01-27 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339377', 'tblTempUsageDetail_20' ) start [2025-01-27 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339377', 'tblTempUsageDetail_20' ) end [2025-01-27 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339377', 'tblTempVendorCDR_20' ) start [2025-01-27 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339377', 'tblTempVendorCDR_20' ) end [2025-01-27 05:01:19] Production.INFO: ProcessCDR(1,14339377,1,1,2) [2025-01-27 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339377', 'tblTempUsageDetail_20' ) start [2025-01-27 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339377', 'tblTempUsageDetail_20' ) end [2025-01-27 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:01:22] Production.INFO: ==30680== Releasing lock... [2025-01-27 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:01:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:02:05 [end_date_ymd] => 2025-01-27 05:02:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:02:05' and `end` < '2025-01-27 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-01-27 05:02:20] Production.INFO: count ==131 [2025-01-27 05:02:20] Production.ERROR: pbx CDR StartTime 2025-01-27 02:02:05 - End Time 2025-01-27 05:02:05 [2025-01-27 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339379', 'tblTempUsageDetail_20' ) start [2025-01-27 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339379', 'tblTempUsageDetail_20' ) end [2025-01-27 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339379', 'tblTempVendorCDR_20' ) start [2025-01-27 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339379', 'tblTempVendorCDR_20' ) end [2025-01-27 05:02:20] Production.INFO: ProcessCDR(1,14339379,1,1,2) [2025-01-27 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339379', 'tblTempUsageDetail_20' ) start [2025-01-27 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339379', 'tblTempUsageDetail_20' ) end [2025-01-27 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:02:23] Production.INFO: ==30754== Releasing lock... [2025-01-27 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:02:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:03:05 [end_date_ymd] => 2025-01-27 05:03:05 [RateCDR] => 1 ) [2025-01-27 05: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-01-27 02:03:05' and `end` < '2025-01-27 05: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-01-27 05:03:20] Production.INFO: count ==131 [2025-01-27 05:03:20] Production.ERROR: pbx CDR StartTime 2025-01-27 02:03:05 - End Time 2025-01-27 05:03:05 [2025-01-27 05:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339387', 'tblTempUsageDetail_20' ) start [2025-01-27 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339387', 'tblTempUsageDetail_20' ) end [2025-01-27 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339387', 'tblTempVendorCDR_20' ) start [2025-01-27 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339387', 'tblTempVendorCDR_20' ) end [2025-01-27 05:03:20] Production.INFO: ProcessCDR(1,14339387,1,1,2) [2025-01-27 05:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339387', 'tblTempUsageDetail_20' ) start [2025-01-27 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339387', 'tblTempUsageDetail_20' ) end [2025-01-27 05:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:03:23] Production.INFO: ==30837== Releasing lock... [2025-01-27 05:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:03:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:04:06 [end_date_ymd] => 2025-01-27 05:04:06 [RateCDR] => 1 ) [2025-01-27 05: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-01-27 02:04:06' and `end` < '2025-01-27 05: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-01-27 05:04:18] Production.INFO: count ==131 [2025-01-27 05:04:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:04:06 - End Time 2025-01-27 05:04:06 [2025-01-27 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339392', 'tblTempUsageDetail_20' ) start [2025-01-27 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339392', 'tblTempUsageDetail_20' ) end [2025-01-27 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339392', 'tblTempVendorCDR_20' ) start [2025-01-27 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339392', 'tblTempVendorCDR_20' ) end [2025-01-27 05:04:18] Production.INFO: ProcessCDR(1,14339392,1,1,2) [2025-01-27 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339392', 'tblTempUsageDetail_20' ) start [2025-01-27 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339392', 'tblTempUsageDetail_20' ) end [2025-01-27 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:04:22] Production.INFO: ==30917== Releasing lock... [2025-01-27 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:05:05 [end_date_ymd] => 2025-01-27 05:05:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:05:05' and `end` < '2025-01-27 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-01-27 05:05:17] Production.INFO: count ==131 [2025-01-27 05:05:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:05:05 - End Time 2025-01-27 05:05:05 [2025-01-27 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339397', 'tblTempUsageDetail_20' ) start [2025-01-27 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339397', 'tblTempUsageDetail_20' ) end [2025-01-27 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339397', 'tblTempVendorCDR_20' ) start [2025-01-27 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339397', 'tblTempVendorCDR_20' ) end [2025-01-27 05:05:17] Production.INFO: ProcessCDR(1,14339397,1,1,2) [2025-01-27 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339397', 'tblTempUsageDetail_20' ) start [2025-01-27 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339397', 'tblTempUsageDetail_20' ) end [2025-01-27 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:05:20] Production.INFO: ==30995== Releasing lock... [2025-01-27 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:05:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:06:05 [end_date_ymd] => 2025-01-27 05:06:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:06:05' and `end` < '2025-01-27 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-01-27 05:06:22] Production.INFO: count ==131 [2025-01-27 05:06:22] Production.ERROR: pbx CDR StartTime 2025-01-27 02:06:05 - End Time 2025-01-27 05:06:05 [2025-01-27 05:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339402', 'tblTempUsageDetail_20' ) start [2025-01-27 05:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339402', 'tblTempUsageDetail_20' ) end [2025-01-27 05:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339402', 'tblTempVendorCDR_20' ) start [2025-01-27 05:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339402', 'tblTempVendorCDR_20' ) end [2025-01-27 05:06:22] Production.INFO: ProcessCDR(1,14339402,1,1,2) [2025-01-27 05:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339402', 'tblTempUsageDetail_20' ) start [2025-01-27 05:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339402', 'tblTempUsageDetail_20' ) end [2025-01-27 05:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:06:25] Production.INFO: ==31074== Releasing lock... [2025-01-27 05:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:06:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:07:04 [end_date_ymd] => 2025-01-27 05:07:04 [RateCDR] => 1 ) [2025-01-27 05:07: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-01-27 02:07:04' and `end` < '2025-01-27 05:07: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-01-27 05:07:17] Production.INFO: count ==131 [2025-01-27 05:07:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:07:04 - End Time 2025-01-27 05:07:04 [2025-01-27 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339407', 'tblTempUsageDetail_20' ) start [2025-01-27 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339407', 'tblTempUsageDetail_20' ) end [2025-01-27 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339407', 'tblTempVendorCDR_20' ) start [2025-01-27 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339407', 'tblTempVendorCDR_20' ) end [2025-01-27 05:07:17] Production.INFO: ProcessCDR(1,14339407,1,1,2) [2025-01-27 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339407', 'tblTempUsageDetail_20' ) start [2025-01-27 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339407', 'tblTempUsageDetail_20' ) end [2025-01-27 05:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:07:20] Production.INFO: ==31151== Releasing lock... [2025-01-27 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:07:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:08:05 [end_date_ymd] => 2025-01-27 05:08:05 [RateCDR] => 1 ) [2025-01-27 05: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-01-27 02:08:05' and `end` < '2025-01-27 05: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-01-27 05:08:18] Production.INFO: count ==131 [2025-01-27 05:08:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:08:05 - End Time 2025-01-27 05:08:05 [2025-01-27 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339412', 'tblTempUsageDetail_20' ) start [2025-01-27 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339412', 'tblTempUsageDetail_20' ) end [2025-01-27 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339412', 'tblTempVendorCDR_20' ) start [2025-01-27 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339412', 'tblTempVendorCDR_20' ) end [2025-01-27 05:08:18] Production.INFO: ProcessCDR(1,14339412,1,1,2) [2025-01-27 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339412', 'tblTempUsageDetail_20' ) start [2025-01-27 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339412', 'tblTempUsageDetail_20' ) end [2025-01-27 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:08:21] Production.INFO: ==31230== Releasing lock... [2025-01-27 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:09:04 [end_date_ymd] => 2025-01-27 05:09:04 [RateCDR] => 1 ) [2025-01-27 05:09: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-01-27 02:09:04' and `end` < '2025-01-27 05:09: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-01-27 05:09:16] Production.INFO: count ==131 [2025-01-27 05:09:16] Production.ERROR: pbx CDR StartTime 2025-01-27 02:09:04 - End Time 2025-01-27 05:09:04 [2025-01-27 05:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339417', 'tblTempUsageDetail_20' ) start [2025-01-27 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339417', 'tblTempUsageDetail_20' ) end [2025-01-27 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339417', 'tblTempVendorCDR_20' ) start [2025-01-27 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339417', 'tblTempVendorCDR_20' ) end [2025-01-27 05:09:17] Production.INFO: ProcessCDR(1,14339417,1,1,2) [2025-01-27 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339417', 'tblTempUsageDetail_20' ) start [2025-01-27 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339417', 'tblTempUsageDetail_20' ) end [2025-01-27 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:09:20] Production.INFO: ==31305== Releasing lock... [2025-01-27 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:09:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:10:06 [end_date_ymd] => 2025-01-27 05:10:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:10:06' and `end` < '2025-01-27 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-01-27 05:10:19] Production.INFO: count ==129 [2025-01-27 05:10:19] Production.ERROR: pbx CDR StartTime 2025-01-27 02:10:06 - End Time 2025-01-27 05:10:06 [2025-01-27 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339423', 'tblTempUsageDetail_20' ) start [2025-01-27 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339423', 'tblTempUsageDetail_20' ) end [2025-01-27 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339423', 'tblTempVendorCDR_20' ) start [2025-01-27 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339423', 'tblTempVendorCDR_20' ) end [2025-01-27 05:10:19] Production.INFO: ProcessCDR(1,14339423,1,1,2) [2025-01-27 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339423', 'tblTempUsageDetail_20' ) start [2025-01-27 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339423', 'tblTempUsageDetail_20' ) end [2025-01-27 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:10:22] Production.INFO: ==31386== Releasing lock... [2025-01-27 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:10:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:11:05 [end_date_ymd] => 2025-01-27 05:11:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:11:05' and `end` < '2025-01-27 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-01-27 05:11:18] Production.INFO: count ==129 [2025-01-27 05:11:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:11:05 - End Time 2025-01-27 05:11:05 [2025-01-27 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339428', 'tblTempUsageDetail_20' ) start [2025-01-27 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339428', 'tblTempUsageDetail_20' ) end [2025-01-27 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339428', 'tblTempVendorCDR_20' ) start [2025-01-27 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339428', 'tblTempVendorCDR_20' ) end [2025-01-27 05:11:18] Production.INFO: ProcessCDR(1,14339428,1,1,2) [2025-01-27 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339428', 'tblTempUsageDetail_20' ) start [2025-01-27 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339428', 'tblTempUsageDetail_20' ) end [2025-01-27 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:11:21] Production.INFO: ==31507== Releasing lock... [2025-01-27 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:12:05 [end_date_ymd] => 2025-01-27 05:12:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:12:05' and `end` < '2025-01-27 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-01-27 05:12:17] Production.INFO: count ==129 [2025-01-27 05:12:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:12:05 - End Time 2025-01-27 05:12:05 [2025-01-27 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339433', 'tblTempUsageDetail_20' ) start [2025-01-27 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339433', 'tblTempUsageDetail_20' ) end [2025-01-27 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339433', 'tblTempVendorCDR_20' ) start [2025-01-27 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339433', 'tblTempVendorCDR_20' ) end [2025-01-27 05:12:17] Production.INFO: ProcessCDR(1,14339433,1,1,2) [2025-01-27 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339433', 'tblTempUsageDetail_20' ) start [2025-01-27 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339433', 'tblTempUsageDetail_20' ) end [2025-01-27 05:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:12:20] Production.INFO: ==31579== Releasing lock... [2025-01-27 05:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:12:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:13:05 [end_date_ymd] => 2025-01-27 05:13:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:13:05' and `end` < '2025-01-27 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-01-27 05:13:18] Production.INFO: count ==129 [2025-01-27 05:13:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:13:05 - End Time 2025-01-27 05:13:05 [2025-01-27 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339438', 'tblTempUsageDetail_20' ) start [2025-01-27 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339438', 'tblTempUsageDetail_20' ) end [2025-01-27 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339438', 'tblTempVendorCDR_20' ) start [2025-01-27 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339438', 'tblTempVendorCDR_20' ) end [2025-01-27 05:13:18] Production.INFO: ProcessCDR(1,14339438,1,1,2) [2025-01-27 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339438', 'tblTempUsageDetail_20' ) start [2025-01-27 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339438', 'tblTempUsageDetail_20' ) end [2025-01-27 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:13:21] Production.INFO: ==31658== Releasing lock... [2025-01-27 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:14:05 [end_date_ymd] => 2025-01-27 05:14:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:14:05' and `end` < '2025-01-27 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-01-27 05:14:18] Production.INFO: count ==129 [2025-01-27 05:14:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:14:05 - End Time 2025-01-27 05:14:05 [2025-01-27 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339443', 'tblTempUsageDetail_20' ) start [2025-01-27 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339443', 'tblTempUsageDetail_20' ) end [2025-01-27 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339443', 'tblTempVendorCDR_20' ) start [2025-01-27 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339443', 'tblTempVendorCDR_20' ) end [2025-01-27 05:14:18] Production.INFO: ProcessCDR(1,14339443,1,1,2) [2025-01-27 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339443', 'tblTempUsageDetail_20' ) start [2025-01-27 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339443', 'tblTempUsageDetail_20' ) end [2025-01-27 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:14:21] Production.INFO: ==31736== Releasing lock... [2025-01-27 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:15:05 [end_date_ymd] => 2025-01-27 05:15:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:15:05' and `end` < '2025-01-27 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-01-27 05:15:18] Production.INFO: count ==129 [2025-01-27 05:15:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:15:05 - End Time 2025-01-27 05:15:05 [2025-01-27 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339448', 'tblTempUsageDetail_20' ) start [2025-01-27 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339448', 'tblTempUsageDetail_20' ) end [2025-01-27 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339448', 'tblTempVendorCDR_20' ) start [2025-01-27 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339448', 'tblTempVendorCDR_20' ) end [2025-01-27 05:15:18] Production.INFO: ProcessCDR(1,14339448,1,1,2) [2025-01-27 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339448', 'tblTempUsageDetail_20' ) start [2025-01-27 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339448', 'tblTempUsageDetail_20' ) end [2025-01-27 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:15:21] Production.INFO: ==31811== Releasing lock... [2025-01-27 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:16:04 [end_date_ymd] => 2025-01-27 05:16:04 [RateCDR] => 1 ) [2025-01-27 05:16: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-01-27 02:16:04' and `end` < '2025-01-27 05:16: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-01-27 05:16:17] Production.INFO: count ==129 [2025-01-27 05:16:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:16:04 - End Time 2025-01-27 05:16:04 [2025-01-27 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339453', 'tblTempUsageDetail_20' ) start [2025-01-27 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339453', 'tblTempUsageDetail_20' ) end [2025-01-27 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339453', 'tblTempVendorCDR_20' ) start [2025-01-27 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339453', 'tblTempVendorCDR_20' ) end [2025-01-27 05:16:17] Production.INFO: ProcessCDR(1,14339453,1,1,2) [2025-01-27 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339453', 'tblTempUsageDetail_20' ) start [2025-01-27 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339453', 'tblTempUsageDetail_20' ) end [2025-01-27 05:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:16:20] Production.INFO: ==31887== Releasing lock... [2025-01-27 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:16:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:17:05 [end_date_ymd] => 2025-01-27 05:17:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:17:05' and `end` < '2025-01-27 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-01-27 05:17:17] Production.INFO: count ==129 [2025-01-27 05:17:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:17:05 - End Time 2025-01-27 05:17:05 [2025-01-27 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339458', 'tblTempUsageDetail_20' ) start [2025-01-27 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339458', 'tblTempUsageDetail_20' ) end [2025-01-27 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339458', 'tblTempVendorCDR_20' ) start [2025-01-27 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339458', 'tblTempVendorCDR_20' ) end [2025-01-27 05:17:17] Production.INFO: ProcessCDR(1,14339458,1,1,2) [2025-01-27 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339458', 'tblTempUsageDetail_20' ) start [2025-01-27 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339458', 'tblTempUsageDetail_20' ) end [2025-01-27 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:17:20] Production.INFO: ==31962== Releasing lock... [2025-01-27 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:17:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:18:06 [end_date_ymd] => 2025-01-27 05:18:06 [RateCDR] => 1 ) [2025-01-27 05: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-01-27 02:18:06' and `end` < '2025-01-27 05: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-01-27 05:18:18] Production.INFO: count ==129 [2025-01-27 05:18:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:18:06 - End Time 2025-01-27 05:18:06 [2025-01-27 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339463', 'tblTempUsageDetail_20' ) start [2025-01-27 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339463', 'tblTempUsageDetail_20' ) end [2025-01-27 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339463', 'tblTempVendorCDR_20' ) start [2025-01-27 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339463', 'tblTempVendorCDR_20' ) end [2025-01-27 05:18:18] Production.INFO: ProcessCDR(1,14339463,1,1,2) [2025-01-27 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339463', 'tblTempUsageDetail_20' ) start [2025-01-27 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339463', 'tblTempUsageDetail_20' ) end [2025-01-27 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:18:21] Production.INFO: ==32039== Releasing lock... [2025-01-27 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:19:05 [end_date_ymd] => 2025-01-27 05:19:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:19:05' and `end` < '2025-01-27 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-01-27 05:19:17] Production.INFO: count ==129 [2025-01-27 05:19:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:19:05 - End Time 2025-01-27 05:19:05 [2025-01-27 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339468', 'tblTempUsageDetail_20' ) start [2025-01-27 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339468', 'tblTempUsageDetail_20' ) end [2025-01-27 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339468', 'tblTempVendorCDR_20' ) start [2025-01-27 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339468', 'tblTempVendorCDR_20' ) end [2025-01-27 05:19:17] Production.INFO: ProcessCDR(1,14339468,1,1,2) [2025-01-27 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339468', 'tblTempUsageDetail_20' ) start [2025-01-27 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339468', 'tblTempUsageDetail_20' ) end [2025-01-27 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:19:20] Production.INFO: ==32110== Releasing lock... [2025-01-27 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:19:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:20:06 [end_date_ymd] => 2025-01-27 05:20:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:20:06' and `end` < '2025-01-27 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-01-27 05:20:18] Production.INFO: count ==129 [2025-01-27 05:20:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:20:06 - End Time 2025-01-27 05:20:06 [2025-01-27 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339474', 'tblTempUsageDetail_20' ) start [2025-01-27 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339474', 'tblTempUsageDetail_20' ) end [2025-01-27 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339474', 'tblTempVendorCDR_20' ) start [2025-01-27 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339474', 'tblTempVendorCDR_20' ) end [2025-01-27 05:20:19] Production.INFO: ProcessCDR(1,14339474,1,1,2) [2025-01-27 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339474', 'tblTempUsageDetail_20' ) start [2025-01-27 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339474', 'tblTempUsageDetail_20' ) end [2025-01-27 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:20:22] Production.INFO: ==32186== Releasing lock... [2025-01-27 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:21:05 [end_date_ymd] => 2025-01-27 05:21:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:21:05' and `end` < '2025-01-27 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-01-27 05:21:17] Production.INFO: count ==129 [2025-01-27 05:21:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:21:05 - End Time 2025-01-27 05:21:05 [2025-01-27 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339479', 'tblTempUsageDetail_20' ) start [2025-01-27 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339479', 'tblTempUsageDetail_20' ) end [2025-01-27 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339479', 'tblTempVendorCDR_20' ) start [2025-01-27 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339479', 'tblTempVendorCDR_20' ) end [2025-01-27 05:21:17] Production.INFO: ProcessCDR(1,14339479,1,1,2) [2025-01-27 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339479', 'tblTempUsageDetail_20' ) start [2025-01-27 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339479', 'tblTempUsageDetail_20' ) end [2025-01-27 05:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:21:20] Production.INFO: ==32260== Releasing lock... [2025-01-27 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:21:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:22:05 [end_date_ymd] => 2025-01-27 05:22:05 [RateCDR] => 1 ) [2025-01-27 05: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-01-27 02:22:05' and `end` < '2025-01-27 05: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-01-27 05:22:17] Production.INFO: count ==129 [2025-01-27 05:22:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:22:05 - End Time 2025-01-27 05:22:05 [2025-01-27 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339484', 'tblTempUsageDetail_20' ) start [2025-01-27 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339484', 'tblTempUsageDetail_20' ) end [2025-01-27 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339484', 'tblTempVendorCDR_20' ) start [2025-01-27 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339484', 'tblTempVendorCDR_20' ) end [2025-01-27 05:22:17] Production.INFO: ProcessCDR(1,14339484,1,1,2) [2025-01-27 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339484', 'tblTempUsageDetail_20' ) start [2025-01-27 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339484', 'tblTempUsageDetail_20' ) end [2025-01-27 05:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:22:20] Production.INFO: ==32336== Releasing lock... [2025-01-27 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:22:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:23:04 [end_date_ymd] => 2025-01-27 05:23:04 [RateCDR] => 1 ) [2025-01-27 05: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-01-27 02:23:04' and `end` < '2025-01-27 05: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-01-27 05:23:17] Production.INFO: count ==129 [2025-01-27 05:23:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:23:04 - End Time 2025-01-27 05:23:04 [2025-01-27 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339489', 'tblTempUsageDetail_20' ) start [2025-01-27 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339489', 'tblTempUsageDetail_20' ) end [2025-01-27 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339489', 'tblTempVendorCDR_20' ) start [2025-01-27 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339489', 'tblTempVendorCDR_20' ) end [2025-01-27 05:23:17] Production.INFO: ProcessCDR(1,14339489,1,1,2) [2025-01-27 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339489', 'tblTempUsageDetail_20' ) start [2025-01-27 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339489', 'tblTempUsageDetail_20' ) end [2025-01-27 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:23:20] Production.INFO: ==32412== Releasing lock... [2025-01-27 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:23:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:24:05 [end_date_ymd] => 2025-01-27 05:24:05 [RateCDR] => 1 ) [2025-01-27 05: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-01-27 02:24:05' and `end` < '2025-01-27 05: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-01-27 05:24:17] Production.INFO: count ==129 [2025-01-27 05:24:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:24:05 - End Time 2025-01-27 05:24:05 [2025-01-27 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339494', 'tblTempUsageDetail_20' ) start [2025-01-27 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339494', 'tblTempUsageDetail_20' ) end [2025-01-27 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339494', 'tblTempVendorCDR_20' ) start [2025-01-27 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339494', 'tblTempVendorCDR_20' ) end [2025-01-27 05:24:17] Production.INFO: ProcessCDR(1,14339494,1,1,2) [2025-01-27 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339494', 'tblTempUsageDetail_20' ) start [2025-01-27 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339494', 'tblTempUsageDetail_20' ) end [2025-01-27 05:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:24:20] Production.INFO: ==32484== Releasing lock... [2025-01-27 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:24:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:25:05 [end_date_ymd] => 2025-01-27 05:25:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:25:05' and `end` < '2025-01-27 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-01-27 05:25:17] Production.INFO: count ==129 [2025-01-27 05:25:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:25:05 - End Time 2025-01-27 05:25:05 [2025-01-27 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339499', 'tblTempUsageDetail_20' ) start [2025-01-27 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339499', 'tblTempUsageDetail_20' ) end [2025-01-27 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339499', 'tblTempVendorCDR_20' ) start [2025-01-27 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339499', 'tblTempVendorCDR_20' ) end [2025-01-27 05:25:17] Production.INFO: ProcessCDR(1,14339499,1,1,2) [2025-01-27 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339499', 'tblTempUsageDetail_20' ) start [2025-01-27 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339499', 'tblTempUsageDetail_20' ) end [2025-01-27 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:25:20] Production.INFO: ==32558== Releasing lock... [2025-01-27 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:25:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:26:05 [end_date_ymd] => 2025-01-27 05:26:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:26:05' and `end` < '2025-01-27 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-01-27 05:26:18] Production.INFO: count ==126 [2025-01-27 05:26:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:26:05 - End Time 2025-01-27 05:26:05 [2025-01-27 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339504', 'tblTempUsageDetail_20' ) start [2025-01-27 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339504', 'tblTempUsageDetail_20' ) end [2025-01-27 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339504', 'tblTempVendorCDR_20' ) start [2025-01-27 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339504', 'tblTempVendorCDR_20' ) end [2025-01-27 05:26:18] Production.INFO: ProcessCDR(1,14339504,1,1,2) [2025-01-27 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339504', 'tblTempUsageDetail_20' ) start [2025-01-27 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339504', 'tblTempUsageDetail_20' ) end [2025-01-27 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:26:21] Production.INFO: ==32632== Releasing lock... [2025-01-27 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:27:04 [end_date_ymd] => 2025-01-27 05:27:04 [RateCDR] => 1 ) [2025-01-27 05:27: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-01-27 02:27:04' and `end` < '2025-01-27 05:27: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-01-27 05:27:17] Production.INFO: count ==124 [2025-01-27 05:27:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:27:04 - End Time 2025-01-27 05:27:04 [2025-01-27 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339509', 'tblTempUsageDetail_20' ) start [2025-01-27 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339509', 'tblTempUsageDetail_20' ) end [2025-01-27 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339509', 'tblTempVendorCDR_20' ) start [2025-01-27 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339509', 'tblTempVendorCDR_20' ) end [2025-01-27 05:27:17] Production.INFO: ProcessCDR(1,14339509,1,1,2) [2025-01-27 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339509', 'tblTempUsageDetail_20' ) start [2025-01-27 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339509', 'tblTempUsageDetail_20' ) end [2025-01-27 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:27:20] Production.INFO: ==32740== Releasing lock... [2025-01-27 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:27:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:28:05 [end_date_ymd] => 2025-01-27 05:28:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:28:05' and `end` < '2025-01-27 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-01-27 05:28:18] Production.INFO: count ==124 [2025-01-27 05:28:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:28:05 - End Time 2025-01-27 05:28:05 [2025-01-27 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339514', 'tblTempUsageDetail_20' ) start [2025-01-27 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339514', 'tblTempUsageDetail_20' ) end [2025-01-27 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339514', 'tblTempVendorCDR_20' ) start [2025-01-27 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339514', 'tblTempVendorCDR_20' ) end [2025-01-27 05:28:18] Production.INFO: ProcessCDR(1,14339514,1,1,2) [2025-01-27 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339514', 'tblTempUsageDetail_20' ) start [2025-01-27 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339514', 'tblTempUsageDetail_20' ) end [2025-01-27 05:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:28:20] Production.INFO: ==365== Releasing lock... [2025-01-27 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:28:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:29:05 [end_date_ymd] => 2025-01-27 05:29:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:29:05' and `end` < '2025-01-27 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-01-27 05:29:18] Production.INFO: count ==124 [2025-01-27 05:29:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:29:05 - End Time 2025-01-27 05:29:05 [2025-01-27 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339519', 'tblTempUsageDetail_20' ) start [2025-01-27 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339519', 'tblTempUsageDetail_20' ) end [2025-01-27 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339519', 'tblTempVendorCDR_20' ) start [2025-01-27 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339519', 'tblTempVendorCDR_20' ) end [2025-01-27 05:29:18] Production.INFO: ProcessCDR(1,14339519,1,1,2) [2025-01-27 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339519', 'tblTempUsageDetail_20' ) start [2025-01-27 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339519', 'tblTempUsageDetail_20' ) end [2025-01-27 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:29:21] Production.INFO: ==440== Releasing lock... [2025-01-27 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:30:05 [end_date_ymd] => 2025-01-27 05:30:05 [RateCDR] => 1 ) [2025-01-27 05: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-01-27 02:30:05' and `end` < '2025-01-27 05: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-01-27 05:30:17] Production.INFO: count ==115 [2025-01-27 05:30:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:30:05 - End Time 2025-01-27 05:30:05 [2025-01-27 05:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339524', 'tblTempUsageDetail_20' ) start [2025-01-27 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339524', 'tblTempUsageDetail_20' ) end [2025-01-27 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339524', 'tblTempVendorCDR_20' ) start [2025-01-27 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339524', 'tblTempVendorCDR_20' ) end [2025-01-27 05:30:17] Production.INFO: ProcessCDR(1,14339524,1,1,2) [2025-01-27 05:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339524', 'tblTempUsageDetail_20' ) start [2025-01-27 05:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339524', 'tblTempUsageDetail_20' ) end [2025-01-27 05:30:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:30:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:30:20] Production.INFO: ==519== Releasing lock... [2025-01-27 05:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:30:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:31:05 [end_date_ymd] => 2025-01-27 05:31:05 [RateCDR] => 1 ) [2025-01-27 05: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-01-27 02:31:05' and `end` < '2025-01-27 05: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-01-27 05:31:18] Production.INFO: count ==111 [2025-01-27 05:31:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:31:05 - End Time 2025-01-27 05:31:05 [2025-01-27 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339530', 'tblTempUsageDetail_20' ) start [2025-01-27 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339530', 'tblTempUsageDetail_20' ) end [2025-01-27 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339530', 'tblTempVendorCDR_20' ) start [2025-01-27 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339530', 'tblTempVendorCDR_20' ) end [2025-01-27 05:31:18] Production.INFO: ProcessCDR(1,14339530,1,1,2) [2025-01-27 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339530', 'tblTempUsageDetail_20' ) start [2025-01-27 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339530', 'tblTempUsageDetail_20' ) end [2025-01-27 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:31:21] Production.INFO: ==597== Releasing lock... [2025-01-27 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:32:04 [end_date_ymd] => 2025-01-27 05:32:04 [RateCDR] => 1 ) [2025-01-27 05:32: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-01-27 02:32:04' and `end` < '2025-01-27 05:32: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-01-27 05:32:17] Production.INFO: count ==110 [2025-01-27 05:32:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:32:04 - End Time 2025-01-27 05:32:04 [2025-01-27 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339535', 'tblTempUsageDetail_20' ) start [2025-01-27 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339535', 'tblTempUsageDetail_20' ) end [2025-01-27 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339535', 'tblTempVendorCDR_20' ) start [2025-01-27 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339535', 'tblTempVendorCDR_20' ) end [2025-01-27 05:32:17] Production.INFO: ProcessCDR(1,14339535,1,1,2) [2025-01-27 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339535', 'tblTempUsageDetail_20' ) start [2025-01-27 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339535', 'tblTempUsageDetail_20' ) end [2025-01-27 05:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:32:20] Production.INFO: ==684== Releasing lock... [2025-01-27 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:32:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:33:05 [end_date_ymd] => 2025-01-27 05:33:05 [RateCDR] => 1 ) [2025-01-27 05: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-01-27 02:33:05' and `end` < '2025-01-27 05: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-01-27 05:33:17] Production.INFO: count ==110 [2025-01-27 05:33:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:33:05 - End Time 2025-01-27 05:33:05 [2025-01-27 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339540', 'tblTempUsageDetail_20' ) start [2025-01-27 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339540', 'tblTempUsageDetail_20' ) end [2025-01-27 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339540', 'tblTempVendorCDR_20' ) start [2025-01-27 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339540', 'tblTempVendorCDR_20' ) end [2025-01-27 05:33:17] Production.INFO: ProcessCDR(1,14339540,1,1,2) [2025-01-27 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339540', 'tblTempUsageDetail_20' ) start [2025-01-27 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339540', 'tblTempUsageDetail_20' ) end [2025-01-27 05:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:33:20] Production.INFO: ==769== Releasing lock... [2025-01-27 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:33:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:34:05 [end_date_ymd] => 2025-01-27 05:34:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:34:05' and `end` < '2025-01-27 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-01-27 05:34:17] Production.INFO: count ==110 [2025-01-27 05:34:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:34:05 - End Time 2025-01-27 05:34:05 [2025-01-27 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339545', 'tblTempUsageDetail_20' ) start [2025-01-27 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339545', 'tblTempUsageDetail_20' ) end [2025-01-27 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339545', 'tblTempVendorCDR_20' ) start [2025-01-27 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339545', 'tblTempVendorCDR_20' ) end [2025-01-27 05:34:17] Production.INFO: ProcessCDR(1,14339545,1,1,2) [2025-01-27 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339545', 'tblTempUsageDetail_20' ) start [2025-01-27 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339545', 'tblTempUsageDetail_20' ) end [2025-01-27 05:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:34:20] Production.INFO: ==840== Releasing lock... [2025-01-27 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:34:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:35:05 [end_date_ymd] => 2025-01-27 05:35:05 [RateCDR] => 1 ) [2025-01-27 05: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-01-27 02:35:05' and `end` < '2025-01-27 05: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-01-27 05:35:18] Production.INFO: count ==110 [2025-01-27 05:35:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:35:05 - End Time 2025-01-27 05:35:05 [2025-01-27 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339550', 'tblTempUsageDetail_20' ) start [2025-01-27 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339550', 'tblTempUsageDetail_20' ) end [2025-01-27 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339550', 'tblTempVendorCDR_20' ) start [2025-01-27 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339550', 'tblTempVendorCDR_20' ) end [2025-01-27 05:35:18] Production.INFO: ProcessCDR(1,14339550,1,1,2) [2025-01-27 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339550', 'tblTempUsageDetail_20' ) start [2025-01-27 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339550', 'tblTempUsageDetail_20' ) end [2025-01-27 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:35:21] Production.INFO: ==912== Releasing lock... [2025-01-27 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:36:05 [end_date_ymd] => 2025-01-27 05:36:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:36:05' and `end` < '2025-01-27 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-01-27 05:36:18] Production.INFO: count ==110 [2025-01-27 05:36:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:36:05 - End Time 2025-01-27 05:36:05 [2025-01-27 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339555', 'tblTempUsageDetail_20' ) start [2025-01-27 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339555', 'tblTempUsageDetail_20' ) end [2025-01-27 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339555', 'tblTempVendorCDR_20' ) start [2025-01-27 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339555', 'tblTempVendorCDR_20' ) end [2025-01-27 05:36:18] Production.INFO: ProcessCDR(1,14339555,1,1,2) [2025-01-27 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339555', 'tblTempUsageDetail_20' ) start [2025-01-27 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339555', 'tblTempUsageDetail_20' ) end [2025-01-27 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:36:21] Production.INFO: ==984== Releasing lock... [2025-01-27 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:37:05 [end_date_ymd] => 2025-01-27 05:37:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:37:05' and `end` < '2025-01-27 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-01-27 05:37:17] Production.INFO: count ==110 [2025-01-27 05:37:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:37:05 - End Time 2025-01-27 05:37:05 [2025-01-27 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339560', 'tblTempUsageDetail_20' ) start [2025-01-27 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339560', 'tblTempUsageDetail_20' ) end [2025-01-27 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339560', 'tblTempVendorCDR_20' ) start [2025-01-27 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339560', 'tblTempVendorCDR_20' ) end [2025-01-27 05:37:18] Production.INFO: ProcessCDR(1,14339560,1,1,2) [2025-01-27 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339560', 'tblTempUsageDetail_20' ) start [2025-01-27 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339560', 'tblTempUsageDetail_20' ) end [2025-01-27 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:37:21] Production.INFO: ==1055== Releasing lock... [2025-01-27 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:38:05 [end_date_ymd] => 2025-01-27 05:38:05 [RateCDR] => 1 ) [2025-01-27 05: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-01-27 02:38:05' and `end` < '2025-01-27 05: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-01-27 05:38:18] Production.INFO: count ==110 [2025-01-27 05:38:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:38:05 - End Time 2025-01-27 05:38:05 [2025-01-27 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339565', 'tblTempUsageDetail_20' ) start [2025-01-27 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339565', 'tblTempUsageDetail_20' ) end [2025-01-27 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339565', 'tblTempVendorCDR_20' ) start [2025-01-27 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339565', 'tblTempVendorCDR_20' ) end [2025-01-27 05:38:18] Production.INFO: ProcessCDR(1,14339565,1,1,2) [2025-01-27 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339565', 'tblTempUsageDetail_20' ) start [2025-01-27 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339565', 'tblTempUsageDetail_20' ) end [2025-01-27 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:38:21] Production.INFO: ==1127== Releasing lock... [2025-01-27 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:39:05 [end_date_ymd] => 2025-01-27 05:39:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:39:05' and `end` < '2025-01-27 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-01-27 05:39:18] Production.INFO: count ==110 [2025-01-27 05:39:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:39:05 - End Time 2025-01-27 05:39:05 [2025-01-27 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339570', 'tblTempUsageDetail_20' ) start [2025-01-27 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339570', 'tblTempUsageDetail_20' ) end [2025-01-27 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339570', 'tblTempVendorCDR_20' ) start [2025-01-27 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339570', 'tblTempVendorCDR_20' ) end [2025-01-27 05:39:18] Production.INFO: ProcessCDR(1,14339570,1,1,2) [2025-01-27 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339570', 'tblTempUsageDetail_20' ) start [2025-01-27 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339570', 'tblTempUsageDetail_20' ) end [2025-01-27 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:39:21] Production.INFO: ==1203== Releasing lock... [2025-01-27 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:40:06 [end_date_ymd] => 2025-01-27 05:40:06 [RateCDR] => 1 ) [2025-01-27 05: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-01-27 02:40:06' and `end` < '2025-01-27 05: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-01-27 05:40:18] Production.INFO: count ==107 [2025-01-27 05:40:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:40:06 - End Time 2025-01-27 05:40:06 [2025-01-27 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339575', 'tblTempUsageDetail_20' ) start [2025-01-27 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339575', 'tblTempUsageDetail_20' ) end [2025-01-27 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339575', 'tblTempVendorCDR_20' ) start [2025-01-27 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339575', 'tblTempVendorCDR_20' ) end [2025-01-27 05:40:18] Production.INFO: ProcessCDR(1,14339575,1,1,2) [2025-01-27 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339575', 'tblTempUsageDetail_20' ) start [2025-01-27 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339575', 'tblTempUsageDetail_20' ) end [2025-01-27 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:40:21] Production.INFO: ==1288== Releasing lock... [2025-01-27 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:41:05 [end_date_ymd] => 2025-01-27 05:41:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:41:05' and `end` < '2025-01-27 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-01-27 05:41:17] Production.INFO: count ==107 [2025-01-27 05:41:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:41:05 - End Time 2025-01-27 05:41:05 [2025-01-27 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339581', 'tblTempUsageDetail_20' ) start [2025-01-27 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339581', 'tblTempUsageDetail_20' ) end [2025-01-27 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339581', 'tblTempVendorCDR_20' ) start [2025-01-27 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339581', 'tblTempVendorCDR_20' ) end [2025-01-27 05:41:17] Production.INFO: ProcessCDR(1,14339581,1,1,2) [2025-01-27 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339581', 'tblTempUsageDetail_20' ) start [2025-01-27 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339581', 'tblTempUsageDetail_20' ) end [2025-01-27 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:41:20] Production.INFO: ==1362== Releasing lock... [2025-01-27 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:41:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:42:05 [end_date_ymd] => 2025-01-27 05:42:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:42:05' and `end` < '2025-01-27 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-01-27 05:42:17] Production.INFO: count ==107 [2025-01-27 05:42:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:42:05 - End Time 2025-01-27 05:42:05 [2025-01-27 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339586', 'tblTempUsageDetail_20' ) start [2025-01-27 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339586', 'tblTempUsageDetail_20' ) end [2025-01-27 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339586', 'tblTempVendorCDR_20' ) start [2025-01-27 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339586', 'tblTempVendorCDR_20' ) end [2025-01-27 05:42:17] Production.INFO: ProcessCDR(1,14339586,1,1,2) [2025-01-27 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339586', 'tblTempUsageDetail_20' ) start [2025-01-27 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339586', 'tblTempUsageDetail_20' ) end [2025-01-27 05:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:42:20] Production.INFO: ==1476== Releasing lock... [2025-01-27 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:42:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:43:04 [end_date_ymd] => 2025-01-27 05:43:04 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:43:04' and `end` < '2025-01-27 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-01-27 05:43:16] Production.INFO: count ==107 [2025-01-27 05:43:16] Production.ERROR: pbx CDR StartTime 2025-01-27 02:43:04 - End Time 2025-01-27 05:43:04 [2025-01-27 05:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339588', 'tblTempUsageDetail_20' ) start [2025-01-27 05:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339588', 'tblTempUsageDetail_20' ) end [2025-01-27 05:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339588', 'tblTempVendorCDR_20' ) start [2025-01-27 05:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339588', 'tblTempVendorCDR_20' ) end [2025-01-27 05:43:16] Production.INFO: ProcessCDR(1,14339588,1,1,2) [2025-01-27 05:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:43:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339588', 'tblTempUsageDetail_20' ) start [2025-01-27 05:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339588', 'tblTempUsageDetail_20' ) end [2025-01-27 05:43:19] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:43:19] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:43:19] Production.INFO: ==1585== Releasing lock... [2025-01-27 05:43:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:43:19] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:44:05 [end_date_ymd] => 2025-01-27 05:44:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:44:05' and `end` < '2025-01-27 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-01-27 05:44:18] Production.INFO: count ==107 [2025-01-27 05:44:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:44:05 - End Time 2025-01-27 05:44:05 [2025-01-27 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339596', 'tblTempUsageDetail_20' ) start [2025-01-27 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339596', 'tblTempUsageDetail_20' ) end [2025-01-27 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339596', 'tblTempVendorCDR_20' ) start [2025-01-27 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339596', 'tblTempVendorCDR_20' ) end [2025-01-27 05:44:18] Production.INFO: ProcessCDR(1,14339596,1,1,2) [2025-01-27 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339596', 'tblTempUsageDetail_20' ) start [2025-01-27 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339596', 'tblTempUsageDetail_20' ) end [2025-01-27 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:44:21] Production.INFO: ==1661== Releasing lock... [2025-01-27 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:45:05 [end_date_ymd] => 2025-01-27 05:45:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:45:05' and `end` < '2025-01-27 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-01-27 05:45:17] Production.INFO: count ==107 [2025-01-27 05:45:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:45:05 - End Time 2025-01-27 05:45:05 [2025-01-27 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339601', 'tblTempUsageDetail_20' ) start [2025-01-27 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339601', 'tblTempUsageDetail_20' ) end [2025-01-27 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339601', 'tblTempVendorCDR_20' ) start [2025-01-27 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339601', 'tblTempVendorCDR_20' ) end [2025-01-27 05:45:17] Production.INFO: ProcessCDR(1,14339601,1,1,2) [2025-01-27 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339601', 'tblTempUsageDetail_20' ) start [2025-01-27 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339601', 'tblTempUsageDetail_20' ) end [2025-01-27 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:45:20] Production.INFO: ==1732== Releasing lock... [2025-01-27 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:45:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:46:05 [end_date_ymd] => 2025-01-27 05:46:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:46:05' and `end` < '2025-01-27 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-01-27 05:46:17] Production.INFO: count ==107 [2025-01-27 05:46:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:46:05 - End Time 2025-01-27 05:46:05 [2025-01-27 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339606', 'tblTempUsageDetail_20' ) start [2025-01-27 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339606', 'tblTempUsageDetail_20' ) end [2025-01-27 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339606', 'tblTempVendorCDR_20' ) start [2025-01-27 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339606', 'tblTempVendorCDR_20' ) end [2025-01-27 05:46:17] Production.INFO: ProcessCDR(1,14339606,1,1,2) [2025-01-27 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339606', 'tblTempUsageDetail_20' ) start [2025-01-27 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339606', 'tblTempUsageDetail_20' ) end [2025-01-27 05:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:46:20] Production.INFO: ==1803== Releasing lock... [2025-01-27 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:46:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:47:05 [end_date_ymd] => 2025-01-27 05:47:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:47:05' and `end` < '2025-01-27 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-01-27 05:47:17] Production.INFO: count ==107 [2025-01-27 05:47:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:47:05 - End Time 2025-01-27 05:47:05 [2025-01-27 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339611', 'tblTempUsageDetail_20' ) start [2025-01-27 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339611', 'tblTempUsageDetail_20' ) end [2025-01-27 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339611', 'tblTempVendorCDR_20' ) start [2025-01-27 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339611', 'tblTempVendorCDR_20' ) end [2025-01-27 05:47:17] Production.INFO: ProcessCDR(1,14339611,1,1,2) [2025-01-27 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339611', 'tblTempUsageDetail_20' ) start [2025-01-27 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339611', 'tblTempUsageDetail_20' ) end [2025-01-27 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:47:20] Production.INFO: ==1877== Releasing lock... [2025-01-27 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:47:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:48:05 [end_date_ymd] => 2025-01-27 05:48:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:48:05' and `end` < '2025-01-27 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-01-27 05:48:17] Production.INFO: count ==107 [2025-01-27 05:48:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:48:05 - End Time 2025-01-27 05:48:05 [2025-01-27 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339616', 'tblTempUsageDetail_20' ) start [2025-01-27 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339616', 'tblTempUsageDetail_20' ) end [2025-01-27 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339616', 'tblTempVendorCDR_20' ) start [2025-01-27 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339616', 'tblTempVendorCDR_20' ) end [2025-01-27 05:48:17] Production.INFO: ProcessCDR(1,14339616,1,1,2) [2025-01-27 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339616', 'tblTempUsageDetail_20' ) start [2025-01-27 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339616', 'tblTempUsageDetail_20' ) end [2025-01-27 05:48:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:48:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:48:20] Production.INFO: ==1947== Releasing lock... [2025-01-27 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:48:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:49:05 [end_date_ymd] => 2025-01-27 05:49:05 [RateCDR] => 1 ) [2025-01-27 05: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-01-27 02:49:05' and `end` < '2025-01-27 05: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-01-27 05:49:18] Production.INFO: count ==107 [2025-01-27 05:49:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:49:05 - End Time 2025-01-27 05:49:05 [2025-01-27 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339621', 'tblTempUsageDetail_20' ) start [2025-01-27 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339621', 'tblTempUsageDetail_20' ) end [2025-01-27 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339621', 'tblTempVendorCDR_20' ) start [2025-01-27 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339621', 'tblTempVendorCDR_20' ) end [2025-01-27 05:49:18] Production.INFO: ProcessCDR(1,14339621,1,1,2) [2025-01-27 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339621', 'tblTempUsageDetail_20' ) start [2025-01-27 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339621', 'tblTempUsageDetail_20' ) end [2025-01-27 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:49:21] Production.INFO: ==2018== Releasing lock... [2025-01-27 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:50:06 [end_date_ymd] => 2025-01-27 05:50:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:50:06' and `end` < '2025-01-27 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-01-27 05:50:18] Production.INFO: count ==107 [2025-01-27 05:50:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:50:06 - End Time 2025-01-27 05:50:06 [2025-01-27 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339627', 'tblTempUsageDetail_20' ) start [2025-01-27 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339627', 'tblTempUsageDetail_20' ) end [2025-01-27 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339627', 'tblTempVendorCDR_20' ) start [2025-01-27 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339627', 'tblTempVendorCDR_20' ) end [2025-01-27 05:50:18] Production.INFO: ProcessCDR(1,14339627,1,1,2) [2025-01-27 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339627', 'tblTempUsageDetail_20' ) start [2025-01-27 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339627', 'tblTempUsageDetail_20' ) end [2025-01-27 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:50:21] Production.INFO: ==2093== Releasing lock... [2025-01-27 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:51:05 [end_date_ymd] => 2025-01-27 05:51:05 [RateCDR] => 1 ) [2025-01-27 05: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-01-27 02:51:05' and `end` < '2025-01-27 05: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-01-27 05:51:17] Production.INFO: count ==107 [2025-01-27 05:51:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:51:05 - End Time 2025-01-27 05:51:05 [2025-01-27 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339632', 'tblTempUsageDetail_20' ) start [2025-01-27 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339632', 'tblTempUsageDetail_20' ) end [2025-01-27 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339632', 'tblTempVendorCDR_20' ) start [2025-01-27 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339632', 'tblTempVendorCDR_20' ) end [2025-01-27 05:51:17] Production.INFO: ProcessCDR(1,14339632,1,1,2) [2025-01-27 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339632', 'tblTempUsageDetail_20' ) start [2025-01-27 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339632', 'tblTempUsageDetail_20' ) end [2025-01-27 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:51:20] Production.INFO: ==2166== Releasing lock... [2025-01-27 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:51:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:52:05 [end_date_ymd] => 2025-01-27 05:52:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:52:05' and `end` < '2025-01-27 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-01-27 05:52:17] Production.INFO: count ==107 [2025-01-27 05:52:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:52:05 - End Time 2025-01-27 05:52:05 [2025-01-27 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339637', 'tblTempUsageDetail_20' ) start [2025-01-27 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339637', 'tblTempUsageDetail_20' ) end [2025-01-27 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339637', 'tblTempVendorCDR_20' ) start [2025-01-27 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339637', 'tblTempVendorCDR_20' ) end [2025-01-27 05:52:17] Production.INFO: ProcessCDR(1,14339637,1,1,2) [2025-01-27 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339637', 'tblTempUsageDetail_20' ) start [2025-01-27 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339637', 'tblTempUsageDetail_20' ) end [2025-01-27 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:52:21] Production.INFO: ==2236== Releasing lock... [2025-01-27 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:53:05 [end_date_ymd] => 2025-01-27 05:53:05 [RateCDR] => 1 ) [2025-01-27 05: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-01-27 02:53:05' and `end` < '2025-01-27 05: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-01-27 05:53:17] Production.INFO: count ==107 [2025-01-27 05:53:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:53:05 - End Time 2025-01-27 05:53:05 [2025-01-27 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339642', 'tblTempUsageDetail_20' ) start [2025-01-27 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339642', 'tblTempUsageDetail_20' ) end [2025-01-27 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339642', 'tblTempVendorCDR_20' ) start [2025-01-27 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339642', 'tblTempVendorCDR_20' ) end [2025-01-27 05:53:17] Production.INFO: ProcessCDR(1,14339642,1,1,2) [2025-01-27 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339642', 'tblTempUsageDetail_20' ) start [2025-01-27 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339642', 'tblTempUsageDetail_20' ) end [2025-01-27 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:53:21] Production.INFO: ==2308== Releasing lock... [2025-01-27 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:54:05 [end_date_ymd] => 2025-01-27 05:54:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:54:05' and `end` < '2025-01-27 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-01-27 05:54:17] Production.INFO: count ==107 [2025-01-27 05:54:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:54:05 - End Time 2025-01-27 05:54:05 [2025-01-27 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339647', 'tblTempUsageDetail_20' ) start [2025-01-27 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339647', 'tblTempUsageDetail_20' ) end [2025-01-27 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339647', 'tblTempVendorCDR_20' ) start [2025-01-27 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339647', 'tblTempVendorCDR_20' ) end [2025-01-27 05:54:17] Production.INFO: ProcessCDR(1,14339647,1,1,2) [2025-01-27 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339647', 'tblTempUsageDetail_20' ) start [2025-01-27 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339647', 'tblTempUsageDetail_20' ) end [2025-01-27 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:54:20] Production.INFO: ==2377== Releasing lock... [2025-01-27 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:54:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:55:05 [end_date_ymd] => 2025-01-27 05:55:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:55:05' and `end` < '2025-01-27 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-01-27 05:55:18] Production.INFO: count ==107 [2025-01-27 05:55:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:55:05 - End Time 2025-01-27 05:55:05 [2025-01-27 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339652', 'tblTempUsageDetail_20' ) start [2025-01-27 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339652', 'tblTempUsageDetail_20' ) end [2025-01-27 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339652', 'tblTempVendorCDR_20' ) start [2025-01-27 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339652', 'tblTempVendorCDR_20' ) end [2025-01-27 05:55:18] Production.INFO: ProcessCDR(1,14339652,1,1,2) [2025-01-27 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339652', 'tblTempUsageDetail_20' ) start [2025-01-27 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339652', 'tblTempUsageDetail_20' ) end [2025-01-27 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:55:21] Production.INFO: ==2449== Releasing lock... [2025-01-27 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:56:06 [end_date_ymd] => 2025-01-27 05:56:06 [RateCDR] => 1 ) [2025-01-27 05: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-01-27 02:56:06' and `end` < '2025-01-27 05: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-01-27 05:56:18] Production.INFO: count ==107 [2025-01-27 05:56:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:56:06 - End Time 2025-01-27 05:56:06 [2025-01-27 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339657', 'tblTempUsageDetail_20' ) start [2025-01-27 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339657', 'tblTempUsageDetail_20' ) end [2025-01-27 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339657', 'tblTempVendorCDR_20' ) start [2025-01-27 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339657', 'tblTempVendorCDR_20' ) end [2025-01-27 05:56:18] Production.INFO: ProcessCDR(1,14339657,1,1,2) [2025-01-27 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339657', 'tblTempUsageDetail_20' ) start [2025-01-27 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339657', 'tblTempUsageDetail_20' ) end [2025-01-27 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:56:21] Production.INFO: ==2523== Releasing lock... [2025-01-27 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:57:05 [end_date_ymd] => 2025-01-27 05:57:05 [RateCDR] => 1 ) [2025-01-27 05: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-01-27 02:57:05' and `end` < '2025-01-27 05: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-01-27 05:57:17] Production.INFO: count ==107 [2025-01-27 05:57:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:57:05 - End Time 2025-01-27 05:57:05 [2025-01-27 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339662', 'tblTempUsageDetail_20' ) start [2025-01-27 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339662', 'tblTempUsageDetail_20' ) end [2025-01-27 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339662', 'tblTempVendorCDR_20' ) start [2025-01-27 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339662', 'tblTempVendorCDR_20' ) end [2025-01-27 05:57:17] Production.INFO: ProcessCDR(1,14339662,1,1,2) [2025-01-27 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339662', 'tblTempUsageDetail_20' ) start [2025-01-27 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339662', 'tblTempUsageDetail_20' ) end [2025-01-27 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:57:20] Production.INFO: ==2636== Releasing lock... [2025-01-27 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:57:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:58:05 [end_date_ymd] => 2025-01-27 05:58:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:58:05' and `end` < '2025-01-27 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-01-27 05:58:18] Production.INFO: count ==109 [2025-01-27 05:58:18] Production.ERROR: pbx CDR StartTime 2025-01-27 02:58:05 - End Time 2025-01-27 05:58:05 [2025-01-27 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339667', 'tblTempUsageDetail_20' ) start [2025-01-27 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339667', 'tblTempUsageDetail_20' ) end [2025-01-27 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339667', 'tblTempVendorCDR_20' ) start [2025-01-27 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339667', 'tblTempVendorCDR_20' ) end [2025-01-27 05:58:18] Production.INFO: ProcessCDR(1,14339667,1,1,2) [2025-01-27 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339667', 'tblTempUsageDetail_20' ) start [2025-01-27 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339667', 'tblTempUsageDetail_20' ) end [2025-01-27 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:58:22] Production.INFO: ==2710== Releasing lock... [2025-01-27 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:58:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 02:59:05 [end_date_ymd] => 2025-01-27 05:59:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 02:59:05' and `end` < '2025-01-27 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-01-27 05:59:17] Production.INFO: count ==109 [2025-01-27 05:59:17] Production.ERROR: pbx CDR StartTime 2025-01-27 02:59:05 - End Time 2025-01-27 05:59:05 [2025-01-27 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339672', 'tblTempUsageDetail_20' ) start [2025-01-27 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339672', 'tblTempUsageDetail_20' ) end [2025-01-27 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339672', 'tblTempVendorCDR_20' ) start [2025-01-27 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339672', 'tblTempVendorCDR_20' ) end [2025-01-27 05:59:17] Production.INFO: ProcessCDR(1,14339672,1,1,2) [2025-01-27 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339672', 'tblTempUsageDetail_20' ) start [2025-01-27 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339672', 'tblTempUsageDetail_20' ) end [2025-01-27 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 05:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 05:59:20] Production.INFO: ==2782== Releasing lock... [2025-01-27 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 05:59:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:00:06 [end_date_ymd] => 2025-01-27 06:00:06 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:00:06' and `end` < '2025-01-27 06: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-01-27 06:00:18] Production.INFO: count ==111 [2025-01-27 06:00:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:00:06 - End Time 2025-01-27 06:00:06 [2025-01-27 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339678', 'tblTempUsageDetail_20' ) start [2025-01-27 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339678', 'tblTempUsageDetail_20' ) end [2025-01-27 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339678', 'tblTempVendorCDR_20' ) start [2025-01-27 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339678', 'tblTempVendorCDR_20' ) end [2025-01-27 06:00:19] Production.INFO: ProcessCDR(1,14339678,1,1,2) [2025-01-27 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339678', 'tblTempUsageDetail_20' ) start [2025-01-27 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339678', 'tblTempUsageDetail_20' ) end [2025-01-27 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:00:21] Production.INFO: ==2856== Releasing lock... [2025-01-27 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:00:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 06:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:01:04 [end_date_ymd] => 2025-01-27 06:01:04 [RateCDR] => 1 ) [2025-01-27 06:01: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-01-27 03:01:04' and `end` < '2025-01-27 06:01: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-01-27 06:01:17] Production.INFO: count ==111 [2025-01-27 06:01:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:01:04 - End Time 2025-01-27 06:01:04 [2025-01-27 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339683', 'tblTempUsageDetail_20' ) start [2025-01-27 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339683', 'tblTempUsageDetail_20' ) end [2025-01-27 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339683', 'tblTempVendorCDR_20' ) start [2025-01-27 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339683', 'tblTempVendorCDR_20' ) end [2025-01-27 06:01:17] Production.INFO: ProcessCDR(1,14339683,1,1,2) [2025-01-27 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339683', 'tblTempUsageDetail_20' ) start [2025-01-27 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339683', 'tblTempUsageDetail_20' ) end [2025-01-27 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:01:20] Production.INFO: ==2946== Releasing lock... [2025-01-27 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:01:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:02:05 [end_date_ymd] => 2025-01-27 06:02:05 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:02:05' and `end` < '2025-01-27 06: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-01-27 06:02:18] Production.INFO: count ==111 [2025-01-27 06:02:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:02:05 - End Time 2025-01-27 06:02:05 [2025-01-27 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339688', 'tblTempUsageDetail_20' ) start [2025-01-27 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339688', 'tblTempUsageDetail_20' ) end [2025-01-27 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339688', 'tblTempVendorCDR_20' ) start [2025-01-27 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339688', 'tblTempVendorCDR_20' ) end [2025-01-27 06:02:18] Production.INFO: ProcessCDR(1,14339688,1,1,2) [2025-01-27 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339688', 'tblTempUsageDetail_20' ) start [2025-01-27 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339688', 'tblTempUsageDetail_20' ) end [2025-01-27 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:02:21] Production.INFO: ==3016== Releasing lock... [2025-01-27 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:03:04 [end_date_ymd] => 2025-01-27 06:03:04 [RateCDR] => 1 ) [2025-01-27 06:03: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-01-27 03:03:04' and `end` < '2025-01-27 06:03: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-01-27 06:03:17] Production.INFO: count ==111 [2025-01-27 06:03:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:03:04 - End Time 2025-01-27 06:03:04 [2025-01-27 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339693', 'tblTempUsageDetail_20' ) start [2025-01-27 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339693', 'tblTempUsageDetail_20' ) end [2025-01-27 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339693', 'tblTempVendorCDR_20' ) start [2025-01-27 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339693', 'tblTempVendorCDR_20' ) end [2025-01-27 06:03:17] Production.INFO: ProcessCDR(1,14339693,1,1,2) [2025-01-27 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339693', 'tblTempUsageDetail_20' ) start [2025-01-27 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339693', 'tblTempUsageDetail_20' ) end [2025-01-27 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:03:20] Production.INFO: ==3088== Releasing lock... [2025-01-27 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:03:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:04:05 [end_date_ymd] => 2025-01-27 06:04:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:04:05' and `end` < '2025-01-27 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-01-27 06:04:18] Production.INFO: count ==111 [2025-01-27 06:04:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:04:05 - End Time 2025-01-27 06:04:05 [2025-01-27 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339698', 'tblTempUsageDetail_20' ) start [2025-01-27 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339698', 'tblTempUsageDetail_20' ) end [2025-01-27 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339698', 'tblTempVendorCDR_20' ) start [2025-01-27 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339698', 'tblTempVendorCDR_20' ) end [2025-01-27 06:04:18] Production.INFO: ProcessCDR(1,14339698,1,1,2) [2025-01-27 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339698', 'tblTempUsageDetail_20' ) start [2025-01-27 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339698', 'tblTempUsageDetail_20' ) end [2025-01-27 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:04:21] Production.INFO: ==3161== Releasing lock... [2025-01-27 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:04:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:05:05 [end_date_ymd] => 2025-01-27 06:05:05 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:05:05' and `end` < '2025-01-27 06: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-01-27 06:05:17] Production.INFO: count ==111 [2025-01-27 06:05:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:05:05 - End Time 2025-01-27 06:05:05 [2025-01-27 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339703', 'tblTempUsageDetail_20' ) start [2025-01-27 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339703', 'tblTempUsageDetail_20' ) end [2025-01-27 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339703', 'tblTempVendorCDR_20' ) start [2025-01-27 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339703', 'tblTempVendorCDR_20' ) end [2025-01-27 06:05:17] Production.INFO: ProcessCDR(1,14339703,1,1,2) [2025-01-27 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339703', 'tblTempUsageDetail_20' ) start [2025-01-27 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339703', 'tblTempUsageDetail_20' ) end [2025-01-27 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:05:20] Production.INFO: ==3232== Releasing lock... [2025-01-27 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:05:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:06:05 [end_date_ymd] => 2025-01-27 06:06:05 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:06:05' and `end` < '2025-01-27 06: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-01-27 06:06:18] Production.INFO: count ==111 [2025-01-27 06:06:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:06:05 - End Time 2025-01-27 06:06:05 [2025-01-27 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339708', 'tblTempUsageDetail_20' ) start [2025-01-27 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339708', 'tblTempUsageDetail_20' ) end [2025-01-27 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339708', 'tblTempVendorCDR_20' ) start [2025-01-27 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339708', 'tblTempVendorCDR_20' ) end [2025-01-27 06:06:18] Production.INFO: ProcessCDR(1,14339708,1,1,2) [2025-01-27 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339708', 'tblTempUsageDetail_20' ) start [2025-01-27 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339708', 'tblTempUsageDetail_20' ) end [2025-01-27 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:06:21] Production.INFO: ==3305== Releasing lock... [2025-01-27 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:07:05 [end_date_ymd] => 2025-01-27 06:07:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:07:05' and `end` < '2025-01-27 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-01-27 06:07:18] Production.INFO: count ==111 [2025-01-27 06:07:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:07:05 - End Time 2025-01-27 06:07:05 [2025-01-27 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339713', 'tblTempUsageDetail_20' ) start [2025-01-27 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339713', 'tblTempUsageDetail_20' ) end [2025-01-27 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339713', 'tblTempVendorCDR_20' ) start [2025-01-27 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339713', 'tblTempVendorCDR_20' ) end [2025-01-27 06:07:18] Production.INFO: ProcessCDR(1,14339713,1,1,2) [2025-01-27 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339713', 'tblTempUsageDetail_20' ) start [2025-01-27 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339713', 'tblTempUsageDetail_20' ) end [2025-01-27 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:07:21] Production.INFO: ==3385== Releasing lock... [2025-01-27 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:08:05 [end_date_ymd] => 2025-01-27 06:08:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:08:05' and `end` < '2025-01-27 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-01-27 06:08:18] Production.INFO: count ==111 [2025-01-27 06:08:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:08:05 - End Time 2025-01-27 06:08:05 [2025-01-27 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339718', 'tblTempUsageDetail_20' ) start [2025-01-27 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339718', 'tblTempUsageDetail_20' ) end [2025-01-27 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339718', 'tblTempVendorCDR_20' ) start [2025-01-27 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339718', 'tblTempVendorCDR_20' ) end [2025-01-27 06:08:18] Production.INFO: ProcessCDR(1,14339718,1,1,2) [2025-01-27 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339718', 'tblTempUsageDetail_20' ) start [2025-01-27 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339718', 'tblTempUsageDetail_20' ) end [2025-01-27 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:08:21] Production.INFO: ==3456== Releasing lock... [2025-01-27 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:09:05 [end_date_ymd] => 2025-01-27 06:09:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:09:05' and `end` < '2025-01-27 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-01-27 06:09:18] Production.INFO: count ==111 [2025-01-27 06:09:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:09:05 - End Time 2025-01-27 06:09:05 [2025-01-27 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339723', 'tblTempUsageDetail_20' ) start [2025-01-27 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339723', 'tblTempUsageDetail_20' ) end [2025-01-27 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339723', 'tblTempVendorCDR_20' ) start [2025-01-27 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339723', 'tblTempVendorCDR_20' ) end [2025-01-27 06:09:18] Production.INFO: ProcessCDR(1,14339723,1,1,2) [2025-01-27 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339723', 'tblTempUsageDetail_20' ) start [2025-01-27 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339723', 'tblTempUsageDetail_20' ) end [2025-01-27 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:09:21] Production.INFO: ==3526== Releasing lock... [2025-01-27 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:10:06 [end_date_ymd] => 2025-01-27 06:10:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:10:06' and `end` < '2025-01-27 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-01-27 06:10:18] Production.INFO: count ==111 [2025-01-27 06:10:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:10:06 - End Time 2025-01-27 06:10:06 [2025-01-27 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339729', 'tblTempUsageDetail_20' ) start [2025-01-27 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339729', 'tblTempUsageDetail_20' ) end [2025-01-27 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339729', 'tblTempVendorCDR_20' ) start [2025-01-27 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339729', 'tblTempVendorCDR_20' ) end [2025-01-27 06:10:18] Production.INFO: ProcessCDR(1,14339729,1,1,2) [2025-01-27 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339729', 'tblTempUsageDetail_20' ) start [2025-01-27 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339729', 'tblTempUsageDetail_20' ) end [2025-01-27 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:10:21] Production.INFO: ==3599== Releasing lock... [2025-01-27 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:11:06 [end_date_ymd] => 2025-01-27 06:11:06 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:11:06' and `end` < '2025-01-27 06: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-01-27 06:11:18] Production.INFO: count ==110 [2025-01-27 06:11:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:11:06 - End Time 2025-01-27 06:11:06 [2025-01-27 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339734', 'tblTempUsageDetail_20' ) start [2025-01-27 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339734', 'tblTempUsageDetail_20' ) end [2025-01-27 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339734', 'tblTempVendorCDR_20' ) start [2025-01-27 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339734', 'tblTempVendorCDR_20' ) end [2025-01-27 06:11:18] Production.INFO: ProcessCDR(1,14339734,1,1,2) [2025-01-27 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339734', 'tblTempUsageDetail_20' ) start [2025-01-27 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339734', 'tblTempUsageDetail_20' ) end [2025-01-27 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:11:21] Production.INFO: ==3675== Releasing lock... [2025-01-27 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:12:05 [end_date_ymd] => 2025-01-27 06:12:05 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:12:05' and `end` < '2025-01-27 06: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-01-27 06:12:17] Production.INFO: count ==110 [2025-01-27 06:12:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:12:05 - End Time 2025-01-27 06:12:05 [2025-01-27 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339739', 'tblTempUsageDetail_20' ) start [2025-01-27 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339739', 'tblTempUsageDetail_20' ) end [2025-01-27 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339739', 'tblTempVendorCDR_20' ) start [2025-01-27 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339739', 'tblTempVendorCDR_20' ) end [2025-01-27 06:12:17] Production.INFO: ProcessCDR(1,14339739,1,1,2) [2025-01-27 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339739', 'tblTempUsageDetail_20' ) start [2025-01-27 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339739', 'tblTempUsageDetail_20' ) end [2025-01-27 06:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:12:20] Production.INFO: ==3746== Releasing lock... [2025-01-27 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:12:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:13:05 [end_date_ymd] => 2025-01-27 06:13:05 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:13:05' and `end` < '2025-01-27 06: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-01-27 06:13:18] Production.INFO: count ==110 [2025-01-27 06:13:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:13:05 - End Time 2025-01-27 06:13:05 [2025-01-27 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339741', 'tblTempUsageDetail_20' ) start [2025-01-27 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339741', 'tblTempUsageDetail_20' ) end [2025-01-27 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339741', 'tblTempVendorCDR_20' ) start [2025-01-27 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339741', 'tblTempVendorCDR_20' ) end [2025-01-27 06:13:18] Production.INFO: ProcessCDR(1,14339741,1,1,2) [2025-01-27 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339741', 'tblTempUsageDetail_20' ) start [2025-01-27 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339741', 'tblTempUsageDetail_20' ) end [2025-01-27 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:13:20] Production.INFO: ==3862== Releasing lock... [2025-01-27 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:13:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:14:04 [end_date_ymd] => 2025-01-27 06:14:04 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:14:04' and `end` < '2025-01-27 06: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-01-27 06:14:17] Production.INFO: count ==110 [2025-01-27 06:14:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:14:04 - End Time 2025-01-27 06:14:04 [2025-01-27 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339749', 'tblTempUsageDetail_20' ) start [2025-01-27 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339749', 'tblTempUsageDetail_20' ) end [2025-01-27 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339749', 'tblTempVendorCDR_20' ) start [2025-01-27 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339749', 'tblTempVendorCDR_20' ) end [2025-01-27 06:14:17] Production.INFO: ProcessCDR(1,14339749,1,1,2) [2025-01-27 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339749', 'tblTempUsageDetail_20' ) start [2025-01-27 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339749', 'tblTempUsageDetail_20' ) end [2025-01-27 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:14:20] Production.INFO: ==3932== Releasing lock... [2025-01-27 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:14:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:15:05 [end_date_ymd] => 2025-01-27 06:15:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:15:05' and `end` < '2025-01-27 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-01-27 06:15:18] Production.INFO: count ==110 [2025-01-27 06:15:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:15:05 - End Time 2025-01-27 06:15:05 [2025-01-27 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339754', 'tblTempUsageDetail_20' ) start [2025-01-27 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339754', 'tblTempUsageDetail_20' ) end [2025-01-27 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339754', 'tblTempVendorCDR_20' ) start [2025-01-27 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339754', 'tblTempVendorCDR_20' ) end [2025-01-27 06:15:18] Production.INFO: ProcessCDR(1,14339754,1,1,2) [2025-01-27 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339754', 'tblTempUsageDetail_20' ) start [2025-01-27 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339754', 'tblTempUsageDetail_20' ) end [2025-01-27 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:15:21] Production.INFO: ==4004== Releasing lock... [2025-01-27 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:16:05 [end_date_ymd] => 2025-01-27 06:16:05 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:16:05' and `end` < '2025-01-27 06: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-01-27 06:16:17] Production.INFO: count ==110 [2025-01-27 06:16:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:16:05 - End Time 2025-01-27 06:16:05 [2025-01-27 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339759', 'tblTempUsageDetail_20' ) start [2025-01-27 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339759', 'tblTempUsageDetail_20' ) end [2025-01-27 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339759', 'tblTempVendorCDR_20' ) start [2025-01-27 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339759', 'tblTempVendorCDR_20' ) end [2025-01-27 06:16:17] Production.INFO: ProcessCDR(1,14339759,1,1,2) [2025-01-27 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339759', 'tblTempUsageDetail_20' ) start [2025-01-27 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339759', 'tblTempUsageDetail_20' ) end [2025-01-27 06:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:16:20] Production.INFO: ==4077== Releasing lock... [2025-01-27 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:16:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:17:05 [end_date_ymd] => 2025-01-27 06:17:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:17:05' and `end` < '2025-01-27 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-01-27 06:17:18] Production.INFO: count ==110 [2025-01-27 06:17:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:17:05 - End Time 2025-01-27 06:17:05 [2025-01-27 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339764', 'tblTempUsageDetail_20' ) start [2025-01-27 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339764', 'tblTempUsageDetail_20' ) end [2025-01-27 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339764', 'tblTempVendorCDR_20' ) start [2025-01-27 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339764', 'tblTempVendorCDR_20' ) end [2025-01-27 06:17:18] Production.INFO: ProcessCDR(1,14339764,1,1,2) [2025-01-27 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339764', 'tblTempUsageDetail_20' ) start [2025-01-27 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339764', 'tblTempUsageDetail_20' ) end [2025-01-27 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:17:21] Production.INFO: ==4150== Releasing lock... [2025-01-27 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:18:05 [end_date_ymd] => 2025-01-27 06:18:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:18:05' and `end` < '2025-01-27 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-01-27 06:18:18] Production.INFO: count ==110 [2025-01-27 06:18:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:18:05 - End Time 2025-01-27 06:18:05 [2025-01-27 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339769', 'tblTempUsageDetail_20' ) start [2025-01-27 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339769', 'tblTempUsageDetail_20' ) end [2025-01-27 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339769', 'tblTempVendorCDR_20' ) start [2025-01-27 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339769', 'tblTempVendorCDR_20' ) end [2025-01-27 06:18:18] Production.INFO: ProcessCDR(1,14339769,1,1,2) [2025-01-27 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339769', 'tblTempUsageDetail_20' ) start [2025-01-27 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339769', 'tblTempUsageDetail_20' ) end [2025-01-27 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:18:21] Production.INFO: ==4219== Releasing lock... [2025-01-27 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:19:05 [end_date_ymd] => 2025-01-27 06:19:05 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:19:05' and `end` < '2025-01-27 06: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-01-27 06:19:17] Production.INFO: count ==110 [2025-01-27 06:19:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:19:05 - End Time 2025-01-27 06:19:05 [2025-01-27 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339772', 'tblTempUsageDetail_20' ) start [2025-01-27 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339772', 'tblTempUsageDetail_20' ) end [2025-01-27 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339772', 'tblTempVendorCDR_20' ) start [2025-01-27 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339772', 'tblTempVendorCDR_20' ) end [2025-01-27 06:19:17] Production.INFO: ProcessCDR(1,14339772,1,1,2) [2025-01-27 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339772', 'tblTempUsageDetail_20' ) start [2025-01-27 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339772', 'tblTempUsageDetail_20' ) end [2025-01-27 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:19:20] Production.INFO: ==4289== Releasing lock... [2025-01-27 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:19:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:20:06 [end_date_ymd] => 2025-01-27 06:20:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:20:06' and `end` < '2025-01-27 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-01-27 06:20:19] Production.INFO: count ==106 [2025-01-27 06:20:19] Production.ERROR: pbx CDR StartTime 2025-01-27 03:20:06 - End Time 2025-01-27 06:20:06 [2025-01-27 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339780', 'tblTempUsageDetail_20' ) start [2025-01-27 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339780', 'tblTempUsageDetail_20' ) end [2025-01-27 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339780', 'tblTempVendorCDR_20' ) start [2025-01-27 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339780', 'tblTempVendorCDR_20' ) end [2025-01-27 06:20:19] Production.INFO: ProcessCDR(1,14339780,1,1,2) [2025-01-27 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339780', 'tblTempUsageDetail_20' ) start [2025-01-27 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339780', 'tblTempUsageDetail_20' ) end [2025-01-27 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:20:22] Production.INFO: ==4364== Releasing lock... [2025-01-27 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:21:05 [end_date_ymd] => 2025-01-27 06:21:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:21:05' and `end` < '2025-01-27 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-01-27 06:21:17] Production.INFO: count ==106 [2025-01-27 06:21:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:21:05 - End Time 2025-01-27 06:21:05 [2025-01-27 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339785', 'tblTempUsageDetail_20' ) start [2025-01-27 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339785', 'tblTempUsageDetail_20' ) end [2025-01-27 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339785', 'tblTempVendorCDR_20' ) start [2025-01-27 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339785', 'tblTempVendorCDR_20' ) end [2025-01-27 06:21:17] Production.INFO: ProcessCDR(1,14339785,1,1,2) [2025-01-27 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339785', 'tblTempUsageDetail_20' ) start [2025-01-27 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339785', 'tblTempUsageDetail_20' ) end [2025-01-27 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:21:20] Production.INFO: ==4440== Releasing lock... [2025-01-27 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:21:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:22:05 [end_date_ymd] => 2025-01-27 06:22:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:22:05' and `end` < '2025-01-27 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-01-27 06:22:18] Production.INFO: count ==106 [2025-01-27 06:22:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:22:05 - End Time 2025-01-27 06:22:05 [2025-01-27 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339790', 'tblTempUsageDetail_20' ) start [2025-01-27 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339790', 'tblTempUsageDetail_20' ) end [2025-01-27 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339790', 'tblTempVendorCDR_20' ) start [2025-01-27 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339790', 'tblTempVendorCDR_20' ) end [2025-01-27 06:22:18] Production.INFO: ProcessCDR(1,14339790,1,1,2) [2025-01-27 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339790', 'tblTempUsageDetail_20' ) start [2025-01-27 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339790', 'tblTempUsageDetail_20' ) end [2025-01-27 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:22:21] Production.INFO: ==4512== Releasing lock... [2025-01-27 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:23:04 [end_date_ymd] => 2025-01-27 06:23:04 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:23:04' and `end` < '2025-01-27 06: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-01-27 06:23:16] Production.INFO: count ==106 [2025-01-27 06:23:16] Production.ERROR: pbx CDR StartTime 2025-01-27 03:23:04 - End Time 2025-01-27 06:23:04 [2025-01-27 06:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339795', 'tblTempUsageDetail_20' ) start [2025-01-27 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339795', 'tblTempUsageDetail_20' ) end [2025-01-27 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339795', 'tblTempVendorCDR_20' ) start [2025-01-27 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339795', 'tblTempVendorCDR_20' ) end [2025-01-27 06:23:17] Production.INFO: ProcessCDR(1,14339795,1,1,2) [2025-01-27 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339795', 'tblTempUsageDetail_20' ) start [2025-01-27 06:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339795', 'tblTempUsageDetail_20' ) end [2025-01-27 06:23:19] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:23:19] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:23:19] Production.INFO: ==4590== Releasing lock... [2025-01-27 06:23:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:23:19] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:24:05 [end_date_ymd] => 2025-01-27 06:24:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:24:05' and `end` < '2025-01-27 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-01-27 06:24:17] Production.INFO: count ==106 [2025-01-27 06:24:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:24:05 - End Time 2025-01-27 06:24:05 [2025-01-27 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339800', 'tblTempUsageDetail_20' ) start [2025-01-27 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339800', 'tblTempUsageDetail_20' ) end [2025-01-27 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339800', 'tblTempVendorCDR_20' ) start [2025-01-27 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339800', 'tblTempVendorCDR_20' ) end [2025-01-27 06:24:17] Production.INFO: ProcessCDR(1,14339800,1,1,2) [2025-01-27 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339800', 'tblTempUsageDetail_20' ) start [2025-01-27 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339800', 'tblTempUsageDetail_20' ) end [2025-01-27 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:24:21] Production.INFO: ==4662== Releasing lock... [2025-01-27 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:25:05 [end_date_ymd] => 2025-01-27 06:25:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:25:05' and `end` < '2025-01-27 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-01-27 06:25:17] Production.INFO: count ==106 [2025-01-27 06:25:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:25:05 - End Time 2025-01-27 06:25:05 [2025-01-27 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339805', 'tblTempUsageDetail_20' ) start [2025-01-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339805', 'tblTempUsageDetail_20' ) end [2025-01-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339805', 'tblTempVendorCDR_20' ) start [2025-01-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339805', 'tblTempVendorCDR_20' ) end [2025-01-27 06:25:17] Production.INFO: ProcessCDR(1,14339805,1,1,2) [2025-01-27 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339805', 'tblTempUsageDetail_20' ) start [2025-01-27 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339805', 'tblTempUsageDetail_20' ) end [2025-01-27 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:25:20] Production.INFO: ==4732== Releasing lock... [2025-01-27 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:25:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:26:05 [end_date_ymd] => 2025-01-27 06:26:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:26:05' and `end` < '2025-01-27 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-01-27 06:26:18] Production.INFO: count ==106 [2025-01-27 06:26:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:26:05 - End Time 2025-01-27 06:26:05 [2025-01-27 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339810', 'tblTempUsageDetail_20' ) start [2025-01-27 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339810', 'tblTempUsageDetail_20' ) end [2025-01-27 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339810', 'tblTempVendorCDR_20' ) start [2025-01-27 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339810', 'tblTempVendorCDR_20' ) end [2025-01-27 06:26:18] Production.INFO: ProcessCDR(1,14339810,1,1,2) [2025-01-27 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339810', 'tblTempUsageDetail_20' ) start [2025-01-27 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339810', 'tblTempUsageDetail_20' ) end [2025-01-27 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:26:21] Production.INFO: ==4803== Releasing lock... [2025-01-27 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:27:06 [end_date_ymd] => 2025-01-27 06:27:06 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:27:06' and `end` < '2025-01-27 06: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-01-27 06:27:18] Production.INFO: count ==106 [2025-01-27 06:27:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:27:06 - End Time 2025-01-27 06:27:06 [2025-01-27 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339815', 'tblTempUsageDetail_20' ) start [2025-01-27 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339815', 'tblTempUsageDetail_20' ) end [2025-01-27 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339815', 'tblTempVendorCDR_20' ) start [2025-01-27 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339815', 'tblTempVendorCDR_20' ) end [2025-01-27 06:27:18] Production.INFO: ProcessCDR(1,14339815,1,1,2) [2025-01-27 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339815', 'tblTempUsageDetail_20' ) start [2025-01-27 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339815', 'tblTempUsageDetail_20' ) end [2025-01-27 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:27:21] Production.INFO: ==4882== Releasing lock... [2025-01-27 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:28:05 [end_date_ymd] => 2025-01-27 06:28:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:28:05' and `end` < '2025-01-27 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-01-27 06:28:17] Production.INFO: count ==105 [2025-01-27 06:28:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:28:05 - End Time 2025-01-27 06:28:05 [2025-01-27 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339820', 'tblTempUsageDetail_20' ) start [2025-01-27 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339820', 'tblTempUsageDetail_20' ) end [2025-01-27 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339820', 'tblTempVendorCDR_20' ) start [2025-01-27 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339820', 'tblTempVendorCDR_20' ) end [2025-01-27 06:28:17] Production.INFO: ProcessCDR(1,14339820,1,1,2) [2025-01-27 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339820', 'tblTempUsageDetail_20' ) start [2025-01-27 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339820', 'tblTempUsageDetail_20' ) end [2025-01-27 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:28:20] Production.INFO: ==5016== Releasing lock... [2025-01-27 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:28:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:29:05 [end_date_ymd] => 2025-01-27 06:29:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:29:05' and `end` < '2025-01-27 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-01-27 06:29:18] Production.INFO: count ==104 [2025-01-27 06:29:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:29:05 - End Time 2025-01-27 06:29:05 [2025-01-27 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339825', 'tblTempUsageDetail_20' ) start [2025-01-27 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339825', 'tblTempUsageDetail_20' ) end [2025-01-27 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339825', 'tblTempVendorCDR_20' ) start [2025-01-27 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339825', 'tblTempVendorCDR_20' ) end [2025-01-27 06:29:18] Production.INFO: ProcessCDR(1,14339825,1,1,2) [2025-01-27 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339825', 'tblTempUsageDetail_20' ) start [2025-01-27 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339825', 'tblTempUsageDetail_20' ) end [2025-01-27 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:29:21] Production.INFO: ==5087== Releasing lock... [2025-01-27 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:30:05 [end_date_ymd] => 2025-01-27 06:30:05 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:30:05' and `end` < '2025-01-27 06: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-01-27 06:30:18] Production.INFO: count ==104 [2025-01-27 06:30:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:30:05 - End Time 2025-01-27 06:30:05 [2025-01-27 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339831', 'tblTempUsageDetail_20' ) start [2025-01-27 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339831', 'tblTempUsageDetail_20' ) end [2025-01-27 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339831', 'tblTempVendorCDR_20' ) start [2025-01-27 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339831', 'tblTempVendorCDR_20' ) end [2025-01-27 06:30:18] Production.INFO: ProcessCDR(1,14339831,1,1,2) [2025-01-27 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339831', 'tblTempUsageDetail_20' ) start [2025-01-27 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339831', 'tblTempUsageDetail_20' ) end [2025-01-27 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:30:21] Production.INFO: ==5167== Releasing lock... [2025-01-27 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:30:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:31:05 [end_date_ymd] => 2025-01-27 06:31:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:31:05' and `end` < '2025-01-27 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-01-27 06:31:17] Production.INFO: count ==104 [2025-01-27 06:31:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:31:05 - End Time 2025-01-27 06:31:05 [2025-01-27 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339836', 'tblTempUsageDetail_20' ) start [2025-01-27 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339836', 'tblTempUsageDetail_20' ) end [2025-01-27 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339836', 'tblTempVendorCDR_20' ) start [2025-01-27 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339836', 'tblTempVendorCDR_20' ) end [2025-01-27 06:31:17] Production.INFO: ProcessCDR(1,14339836,1,1,2) [2025-01-27 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339836', 'tblTempUsageDetail_20' ) start [2025-01-27 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339836', 'tblTempUsageDetail_20' ) end [2025-01-27 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:31:21] Production.INFO: ==5240== Releasing lock... [2025-01-27 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:32:05 [end_date_ymd] => 2025-01-27 06:32:05 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:32:05' and `end` < '2025-01-27 06: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-01-27 06:32:17] Production.INFO: count ==103 [2025-01-27 06:32:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:32:05 - End Time 2025-01-27 06:32:05 [2025-01-27 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339841', 'tblTempUsageDetail_20' ) start [2025-01-27 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339841', 'tblTempUsageDetail_20' ) end [2025-01-27 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339841', 'tblTempVendorCDR_20' ) start [2025-01-27 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339841', 'tblTempVendorCDR_20' ) end [2025-01-27 06:32:17] Production.INFO: ProcessCDR(1,14339841,1,1,2) [2025-01-27 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339841', 'tblTempUsageDetail_20' ) start [2025-01-27 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339841', 'tblTempUsageDetail_20' ) end [2025-01-27 06:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:32:20] Production.INFO: ==5311== Releasing lock... [2025-01-27 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:32:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:33:05 [end_date_ymd] => 2025-01-27 06:33:05 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:33:05' and `end` < '2025-01-27 06: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-01-27 06:33:17] Production.INFO: count ==103 [2025-01-27 06:33:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:33:05 - End Time 2025-01-27 06:33:05 [2025-01-27 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339846', 'tblTempUsageDetail_20' ) start [2025-01-27 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339846', 'tblTempUsageDetail_20' ) end [2025-01-27 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339846', 'tblTempVendorCDR_20' ) start [2025-01-27 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339846', 'tblTempVendorCDR_20' ) end [2025-01-27 06:33:17] Production.INFO: ProcessCDR(1,14339846,1,1,2) [2025-01-27 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339846', 'tblTempUsageDetail_20' ) start [2025-01-27 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339846', 'tblTempUsageDetail_20' ) end [2025-01-27 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:33:20] Production.INFO: ==5383== Releasing lock... [2025-01-27 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:33:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:34:05 [end_date_ymd] => 2025-01-27 06:34:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:34:05' and `end` < '2025-01-27 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-01-27 06:34:18] Production.INFO: count ==103 [2025-01-27 06:34:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:34:05 - End Time 2025-01-27 06:34:05 [2025-01-27 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339851', 'tblTempUsageDetail_20' ) start [2025-01-27 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339851', 'tblTempUsageDetail_20' ) end [2025-01-27 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339851', 'tblTempVendorCDR_20' ) start [2025-01-27 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339851', 'tblTempVendorCDR_20' ) end [2025-01-27 06:34:18] Production.INFO: ProcessCDR(1,14339851,1,1,2) [2025-01-27 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339851', 'tblTempUsageDetail_20' ) start [2025-01-27 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339851', 'tblTempUsageDetail_20' ) end [2025-01-27 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:34:21] Production.INFO: ==5455== Releasing lock... [2025-01-27 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:35:05 [end_date_ymd] => 2025-01-27 06:35:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:35:05' and `end` < '2025-01-27 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-01-27 06:35:17] Production.INFO: count ==103 [2025-01-27 06:35:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:35:05 - End Time 2025-01-27 06:35:05 [2025-01-27 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339856', 'tblTempUsageDetail_20' ) start [2025-01-27 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339856', 'tblTempUsageDetail_20' ) end [2025-01-27 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339856', 'tblTempVendorCDR_20' ) start [2025-01-27 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339856', 'tblTempVendorCDR_20' ) end [2025-01-27 06:35:17] Production.INFO: ProcessCDR(1,14339856,1,1,2) [2025-01-27 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339856', 'tblTempUsageDetail_20' ) start [2025-01-27 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339856', 'tblTempUsageDetail_20' ) end [2025-01-27 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:35:20] Production.INFO: ==5525== Releasing lock... [2025-01-27 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:35:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:36:05 [end_date_ymd] => 2025-01-27 06:36:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:36:05' and `end` < '2025-01-27 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-01-27 06:36:18] Production.INFO: count ==103 [2025-01-27 06:36:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:36:05 - End Time 2025-01-27 06:36:05 [2025-01-27 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339861', 'tblTempUsageDetail_20' ) start [2025-01-27 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339861', 'tblTempUsageDetail_20' ) end [2025-01-27 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339861', 'tblTempVendorCDR_20' ) start [2025-01-27 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339861', 'tblTempVendorCDR_20' ) end [2025-01-27 06:36:18] Production.INFO: ProcessCDR(1,14339861,1,1,2) [2025-01-27 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339861', 'tblTempUsageDetail_20' ) start [2025-01-27 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339861', 'tblTempUsageDetail_20' ) end [2025-01-27 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:36:21] Production.INFO: ==5596== Releasing lock... [2025-01-27 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:37:05 [end_date_ymd] => 2025-01-27 06:37:05 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:37:05' and `end` < '2025-01-27 06: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-01-27 06:37:17] Production.INFO: count ==103 [2025-01-27 06:37:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:37:05 - End Time 2025-01-27 06:37:05 [2025-01-27 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339866', 'tblTempUsageDetail_20' ) start [2025-01-27 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339866', 'tblTempUsageDetail_20' ) end [2025-01-27 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339866', 'tblTempVendorCDR_20' ) start [2025-01-27 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339866', 'tblTempVendorCDR_20' ) end [2025-01-27 06:37:17] Production.INFO: ProcessCDR(1,14339866,1,1,2) [2025-01-27 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339866', 'tblTempUsageDetail_20' ) start [2025-01-27 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339866', 'tblTempUsageDetail_20' ) end [2025-01-27 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:37:20] Production.INFO: ==5665== Releasing lock... [2025-01-27 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:37:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:38:05 [end_date_ymd] => 2025-01-27 06:38:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:38:05' and `end` < '2025-01-27 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-01-27 06:38:18] Production.INFO: count ==112 [2025-01-27 06:38:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:38:05 - End Time 2025-01-27 06:38:05 [2025-01-27 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339871', 'tblTempUsageDetail_20' ) start [2025-01-27 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339871', 'tblTempUsageDetail_20' ) end [2025-01-27 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339871', 'tblTempVendorCDR_20' ) start [2025-01-27 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339871', 'tblTempVendorCDR_20' ) end [2025-01-27 06:38:18] Production.INFO: ProcessCDR(1,14339871,1,1,2) [2025-01-27 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339871', 'tblTempUsageDetail_20' ) start [2025-01-27 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339871', 'tblTempUsageDetail_20' ) end [2025-01-27 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:38:21] Production.INFO: ==5737== Releasing lock... [2025-01-27 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:39:06 [end_date_ymd] => 2025-01-27 06:39:06 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:39:06' and `end` < '2025-01-27 06: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-01-27 06:39:18] Production.INFO: count ==120 [2025-01-27 06:39:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:39:06 - End Time 2025-01-27 06:39:06 [2025-01-27 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339876', 'tblTempUsageDetail_20' ) start [2025-01-27 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339876', 'tblTempUsageDetail_20' ) end [2025-01-27 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339876', 'tblTempVendorCDR_20' ) start [2025-01-27 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339876', 'tblTempVendorCDR_20' ) end [2025-01-27 06:39:18] Production.INFO: ProcessCDR(1,14339876,1,1,2) [2025-01-27 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339876', 'tblTempUsageDetail_20' ) start [2025-01-27 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339876', 'tblTempUsageDetail_20' ) end [2025-01-27 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:39:21] Production.INFO: ==5810== Releasing lock... [2025-01-27 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:40:06 [end_date_ymd] => 2025-01-27 06:40:06 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:40:06' and `end` < '2025-01-27 06: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-01-27 06:40:18] Production.INFO: count ==118 [2025-01-27 06:40:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:40:06 - End Time 2025-01-27 06:40:06 [2025-01-27 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339881', 'tblTempUsageDetail_20' ) start [2025-01-27 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339881', 'tblTempUsageDetail_20' ) end [2025-01-27 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339881', 'tblTempVendorCDR_20' ) start [2025-01-27 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339881', 'tblTempVendorCDR_20' ) end [2025-01-27 06:40:18] Production.INFO: ProcessCDR(1,14339881,1,1,2) [2025-01-27 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339881', 'tblTempUsageDetail_20' ) start [2025-01-27 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339881', 'tblTempUsageDetail_20' ) end [2025-01-27 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:40:21] Production.INFO: ==5889== Releasing lock... [2025-01-27 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:41:05 [end_date_ymd] => 2025-01-27 06:41:05 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:41:05' and `end` < '2025-01-27 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-01-27 06:41:18] Production.INFO: count ==118 [2025-01-27 06:41:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:41:05 - End Time 2025-01-27 06:41:05 [2025-01-27 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339887', 'tblTempUsageDetail_20' ) start [2025-01-27 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339887', 'tblTempUsageDetail_20' ) end [2025-01-27 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339887', 'tblTempVendorCDR_20' ) start [2025-01-27 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339887', 'tblTempVendorCDR_20' ) end [2025-01-27 06:41:18] Production.INFO: ProcessCDR(1,14339887,1,1,2) [2025-01-27 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339887', 'tblTempUsageDetail_20' ) start [2025-01-27 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339887', 'tblTempUsageDetail_20' ) end [2025-01-27 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:41:21] Production.INFO: ==5965== Releasing lock... [2025-01-27 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:42:05 [end_date_ymd] => 2025-01-27 06:42:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:42:05' and `end` < '2025-01-27 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-01-27 06:42:17] Production.INFO: count ==118 [2025-01-27 06:42:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:42:05 - End Time 2025-01-27 06:42:05 [2025-01-27 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339892', 'tblTempUsageDetail_20' ) start [2025-01-27 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339892', 'tblTempUsageDetail_20' ) end [2025-01-27 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339892', 'tblTempVendorCDR_20' ) start [2025-01-27 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339892', 'tblTempVendorCDR_20' ) end [2025-01-27 06:42:17] Production.INFO: ProcessCDR(1,14339892,1,1,2) [2025-01-27 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339892', 'tblTempUsageDetail_20' ) start [2025-01-27 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339892', 'tblTempUsageDetail_20' ) end [2025-01-27 06:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:42:20] Production.INFO: ==6037== Releasing lock... [2025-01-27 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:42:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:43:05 [end_date_ymd] => 2025-01-27 06:43:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:43:05' and `end` < '2025-01-27 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-01-27 06:43:18] Production.INFO: count ==118 [2025-01-27 06:43:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:43:05 - End Time 2025-01-27 06:43:05 [2025-01-27 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339897', 'tblTempUsageDetail_20' ) start [2025-01-27 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339897', 'tblTempUsageDetail_20' ) end [2025-01-27 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339897', 'tblTempVendorCDR_20' ) start [2025-01-27 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339897', 'tblTempVendorCDR_20' ) end [2025-01-27 06:43:18] Production.INFO: ProcessCDR(1,14339897,1,1,2) [2025-01-27 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339897', 'tblTempUsageDetail_20' ) start [2025-01-27 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339897', 'tblTempUsageDetail_20' ) end [2025-01-27 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:43:21] Production.INFO: ==6106== Releasing lock... [2025-01-27 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:44:05 [end_date_ymd] => 2025-01-27 06:44:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:44:05' and `end` < '2025-01-27 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-01-27 06:44:17] Production.INFO: count ==118 [2025-01-27 06:44:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:44:05 - End Time 2025-01-27 06:44:05 [2025-01-27 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339902', 'tblTempUsageDetail_20' ) start [2025-01-27 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339902', 'tblTempUsageDetail_20' ) end [2025-01-27 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339902', 'tblTempVendorCDR_20' ) start [2025-01-27 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339902', 'tblTempVendorCDR_20' ) end [2025-01-27 06:44:17] Production.INFO: ProcessCDR(1,14339902,1,1,2) [2025-01-27 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339902', 'tblTempUsageDetail_20' ) start [2025-01-27 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339902', 'tblTempUsageDetail_20' ) end [2025-01-27 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:44:20] Production.INFO: ==6216== Releasing lock... [2025-01-27 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:44:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:45:05 [end_date_ymd] => 2025-01-27 06:45:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:45:05' and `end` < '2025-01-27 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-01-27 06:45:17] Production.INFO: count ==118 [2025-01-27 06:45:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:45:05 - End Time 2025-01-27 06:45:05 [2025-01-27 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339907', 'tblTempUsageDetail_20' ) start [2025-01-27 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339907', 'tblTempUsageDetail_20' ) end [2025-01-27 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339907', 'tblTempVendorCDR_20' ) start [2025-01-27 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339907', 'tblTempVendorCDR_20' ) end [2025-01-27 06:45:17] Production.INFO: ProcessCDR(1,14339907,1,1,2) [2025-01-27 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339907', 'tblTempUsageDetail_20' ) start [2025-01-27 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339907', 'tblTempUsageDetail_20' ) end [2025-01-27 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:45:21] Production.INFO: ==6287== Releasing lock... [2025-01-27 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:46:04 [end_date_ymd] => 2025-01-27 06:46:04 [RateCDR] => 1 ) [2025-01-27 06:46: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-01-27 03:46:04' and `end` < '2025-01-27 06:46: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-01-27 06:46:17] Production.INFO: count ==118 [2025-01-27 06:46:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:46:04 - End Time 2025-01-27 06:46:04 [2025-01-27 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339912', 'tblTempUsageDetail_20' ) start [2025-01-27 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339912', 'tblTempUsageDetail_20' ) end [2025-01-27 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339912', 'tblTempVendorCDR_20' ) start [2025-01-27 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339912', 'tblTempVendorCDR_20' ) end [2025-01-27 06:46:17] Production.INFO: ProcessCDR(1,14339912,1,1,2) [2025-01-27 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339912', 'tblTempUsageDetail_20' ) start [2025-01-27 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339912', 'tblTempUsageDetail_20' ) end [2025-01-27 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:46:20] Production.INFO: ==6358== Releasing lock... [2025-01-27 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:46:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:47:05 [end_date_ymd] => 2025-01-27 06:47:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:47:05' and `end` < '2025-01-27 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-01-27 06:47:18] Production.INFO: count ==118 [2025-01-27 06:47:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:47:05 - End Time 2025-01-27 06:47:05 [2025-01-27 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339917', 'tblTempUsageDetail_20' ) start [2025-01-27 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339917', 'tblTempUsageDetail_20' ) end [2025-01-27 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339917', 'tblTempVendorCDR_20' ) start [2025-01-27 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339917', 'tblTempVendorCDR_20' ) end [2025-01-27 06:47:18] Production.INFO: ProcessCDR(1,14339917,1,1,2) [2025-01-27 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339917', 'tblTempUsageDetail_20' ) start [2025-01-27 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339917', 'tblTempUsageDetail_20' ) end [2025-01-27 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:47:21] Production.INFO: ==6430== Releasing lock... [2025-01-27 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:48:04 [end_date_ymd] => 2025-01-27 06:48:04 [RateCDR] => 1 ) [2025-01-27 06:48: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-01-27 03:48:04' and `end` < '2025-01-27 06:48: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-01-27 06:48:17] Production.INFO: count ==118 [2025-01-27 06:48:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:48:04 - End Time 2025-01-27 06:48:04 [2025-01-27 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339922', 'tblTempUsageDetail_20' ) start [2025-01-27 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339922', 'tblTempUsageDetail_20' ) end [2025-01-27 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339922', 'tblTempVendorCDR_20' ) start [2025-01-27 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339922', 'tblTempVendorCDR_20' ) end [2025-01-27 06:48:17] Production.INFO: ProcessCDR(1,14339922,1,1,2) [2025-01-27 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339922', 'tblTempUsageDetail_20' ) start [2025-01-27 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339922', 'tblTempUsageDetail_20' ) end [2025-01-27 06:48:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:48:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:48:20] Production.INFO: ==6500== Releasing lock... [2025-01-27 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:48:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:49:05 [end_date_ymd] => 2025-01-27 06:49:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:49:05' and `end` < '2025-01-27 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-01-27 06:49:17] Production.INFO: count ==117 [2025-01-27 06:49:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:49:05 - End Time 2025-01-27 06:49:05 [2025-01-27 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339927', 'tblTempUsageDetail_20' ) start [2025-01-27 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339927', 'tblTempUsageDetail_20' ) end [2025-01-27 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339927', 'tblTempVendorCDR_20' ) start [2025-01-27 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339927', 'tblTempVendorCDR_20' ) end [2025-01-27 06:49:17] Production.INFO: ProcessCDR(1,14339927,1,1,2) [2025-01-27 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339927', 'tblTempUsageDetail_20' ) start [2025-01-27 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339927', 'tblTempUsageDetail_20' ) end [2025-01-27 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:49:20] Production.INFO: ==6571== Releasing lock... [2025-01-27 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:49:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:50:06 [end_date_ymd] => 2025-01-27 06:50:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:50:06' and `end` < '2025-01-27 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-01-27 06:50:19] Production.INFO: count ==112 [2025-01-27 06:50:19] Production.ERROR: pbx CDR StartTime 2025-01-27 03:50:06 - End Time 2025-01-27 06:50:06 [2025-01-27 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339933', 'tblTempUsageDetail_20' ) start [2025-01-27 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339933', 'tblTempUsageDetail_20' ) end [2025-01-27 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339933', 'tblTempVendorCDR_20' ) start [2025-01-27 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339933', 'tblTempVendorCDR_20' ) end [2025-01-27 06:50:19] Production.INFO: ProcessCDR(1,14339933,1,1,2) [2025-01-27 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339933', 'tblTempUsageDetail_20' ) start [2025-01-27 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339933', 'tblTempUsageDetail_20' ) end [2025-01-27 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:50:22] Production.INFO: ==6643== Releasing lock... [2025-01-27 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:51:05 [end_date_ymd] => 2025-01-27 06:51:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:51:05' and `end` < '2025-01-27 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-01-27 06:51:17] Production.INFO: count ==108 [2025-01-27 06:51:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:51:05 - End Time 2025-01-27 06:51:05 [2025-01-27 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339938', 'tblTempUsageDetail_20' ) start [2025-01-27 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339938', 'tblTempUsageDetail_20' ) end [2025-01-27 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339938', 'tblTempVendorCDR_20' ) start [2025-01-27 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339938', 'tblTempVendorCDR_20' ) end [2025-01-27 06:51:17] Production.INFO: ProcessCDR(1,14339938,1,1,2) [2025-01-27 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339938', 'tblTempUsageDetail_20' ) start [2025-01-27 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339938', 'tblTempUsageDetail_20' ) end [2025-01-27 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:51:20] Production.INFO: ==6715== Releasing lock... [2025-01-27 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:51:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:52:05 [end_date_ymd] => 2025-01-27 06:52:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:52:05' and `end` < '2025-01-27 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-01-27 06:52:18] Production.INFO: count ==108 [2025-01-27 06:52:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:52:05 - End Time 2025-01-27 06:52:05 [2025-01-27 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339943', 'tblTempUsageDetail_20' ) start [2025-01-27 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339943', 'tblTempUsageDetail_20' ) end [2025-01-27 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339943', 'tblTempVendorCDR_20' ) start [2025-01-27 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339943', 'tblTempVendorCDR_20' ) end [2025-01-27 06:52:18] Production.INFO: ProcessCDR(1,14339943,1,1,2) [2025-01-27 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339943', 'tblTempUsageDetail_20' ) start [2025-01-27 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339943', 'tblTempUsageDetail_20' ) end [2025-01-27 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:52:21] Production.INFO: ==6788== Releasing lock... [2025-01-27 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:53:05 [end_date_ymd] => 2025-01-27 06:53:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:53:05' and `end` < '2025-01-27 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-01-27 06:53:17] Production.INFO: count ==104 [2025-01-27 06:53:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:53:05 - End Time 2025-01-27 06:53:05 [2025-01-27 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339948', 'tblTempUsageDetail_20' ) start [2025-01-27 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339948', 'tblTempUsageDetail_20' ) end [2025-01-27 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339948', 'tblTempVendorCDR_20' ) start [2025-01-27 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339948', 'tblTempVendorCDR_20' ) end [2025-01-27 06:53:17] Production.INFO: ProcessCDR(1,14339948,1,1,2) [2025-01-27 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339948', 'tblTempUsageDetail_20' ) start [2025-01-27 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339948', 'tblTempUsageDetail_20' ) end [2025-01-27 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:53:20] Production.INFO: ==6861== Releasing lock... [2025-01-27 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:53:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:54:05 [end_date_ymd] => 2025-01-27 06:54:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:54:05' and `end` < '2025-01-27 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-01-27 06:54:18] Production.INFO: count ==103 [2025-01-27 06:54:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:54:05 - End Time 2025-01-27 06:54:05 [2025-01-27 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339953', 'tblTempUsageDetail_20' ) start [2025-01-27 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339953', 'tblTempUsageDetail_20' ) end [2025-01-27 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339953', 'tblTempVendorCDR_20' ) start [2025-01-27 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339953', 'tblTempVendorCDR_20' ) end [2025-01-27 06:54:18] Production.INFO: ProcessCDR(1,14339953,1,1,2) [2025-01-27 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339953', 'tblTempUsageDetail_20' ) start [2025-01-27 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339953', 'tblTempUsageDetail_20' ) end [2025-01-27 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:54:21] Production.INFO: ==6934== Releasing lock... [2025-01-27 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:55:05 [end_date_ymd] => 2025-01-27 06:55:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:55:05' and `end` < '2025-01-27 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-01-27 06:55:17] Production.INFO: count ==103 [2025-01-27 06:55:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:55:05 - End Time 2025-01-27 06:55:05 [2025-01-27 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339958', 'tblTempUsageDetail_20' ) start [2025-01-27 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339958', 'tblTempUsageDetail_20' ) end [2025-01-27 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339958', 'tblTempVendorCDR_20' ) start [2025-01-27 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339958', 'tblTempVendorCDR_20' ) end [2025-01-27 06:55:17] Production.INFO: ProcessCDR(1,14339958,1,1,2) [2025-01-27 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339958', 'tblTempUsageDetail_20' ) start [2025-01-27 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339958', 'tblTempUsageDetail_20' ) end [2025-01-27 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:55:20] Production.INFO: ==7006== Releasing lock... [2025-01-27 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:55:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:56:05 [end_date_ymd] => 2025-01-27 06:56:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:56:05' and `end` < '2025-01-27 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-01-27 06:56:17] Production.INFO: count ==103 [2025-01-27 06:56:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:56:05 - End Time 2025-01-27 06:56:05 [2025-01-27 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339963', 'tblTempUsageDetail_20' ) start [2025-01-27 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339963', 'tblTempUsageDetail_20' ) end [2025-01-27 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339963', 'tblTempVendorCDR_20' ) start [2025-01-27 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339963', 'tblTempVendorCDR_20' ) end [2025-01-27 06:56:17] Production.INFO: ProcessCDR(1,14339963,1,1,2) [2025-01-27 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339963', 'tblTempUsageDetail_20' ) start [2025-01-27 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339963', 'tblTempUsageDetail_20' ) end [2025-01-27 06:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:56:20] Production.INFO: ==7086== Releasing lock... [2025-01-27 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:56:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:57:05 [end_date_ymd] => 2025-01-27 06:57:05 [RateCDR] => 1 ) [2025-01-27 06: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-01-27 03:57:05' and `end` < '2025-01-27 06: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-01-27 06:57:17] Production.INFO: count ==103 [2025-01-27 06:57:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:57:05 - End Time 2025-01-27 06:57:05 [2025-01-27 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339968', 'tblTempUsageDetail_20' ) start [2025-01-27 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339968', 'tblTempUsageDetail_20' ) end [2025-01-27 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339968', 'tblTempVendorCDR_20' ) start [2025-01-27 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339968', 'tblTempVendorCDR_20' ) end [2025-01-27 06:57:17] Production.INFO: ProcessCDR(1,14339968,1,1,2) [2025-01-27 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339968', 'tblTempUsageDetail_20' ) start [2025-01-27 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339968', 'tblTempUsageDetail_20' ) end [2025-01-27 06:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:57:20] Production.INFO: ==7164== Releasing lock... [2025-01-27 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:57:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:58:05 [end_date_ymd] => 2025-01-27 06:58:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 03:58:05' and `end` < '2025-01-27 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-01-27 06:58:18] Production.INFO: count ==103 [2025-01-27 06:58:18] Production.ERROR: pbx CDR StartTime 2025-01-27 03:58:05 - End Time 2025-01-27 06:58:05 [2025-01-27 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339973', 'tblTempUsageDetail_20' ) start [2025-01-27 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339973', 'tblTempUsageDetail_20' ) end [2025-01-27 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339973', 'tblTempVendorCDR_20' ) start [2025-01-27 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339973', 'tblTempVendorCDR_20' ) end [2025-01-27 06:58:18] Production.INFO: ProcessCDR(1,14339973,1,1,2) [2025-01-27 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339973', 'tblTempUsageDetail_20' ) start [2025-01-27 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339973', 'tblTempUsageDetail_20' ) end [2025-01-27 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:58:21] Production.INFO: ==7236== Releasing lock... [2025-01-27 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:58:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 06:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 03:59:04 [end_date_ymd] => 2025-01-27 06:59:04 [RateCDR] => 1 ) [2025-01-27 06:59: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-01-27 03:59:04' and `end` < '2025-01-27 06:59: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-01-27 06:59:17] Production.INFO: count ==103 [2025-01-27 06:59:17] Production.ERROR: pbx CDR StartTime 2025-01-27 03:59:04 - End Time 2025-01-27 06:59:04 [2025-01-27 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339978', 'tblTempUsageDetail_20' ) start [2025-01-27 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339978', 'tblTempUsageDetail_20' ) end [2025-01-27 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339978', 'tblTempVendorCDR_20' ) start [2025-01-27 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339978', 'tblTempVendorCDR_20' ) end [2025-01-27 06:59:17] Production.INFO: ProcessCDR(1,14339978,1,1,2) [2025-01-27 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339978', 'tblTempUsageDetail_20' ) start [2025-01-27 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339978', 'tblTempUsageDetail_20' ) end [2025-01-27 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 06:59:20] Production.INFO: ==7357== Releasing lock... [2025-01-27 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 06:59:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:00:05 [end_date_ymd] => 2025-01-27 07:00:05 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:00:05' and `end` < '2025-01-27 07: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-01-27 07:00:18] Production.INFO: count ==107 [2025-01-27 07:00:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:00:05 - End Time 2025-01-27 07:00:05 [2025-01-27 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339984', 'tblTempUsageDetail_20' ) start [2025-01-27 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339984', 'tblTempUsageDetail_20' ) end [2025-01-27 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339984', 'tblTempVendorCDR_20' ) start [2025-01-27 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339984', 'tblTempVendorCDR_20' ) end [2025-01-27 07:00:18] Production.INFO: ProcessCDR(1,14339984,1,1,2) [2025-01-27 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339984', 'tblTempUsageDetail_20' ) start [2025-01-27 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339984', 'tblTempUsageDetail_20' ) end [2025-01-27 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:00:21] Production.INFO: ==7435== Releasing lock... [2025-01-27 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:00:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:01:06 [end_date_ymd] => 2025-01-27 07:01:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:01:06' and `end` < '2025-01-27 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-01-27 07:01:29] Production.INFO: count ==109 [2025-01-27 07:01:29] Production.ERROR: pbx CDR StartTime 2025-01-27 04:01:06 - End Time 2025-01-27 07:01:06 [2025-01-27 07:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339989', 'tblTempUsageDetail_20' ) start [2025-01-27 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339989', 'tblTempUsageDetail_20' ) end [2025-01-27 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339989', 'tblTempVendorCDR_20' ) start [2025-01-27 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339989', 'tblTempVendorCDR_20' ) end [2025-01-27 07:01:29] Production.INFO: ProcessCDR(1,14339989,1,1,2) [2025-01-27 07:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339989', 'tblTempUsageDetail_20' ) start [2025-01-27 07:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339989', 'tblTempUsageDetail_20' ) end [2025-01-27 07:01:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:01:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:01:32] Production.INFO: ==7526== Releasing lock... [2025-01-27 07:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:01:32] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:02:05 [end_date_ymd] => 2025-01-27 07:02:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:02:05' and `end` < '2025-01-27 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-01-27 07:02:19] Production.INFO: count ==109 [2025-01-27 07:02:19] Production.ERROR: pbx CDR StartTime 2025-01-27 04:02:05 - End Time 2025-01-27 07:02:05 [2025-01-27 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339994', 'tblTempUsageDetail_20' ) start [2025-01-27 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339994', 'tblTempUsageDetail_20' ) end [2025-01-27 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339994', 'tblTempVendorCDR_20' ) start [2025-01-27 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339994', 'tblTempVendorCDR_20' ) end [2025-01-27 07:02:19] Production.INFO: ProcessCDR(1,14339994,1,1,2) [2025-01-27 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339994', 'tblTempUsageDetail_20' ) start [2025-01-27 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339994', 'tblTempUsageDetail_20' ) end [2025-01-27 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:02:23] Production.INFO: ==7680== Releasing lock... [2025-01-27 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:02:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:03:06 [end_date_ymd] => 2025-01-27 07:03:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:03:06' and `end` < '2025-01-27 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-01-27 07:03:20] Production.INFO: count ==110 [2025-01-27 07:03:20] Production.ERROR: pbx CDR StartTime 2025-01-27 04:03:06 - End Time 2025-01-27 07:03:06 [2025-01-27 07:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339999', 'tblTempUsageDetail_20' ) start [2025-01-27 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14339999', 'tblTempUsageDetail_20' ) end [2025-01-27 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339999', 'tblTempVendorCDR_20' ) start [2025-01-27 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14339999', 'tblTempVendorCDR_20' ) end [2025-01-27 07:03:20] Production.INFO: ProcessCDR(1,14339999,1,1,2) [2025-01-27 07:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14339999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14339999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14339999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14339999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339999', 'tblTempUsageDetail_20' ) start [2025-01-27 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14339999', 'tblTempUsageDetail_20' ) end [2025-01-27 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:03:23] Production.INFO: ==7761== Releasing lock... [2025-01-27 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:03:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:04:05 [end_date_ymd] => 2025-01-27 07:04:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:04:05' and `end` < '2025-01-27 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-01-27 07:04:20] Production.INFO: count ==110 [2025-01-27 07:04:20] Production.ERROR: pbx CDR StartTime 2025-01-27 04:04:05 - End Time 2025-01-27 07:04:05 [2025-01-27 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340004', 'tblTempUsageDetail_20' ) start [2025-01-27 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340004', 'tblTempUsageDetail_20' ) end [2025-01-27 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340004', 'tblTempVendorCDR_20' ) start [2025-01-27 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340004', 'tblTempVendorCDR_20' ) end [2025-01-27 07:04:20] Production.INFO: ProcessCDR(1,14340004,1,1,2) [2025-01-27 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340004', 'tblTempUsageDetail_20' ) start [2025-01-27 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340004', 'tblTempUsageDetail_20' ) end [2025-01-27 07:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:04:24] Production.INFO: ==7843== Releasing lock... [2025-01-27 07:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:04:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:05:05 [end_date_ymd] => 2025-01-27 07:05:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:05:05' and `end` < '2025-01-27 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-01-27 07:05:19] Production.INFO: count ==110 [2025-01-27 07:05:19] Production.ERROR: pbx CDR StartTime 2025-01-27 04:05:05 - End Time 2025-01-27 07:05:05 [2025-01-27 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340009', 'tblTempUsageDetail_20' ) start [2025-01-27 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340009', 'tblTempUsageDetail_20' ) end [2025-01-27 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340009', 'tblTempVendorCDR_20' ) start [2025-01-27 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340009', 'tblTempVendorCDR_20' ) end [2025-01-27 07:05:19] Production.INFO: ProcessCDR(1,14340009,1,1,2) [2025-01-27 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340009', 'tblTempUsageDetail_20' ) start [2025-01-27 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340009', 'tblTempUsageDetail_20' ) end [2025-01-27 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:05:22] Production.INFO: ==7996== Releasing lock... [2025-01-27 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:05:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:06:06 [end_date_ymd] => 2025-01-27 07:06:06 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:06:06' and `end` < '2025-01-27 07: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-01-27 07:06:19] Production.INFO: count ==110 [2025-01-27 07:06:19] Production.ERROR: pbx CDR StartTime 2025-01-27 04:06:06 - End Time 2025-01-27 07:06:06 [2025-01-27 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340014', 'tblTempUsageDetail_20' ) start [2025-01-27 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340014', 'tblTempUsageDetail_20' ) end [2025-01-27 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340014', 'tblTempVendorCDR_20' ) start [2025-01-27 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340014', 'tblTempVendorCDR_20' ) end [2025-01-27 07:06:19] Production.INFO: ProcessCDR(1,14340014,1,1,2) [2025-01-27 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340014', 'tblTempUsageDetail_20' ) start [2025-01-27 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340014', 'tblTempUsageDetail_20' ) end [2025-01-27 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:06:22] Production.INFO: ==8085== Releasing lock... [2025-01-27 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:06:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:07:05 [end_date_ymd] => 2025-01-27 07:07:05 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:07:05' and `end` < '2025-01-27 07: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-01-27 07:07:18] Production.INFO: count ==110 [2025-01-27 07:07:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:07:05 - End Time 2025-01-27 07:07:05 [2025-01-27 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340019', 'tblTempUsageDetail_20' ) start [2025-01-27 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340019', 'tblTempUsageDetail_20' ) end [2025-01-27 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340019', 'tblTempVendorCDR_20' ) start [2025-01-27 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340019', 'tblTempVendorCDR_20' ) end [2025-01-27 07:07:18] Production.INFO: ProcessCDR(1,14340019,1,1,2) [2025-01-27 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340019', 'tblTempUsageDetail_20' ) start [2025-01-27 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340019', 'tblTempUsageDetail_20' ) end [2025-01-27 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:07:21] Production.INFO: ==8172== Releasing lock... [2025-01-27 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:08:06 [end_date_ymd] => 2025-01-27 07:08:06 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:08:06' and `end` < '2025-01-27 07: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-01-27 07:08:19] Production.INFO: count ==110 [2025-01-27 07:08:19] Production.ERROR: pbx CDR StartTime 2025-01-27 04:08:06 - End Time 2025-01-27 07:08:06 [2025-01-27 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340024', 'tblTempUsageDetail_20' ) start [2025-01-27 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340024', 'tblTempUsageDetail_20' ) end [2025-01-27 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340024', 'tblTempVendorCDR_20' ) start [2025-01-27 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340024', 'tblTempVendorCDR_20' ) end [2025-01-27 07:08:19] Production.INFO: ProcessCDR(1,14340024,1,1,2) [2025-01-27 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340024', 'tblTempUsageDetail_20' ) start [2025-01-27 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340024', 'tblTempUsageDetail_20' ) end [2025-01-27 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:08:22] Production.INFO: ==8293== Releasing lock... [2025-01-27 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:08:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:09:05 [end_date_ymd] => 2025-01-27 07:09:05 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:09:05' and `end` < '2025-01-27 07: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-01-27 07:09:18] Production.INFO: count ==110 [2025-01-27 07:09:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:09:05 - End Time 2025-01-27 07:09:05 [2025-01-27 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340029', 'tblTempUsageDetail_20' ) start [2025-01-27 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340029', 'tblTempUsageDetail_20' ) end [2025-01-27 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340029', 'tblTempVendorCDR_20' ) start [2025-01-27 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340029', 'tblTempVendorCDR_20' ) end [2025-01-27 07:09:18] Production.INFO: ProcessCDR(1,14340029,1,1,2) [2025-01-27 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340029', 'tblTempUsageDetail_20' ) start [2025-01-27 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340029', 'tblTempUsageDetail_20' ) end [2025-01-27 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:09:22] Production.INFO: ==8412== Releasing lock... [2025-01-27 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:09:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:10:06 [end_date_ymd] => 2025-01-27 07:10:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:10:06' and `end` < '2025-01-27 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-01-27 07:10:19] Production.INFO: count ==112 [2025-01-27 07:10:19] Production.ERROR: pbx CDR StartTime 2025-01-27 04:10:06 - End Time 2025-01-27 07:10:06 [2025-01-27 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340034', 'tblTempUsageDetail_20' ) start [2025-01-27 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340034', 'tblTempUsageDetail_20' ) end [2025-01-27 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340034', 'tblTempVendorCDR_20' ) start [2025-01-27 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340034', 'tblTempVendorCDR_20' ) end [2025-01-27 07:10:19] Production.INFO: ProcessCDR(1,14340034,1,1,2) [2025-01-27 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340034', 'tblTempUsageDetail_20' ) start [2025-01-27 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340034', 'tblTempUsageDetail_20' ) end [2025-01-27 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:10:22] Production.INFO: ==8497== Releasing lock... [2025-01-27 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:10:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:11:05 [end_date_ymd] => 2025-01-27 07:11:05 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:11:05' and `end` < '2025-01-27 07: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-01-27 07:11:18] Production.INFO: count ==112 [2025-01-27 07:11:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:11:05 - End Time 2025-01-27 07:11:05 [2025-01-27 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340040', 'tblTempUsageDetail_20' ) start [2025-01-27 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340040', 'tblTempUsageDetail_20' ) end [2025-01-27 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340040', 'tblTempVendorCDR_20' ) start [2025-01-27 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340040', 'tblTempVendorCDR_20' ) end [2025-01-27 07:11:18] Production.INFO: ProcessCDR(1,14340040,1,1,2) [2025-01-27 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340040', 'tblTempUsageDetail_20' ) start [2025-01-27 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340040', 'tblTempUsageDetail_20' ) end [2025-01-27 07:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:11:21] Production.INFO: ==8588== Releasing lock... [2025-01-27 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:12:06 [end_date_ymd] => 2025-01-27 07:12:06 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:12:06' and `end` < '2025-01-27 07: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-01-27 07:12:19] Production.INFO: count ==112 [2025-01-27 07:12:19] Production.ERROR: pbx CDR StartTime 2025-01-27 04:12:06 - End Time 2025-01-27 07:12:06 [2025-01-27 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340045', 'tblTempUsageDetail_20' ) start [2025-01-27 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340045', 'tblTempUsageDetail_20' ) end [2025-01-27 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340045', 'tblTempVendorCDR_20' ) start [2025-01-27 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340045', 'tblTempVendorCDR_20' ) end [2025-01-27 07:12:19] Production.INFO: ProcessCDR(1,14340045,1,1,2) [2025-01-27 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340045', 'tblTempUsageDetail_20' ) start [2025-01-27 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340045', 'tblTempUsageDetail_20' ) end [2025-01-27 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:12:22] Production.INFO: ==8742== Releasing lock... [2025-01-27 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:12:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:13:05 [end_date_ymd] => 2025-01-27 07:13:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:13:05' and `end` < '2025-01-27 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-01-27 07:13:18] Production.INFO: count ==112 [2025-01-27 07:13:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:13:05 - End Time 2025-01-27 07:13:05 [2025-01-27 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340050', 'tblTempUsageDetail_20' ) start [2025-01-27 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340050', 'tblTempUsageDetail_20' ) end [2025-01-27 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340050', 'tblTempVendorCDR_20' ) start [2025-01-27 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340050', 'tblTempVendorCDR_20' ) end [2025-01-27 07:13:18] Production.INFO: ProcessCDR(1,14340050,1,1,2) [2025-01-27 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340050', 'tblTempUsageDetail_20' ) start [2025-01-27 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340050', 'tblTempUsageDetail_20' ) end [2025-01-27 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:13:22] Production.INFO: ==8829== Releasing lock... [2025-01-27 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:13:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:14:06 [end_date_ymd] => 2025-01-27 07:14:06 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:14:06' and `end` < '2025-01-27 07: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-01-27 07:14:19] Production.INFO: count ==112 [2025-01-27 07:14:19] Production.ERROR: pbx CDR StartTime 2025-01-27 04:14:06 - End Time 2025-01-27 07:14:06 [2025-01-27 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340055', 'tblTempUsageDetail_20' ) start [2025-01-27 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340055', 'tblTempUsageDetail_20' ) end [2025-01-27 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340055', 'tblTempVendorCDR_20' ) start [2025-01-27 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340055', 'tblTempVendorCDR_20' ) end [2025-01-27 07:14:19] Production.INFO: ProcessCDR(1,14340055,1,1,2) [2025-01-27 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340055', 'tblTempUsageDetail_20' ) start [2025-01-27 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340055', 'tblTempUsageDetail_20' ) end [2025-01-27 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:14:22] Production.INFO: ==8909== Releasing lock... [2025-01-27 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:14:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:15:05 [end_date_ymd] => 2025-01-27 07:15:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:15:05' and `end` < '2025-01-27 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-01-27 07:15:18] Production.INFO: count ==112 [2025-01-27 07:15:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:15:05 - End Time 2025-01-27 07:15:05 [2025-01-27 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340060', 'tblTempUsageDetail_20' ) start [2025-01-27 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340060', 'tblTempUsageDetail_20' ) end [2025-01-27 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340060', 'tblTempVendorCDR_20' ) start [2025-01-27 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340060', 'tblTempVendorCDR_20' ) end [2025-01-27 07:15:18] Production.INFO: ProcessCDR(1,14340060,1,1,2) [2025-01-27 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340060', 'tblTempUsageDetail_20' ) start [2025-01-27 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340060', 'tblTempUsageDetail_20' ) end [2025-01-27 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:15:22] Production.INFO: ==9069== Releasing lock... [2025-01-27 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:15:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:16:05 [end_date_ymd] => 2025-01-27 07:16:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:16:05' and `end` < '2025-01-27 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-01-27 07:16:18] Production.INFO: count ==112 [2025-01-27 07:16:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:16:05 - End Time 2025-01-27 07:16:05 [2025-01-27 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340065', 'tblTempUsageDetail_20' ) start [2025-01-27 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340065', 'tblTempUsageDetail_20' ) end [2025-01-27 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340065', 'tblTempVendorCDR_20' ) start [2025-01-27 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340065', 'tblTempVendorCDR_20' ) end [2025-01-27 07:16:18] Production.INFO: ProcessCDR(1,14340065,1,1,2) [2025-01-27 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340065', 'tblTempUsageDetail_20' ) start [2025-01-27 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340065', 'tblTempUsageDetail_20' ) end [2025-01-27 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:16:22] Production.INFO: ==9191== Releasing lock... [2025-01-27 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:16:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:17:05 [end_date_ymd] => 2025-01-27 07:17:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:17:05' and `end` < '2025-01-27 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-01-27 07:17:18] Production.INFO: count ==112 [2025-01-27 07:17:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:17:05 - End Time 2025-01-27 07:17:05 [2025-01-27 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340070', 'tblTempUsageDetail_20' ) start [2025-01-27 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340070', 'tblTempUsageDetail_20' ) end [2025-01-27 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340070', 'tblTempVendorCDR_20' ) start [2025-01-27 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340070', 'tblTempVendorCDR_20' ) end [2025-01-27 07:17:18] Production.INFO: ProcessCDR(1,14340070,1,1,2) [2025-01-27 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340070', 'tblTempUsageDetail_20' ) start [2025-01-27 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340070', 'tblTempUsageDetail_20' ) end [2025-01-27 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:17:21] Production.INFO: ==9269== Releasing lock... [2025-01-27 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:18:06 [end_date_ymd] => 2025-01-27 07:18:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:18:06' and `end` < '2025-01-27 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-01-27 07:18:22] Production.INFO: count ==112 [2025-01-27 07:18:22] Production.ERROR: pbx CDR StartTime 2025-01-27 04:18:06 - End Time 2025-01-27 07:18:06 [2025-01-27 07:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340075', 'tblTempUsageDetail_20' ) start [2025-01-27 07:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340075', 'tblTempUsageDetail_20' ) end [2025-01-27 07:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340075', 'tblTempVendorCDR_20' ) start [2025-01-27 07:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340075', 'tblTempVendorCDR_20' ) end [2025-01-27 07:18:22] Production.INFO: ProcessCDR(1,14340075,1,1,2) [2025-01-27 07:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340075', 'tblTempUsageDetail_20' ) start [2025-01-27 07:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340075', 'tblTempUsageDetail_20' ) end [2025-01-27 07:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:18:26] Production.INFO: ==9349== Releasing lock... [2025-01-27 07:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:18:26] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:19:06 [end_date_ymd] => 2025-01-27 07:19:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:19:06' and `end` < '2025-01-27 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-01-27 07:19:19] Production.INFO: count ==112 [2025-01-27 07:19:19] Production.ERROR: pbx CDR StartTime 2025-01-27 04:19:06 - End Time 2025-01-27 07:19:06 [2025-01-27 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340080', 'tblTempUsageDetail_20' ) start [2025-01-27 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340080', 'tblTempUsageDetail_20' ) end [2025-01-27 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340080', 'tblTempVendorCDR_20' ) start [2025-01-27 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340080', 'tblTempVendorCDR_20' ) end [2025-01-27 07:19:19] Production.INFO: ProcessCDR(1,14340080,1,1,2) [2025-01-27 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340080', 'tblTempUsageDetail_20' ) start [2025-01-27 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340080', 'tblTempUsageDetail_20' ) end [2025-01-27 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:19:22] Production.INFO: ==9442== Releasing lock... [2025-01-27 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:19:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:20:06 [end_date_ymd] => 2025-01-27 07:20:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:20:06' and `end` < '2025-01-27 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-01-27 07:20:19] Production.INFO: count ==112 [2025-01-27 07:20:19] Production.ERROR: pbx CDR StartTime 2025-01-27 04:20:06 - End Time 2025-01-27 07:20:06 [2025-01-27 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340086', 'tblTempUsageDetail_20' ) start [2025-01-27 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340086', 'tblTempUsageDetail_20' ) end [2025-01-27 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340086', 'tblTempVendorCDR_20' ) start [2025-01-27 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340086', 'tblTempVendorCDR_20' ) end [2025-01-27 07:20:19] Production.INFO: ProcessCDR(1,14340086,1,1,2) [2025-01-27 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340086', 'tblTempUsageDetail_20' ) start [2025-01-27 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340086', 'tblTempUsageDetail_20' ) end [2025-01-27 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:20:23] Production.INFO: ==9520== Releasing lock... [2025-01-27 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:20:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:21:06 [end_date_ymd] => 2025-01-27 07:21:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:21:06' and `end` < '2025-01-27 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-01-27 07:21:18] Production.INFO: count ==112 [2025-01-27 07:21:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:21:06 - End Time 2025-01-27 07:21:06 [2025-01-27 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340091', 'tblTempUsageDetail_20' ) start [2025-01-27 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340091', 'tblTempUsageDetail_20' ) end [2025-01-27 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340091', 'tblTempVendorCDR_20' ) start [2025-01-27 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340091', 'tblTempVendorCDR_20' ) end [2025-01-27 07:21:18] Production.INFO: ProcessCDR(1,14340091,1,1,2) [2025-01-27 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340091', 'tblTempUsageDetail_20' ) start [2025-01-27 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340091', 'tblTempUsageDetail_20' ) end [2025-01-27 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:21:22] Production.INFO: ==9605== Releasing lock... [2025-01-27 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:21:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:22:05 [end_date_ymd] => 2025-01-27 07:22:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:22:05' and `end` < '2025-01-27 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-01-27 07:22:20] Production.INFO: count ==112 [2025-01-27 07:22:20] Production.ERROR: pbx CDR StartTime 2025-01-27 04:22:05 - End Time 2025-01-27 07:22:05 [2025-01-27 07:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340096', 'tblTempUsageDetail_20' ) start [2025-01-27 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340096', 'tblTempUsageDetail_20' ) end [2025-01-27 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340096', 'tblTempVendorCDR_20' ) start [2025-01-27 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340096', 'tblTempVendorCDR_20' ) end [2025-01-27 07:22:20] Production.INFO: ProcessCDR(1,14340096,1,1,2) [2025-01-27 07:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340096', 'tblTempUsageDetail_20' ) start [2025-01-27 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340096', 'tblTempUsageDetail_20' ) end [2025-01-27 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:22:23] Production.INFO: ==9687== Releasing lock... [2025-01-27 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:22:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:23:06 [end_date_ymd] => 2025-01-27 07:23:06 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:23:06' and `end` < '2025-01-27 07: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-01-27 07:23:18] Production.INFO: count ==112 [2025-01-27 07:23:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:23:06 - End Time 2025-01-27 07:23:06 [2025-01-27 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340101', 'tblTempUsageDetail_20' ) start [2025-01-27 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340101', 'tblTempUsageDetail_20' ) end [2025-01-27 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340101', 'tblTempVendorCDR_20' ) start [2025-01-27 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340101', 'tblTempVendorCDR_20' ) end [2025-01-27 07:23:18] Production.INFO: ProcessCDR(1,14340101,1,1,2) [2025-01-27 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340101', 'tblTempUsageDetail_20' ) start [2025-01-27 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340101', 'tblTempUsageDetail_20' ) end [2025-01-27 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:23:22] Production.INFO: ==9773== Releasing lock... [2025-01-27 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:24:05 [end_date_ymd] => 2025-01-27 07:24:05 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:24:05' and `end` < '2025-01-27 07: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-01-27 07:24:18] Production.INFO: count ==113 [2025-01-27 07:24:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:24:05 - End Time 2025-01-27 07:24:05 [2025-01-27 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340106', 'tblTempUsageDetail_20' ) start [2025-01-27 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340106', 'tblTempUsageDetail_20' ) end [2025-01-27 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340106', 'tblTempVendorCDR_20' ) start [2025-01-27 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340106', 'tblTempVendorCDR_20' ) end [2025-01-27 07:24:18] Production.INFO: ProcessCDR(1,14340106,1,1,2) [2025-01-27 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340106', 'tblTempUsageDetail_20' ) start [2025-01-27 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340106', 'tblTempUsageDetail_20' ) end [2025-01-27 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:24:21] Production.INFO: ==9851== Releasing lock... [2025-01-27 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:25:05 [end_date_ymd] => 2025-01-27 07:25:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:25:05' and `end` < '2025-01-27 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-01-27 07:25:18] Production.INFO: count ==115 [2025-01-27 07:25:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:25:05 - End Time 2025-01-27 07:25:05 [2025-01-27 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340111', 'tblTempUsageDetail_20' ) start [2025-01-27 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340111', 'tblTempUsageDetail_20' ) end [2025-01-27 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340111', 'tblTempVendorCDR_20' ) start [2025-01-27 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340111', 'tblTempVendorCDR_20' ) end [2025-01-27 07:25:18] Production.INFO: ProcessCDR(1,14340111,1,1,2) [2025-01-27 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340111', 'tblTempUsageDetail_20' ) start [2025-01-27 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340111', 'tblTempUsageDetail_20' ) end [2025-01-27 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:25:23] Production.INFO: ==9940== Releasing lock... [2025-01-27 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:25:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:26:06 [end_date_ymd] => 2025-01-27 07:26:06 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:26:06' and `end` < '2025-01-27 07: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-01-27 07:26:18] Production.INFO: count ==116 [2025-01-27 07:26:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:26:06 - End Time 2025-01-27 07:26:06 [2025-01-27 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340116', 'tblTempUsageDetail_20' ) start [2025-01-27 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340116', 'tblTempUsageDetail_20' ) end [2025-01-27 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340116', 'tblTempVendorCDR_20' ) start [2025-01-27 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340116', 'tblTempVendorCDR_20' ) end [2025-01-27 07:26:18] Production.INFO: ProcessCDR(1,14340116,1,1,2) [2025-01-27 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340116', 'tblTempUsageDetail_20' ) start [2025-01-27 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340116', 'tblTempUsageDetail_20' ) end [2025-01-27 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:26:21] Production.INFO: ==10028== Releasing lock... [2025-01-27 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:27:06 [end_date_ymd] => 2025-01-27 07:27:06 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:27:06' and `end` < '2025-01-27 07: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-01-27 07:27:18] Production.INFO: count ==116 [2025-01-27 07:27:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:27:06 - End Time 2025-01-27 07:27:06 [2025-01-27 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340121', 'tblTempUsageDetail_20' ) start [2025-01-27 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340121', 'tblTempUsageDetail_20' ) end [2025-01-27 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340121', 'tblTempVendorCDR_20' ) start [2025-01-27 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340121', 'tblTempVendorCDR_20' ) end [2025-01-27 07:27:18] Production.INFO: ProcessCDR(1,14340121,1,1,2) [2025-01-27 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340121', 'tblTempUsageDetail_20' ) start [2025-01-27 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340121', 'tblTempUsageDetail_20' ) end [2025-01-27 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:27:22] Production.INFO: ==10104== Releasing lock... [2025-01-27 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:27:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:28:05 [end_date_ymd] => 2025-01-27 07:28:05 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:28:05' and `end` < '2025-01-27 07: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-01-27 07:28:17] Production.INFO: count ==116 [2025-01-27 07:28:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:28:05 - End Time 2025-01-27 07:28:05 [2025-01-27 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340126', 'tblTempUsageDetail_20' ) start [2025-01-27 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340126', 'tblTempUsageDetail_20' ) end [2025-01-27 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340126', 'tblTempVendorCDR_20' ) start [2025-01-27 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340126', 'tblTempVendorCDR_20' ) end [2025-01-27 07:28:18] Production.INFO: ProcessCDR(1,14340126,1,1,2) [2025-01-27 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340126', 'tblTempUsageDetail_20' ) start [2025-01-27 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340126', 'tblTempUsageDetail_20' ) end [2025-01-27 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:28:21] Production.INFO: ==10185== Releasing lock... [2025-01-27 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:29:05 [end_date_ymd] => 2025-01-27 07:29:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:29:05' and `end` < '2025-01-27 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-01-27 07:29:18] Production.INFO: count ==116 [2025-01-27 07:29:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:29:05 - End Time 2025-01-27 07:29:05 [2025-01-27 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340131', 'tblTempUsageDetail_20' ) start [2025-01-27 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340131', 'tblTempUsageDetail_20' ) end [2025-01-27 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340131', 'tblTempVendorCDR_20' ) start [2025-01-27 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340131', 'tblTempVendorCDR_20' ) end [2025-01-27 07:29:18] Production.INFO: ProcessCDR(1,14340131,1,1,2) [2025-01-27 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340131', 'tblTempUsageDetail_20' ) start [2025-01-27 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340131', 'tblTempUsageDetail_20' ) end [2025-01-27 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:29:21] Production.INFO: ==10270== Releasing lock... [2025-01-27 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:30:06 [end_date_ymd] => 2025-01-27 07:30:06 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:30:06' and `end` < '2025-01-27 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-01-27 07:30:19] Production.INFO: count ==115 [2025-01-27 07:30:19] Production.ERROR: pbx CDR StartTime 2025-01-27 04:30:06 - End Time 2025-01-27 07:30:06 [2025-01-27 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340137', 'tblTempUsageDetail_20' ) start [2025-01-27 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340137', 'tblTempUsageDetail_20' ) end [2025-01-27 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340137', 'tblTempVendorCDR_20' ) start [2025-01-27 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340137', 'tblTempVendorCDR_20' ) end [2025-01-27 07:30:19] Production.INFO: ProcessCDR(1,14340137,1,1,2) [2025-01-27 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340137', 'tblTempUsageDetail_20' ) start [2025-01-27 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340137', 'tblTempUsageDetail_20' ) end [2025-01-27 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:30:22] Production.INFO: ==10392== Releasing lock... [2025-01-27 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:31:06 [end_date_ymd] => 2025-01-27 07:31:06 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:31:06' and `end` < '2025-01-27 07: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-01-27 07:31:19] Production.INFO: count ==115 [2025-01-27 07:31:19] Production.ERROR: pbx CDR StartTime 2025-01-27 04:31:06 - End Time 2025-01-27 07:31:06 [2025-01-27 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340142', 'tblTempUsageDetail_20' ) start [2025-01-27 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340142', 'tblTempUsageDetail_20' ) end [2025-01-27 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340142', 'tblTempVendorCDR_20' ) start [2025-01-27 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340142', 'tblTempVendorCDR_20' ) end [2025-01-27 07:31:19] Production.INFO: ProcessCDR(1,14340142,1,1,2) [2025-01-27 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340142', 'tblTempUsageDetail_20' ) start [2025-01-27 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340142', 'tblTempUsageDetail_20' ) end [2025-01-27 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:31:22] Production.INFO: ==10476== Releasing lock... [2025-01-27 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:31:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:32:05 [end_date_ymd] => 2025-01-27 07:32:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:32:05' and `end` < '2025-01-27 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-01-27 07:32:18] Production.INFO: count ==115 [2025-01-27 07:32:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:32:05 - End Time 2025-01-27 07:32:05 [2025-01-27 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340147', 'tblTempUsageDetail_20' ) start [2025-01-27 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340147', 'tblTempUsageDetail_20' ) end [2025-01-27 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340147', 'tblTempVendorCDR_20' ) start [2025-01-27 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340147', 'tblTempVendorCDR_20' ) end [2025-01-27 07:32:18] Production.INFO: ProcessCDR(1,14340147,1,1,2) [2025-01-27 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340147', 'tblTempUsageDetail_20' ) start [2025-01-27 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340147', 'tblTempUsageDetail_20' ) end [2025-01-27 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:32:21] Production.INFO: ==10562== Releasing lock... [2025-01-27 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:33:06 [end_date_ymd] => 2025-01-27 07:33:06 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:33:06' and `end` < '2025-01-27 07: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-01-27 07:33:18] Production.INFO: count ==115 [2025-01-27 07:33:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:33:06 - End Time 2025-01-27 07:33:06 [2025-01-27 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340152', 'tblTempUsageDetail_20' ) start [2025-01-27 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340152', 'tblTempUsageDetail_20' ) end [2025-01-27 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340152', 'tblTempVendorCDR_20' ) start [2025-01-27 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340152', 'tblTempVendorCDR_20' ) end [2025-01-27 07:33:18] Production.INFO: ProcessCDR(1,14340152,1,1,2) [2025-01-27 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340152', 'tblTempUsageDetail_20' ) start [2025-01-27 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340152', 'tblTempUsageDetail_20' ) end [2025-01-27 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:33:22] Production.INFO: ==10652== Releasing lock... [2025-01-27 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:33:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:34:05 [end_date_ymd] => 2025-01-27 07:34:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:34:05' and `end` < '2025-01-27 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-01-27 07:34:18] Production.INFO: count ==115 [2025-01-27 07:34:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:34:05 - End Time 2025-01-27 07:34:05 [2025-01-27 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340157', 'tblTempUsageDetail_20' ) start [2025-01-27 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340157', 'tblTempUsageDetail_20' ) end [2025-01-27 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340157', 'tblTempVendorCDR_20' ) start [2025-01-27 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340157', 'tblTempVendorCDR_20' ) end [2025-01-27 07:34:18] Production.INFO: ProcessCDR(1,14340157,1,1,2) [2025-01-27 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340157', 'tblTempUsageDetail_20' ) start [2025-01-27 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340157', 'tblTempUsageDetail_20' ) end [2025-01-27 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:34:21] Production.INFO: ==10745== Releasing lock... [2025-01-27 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:35:06 [end_date_ymd] => 2025-01-27 07:35:06 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:35:06' and `end` < '2025-01-27 07: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-01-27 07:35:18] Production.INFO: count ==115 [2025-01-27 07:35:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:35:06 - End Time 2025-01-27 07:35:06 [2025-01-27 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340162', 'tblTempUsageDetail_20' ) start [2025-01-27 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340162', 'tblTempUsageDetail_20' ) end [2025-01-27 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340162', 'tblTempVendorCDR_20' ) start [2025-01-27 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340162', 'tblTempVendorCDR_20' ) end [2025-01-27 07:35:18] Production.INFO: ProcessCDR(1,14340162,1,1,2) [2025-01-27 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340162', 'tblTempUsageDetail_20' ) start [2025-01-27 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340162', 'tblTempUsageDetail_20' ) end [2025-01-27 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:35:22] Production.INFO: ==10831== Releasing lock... [2025-01-27 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:35:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:36:06 [end_date_ymd] => 2025-01-27 07:36:06 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:36:06' and `end` < '2025-01-27 07: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-01-27 07:36:18] Production.INFO: count ==115 [2025-01-27 07:36:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:36:06 - End Time 2025-01-27 07:36:06 [2025-01-27 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340167', 'tblTempUsageDetail_20' ) start [2025-01-27 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340167', 'tblTempUsageDetail_20' ) end [2025-01-27 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340167', 'tblTempVendorCDR_20' ) start [2025-01-27 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340167', 'tblTempVendorCDR_20' ) end [2025-01-27 07:36:18] Production.INFO: ProcessCDR(1,14340167,1,1,2) [2025-01-27 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340167', 'tblTempUsageDetail_20' ) start [2025-01-27 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340167', 'tblTempUsageDetail_20' ) end [2025-01-27 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:36:22] Production.INFO: ==10915== Releasing lock... [2025-01-27 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:36:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:37:06 [end_date_ymd] => 2025-01-27 07:37:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:37:06' and `end` < '2025-01-27 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-01-27 07:37:19] Production.INFO: count ==115 [2025-01-27 07:37:19] Production.ERROR: pbx CDR StartTime 2025-01-27 04:37:06 - End Time 2025-01-27 07:37:06 [2025-01-27 07:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340172', 'tblTempUsageDetail_20' ) start [2025-01-27 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340172', 'tblTempUsageDetail_20' ) end [2025-01-27 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340172', 'tblTempVendorCDR_20' ) start [2025-01-27 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340172', 'tblTempVendorCDR_20' ) end [2025-01-27 07:37:19] Production.INFO: ProcessCDR(1,14340172,1,1,2) [2025-01-27 07:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340172', 'tblTempUsageDetail_20' ) start [2025-01-27 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340172', 'tblTempUsageDetail_20' ) end [2025-01-27 07:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:37:22] Production.INFO: ==10993== Releasing lock... [2025-01-27 07:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:37:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:38:05 [end_date_ymd] => 2025-01-27 07:38:05 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:38:05' and `end` < '2025-01-27 07: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-01-27 07:38:18] Production.INFO: count ==115 [2025-01-27 07:38:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:38:05 - End Time 2025-01-27 07:38:05 [2025-01-27 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340177', 'tblTempUsageDetail_20' ) start [2025-01-27 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340177', 'tblTempUsageDetail_20' ) end [2025-01-27 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340177', 'tblTempVendorCDR_20' ) start [2025-01-27 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340177', 'tblTempVendorCDR_20' ) end [2025-01-27 07:38:18] Production.INFO: ProcessCDR(1,14340177,1,1,2) [2025-01-27 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340177', 'tblTempUsageDetail_20' ) start [2025-01-27 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340177', 'tblTempUsageDetail_20' ) end [2025-01-27 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:38:21] Production.INFO: ==11085== Releasing lock... [2025-01-27 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:39:06 [end_date_ymd] => 2025-01-27 07:39:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:39:06' and `end` < '2025-01-27 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-01-27 07:39:18] Production.INFO: count ==115 [2025-01-27 07:39:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:39:06 - End Time 2025-01-27 07:39:06 [2025-01-27 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340182', 'tblTempUsageDetail_20' ) start [2025-01-27 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340182', 'tblTempUsageDetail_20' ) end [2025-01-27 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340182', 'tblTempVendorCDR_20' ) start [2025-01-27 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340182', 'tblTempVendorCDR_20' ) end [2025-01-27 07:39:18] Production.INFO: ProcessCDR(1,14340182,1,1,2) [2025-01-27 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340182', 'tblTempUsageDetail_20' ) start [2025-01-27 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340182', 'tblTempUsageDetail_20' ) end [2025-01-27 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:39:22] Production.INFO: ==11171== Releasing lock... [2025-01-27 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:39:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:40:06 [end_date_ymd] => 2025-01-27 07:40:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:40:06' and `end` < '2025-01-27 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-01-27 07:40:18] Production.INFO: count ==115 [2025-01-27 07:40:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:40:06 - End Time 2025-01-27 07:40:06 [2025-01-27 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340187', 'tblTempUsageDetail_20' ) start [2025-01-27 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340187', 'tblTempUsageDetail_20' ) end [2025-01-27 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340187', 'tblTempVendorCDR_20' ) start [2025-01-27 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340187', 'tblTempVendorCDR_20' ) end [2025-01-27 07:40:18] Production.INFO: ProcessCDR(1,14340187,1,1,2) [2025-01-27 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340187', 'tblTempUsageDetail_20' ) start [2025-01-27 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340187', 'tblTempUsageDetail_20' ) end [2025-01-27 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:40:22] Production.INFO: ==11260== Releasing lock... [2025-01-27 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:41:06 [end_date_ymd] => 2025-01-27 07:41:06 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:41:06' and `end` < '2025-01-27 07: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-01-27 07:41:18] Production.INFO: count ==115 [2025-01-27 07:41:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:41:06 - End Time 2025-01-27 07:41:06 [2025-01-27 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340193', 'tblTempUsageDetail_20' ) start [2025-01-27 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340193', 'tblTempUsageDetail_20' ) end [2025-01-27 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340193', 'tblTempVendorCDR_20' ) start [2025-01-27 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340193', 'tblTempVendorCDR_20' ) end [2025-01-27 07:41:18] Production.INFO: ProcessCDR(1,14340193,1,1,2) [2025-01-27 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340193', 'tblTempUsageDetail_20' ) start [2025-01-27 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340193', 'tblTempUsageDetail_20' ) end [2025-01-27 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:41:22] Production.INFO: ==11342== Releasing lock... [2025-01-27 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:41:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:42:06 [end_date_ymd] => 2025-01-27 07:42:06 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:42:06' and `end` < '2025-01-27 07: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-01-27 07:42:18] Production.INFO: count ==115 [2025-01-27 07:42:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:42:06 - End Time 2025-01-27 07:42:06 [2025-01-27 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340198', 'tblTempUsageDetail_20' ) start [2025-01-27 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340198', 'tblTempUsageDetail_20' ) end [2025-01-27 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340198', 'tblTempVendorCDR_20' ) start [2025-01-27 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340198', 'tblTempVendorCDR_20' ) end [2025-01-27 07:42:18] Production.INFO: ProcessCDR(1,14340198,1,1,2) [2025-01-27 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340198', 'tblTempUsageDetail_20' ) start [2025-01-27 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340198', 'tblTempUsageDetail_20' ) end [2025-01-27 07:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:42:22] Production.INFO: ==11422== Releasing lock... [2025-01-27 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:42:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:43:06 [end_date_ymd] => 2025-01-27 07:43:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:43:06' and `end` < '2025-01-27 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-01-27 07:43:18] Production.INFO: count ==116 [2025-01-27 07:43:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:43:06 - End Time 2025-01-27 07:43:06 [2025-01-27 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340203', 'tblTempUsageDetail_20' ) start [2025-01-27 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340203', 'tblTempUsageDetail_20' ) end [2025-01-27 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340203', 'tblTempVendorCDR_20' ) start [2025-01-27 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340203', 'tblTempVendorCDR_20' ) end [2025-01-27 07:43:18] Production.INFO: ProcessCDR(1,14340203,1,1,2) [2025-01-27 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340203', 'tblTempUsageDetail_20' ) start [2025-01-27 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340203', 'tblTempUsageDetail_20' ) end [2025-01-27 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:43:22] Production.INFO: ==11503== Releasing lock... [2025-01-27 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:43:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:44:06 [end_date_ymd] => 2025-01-27 07:44:06 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:44:06' and `end` < '2025-01-27 07: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-01-27 07:44:18] Production.INFO: count ==120 [2025-01-27 07:44:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:44:06 - End Time 2025-01-27 07:44:06 [2025-01-27 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340208', 'tblTempUsageDetail_20' ) start [2025-01-27 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340208', 'tblTempUsageDetail_20' ) end [2025-01-27 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340208', 'tblTempVendorCDR_20' ) start [2025-01-27 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340208', 'tblTempVendorCDR_20' ) end [2025-01-27 07:44:18] Production.INFO: ProcessCDR(1,14340208,1,1,2) [2025-01-27 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340208', 'tblTempUsageDetail_20' ) start [2025-01-27 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340208', 'tblTempUsageDetail_20' ) end [2025-01-27 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:44:22] Production.INFO: ==11588== Releasing lock... [2025-01-27 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:44:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:45:06 [end_date_ymd] => 2025-01-27 07:45:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:45:06' and `end` < '2025-01-27 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-01-27 07:45:18] Production.INFO: count ==120 [2025-01-27 07:45:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:45:06 - End Time 2025-01-27 07:45:06 [2025-01-27 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340213', 'tblTempUsageDetail_20' ) start [2025-01-27 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340213', 'tblTempUsageDetail_20' ) end [2025-01-27 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340213', 'tblTempVendorCDR_20' ) start [2025-01-27 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340213', 'tblTempVendorCDR_20' ) end [2025-01-27 07:45:18] Production.INFO: ProcessCDR(1,14340213,1,1,2) [2025-01-27 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340213', 'tblTempUsageDetail_20' ) start [2025-01-27 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340213', 'tblTempUsageDetail_20' ) end [2025-01-27 07:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:45:22] Production.INFO: ==11673== Releasing lock... [2025-01-27 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:45:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:46:05 [end_date_ymd] => 2025-01-27 07:46:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:46:05' and `end` < '2025-01-27 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-01-27 07:46:18] Production.INFO: count ==120 [2025-01-27 07:46:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:46:05 - End Time 2025-01-27 07:46:05 [2025-01-27 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340218', 'tblTempUsageDetail_20' ) start [2025-01-27 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340218', 'tblTempUsageDetail_20' ) end [2025-01-27 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340218', 'tblTempVendorCDR_20' ) start [2025-01-27 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340218', 'tblTempVendorCDR_20' ) end [2025-01-27 07:46:18] Production.INFO: ProcessCDR(1,14340218,1,1,2) [2025-01-27 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340218', 'tblTempUsageDetail_20' ) start [2025-01-27 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340218', 'tblTempUsageDetail_20' ) end [2025-01-27 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:46:21] Production.INFO: ==11788== Releasing lock... [2025-01-27 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:47:06 [end_date_ymd] => 2025-01-27 07:47:06 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:47:06' and `end` < '2025-01-27 07: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-01-27 07:47:19] Production.INFO: count ==120 [2025-01-27 07:47:19] Production.ERROR: pbx CDR StartTime 2025-01-27 04:47:06 - End Time 2025-01-27 07:47:06 [2025-01-27 07:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340223', 'tblTempUsageDetail_20' ) start [2025-01-27 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340223', 'tblTempUsageDetail_20' ) end [2025-01-27 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340223', 'tblTempVendorCDR_20' ) start [2025-01-27 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340223', 'tblTempVendorCDR_20' ) end [2025-01-27 07:47:19] Production.INFO: ProcessCDR(1,14340223,1,1,2) [2025-01-27 07:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340223', 'tblTempUsageDetail_20' ) start [2025-01-27 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340223', 'tblTempUsageDetail_20' ) end [2025-01-27 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:47:22] Production.INFO: ==11874== Releasing lock... [2025-01-27 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:47:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:48:05 [end_date_ymd] => 2025-01-27 07:48:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:48:05' and `end` < '2025-01-27 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-01-27 07:48:17] Production.INFO: count ==120 [2025-01-27 07:48:17] Production.ERROR: pbx CDR StartTime 2025-01-27 04:48:05 - End Time 2025-01-27 07:48:05 [2025-01-27 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340228', 'tblTempUsageDetail_20' ) start [2025-01-27 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340228', 'tblTempUsageDetail_20' ) end [2025-01-27 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340228', 'tblTempVendorCDR_20' ) start [2025-01-27 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340228', 'tblTempVendorCDR_20' ) end [2025-01-27 07:48:17] Production.INFO: ProcessCDR(1,14340228,1,1,2) [2025-01-27 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340228', 'tblTempUsageDetail_20' ) start [2025-01-27 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340228', 'tblTempUsageDetail_20' ) end [2025-01-27 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:48:21] Production.INFO: ==11950== Releasing lock... [2025-01-27 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:49:05 [end_date_ymd] => 2025-01-27 07:49:05 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:49:05' and `end` < '2025-01-27 07: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-01-27 07:49:18] Production.INFO: count ==120 [2025-01-27 07:49:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:49:05 - End Time 2025-01-27 07:49:05 [2025-01-27 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340233', 'tblTempUsageDetail_20' ) start [2025-01-27 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340233', 'tblTempUsageDetail_20' ) end [2025-01-27 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340233', 'tblTempVendorCDR_20' ) start [2025-01-27 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340233', 'tblTempVendorCDR_20' ) end [2025-01-27 07:49:18] Production.INFO: ProcessCDR(1,14340233,1,1,2) [2025-01-27 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340233', 'tblTempUsageDetail_20' ) start [2025-01-27 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340233', 'tblTempUsageDetail_20' ) end [2025-01-27 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:49:21] Production.INFO: ==12031== Releasing lock... [2025-01-27 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:50:06 [end_date_ymd] => 2025-01-27 07:50:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:50:06' and `end` < '2025-01-27 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-01-27 07:50:18] Production.INFO: count ==120 [2025-01-27 07:50:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:50:06 - End Time 2025-01-27 07:50:06 [2025-01-27 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340238', 'tblTempUsageDetail_20' ) start [2025-01-27 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340238', 'tblTempUsageDetail_20' ) end [2025-01-27 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340238', 'tblTempVendorCDR_20' ) start [2025-01-27 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340238', 'tblTempVendorCDR_20' ) end [2025-01-27 07:50:18] Production.INFO: ProcessCDR(1,14340238,1,1,2) [2025-01-27 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340238', 'tblTempUsageDetail_20' ) start [2025-01-27 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340238', 'tblTempUsageDetail_20' ) end [2025-01-27 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:50:21] Production.INFO: ==12116== Releasing lock... [2025-01-27 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:51:06 [end_date_ymd] => 2025-01-27 07:51:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:51:06' and `end` < '2025-01-27 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-01-27 07:51:18] Production.INFO: count ==120 [2025-01-27 07:51:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:51:06 - End Time 2025-01-27 07:51:06 [2025-01-27 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340244', 'tblTempUsageDetail_20' ) start [2025-01-27 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340244', 'tblTempUsageDetail_20' ) end [2025-01-27 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340244', 'tblTempVendorCDR_20' ) start [2025-01-27 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340244', 'tblTempVendorCDR_20' ) end [2025-01-27 07:51:18] Production.INFO: ProcessCDR(1,14340244,1,1,2) [2025-01-27 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340244', 'tblTempUsageDetail_20' ) start [2025-01-27 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340244', 'tblTempUsageDetail_20' ) end [2025-01-27 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:51:22] Production.INFO: ==12200== Releasing lock... [2025-01-27 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:51:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:52:05 [end_date_ymd] => 2025-01-27 07:52:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:52:05' and `end` < '2025-01-27 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-01-27 07:52:18] Production.INFO: count ==120 [2025-01-27 07:52:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:52:05 - End Time 2025-01-27 07:52:05 [2025-01-27 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340248', 'tblTempUsageDetail_20' ) start [2025-01-27 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340248', 'tblTempUsageDetail_20' ) end [2025-01-27 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340248', 'tblTempVendorCDR_20' ) start [2025-01-27 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340248', 'tblTempVendorCDR_20' ) end [2025-01-27 07:52:18] Production.INFO: ProcessCDR(1,14340248,1,1,2) [2025-01-27 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340248', 'tblTempUsageDetail_20' ) start [2025-01-27 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340248', 'tblTempUsageDetail_20' ) end [2025-01-27 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:52:22] Production.INFO: ==12276== Releasing lock... [2025-01-27 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:52:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:53:05 [end_date_ymd] => 2025-01-27 07:53:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:53:05' and `end` < '2025-01-27 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-01-27 07:53:18] Production.INFO: count ==120 [2025-01-27 07:53:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:53:05 - End Time 2025-01-27 07:53:05 [2025-01-27 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340254', 'tblTempUsageDetail_20' ) start [2025-01-27 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340254', 'tblTempUsageDetail_20' ) end [2025-01-27 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340254', 'tblTempVendorCDR_20' ) start [2025-01-27 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340254', 'tblTempVendorCDR_20' ) end [2025-01-27 07:53:18] Production.INFO: ProcessCDR(1,14340254,1,1,2) [2025-01-27 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340254', 'tblTempUsageDetail_20' ) start [2025-01-27 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340254', 'tblTempUsageDetail_20' ) end [2025-01-27 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:53:21] Production.INFO: ==12363== Releasing lock... [2025-01-27 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:54:05 [end_date_ymd] => 2025-01-27 07:54:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:54:05' and `end` < '2025-01-27 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-01-27 07:54:18] Production.INFO: count ==121 [2025-01-27 07:54:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:54:05 - End Time 2025-01-27 07:54:05 [2025-01-27 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340259', 'tblTempUsageDetail_20' ) start [2025-01-27 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340259', 'tblTempUsageDetail_20' ) end [2025-01-27 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340259', 'tblTempVendorCDR_20' ) start [2025-01-27 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340259', 'tblTempVendorCDR_20' ) end [2025-01-27 07:54:18] Production.INFO: ProcessCDR(1,14340259,1,1,2) [2025-01-27 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340259', 'tblTempUsageDetail_20' ) start [2025-01-27 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340259', 'tblTempUsageDetail_20' ) end [2025-01-27 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:54:21] Production.INFO: ==12440== Releasing lock... [2025-01-27 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:55:06 [end_date_ymd] => 2025-01-27 07:55:06 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:55:06' and `end` < '2025-01-27 07: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-01-27 07:55:18] Production.INFO: count ==121 [2025-01-27 07:55:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:55:06 - End Time 2025-01-27 07:55:06 [2025-01-27 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340264', 'tblTempUsageDetail_20' ) start [2025-01-27 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340264', 'tblTempUsageDetail_20' ) end [2025-01-27 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340264', 'tblTempVendorCDR_20' ) start [2025-01-27 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340264', 'tblTempVendorCDR_20' ) end [2025-01-27 07:55:18] Production.INFO: ProcessCDR(1,14340264,1,1,2) [2025-01-27 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340264', 'tblTempUsageDetail_20' ) start [2025-01-27 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340264', 'tblTempUsageDetail_20' ) end [2025-01-27 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:55:22] Production.INFO: ==12525== Releasing lock... [2025-01-27 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:55:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:56:05 [end_date_ymd] => 2025-01-27 07:56:05 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:56:05' and `end` < '2025-01-27 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-01-27 07:56:18] Production.INFO: count ==121 [2025-01-27 07:56:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:56:05 - End Time 2025-01-27 07:56:05 [2025-01-27 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340269', 'tblTempUsageDetail_20' ) start [2025-01-27 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340269', 'tblTempUsageDetail_20' ) end [2025-01-27 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340269', 'tblTempVendorCDR_20' ) start [2025-01-27 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340269', 'tblTempVendorCDR_20' ) end [2025-01-27 07:56:18] Production.INFO: ProcessCDR(1,14340269,1,1,2) [2025-01-27 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340269', 'tblTempUsageDetail_20' ) start [2025-01-27 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340269', 'tblTempUsageDetail_20' ) end [2025-01-27 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:56:22] Production.INFO: ==12600== Releasing lock... [2025-01-27 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:56:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:57:06 [end_date_ymd] => 2025-01-27 07:57:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 04:57:06' and `end` < '2025-01-27 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-01-27 07:57:19] Production.INFO: count ==122 [2025-01-27 07:57:19] Production.ERROR: pbx CDR StartTime 2025-01-27 04:57:06 - End Time 2025-01-27 07:57:06 [2025-01-27 07:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340274', 'tblTempUsageDetail_20' ) start [2025-01-27 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340274', 'tblTempUsageDetail_20' ) end [2025-01-27 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340274', 'tblTempVendorCDR_20' ) start [2025-01-27 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340274', 'tblTempVendorCDR_20' ) end [2025-01-27 07:57:19] Production.INFO: ProcessCDR(1,14340274,1,1,2) [2025-01-27 07:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340274', 'tblTempUsageDetail_20' ) start [2025-01-27 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340274', 'tblTempUsageDetail_20' ) end [2025-01-27 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:57:22] Production.INFO: ==12682== Releasing lock... [2025-01-27 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:57:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-27 07:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:58:06 [end_date_ymd] => 2025-01-27 07:58:06 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:58:06' and `end` < '2025-01-27 07: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-01-27 07:58:18] Production.INFO: count ==124 [2025-01-27 07:58:18] Production.ERROR: pbx CDR StartTime 2025-01-27 04:58:06 - End Time 2025-01-27 07:58:06 [2025-01-27 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340279', 'tblTempUsageDetail_20' ) start [2025-01-27 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340279', 'tblTempUsageDetail_20' ) end [2025-01-27 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340279', 'tblTempVendorCDR_20' ) start [2025-01-27 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340279', 'tblTempVendorCDR_20' ) end [2025-01-27 07:58:18] Production.INFO: ProcessCDR(1,14340279,1,1,2) [2025-01-27 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340279', 'tblTempUsageDetail_20' ) start [2025-01-27 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340279', 'tblTempUsageDetail_20' ) end [2025-01-27 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:58:22] Production.INFO: ==12761== Releasing lock... [2025-01-27 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:58:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 07:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 04:59:06 [end_date_ymd] => 2025-01-27 07:59:06 [RateCDR] => 1 ) [2025-01-27 07: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-01-27 04:59:06' and `end` < '2025-01-27 07: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-01-27 07:59:19] Production.INFO: count ==127 [2025-01-27 07:59:19] Production.ERROR: pbx CDR StartTime 2025-01-27 04:59:06 - End Time 2025-01-27 07:59:06 [2025-01-27 07:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340284', 'tblTempUsageDetail_20' ) start [2025-01-27 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340284', 'tblTempUsageDetail_20' ) end [2025-01-27 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340284', 'tblTempVendorCDR_20' ) start [2025-01-27 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340284', 'tblTempVendorCDR_20' ) end [2025-01-27 07:59:19] Production.INFO: ProcessCDR(1,14340284,1,1,2) [2025-01-27 07:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 07:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 07:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340284', 'tblTempUsageDetail_20' ) start [2025-01-27 07:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340284', 'tblTempUsageDetail_20' ) end [2025-01-27 07:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 07:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 07:59:24] Production.INFO: ==12837== Releasing lock... [2025-01-27 07:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 07:59:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:00:07 [end_date_ymd] => 2025-01-27 08:00:07 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:00:07' and `end` < '2025-01-27 08: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-01-27 08:00:19] Production.INFO: count ==143 [2025-01-27 08:00:19] Production.ERROR: pbx CDR StartTime 2025-01-27 05:00:07 - End Time 2025-01-27 08:00:07 [2025-01-27 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340290', 'tblTempUsageDetail_20' ) start [2025-01-27 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340290', 'tblTempUsageDetail_20' ) end [2025-01-27 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340290', 'tblTempVendorCDR_20' ) start [2025-01-27 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340290', 'tblTempVendorCDR_20' ) end [2025-01-27 08:00:19] Production.INFO: ProcessCDR(1,14340290,1,1,2) [2025-01-27 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340290', 'tblTempUsageDetail_20' ) start [2025-01-27 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340290', 'tblTempUsageDetail_20' ) end [2025-01-27 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:00:23] Production.INFO: ==12910== Releasing lock... [2025-01-27 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:00:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:01:05 [end_date_ymd] => 2025-01-27 08:01:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:01:05' and `end` < '2025-01-27 08: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-01-27 08:01:18] Production.INFO: count ==149 [2025-01-27 08:01:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:01:05 - End Time 2025-01-27 08:01:05 [2025-01-27 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340295', 'tblTempUsageDetail_20' ) start [2025-01-27 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340295', 'tblTempUsageDetail_20' ) end [2025-01-27 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340295', 'tblTempVendorCDR_20' ) start [2025-01-27 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340295', 'tblTempVendorCDR_20' ) end [2025-01-27 08:01:18] Production.INFO: ProcessCDR(1,14340295,1,1,2) [2025-01-27 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340295', 'tblTempUsageDetail_20' ) start [2025-01-27 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340295', 'tblTempUsageDetail_20' ) end [2025-01-27 08:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:01:23] Production.INFO: ==13036== Releasing lock... [2025-01-27 08:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:01:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-27 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:02:05 [end_date_ymd] => 2025-01-27 08:02:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:02:05' and `end` < '2025-01-27 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-01-27 08:02:18] Production.INFO: count ==174 [2025-01-27 08:02:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:02:05 - End Time 2025-01-27 08:02:05 [2025-01-27 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340300', 'tblTempUsageDetail_20' ) start [2025-01-27 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340300', 'tblTempUsageDetail_20' ) end [2025-01-27 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340300', 'tblTempVendorCDR_20' ) start [2025-01-27 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340300', 'tblTempVendorCDR_20' ) end [2025-01-27 08:02:18] Production.INFO: ProcessCDR(1,14340300,1,1,2) [2025-01-27 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340300', 'tblTempUsageDetail_20' ) start [2025-01-27 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340300', 'tblTempUsageDetail_20' ) end [2025-01-27 08:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:02:23] Production.INFO: ==13113== Releasing lock... [2025-01-27 08:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:02:23] Production.INFO: 29 MB #Memory Used# [2025-01-27 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:03:06 [end_date_ymd] => 2025-01-27 08:03:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:03:06' and `end` < '2025-01-27 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-01-27 08:03:18] Production.INFO: count ==181 [2025-01-27 08:03:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:03:06 - End Time 2025-01-27 08:03:06 [2025-01-27 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340305', 'tblTempUsageDetail_20' ) start [2025-01-27 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340305', 'tblTempUsageDetail_20' ) end [2025-01-27 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340305', 'tblTempVendorCDR_20' ) start [2025-01-27 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340305', 'tblTempVendorCDR_20' ) end [2025-01-27 08:03:18] Production.INFO: ProcessCDR(1,14340305,1,1,2) [2025-01-27 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340305', 'tblTempUsageDetail_20' ) start [2025-01-27 08:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340305', 'tblTempUsageDetail_20' ) end [2025-01-27 08:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:03:24] Production.INFO: ==13188== Releasing lock... [2025-01-27 08:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:03:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-27 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:04:05 [end_date_ymd] => 2025-01-27 08:04:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:04:05' and `end` < '2025-01-27 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-01-27 08:04:18] Production.INFO: count ==187 [2025-01-27 08:04:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:04:05 - End Time 2025-01-27 08:04:05 [2025-01-27 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340310', 'tblTempUsageDetail_20' ) start [2025-01-27 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340310', 'tblTempUsageDetail_20' ) end [2025-01-27 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340310', 'tblTempVendorCDR_20' ) start [2025-01-27 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340310', 'tblTempVendorCDR_20' ) end [2025-01-27 08:04:18] Production.INFO: ProcessCDR(1,14340310,1,1,2) [2025-01-27 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340310', 'tblTempUsageDetail_20' ) start [2025-01-27 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340310', 'tblTempUsageDetail_20' ) end [2025-01-27 08:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:04:23] Production.INFO: ==13263== Releasing lock... [2025-01-27 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:04:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-27 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:05:06 [end_date_ymd] => 2025-01-27 08:05:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:05:06' and `end` < '2025-01-27 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-01-27 08:05:23] Production.INFO: count ==188 [2025-01-27 08:05:23] Production.ERROR: pbx CDR StartTime 2025-01-27 05:05:06 - End Time 2025-01-27 08:05:06 [2025-01-27 08:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340315', 'tblTempUsageDetail_20' ) start [2025-01-27 08:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340315', 'tblTempUsageDetail_20' ) end [2025-01-27 08:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340315', 'tblTempVendorCDR_20' ) start [2025-01-27 08:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340315', 'tblTempVendorCDR_20' ) end [2025-01-27 08:05:23] Production.INFO: ProcessCDR(1,14340315,1,1,2) [2025-01-27 08:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340315', 'tblTempUsageDetail_20' ) start [2025-01-27 08:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340315', 'tblTempUsageDetail_20' ) end [2025-01-27 08:05:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:05:26] Production.INFO: ==13340== Releasing lock... [2025-01-27 08:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:05:26] Production.INFO: 29.5 MB #Memory Used# [2025-01-27 08:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:06:06 [end_date_ymd] => 2025-01-27 08:06:06 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:06:06' and `end` < '2025-01-27 08: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-01-27 08:06:18] Production.INFO: count ==199 [2025-01-27 08:06:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:06:06 - End Time 2025-01-27 08:06:06 [2025-01-27 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340320', 'tblTempUsageDetail_20' ) start [2025-01-27 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340320', 'tblTempUsageDetail_20' ) end [2025-01-27 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340320', 'tblTempVendorCDR_20' ) start [2025-01-27 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340320', 'tblTempVendorCDR_20' ) end [2025-01-27 08:06:18] Production.INFO: ProcessCDR(1,14340320,1,1,2) [2025-01-27 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340320', 'tblTempUsageDetail_20' ) start [2025-01-27 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340320', 'tblTempUsageDetail_20' ) end [2025-01-27 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:06:22] Production.INFO: ==13411== Releasing lock... [2025-01-27 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:06:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-27 08:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:07:06 [end_date_ymd] => 2025-01-27 08:07:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:07:06' and `end` < '2025-01-27 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-01-27 08:07:18] Production.INFO: count ==209 [2025-01-27 08:07:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:07:06 - End Time 2025-01-27 08:07:06 [2025-01-27 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340325', 'tblTempUsageDetail_20' ) start [2025-01-27 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340325', 'tblTempUsageDetail_20' ) end [2025-01-27 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340325', 'tblTempVendorCDR_20' ) start [2025-01-27 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340325', 'tblTempVendorCDR_20' ) end [2025-01-27 08:07:18] Production.INFO: ProcessCDR(1,14340325,1,1,2) [2025-01-27 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340325', 'tblTempUsageDetail_20' ) start [2025-01-27 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340325', 'tblTempUsageDetail_20' ) end [2025-01-27 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:07:22] Production.INFO: ==13482== Releasing lock... [2025-01-27 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:07:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-27 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:08:06 [end_date_ymd] => 2025-01-27 08:08:06 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:08:06' and `end` < '2025-01-27 08: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-01-27 08:08:18] Production.INFO: count ==212 [2025-01-27 08:08:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:08:06 - End Time 2025-01-27 08:08:06 [2025-01-27 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340330', 'tblTempUsageDetail_20' ) start [2025-01-27 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340330', 'tblTempUsageDetail_20' ) end [2025-01-27 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340330', 'tblTempVendorCDR_20' ) start [2025-01-27 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340330', 'tblTempVendorCDR_20' ) end [2025-01-27 08:08:18] Production.INFO: ProcessCDR(1,14340330,1,1,2) [2025-01-27 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340330', 'tblTempUsageDetail_20' ) start [2025-01-27 08:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340330', 'tblTempUsageDetail_20' ) end [2025-01-27 08:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:08:24] Production.INFO: ==13556== Releasing lock... [2025-01-27 08:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:08:24] Production.INFO: 29.5 MB #Memory Used# [2025-01-27 08:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:09:06 [end_date_ymd] => 2025-01-27 08:09:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:09:06' and `end` < '2025-01-27 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-01-27 08:09:18] Production.INFO: count ==213 [2025-01-27 08:09:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:09:06 - End Time 2025-01-27 08:09:06 [2025-01-27 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340334', 'tblTempUsageDetail_20' ) start [2025-01-27 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340334', 'tblTempUsageDetail_20' ) end [2025-01-27 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340334', 'tblTempVendorCDR_20' ) start [2025-01-27 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340334', 'tblTempVendorCDR_20' ) end [2025-01-27 08:09:18] Production.INFO: ProcessCDR(1,14340334,1,1,2) [2025-01-27 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340334', 'tblTempUsageDetail_20' ) start [2025-01-27 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340334', 'tblTempUsageDetail_20' ) end [2025-01-27 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:09:22] Production.INFO: ==13635== Releasing lock... [2025-01-27 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:09:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-27 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:10:06 [end_date_ymd] => 2025-01-27 08:10:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:10:06' and `end` < '2025-01-27 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-01-27 08:10:19] Production.INFO: count ==226 [2025-01-27 08:10:19] Production.ERROR: pbx CDR StartTime 2025-01-27 05:10:06 - End Time 2025-01-27 08:10:06 [2025-01-27 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340341', 'tblTempUsageDetail_20' ) start [2025-01-27 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340341', 'tblTempUsageDetail_20' ) end [2025-01-27 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340341', 'tblTempVendorCDR_20' ) start [2025-01-27 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340341', 'tblTempVendorCDR_20' ) end [2025-01-27 08:10:19] Production.INFO: ProcessCDR(1,14340341,1,1,2) [2025-01-27 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340341', 'tblTempUsageDetail_20' ) start [2025-01-27 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340341', 'tblTempUsageDetail_20' ) end [2025-01-27 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:10:23] Production.INFO: ==13711== Releasing lock... [2025-01-27 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:10:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-27 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:11:05 [end_date_ymd] => 2025-01-27 08:11:05 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:11:05' and `end` < '2025-01-27 08: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-01-27 08:11:17] Production.INFO: count ==245 [2025-01-27 08:11:17] Production.ERROR: pbx CDR StartTime 2025-01-27 05:11:05 - End Time 2025-01-27 08:11:05 [2025-01-27 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340346', 'tblTempUsageDetail_20' ) start [2025-01-27 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340346', 'tblTempUsageDetail_20' ) end [2025-01-27 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340346', 'tblTempVendorCDR_20' ) start [2025-01-27 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340346', 'tblTempVendorCDR_20' ) end [2025-01-27 08:11:17] Production.INFO: ProcessCDR(1,14340346,1,1,2) [2025-01-27 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340346', 'tblTempUsageDetail_20' ) start [2025-01-27 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340346', 'tblTempUsageDetail_20' ) end [2025-01-27 08:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:11:20] Production.INFO: ==13786== Releasing lock... [2025-01-27 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:11:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-27 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:12:05 [end_date_ymd] => 2025-01-27 08:12:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:12:05' and `end` < '2025-01-27 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-01-27 08:12:18] Production.INFO: count ==245 [2025-01-27 08:12:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:12:05 - End Time 2025-01-27 08:12:05 [2025-01-27 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340351', 'tblTempUsageDetail_20' ) start [2025-01-27 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340351', 'tblTempUsageDetail_20' ) end [2025-01-27 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340351', 'tblTempVendorCDR_20' ) start [2025-01-27 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340351', 'tblTempVendorCDR_20' ) end [2025-01-27 08:12:18] Production.INFO: ProcessCDR(1,14340351,1,1,2) [2025-01-27 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340351', 'tblTempUsageDetail_20' ) start [2025-01-27 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340351', 'tblTempUsageDetail_20' ) end [2025-01-27 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:12:21] Production.INFO: ==13860== Releasing lock... [2025-01-27 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-27 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:13:05 [end_date_ymd] => 2025-01-27 08:13:05 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:13:05' and `end` < '2025-01-27 08: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-01-27 08:13:17] Production.INFO: count ==247 [2025-01-27 08:13:17] Production.ERROR: pbx CDR StartTime 2025-01-27 05:13:05 - End Time 2025-01-27 08:13:05 [2025-01-27 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340356', 'tblTempUsageDetail_20' ) start [2025-01-27 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340356', 'tblTempUsageDetail_20' ) end [2025-01-27 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340356', 'tblTempVendorCDR_20' ) start [2025-01-27 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340356', 'tblTempVendorCDR_20' ) end [2025-01-27 08:13:17] Production.INFO: ProcessCDR(1,14340356,1,1,2) [2025-01-27 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340356', 'tblTempUsageDetail_20' ) start [2025-01-27 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340356', 'tblTempUsageDetail_20' ) end [2025-01-27 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:13:21] Production.INFO: ==13930== Releasing lock... [2025-01-27 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-27 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:14:06 [end_date_ymd] => 2025-01-27 08:14:06 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:14:06' and `end` < '2025-01-27 08: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-01-27 08:14:18] Production.INFO: count ==254 [2025-01-27 08:14:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:14:06 - End Time 2025-01-27 08:14:06 [2025-01-27 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340361', 'tblTempUsageDetail_20' ) start [2025-01-27 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340361', 'tblTempUsageDetail_20' ) end [2025-01-27 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340361', 'tblTempVendorCDR_20' ) start [2025-01-27 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340361', 'tblTempVendorCDR_20' ) end [2025-01-27 08:14:18] Production.INFO: ProcessCDR(1,14340361,1,1,2) [2025-01-27 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340361', 'tblTempUsageDetail_20' ) start [2025-01-27 08:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340361', 'tblTempUsageDetail_20' ) end [2025-01-27 08:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:14:24] Production.INFO: ==14004== Releasing lock... [2025-01-27 08:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:14:24] Production.INFO: 30 MB #Memory Used# [2025-01-27 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:15:05 [end_date_ymd] => 2025-01-27 08:15:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:15:05' and `end` < '2025-01-27 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-01-27 08:15:18] Production.INFO: count ==258 [2025-01-27 08:15:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:15:05 - End Time 2025-01-27 08:15:05 [2025-01-27 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340366', 'tblTempUsageDetail_20' ) start [2025-01-27 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340366', 'tblTempUsageDetail_20' ) end [2025-01-27 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340366', 'tblTempVendorCDR_20' ) start [2025-01-27 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340366', 'tblTempVendorCDR_20' ) end [2025-01-27 08:15:18] Production.INFO: ProcessCDR(1,14340366,1,1,2) [2025-01-27 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340366', 'tblTempUsageDetail_20' ) start [2025-01-27 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340366', 'tblTempUsageDetail_20' ) end [2025-01-27 08:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:15:23] Production.INFO: ==14076== Releasing lock... [2025-01-27 08:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:15:23] Production.INFO: 30 MB #Memory Used# [2025-01-27 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:16:06 [end_date_ymd] => 2025-01-27 08:16:06 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:16:06' and `end` < '2025-01-27 08: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-01-27 08:16:18] Production.INFO: count ==263 [2025-01-27 08:16:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:16:06 - End Time 2025-01-27 08:16:06 [2025-01-27 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340371', 'tblTempUsageDetail_20' ) start [2025-01-27 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340371', 'tblTempUsageDetail_20' ) end [2025-01-27 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340371', 'tblTempVendorCDR_20' ) start [2025-01-27 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340371', 'tblTempVendorCDR_20' ) end [2025-01-27 08:16:18] Production.INFO: ProcessCDR(1,14340371,1,1,2) [2025-01-27 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340371', 'tblTempUsageDetail_20' ) start [2025-01-27 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340371', 'tblTempUsageDetail_20' ) end [2025-01-27 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:16:23] Production.INFO: ==14190== Releasing lock... [2025-01-27 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:16:23] Production.INFO: 30 MB #Memory Used# [2025-01-27 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:17:05 [end_date_ymd] => 2025-01-27 08:17:05 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:17:05' and `end` < '2025-01-27 08: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-01-27 08:17:18] Production.INFO: count ==270 [2025-01-27 08:17:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:17:05 - End Time 2025-01-27 08:17:05 [2025-01-27 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340376', 'tblTempUsageDetail_20' ) start [2025-01-27 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340376', 'tblTempUsageDetail_20' ) end [2025-01-27 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340376', 'tblTempVendorCDR_20' ) start [2025-01-27 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340376', 'tblTempVendorCDR_20' ) end [2025-01-27 08:17:18] Production.INFO: ProcessCDR(1,14340376,1,1,2) [2025-01-27 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340376', 'tblTempUsageDetail_20' ) start [2025-01-27 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340376', 'tblTempUsageDetail_20' ) end [2025-01-27 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:17:22] Production.INFO: ==14266== Releasing lock... [2025-01-27 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:17:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:18:06 [end_date_ymd] => 2025-01-27 08:18:06 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:18:06' and `end` < '2025-01-27 08: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-01-27 08:18:18] Production.INFO: count ==270 [2025-01-27 08:18:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:18:06 - End Time 2025-01-27 08:18:06 [2025-01-27 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340381', 'tblTempUsageDetail_20' ) start [2025-01-27 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340381', 'tblTempUsageDetail_20' ) end [2025-01-27 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340381', 'tblTempVendorCDR_20' ) start [2025-01-27 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340381', 'tblTempVendorCDR_20' ) end [2025-01-27 08:18:18] Production.INFO: ProcessCDR(1,14340381,1,1,2) [2025-01-27 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340381', 'tblTempUsageDetail_20' ) start [2025-01-27 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340381', 'tblTempUsageDetail_20' ) end [2025-01-27 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:18:22] Production.INFO: ==14349== Releasing lock... [2025-01-27 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:18:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:19:05 [end_date_ymd] => 2025-01-27 08:19:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:19:05' and `end` < '2025-01-27 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-01-27 08:19:17] Production.INFO: count ==273 [2025-01-27 08:19:17] Production.ERROR: pbx CDR StartTime 2025-01-27 05:19:05 - End Time 2025-01-27 08:19:05 [2025-01-27 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340386', 'tblTempUsageDetail_20' ) start [2025-01-27 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340386', 'tblTempUsageDetail_20' ) end [2025-01-27 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340386', 'tblTempVendorCDR_20' ) start [2025-01-27 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340386', 'tblTempVendorCDR_20' ) end [2025-01-27 08:19:17] Production.INFO: ProcessCDR(1,14340386,1,1,2) [2025-01-27 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340386', 'tblTempUsageDetail_20' ) start [2025-01-27 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340386', 'tblTempUsageDetail_20' ) end [2025-01-27 08:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:19:23] Production.INFO: ==14430== Releasing lock... [2025-01-27 08:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:19:23] Production.INFO: 30 MB #Memory Used# [2025-01-27 08:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:20:07 [end_date_ymd] => 2025-01-27 08:20:07 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:20:07' and `end` < '2025-01-27 08: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-01-27 08:20:19] Production.INFO: count ==299 [2025-01-27 08:20:19] Production.ERROR: pbx CDR StartTime 2025-01-27 05:20:07 - End Time 2025-01-27 08:20:07 [2025-01-27 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340392', 'tblTempUsageDetail_20' ) start [2025-01-27 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340392', 'tblTempUsageDetail_20' ) end [2025-01-27 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340392', 'tblTempVendorCDR_20' ) start [2025-01-27 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340392', 'tblTempVendorCDR_20' ) end [2025-01-27 08:20:19] Production.INFO: ProcessCDR(1,14340392,1,1,2) [2025-01-27 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340392', 'tblTempUsageDetail_20' ) start [2025-01-27 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340392', 'tblTempUsageDetail_20' ) end [2025-01-27 08:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:20:24] Production.INFO: ==14505== Releasing lock... [2025-01-27 08:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:20:24] Production.INFO: 30 MB #Memory Used# [2025-01-27 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:21:05 [end_date_ymd] => 2025-01-27 08:21:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:21:05' and `end` < '2025-01-27 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-01-27 08:21:18] Production.INFO: count ==318 [2025-01-27 08:21:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:21:05 - End Time 2025-01-27 08:21:05 [2025-01-27 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340397', 'tblTempUsageDetail_20' ) start [2025-01-27 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340397', 'tblTempUsageDetail_20' ) end [2025-01-27 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340397', 'tblTempVendorCDR_20' ) start [2025-01-27 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340397', 'tblTempVendorCDR_20' ) end [2025-01-27 08:21:18] Production.INFO: ProcessCDR(1,14340397,1,1,2) [2025-01-27 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340397', 'tblTempUsageDetail_20' ) start [2025-01-27 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340397', 'tblTempUsageDetail_20' ) end [2025-01-27 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:21:22] Production.INFO: ==14577== Releasing lock... [2025-01-27 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:21:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:22:05 [end_date_ymd] => 2025-01-27 08:22:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:22:05' and `end` < '2025-01-27 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-01-27 08:22:18] Production.INFO: count ==318 [2025-01-27 08:22:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:22:05 - End Time 2025-01-27 08:22:05 [2025-01-27 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340402', 'tblTempUsageDetail_20' ) start [2025-01-27 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340402', 'tblTempUsageDetail_20' ) end [2025-01-27 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340402', 'tblTempVendorCDR_20' ) start [2025-01-27 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340402', 'tblTempVendorCDR_20' ) end [2025-01-27 08:22:18] Production.INFO: ProcessCDR(1,14340402,1,1,2) [2025-01-27 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340402', 'tblTempUsageDetail_20' ) start [2025-01-27 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340402', 'tblTempUsageDetail_20' ) end [2025-01-27 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:22:21] Production.INFO: ==14646== Releasing lock... [2025-01-27 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 08:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:23:06 [end_date_ymd] => 2025-01-27 08:23:06 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:23:06' and `end` < '2025-01-27 08: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-01-27 08:23:19] Production.INFO: count ==318 [2025-01-27 08:23:19] Production.ERROR: pbx CDR StartTime 2025-01-27 05:23:06 - End Time 2025-01-27 08:23:06 [2025-01-27 08:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340407', 'tblTempUsageDetail_20' ) start [2025-01-27 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340407', 'tblTempUsageDetail_20' ) end [2025-01-27 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340407', 'tblTempVendorCDR_20' ) start [2025-01-27 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340407', 'tblTempVendorCDR_20' ) end [2025-01-27 08:23:19] Production.INFO: ProcessCDR(1,14340407,1,1,2) [2025-01-27 08:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340407', 'tblTempUsageDetail_20' ) start [2025-01-27 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340407', 'tblTempUsageDetail_20' ) end [2025-01-27 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:23:23] Production.INFO: ==14722== Releasing lock... [2025-01-27 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:23:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:24:05 [end_date_ymd] => 2025-01-27 08:24:05 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:24:05' and `end` < '2025-01-27 08: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-01-27 08:24:18] Production.INFO: count ==325 [2025-01-27 08:24:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:24:05 - End Time 2025-01-27 08:24:05 [2025-01-27 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340412', 'tblTempUsageDetail_20' ) start [2025-01-27 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340412', 'tblTempUsageDetail_20' ) end [2025-01-27 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340412', 'tblTempVendorCDR_20' ) start [2025-01-27 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340412', 'tblTempVendorCDR_20' ) end [2025-01-27 08:24:18] Production.INFO: ProcessCDR(1,14340412,1,1,2) [2025-01-27 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340412', 'tblTempUsageDetail_20' ) start [2025-01-27 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340412', 'tblTempUsageDetail_20' ) end [2025-01-27 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:24:23] Production.INFO: ==14798== Releasing lock... [2025-01-27 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:24:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-27 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:25:06 [end_date_ymd] => 2025-01-27 08:25:06 [RateCDR] => 1 ) [2025-01-27 08:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 05:25:06' and `end` < '2025-01-27 08:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-27 08:25:19] Production.INFO: count ==331 [2025-01-27 08:25:19] Production.ERROR: pbx CDR StartTime 2025-01-27 05:25:06 - End Time 2025-01-27 08:25:06 [2025-01-27 08:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340417', 'tblTempUsageDetail_20' ) start [2025-01-27 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340417', 'tblTempUsageDetail_20' ) end [2025-01-27 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340417', 'tblTempVendorCDR_20' ) start [2025-01-27 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340417', 'tblTempVendorCDR_20' ) end [2025-01-27 08:25:19] Production.INFO: ProcessCDR(1,14340417,1,1,2) [2025-01-27 08:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340417', 'tblTempUsageDetail_20' ) start [2025-01-27 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340417', 'tblTempUsageDetail_20' ) end [2025-01-27 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:25:24] Production.INFO: ==14868== Releasing lock... [2025-01-27 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-27 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:26:05 [end_date_ymd] => 2025-01-27 08:26:05 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:26:05' and `end` < '2025-01-27 08: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-01-27 08:26:18] Production.INFO: count ==337 [2025-01-27 08:26:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:26:05 - End Time 2025-01-27 08:26:05 [2025-01-27 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340422', 'tblTempUsageDetail_20' ) start [2025-01-27 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340422', 'tblTempUsageDetail_20' ) end [2025-01-27 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340422', 'tblTempVendorCDR_20' ) start [2025-01-27 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340422', 'tblTempVendorCDR_20' ) end [2025-01-27 08:26:18] Production.INFO: ProcessCDR(1,14340422,1,1,2) [2025-01-27 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340422', 'tblTempUsageDetail_20' ) start [2025-01-27 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340422', 'tblTempUsageDetail_20' ) end [2025-01-27 08:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:26:23] Production.INFO: ==14939== Releasing lock... [2025-01-27 08:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:26:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:27:06 [end_date_ymd] => 2025-01-27 08:27:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:27:06' and `end` < '2025-01-27 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-01-27 08:27:18] Production.INFO: count ==341 [2025-01-27 08:27:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:27:06 - End Time 2025-01-27 08:27:06 [2025-01-27 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340427', 'tblTempUsageDetail_20' ) start [2025-01-27 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340427', 'tblTempUsageDetail_20' ) end [2025-01-27 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340427', 'tblTempVendorCDR_20' ) start [2025-01-27 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340427', 'tblTempVendorCDR_20' ) end [2025-01-27 08:27:18] Production.INFO: ProcessCDR(1,14340427,1,1,2) [2025-01-27 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340427', 'tblTempUsageDetail_20' ) start [2025-01-27 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340427', 'tblTempUsageDetail_20' ) end [2025-01-27 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:27:22] Production.INFO: ==15011== Releasing lock... [2025-01-27 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:27:22] Production.INFO: 31 MB #Memory Used# [2025-01-27 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:28:05 [end_date_ymd] => 2025-01-27 08:28:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:28:05' and `end` < '2025-01-27 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-01-27 08:28:18] Production.INFO: count ==343 [2025-01-27 08:28:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:28:05 - End Time 2025-01-27 08:28:05 [2025-01-27 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340432', 'tblTempUsageDetail_20' ) start [2025-01-27 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340432', 'tblTempUsageDetail_20' ) end [2025-01-27 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340432', 'tblTempVendorCDR_20' ) start [2025-01-27 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340432', 'tblTempVendorCDR_20' ) end [2025-01-27 08:28:18] Production.INFO: ProcessCDR(1,14340432,1,1,2) [2025-01-27 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340432', 'tblTempUsageDetail_20' ) start [2025-01-27 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340432', 'tblTempUsageDetail_20' ) end [2025-01-27 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:28:22] Production.INFO: ==15081== Releasing lock... [2025-01-27 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:28:22] Production.INFO: 31 MB #Memory Used# [2025-01-27 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:29:06 [end_date_ymd] => 2025-01-27 08:29:06 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:29:06' and `end` < '2025-01-27 08: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-01-27 08:29:19] Production.INFO: count ==345 [2025-01-27 08:29:19] Production.ERROR: pbx CDR StartTime 2025-01-27 05:29:06 - End Time 2025-01-27 08:29:06 [2025-01-27 08:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340437', 'tblTempUsageDetail_20' ) start [2025-01-27 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340437', 'tblTempUsageDetail_20' ) end [2025-01-27 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340437', 'tblTempVendorCDR_20' ) start [2025-01-27 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340437', 'tblTempVendorCDR_20' ) end [2025-01-27 08:29:19] Production.INFO: ProcessCDR(1,14340437,1,1,2) [2025-01-27 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340437', 'tblTempUsageDetail_20' ) start [2025-01-27 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340437', 'tblTempUsageDetail_20' ) end [2025-01-27 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:29:22] Production.INFO: ==15152== Releasing lock... [2025-01-27 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:29:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:30:06 [end_date_ymd] => 2025-01-27 08:30:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:30:06' and `end` < '2025-01-27 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-01-27 08:30:19] Production.INFO: count ==360 [2025-01-27 08:30:19] Production.ERROR: pbx CDR StartTime 2025-01-27 05:30:06 - End Time 2025-01-27 08:30:06 [2025-01-27 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340443', 'tblTempUsageDetail_20' ) start [2025-01-27 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340443', 'tblTempUsageDetail_20' ) end [2025-01-27 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340443', 'tblTempVendorCDR_20' ) start [2025-01-27 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340443', 'tblTempVendorCDR_20' ) end [2025-01-27 08:30:19] Production.INFO: ProcessCDR(1,14340443,1,1,2) [2025-01-27 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340443', 'tblTempUsageDetail_20' ) start [2025-01-27 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340443', 'tblTempUsageDetail_20' ) end [2025-01-27 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:30:22] Production.INFO: ==15225== Releasing lock... [2025-01-27 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:30:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:31:05 [end_date_ymd] => 2025-01-27 08:31:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:31:05' and `end` < '2025-01-27 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-01-27 08:31:18] Production.INFO: count ==377 [2025-01-27 08:31:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:31:05 - End Time 2025-01-27 08:31:05 [2025-01-27 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340448', 'tblTempUsageDetail_20' ) start [2025-01-27 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340448', 'tblTempUsageDetail_20' ) end [2025-01-27 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340448', 'tblTempVendorCDR_20' ) start [2025-01-27 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340448', 'tblTempVendorCDR_20' ) end [2025-01-27 08:31:18] Production.INFO: ProcessCDR(1,14340448,1,1,2) [2025-01-27 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340448', 'tblTempUsageDetail_20' ) start [2025-01-27 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340448', 'tblTempUsageDetail_20' ) end [2025-01-27 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:31:21] Production.INFO: ==15302== Releasing lock... [2025-01-27 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:31:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-27 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:32:05 [end_date_ymd] => 2025-01-27 08:32:05 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:32:05' and `end` < '2025-01-27 08: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-01-27 08:32:18] Production.INFO: count ==379 [2025-01-27 08:32:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:32:05 - End Time 2025-01-27 08:32:05 [2025-01-27 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340453', 'tblTempUsageDetail_20' ) start [2025-01-27 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340453', 'tblTempUsageDetail_20' ) end [2025-01-27 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340453', 'tblTempVendorCDR_20' ) start [2025-01-27 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340453', 'tblTempVendorCDR_20' ) end [2025-01-27 08:32:18] Production.INFO: ProcessCDR(1,14340453,1,1,2) [2025-01-27 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340453', 'tblTempUsageDetail_20' ) start [2025-01-27 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340453', 'tblTempUsageDetail_20' ) end [2025-01-27 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:32:21] Production.INFO: ==15417== Releasing lock... [2025-01-27 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:32:21] Production.INFO: 31 MB #Memory Used# [2025-01-27 08:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:33:06 [end_date_ymd] => 2025-01-27 08:33:06 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:33:06' and `end` < '2025-01-27 08: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-01-27 08:33:18] Production.INFO: count ==379 [2025-01-27 08:33:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:33:06 - End Time 2025-01-27 08:33:06 [2025-01-27 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340458', 'tblTempUsageDetail_20' ) start [2025-01-27 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340458', 'tblTempUsageDetail_20' ) end [2025-01-27 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340458', 'tblTempVendorCDR_20' ) start [2025-01-27 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340458', 'tblTempVendorCDR_20' ) end [2025-01-27 08:33:18] Production.INFO: ProcessCDR(1,14340458,1,1,2) [2025-01-27 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340458', 'tblTempUsageDetail_20' ) start [2025-01-27 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340458', 'tblTempUsageDetail_20' ) end [2025-01-27 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:33:22] Production.INFO: ==15488== Releasing lock... [2025-01-27 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:33:22] Production.INFO: 31 MB #Memory Used# [2025-01-27 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:34:05 [end_date_ymd] => 2025-01-27 08:34:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:34:05' and `end` < '2025-01-27 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-01-27 08:34:18] Production.INFO: count ==405 [2025-01-27 08:34:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:34:05 - End Time 2025-01-27 08:34:05 [2025-01-27 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340463', 'tblTempUsageDetail_20' ) start [2025-01-27 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340463', 'tblTempUsageDetail_20' ) end [2025-01-27 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340463', 'tblTempVendorCDR_20' ) start [2025-01-27 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340463', 'tblTempVendorCDR_20' ) end [2025-01-27 08:34:18] Production.INFO: ProcessCDR(1,14340463,1,1,2) [2025-01-27 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340463', 'tblTempUsageDetail_20' ) start [2025-01-27 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340463', 'tblTempUsageDetail_20' ) end [2025-01-27 08:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:34:23] Production.INFO: ==15566== Releasing lock... [2025-01-27 08:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:34:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-27 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:35:05 [end_date_ymd] => 2025-01-27 08:35:05 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:35:05' and `end` < '2025-01-27 08: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-01-27 08:35:17] Production.INFO: count ==416 [2025-01-27 08:35:17] Production.ERROR: pbx CDR StartTime 2025-01-27 05:35:05 - End Time 2025-01-27 08:35:05 [2025-01-27 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340468', 'tblTempUsageDetail_20' ) start [2025-01-27 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340468', 'tblTempUsageDetail_20' ) end [2025-01-27 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340468', 'tblTempVendorCDR_20' ) start [2025-01-27 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340468', 'tblTempVendorCDR_20' ) end [2025-01-27 08:35:17] Production.INFO: ProcessCDR(1,14340468,1,1,2) [2025-01-27 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340468', 'tblTempUsageDetail_20' ) start [2025-01-27 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340468', 'tblTempUsageDetail_20' ) end [2025-01-27 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:35:21] Production.INFO: ==15654== Releasing lock... [2025-01-27 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:35:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:36:05 [end_date_ymd] => 2025-01-27 08:36:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:36:05' and `end` < '2025-01-27 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-01-27 08:36:18] Production.INFO: count ==422 [2025-01-27 08:36:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:36:05 - End Time 2025-01-27 08:36:05 [2025-01-27 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340473', 'tblTempUsageDetail_20' ) start [2025-01-27 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340473', 'tblTempUsageDetail_20' ) end [2025-01-27 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340473', 'tblTempVendorCDR_20' ) start [2025-01-27 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340473', 'tblTempVendorCDR_20' ) end [2025-01-27 08:36:18] Production.INFO: ProcessCDR(1,14340473,1,1,2) [2025-01-27 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340473', 'tblTempUsageDetail_20' ) start [2025-01-27 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340473', 'tblTempUsageDetail_20' ) end [2025-01-27 08:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:36:23] Production.INFO: ==15752== Releasing lock... [2025-01-27 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:36:23] Production.INFO: 31 MB #Memory Used# [2025-01-27 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:37:05 [end_date_ymd] => 2025-01-27 08:37:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:37:05' and `end` < '2025-01-27 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-01-27 08:37:18] Production.INFO: count ==426 [2025-01-27 08:37:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:37:05 - End Time 2025-01-27 08:37:05 [2025-01-27 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340478', 'tblTempUsageDetail_20' ) start [2025-01-27 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340478', 'tblTempUsageDetail_20' ) end [2025-01-27 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340478', 'tblTempVendorCDR_20' ) start [2025-01-27 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340478', 'tblTempVendorCDR_20' ) end [2025-01-27 08:37:18] Production.INFO: ProcessCDR(1,14340478,1,1,2) [2025-01-27 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340478', 'tblTempUsageDetail_20' ) start [2025-01-27 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340478', 'tblTempUsageDetail_20' ) end [2025-01-27 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:37:22] Production.INFO: ==15839== Releasing lock... [2025-01-27 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:37:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-27 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:38:06 [end_date_ymd] => 2025-01-27 08:38:06 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:38:06' and `end` < '2025-01-27 08: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-01-27 08:38:23] Production.INFO: count ==432 [2025-01-27 08:38:23] Production.ERROR: pbx CDR StartTime 2025-01-27 05:38:06 - End Time 2025-01-27 08:38:06 [2025-01-27 08:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340483', 'tblTempUsageDetail_20' ) start [2025-01-27 08:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340483', 'tblTempUsageDetail_20' ) end [2025-01-27 08:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340483', 'tblTempVendorCDR_20' ) start [2025-01-27 08:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340483', 'tblTempVendorCDR_20' ) end [2025-01-27 08:38:23] Production.INFO: ProcessCDR(1,14340483,1,1,2) [2025-01-27 08:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340483', 'tblTempUsageDetail_20' ) start [2025-01-27 08:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340483', 'tblTempUsageDetail_20' ) end [2025-01-27 08:38:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:38:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:38:28] Production.INFO: ==15931== Releasing lock... [2025-01-27 08:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:38:28] Production.INFO: 31.75 MB #Memory Used# [2025-01-27 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:39:05 [end_date_ymd] => 2025-01-27 08:39:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:39:05' and `end` < '2025-01-27 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-01-27 08:39:18] Production.INFO: count ==437 [2025-01-27 08:39:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:39:05 - End Time 2025-01-27 08:39:05 [2025-01-27 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340488', 'tblTempUsageDetail_20' ) start [2025-01-27 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340488', 'tblTempUsageDetail_20' ) end [2025-01-27 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340488', 'tblTempVendorCDR_20' ) start [2025-01-27 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340488', 'tblTempVendorCDR_20' ) end [2025-01-27 08:39:18] Production.INFO: ProcessCDR(1,14340488,1,1,2) [2025-01-27 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340488', 'tblTempUsageDetail_20' ) start [2025-01-27 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340488', 'tblTempUsageDetail_20' ) end [2025-01-27 08:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:39:23] Production.INFO: ==16026== Releasing lock... [2025-01-27 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:39:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-27 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:40:06 [end_date_ymd] => 2025-01-27 08:40:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:40:06' and `end` < '2025-01-27 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-01-27 08:40:19] Production.INFO: count ==451 [2025-01-27 08:40:19] Production.ERROR: pbx CDR StartTime 2025-01-27 05:40:06 - End Time 2025-01-27 08:40:06 [2025-01-27 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340494', 'tblTempUsageDetail_20' ) start [2025-01-27 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340494', 'tblTempUsageDetail_20' ) end [2025-01-27 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340494', 'tblTempVendorCDR_20' ) start [2025-01-27 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340494', 'tblTempVendorCDR_20' ) end [2025-01-27 08:40:19] Production.INFO: ProcessCDR(1,14340494,1,1,2) [2025-01-27 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340494', 'tblTempUsageDetail_20' ) start [2025-01-27 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340494', 'tblTempUsageDetail_20' ) end [2025-01-27 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:40:23] Production.INFO: ==16115== Releasing lock... [2025-01-27 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:40:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-27 08:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:41:06 [end_date_ymd] => 2025-01-27 08:41:06 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:41:06' and `end` < '2025-01-27 08: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-01-27 08:41:19] Production.INFO: count ==500 [2025-01-27 08:41:19] Production.ERROR: pbx CDR StartTime 2025-01-27 05:41:06 - End Time 2025-01-27 08:41:06 [2025-01-27 08:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340499', 'tblTempUsageDetail_20' ) start [2025-01-27 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340499', 'tblTempUsageDetail_20' ) end [2025-01-27 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340499', 'tblTempVendorCDR_20' ) start [2025-01-27 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340499', 'tblTempVendorCDR_20' ) end [2025-01-27 08:41:19] Production.INFO: ProcessCDR(1,14340499,1,1,2) [2025-01-27 08:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340499', 'tblTempUsageDetail_20' ) start [2025-01-27 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340499', 'tblTempUsageDetail_20' ) end [2025-01-27 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:41:23] Production.INFO: ==16212== Releasing lock... [2025-01-27 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:41:23] Production.INFO: 32 MB #Memory Used# [2025-01-27 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:42:06 [end_date_ymd] => 2025-01-27 08:42:06 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:42:06' and `end` < '2025-01-27 08: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-01-27 08:42:18] Production.INFO: count ==504 [2025-01-27 08:42:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:42:06 - End Time 2025-01-27 08:42:06 [2025-01-27 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340504', 'tblTempUsageDetail_20' ) start [2025-01-27 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340504', 'tblTempUsageDetail_20' ) end [2025-01-27 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340504', 'tblTempVendorCDR_20' ) start [2025-01-27 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340504', 'tblTempVendorCDR_20' ) end [2025-01-27 08:42:18] Production.INFO: ProcessCDR(1,14340504,1,1,2) [2025-01-27 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340504', 'tblTempUsageDetail_20' ) start [2025-01-27 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340504', 'tblTempUsageDetail_20' ) end [2025-01-27 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:42:23] Production.INFO: ==16299== Releasing lock... [2025-01-27 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:42:23] Production.INFO: 32 MB #Memory Used# [2025-01-27 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:43:05 [end_date_ymd] => 2025-01-27 08:43:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:43:05' and `end` < '2025-01-27 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-01-27 08:43:26] Production.INFO: count ==511 [2025-01-27 08:43:26] Production.ERROR: pbx CDR StartTime 2025-01-27 05:43:05 - End Time 2025-01-27 08:43:05 [2025-01-27 08:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340509', 'tblTempUsageDetail_20' ) start [2025-01-27 08:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340509', 'tblTempUsageDetail_20' ) end [2025-01-27 08:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340509', 'tblTempVendorCDR_20' ) start [2025-01-27 08:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340509', 'tblTempVendorCDR_20' ) end [2025-01-27 08:43:26] Production.INFO: ProcessCDR(1,14340509,1,1,2) [2025-01-27 08:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340509', 'tblTempUsageDetail_20' ) start [2025-01-27 08:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340509', 'tblTempUsageDetail_20' ) end [2025-01-27 08:43:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:43:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:43:29] Production.INFO: ==16387== Releasing lock... [2025-01-27 08:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:43:29] Production.INFO: 32.25 MB #Memory Used# [2025-01-27 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:44:05 [end_date_ymd] => 2025-01-27 08:44:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:44:05' and `end` < '2025-01-27 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-01-27 08:44:18] Production.INFO: count ==526 [2025-01-27 08:44:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:44:05 - End Time 2025-01-27 08:44:05 [2025-01-27 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340514', 'tblTempUsageDetail_20' ) start [2025-01-27 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340514', 'tblTempUsageDetail_20' ) end [2025-01-27 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340514', 'tblTempVendorCDR_20' ) start [2025-01-27 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340514', 'tblTempVendorCDR_20' ) end [2025-01-27 08:44:18] Production.INFO: ProcessCDR(1,14340514,1,1,2) [2025-01-27 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340514', 'tblTempUsageDetail_20' ) start [2025-01-27 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340514', 'tblTempUsageDetail_20' ) end [2025-01-27 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:44:23] Production.INFO: ==16478== Releasing lock... [2025-01-27 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:44:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-27 08:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:45:06 [end_date_ymd] => 2025-01-27 08:45:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:45:06' and `end` < '2025-01-27 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-01-27 08:45:18] Production.INFO: count ==528 [2025-01-27 08:45:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:45:06 - End Time 2025-01-27 08:45:06 [2025-01-27 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340519', 'tblTempUsageDetail_20' ) start [2025-01-27 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340519', 'tblTempUsageDetail_20' ) end [2025-01-27 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340519', 'tblTempVendorCDR_20' ) start [2025-01-27 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340519', 'tblTempVendorCDR_20' ) end [2025-01-27 08:45:19] Production.INFO: ProcessCDR(1,14340519,1,1,2) [2025-01-27 08:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340519', 'tblTempUsageDetail_20' ) start [2025-01-27 08:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340519', 'tblTempUsageDetail_20' ) end [2025-01-27 08:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:45:24] Production.INFO: ==16569== Releasing lock... [2025-01-27 08:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:45:24] Production.INFO: 33 MB #Memory Used# [2025-01-27 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:46:05 [end_date_ymd] => 2025-01-27 08:46:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:46:05' and `end` < '2025-01-27 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-01-27 08:46:18] Production.INFO: count ==533 [2025-01-27 08:46:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:46:05 - End Time 2025-01-27 08:46:05 [2025-01-27 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340524', 'tblTempUsageDetail_20' ) start [2025-01-27 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340524', 'tblTempUsageDetail_20' ) end [2025-01-27 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340524', 'tblTempVendorCDR_20' ) start [2025-01-27 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340524', 'tblTempVendorCDR_20' ) end [2025-01-27 08:46:18] Production.INFO: ProcessCDR(1,14340524,1,1,2) [2025-01-27 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340524', 'tblTempUsageDetail_20' ) start [2025-01-27 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340524', 'tblTempUsageDetail_20' ) end [2025-01-27 08:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:46:23] Production.INFO: ==16658== Releasing lock... [2025-01-27 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:46:23] Production.INFO: 33 MB #Memory Used# [2025-01-27 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:47:06 [end_date_ymd] => 2025-01-27 08:47:06 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:47:06' and `end` < '2025-01-27 08: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-01-27 08:47:21] Production.INFO: count ==541 [2025-01-27 08:47:21] Production.ERROR: pbx CDR StartTime 2025-01-27 05:47:06 - End Time 2025-01-27 08:47:06 [2025-01-27 08:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340529', 'tblTempUsageDetail_20' ) start [2025-01-27 08:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340529', 'tblTempUsageDetail_20' ) end [2025-01-27 08:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340529', 'tblTempVendorCDR_20' ) start [2025-01-27 08:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340529', 'tblTempVendorCDR_20' ) end [2025-01-27 08:47:21] Production.INFO: ProcessCDR(1,14340529,1,1,2) [2025-01-27 08:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340529', 'tblTempUsageDetail_20' ) start [2025-01-27 08:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340529', 'tblTempUsageDetail_20' ) end [2025-01-27 08:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:47:24] Production.INFO: ==16783== Releasing lock... [2025-01-27 08:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:47:24] Production.INFO: 32.75 MB #Memory Used# [2025-01-27 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:48:05 [end_date_ymd] => 2025-01-27 08:48:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:48:05' and `end` < '2025-01-27 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-01-27 08:48:18] Production.INFO: count ==549 [2025-01-27 08:48:18] Production.ERROR: pbx CDR StartTime 2025-01-27 05:48:05 - End Time 2025-01-27 08:48:05 [2025-01-27 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340534', 'tblTempUsageDetail_20' ) start [2025-01-27 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340534', 'tblTempUsageDetail_20' ) end [2025-01-27 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340534', 'tblTempVendorCDR_20' ) start [2025-01-27 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340534', 'tblTempVendorCDR_20' ) end [2025-01-27 08:48:18] Production.INFO: ProcessCDR(1,14340534,1,1,2) [2025-01-27 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340534', 'tblTempUsageDetail_20' ) start [2025-01-27 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340534', 'tblTempUsageDetail_20' ) end [2025-01-27 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:48:23] Production.INFO: ==16876== Releasing lock... [2025-01-27 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:48:23] Production.INFO: 33 MB #Memory Used# [2025-01-27 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:49:05 [end_date_ymd] => 2025-01-27 08:49:05 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:49:05' and `end` < '2025-01-27 08: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-01-27 08:49:25] Production.INFO: count ==578 [2025-01-27 08:49:25] Production.ERROR: pbx CDR StartTime 2025-01-27 05:49:05 - End Time 2025-01-27 08:49:05 [2025-01-27 08:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340539', 'tblTempUsageDetail_20' ) start [2025-01-27 08:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340539', 'tblTempUsageDetail_20' ) end [2025-01-27 08:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340539', 'tblTempVendorCDR_20' ) start [2025-01-27 08:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340539', 'tblTempVendorCDR_20' ) end [2025-01-27 08:49:25] Production.INFO: ProcessCDR(1,14340539,1,1,2) [2025-01-27 08:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340539', 'tblTempUsageDetail_20' ) start [2025-01-27 08:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340539', 'tblTempUsageDetail_20' ) end [2025-01-27 08:49:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:49:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:49:30] Production.INFO: ==16967== Releasing lock... [2025-01-27 08:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:49:30] Production.INFO: 33 MB #Memory Used# [2025-01-27 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:50:06 [end_date_ymd] => 2025-01-27 08:50:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:50:06' and `end` < '2025-01-27 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-01-27 08:50:22] Production.INFO: count ==593 [2025-01-27 08:50:22] Production.ERROR: pbx CDR StartTime 2025-01-27 05:50:06 - End Time 2025-01-27 08:50:06 [2025-01-27 08:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340544', 'tblTempUsageDetail_20' ) start [2025-01-27 08:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340544', 'tblTempUsageDetail_20' ) end [2025-01-27 08:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340544', 'tblTempVendorCDR_20' ) start [2025-01-27 08:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340544', 'tblTempVendorCDR_20' ) end [2025-01-27 08:50:22] Production.INFO: ProcessCDR(1,14340544,1,1,2) [2025-01-27 08:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340544', 'tblTempUsageDetail_20' ) start [2025-01-27 08:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340544', 'tblTempUsageDetail_20' ) end [2025-01-27 08:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:50:26] Production.INFO: ==17055== Releasing lock... [2025-01-27 08:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:50:26] Production.INFO: 33 MB #Memory Used# [2025-01-27 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:51:05 [end_date_ymd] => 2025-01-27 08:51:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:51:05' and `end` < '2025-01-27 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-01-27 08:51:25] Production.INFO: count ==667 [2025-01-27 08:51:25] Production.ERROR: pbx CDR StartTime 2025-01-27 05:51:05 - End Time 2025-01-27 08:51:05 [2025-01-27 08:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340550', 'tblTempUsageDetail_20' ) start [2025-01-27 08:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340550', 'tblTempUsageDetail_20' ) end [2025-01-27 08:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340550', 'tblTempVendorCDR_20' ) start [2025-01-27 08:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340550', 'tblTempVendorCDR_20' ) end [2025-01-27 08:51:25] Production.INFO: ProcessCDR(1,14340550,1,1,2) [2025-01-27 08:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340550', 'tblTempUsageDetail_20' ) start [2025-01-27 08:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340550', 'tblTempUsageDetail_20' ) end [2025-01-27 08:51:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:51:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:51:31] Production.INFO: ==17144== Releasing lock... [2025-01-27 08:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:51:31] Production.INFO: 33.5 MB #Memory Used# [2025-01-27 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:52:05 [end_date_ymd] => 2025-01-27 08:52:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:52:05' and `end` < '2025-01-27 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-01-27 08:52:24] Production.INFO: count ==682 [2025-01-27 08:52:24] Production.ERROR: pbx CDR StartTime 2025-01-27 05:52:05 - End Time 2025-01-27 08:52:05 [2025-01-27 08:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340555', 'tblTempUsageDetail_20' ) start [2025-01-27 08:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340555', 'tblTempUsageDetail_20' ) end [2025-01-27 08:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340555', 'tblTempVendorCDR_20' ) start [2025-01-27 08:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340555', 'tblTempVendorCDR_20' ) end [2025-01-27 08:52:24] Production.INFO: ProcessCDR(1,14340555,1,1,2) [2025-01-27 08:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340555', 'tblTempUsageDetail_20' ) start [2025-01-27 08:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340555', 'tblTempUsageDetail_20' ) end [2025-01-27 08:52:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:52:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:52:28] Production.INFO: ==17235== Releasing lock... [2025-01-27 08:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:52:28] Production.INFO: 34 MB #Memory Used# [2025-01-27 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:53:05 [end_date_ymd] => 2025-01-27 08:53:05 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:53:05' and `end` < '2025-01-27 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-01-27 08:53:25] Production.INFO: count ==696 [2025-01-27 08:53:25] Production.ERROR: pbx CDR StartTime 2025-01-27 05:53:05 - End Time 2025-01-27 08:53:05 [2025-01-27 08:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340560', 'tblTempUsageDetail_20' ) start [2025-01-27 08:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340560', 'tblTempUsageDetail_20' ) end [2025-01-27 08:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340560', 'tblTempVendorCDR_20' ) start [2025-01-27 08:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340560', 'tblTempVendorCDR_20' ) end [2025-01-27 08:53:25] Production.INFO: ProcessCDR(1,14340560,1,1,2) [2025-01-27 08:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340560', 'tblTempUsageDetail_20' ) start [2025-01-27 08:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340560', 'tblTempUsageDetail_20' ) end [2025-01-27 08:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:53:30] Production.INFO: ==17331== Releasing lock... [2025-01-27 08:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:53:30] Production.INFO: 33.75 MB #Memory Used# [2025-01-27 08:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:54:04 [end_date_ymd] => 2025-01-27 08:54:04 [RateCDR] => 1 ) [2025-01-27 08:54: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-01-27 05:54:04' and `end` < '2025-01-27 08:54: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-01-27 08:54:23] Production.INFO: count ==719 [2025-01-27 08:54:23] Production.ERROR: pbx CDR StartTime 2025-01-27 05:54:04 - End Time 2025-01-27 08:54:04 [2025-01-27 08:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340565', 'tblTempUsageDetail_20' ) start [2025-01-27 08:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340565', 'tblTempUsageDetail_20' ) end [2025-01-27 08:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340565', 'tblTempVendorCDR_20' ) start [2025-01-27 08:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340565', 'tblTempVendorCDR_20' ) end [2025-01-27 08:54:23] Production.INFO: ProcessCDR(1,14340565,1,1,2) [2025-01-27 08:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340565', 'tblTempUsageDetail_20' ) start [2025-01-27 08:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340565', 'tblTempUsageDetail_20' ) end [2025-01-27 08:54:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:54:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:54:29] Production.INFO: ==17420== Releasing lock... [2025-01-27 08:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:54:29] Production.INFO: 33.5 MB #Memory Used# [2025-01-27 08:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:55:06 [end_date_ymd] => 2025-01-27 08:55:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:55:06' and `end` < '2025-01-27 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-01-27 08:55:19] Production.INFO: count ==727 [2025-01-27 08:55:19] Production.ERROR: pbx CDR StartTime 2025-01-27 05:55:06 - End Time 2025-01-27 08:55:06 [2025-01-27 08:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340570', 'tblTempUsageDetail_20' ) start [2025-01-27 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340570', 'tblTempUsageDetail_20' ) end [2025-01-27 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340570', 'tblTempVendorCDR_20' ) start [2025-01-27 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340570', 'tblTempVendorCDR_20' ) end [2025-01-27 08:55:19] Production.INFO: ProcessCDR(1,14340570,1,1,2) [2025-01-27 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340570', 'tblTempUsageDetail_20' ) start [2025-01-27 08:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340570', 'tblTempUsageDetail_20' ) end [2025-01-27 08:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:55:24] Production.INFO: ==17518== Releasing lock... [2025-01-27 08:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:55:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-27 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:56:05 [end_date_ymd] => 2025-01-27 08:56:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:56:05' and `end` < '2025-01-27 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-01-27 08:56:19] Production.INFO: count ==730 [2025-01-27 08:56:19] Production.ERROR: pbx CDR StartTime 2025-01-27 05:56:05 - End Time 2025-01-27 08:56:05 [2025-01-27 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340575', 'tblTempUsageDetail_20' ) start [2025-01-27 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340575', 'tblTempUsageDetail_20' ) end [2025-01-27 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340575', 'tblTempVendorCDR_20' ) start [2025-01-27 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340575', 'tblTempVendorCDR_20' ) end [2025-01-27 08:56:19] Production.INFO: ProcessCDR(1,14340575,1,1,2) [2025-01-27 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340575', 'tblTempUsageDetail_20' ) start [2025-01-27 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340575', 'tblTempUsageDetail_20' ) end [2025-01-27 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:56:23] Production.INFO: ==17605== Releasing lock... [2025-01-27 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:56:23] Production.INFO: 34 MB #Memory Used# [2025-01-27 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:57:05 [end_date_ymd] => 2025-01-27 08:57:05 [RateCDR] => 1 ) [2025-01-27 08: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-01-27 05:57:05' and `end` < '2025-01-27 08: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-01-27 08:57:21] Production.INFO: count ==741 [2025-01-27 08:57:22] Production.ERROR: pbx CDR StartTime 2025-01-27 05:57:05 - End Time 2025-01-27 08:57:05 [2025-01-27 08:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340580', 'tblTempUsageDetail_20' ) start [2025-01-27 08:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340580', 'tblTempUsageDetail_20' ) end [2025-01-27 08:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340580', 'tblTempVendorCDR_20' ) start [2025-01-27 08:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340580', 'tblTempVendorCDR_20' ) end [2025-01-27 08:57:22] Production.INFO: ProcessCDR(1,14340580,1,1,2) [2025-01-27 08:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340580', 'tblTempUsageDetail_20' ) start [2025-01-27 08:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340580', 'tblTempUsageDetail_20' ) end [2025-01-27 08:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:57:27] Production.INFO: ==17697== Releasing lock... [2025-01-27 08:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:57:27] Production.INFO: 34 MB #Memory Used# [2025-01-27 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:58:05 [end_date_ymd] => 2025-01-27 08:58:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:58:05' and `end` < '2025-01-27 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-01-27 08:58:24] Production.INFO: count ==745 [2025-01-27 08:58:25] Production.ERROR: pbx CDR StartTime 2025-01-27 05:58:05 - End Time 2025-01-27 08:58:05 [2025-01-27 08:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340585', 'tblTempUsageDetail_20' ) start [2025-01-27 08:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340585', 'tblTempUsageDetail_20' ) end [2025-01-27 08:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340585', 'tblTempVendorCDR_20' ) start [2025-01-27 08:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340585', 'tblTempVendorCDR_20' ) end [2025-01-27 08:58:25] Production.INFO: ProcessCDR(1,14340585,1,1,2) [2025-01-27 08:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340585', 'tblTempUsageDetail_20' ) start [2025-01-27 08:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340585', 'tblTempUsageDetail_20' ) end [2025-01-27 08:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:58:30] Production.INFO: ==17788== Releasing lock... [2025-01-27 08:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:58:30] Production.INFO: 34.25 MB #Memory Used# [2025-01-27 08:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 05:59:06 [end_date_ymd] => 2025-01-27 08:59:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 05:59:06' and `end` < '2025-01-27 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-01-27 08:59:18] Production.INFO: count ==759 [2025-01-27 08:59:19] Production.ERROR: pbx CDR StartTime 2025-01-27 05:59:06 - End Time 2025-01-27 08:59:06 [2025-01-27 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340590', 'tblTempUsageDetail_20' ) start [2025-01-27 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340590', 'tblTempUsageDetail_20' ) end [2025-01-27 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340590', 'tblTempVendorCDR_20' ) start [2025-01-27 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340590', 'tblTempVendorCDR_20' ) end [2025-01-27 08:59:19] Production.INFO: ProcessCDR(1,14340590,1,1,2) [2025-01-27 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 08:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340590', 'tblTempUsageDetail_20' ) start [2025-01-27 08:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340590', 'tblTempUsageDetail_20' ) end [2025-01-27 08:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 08:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 08:59:24] Production.INFO: ==17882== Releasing lock... [2025-01-27 08:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 08:59:24] Production.INFO: 34 MB #Memory Used# [2025-01-27 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:00:06 [end_date_ymd] => 2025-01-27 09:00:06 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:00:06' and `end` < '2025-01-27 09: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-01-27 09:00:19] Production.INFO: count ==775 [2025-01-27 09:00:19] Production.ERROR: pbx CDR StartTime 2025-01-27 06:00:06 - End Time 2025-01-27 09:00:06 [2025-01-27 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340595', 'tblTempUsageDetail_20' ) start [2025-01-27 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340595', 'tblTempUsageDetail_20' ) end [2025-01-27 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340595', 'tblTempVendorCDR_20' ) start [2025-01-27 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340595', 'tblTempVendorCDR_20' ) end [2025-01-27 09:00:19] Production.INFO: ProcessCDR(1,14340595,1,1,2) [2025-01-27 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340595', 'tblTempUsageDetail_20' ) start [2025-01-27 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340595', 'tblTempUsageDetail_20' ) end [2025-01-27 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:00:23] Production.INFO: ==17971== Releasing lock... [2025-01-27 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:00:23] Production.INFO: 34 MB #Memory Used# [2025-01-27 09:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:01:06 [end_date_ymd] => 2025-01-27 09:01:06 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:01:06' and `end` < '2025-01-27 09: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-01-27 09:01:18] Production.INFO: count ==838 [2025-01-27 09:01:18] Production.ERROR: pbx CDR StartTime 2025-01-27 06:01:06 - End Time 2025-01-27 09:01:06 [2025-01-27 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340601', 'tblTempUsageDetail_20' ) start [2025-01-27 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340601', 'tblTempUsageDetail_20' ) end [2025-01-27 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340601', 'tblTempVendorCDR_20' ) start [2025-01-27 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340601', 'tblTempVendorCDR_20' ) end [2025-01-27 09:01:19] Production.INFO: ProcessCDR(1,14340601,1,1,2) [2025-01-27 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340601', 'tblTempUsageDetail_20' ) start [2025-01-27 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340601', 'tblTempUsageDetail_20' ) end [2025-01-27 09:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:01:24] Production.INFO: ==18076== Releasing lock... [2025-01-27 09:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:01:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-27 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:02:06 [end_date_ymd] => 2025-01-27 09:02:06 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:02:06' and `end` < '2025-01-27 09: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-01-27 09:02:24] Production.INFO: count ==849 [2025-01-27 09:02:24] Production.ERROR: pbx CDR StartTime 2025-01-27 06:02:06 - End Time 2025-01-27 09:02:06 [2025-01-27 09:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340606', 'tblTempUsageDetail_20' ) start [2025-01-27 09:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340606', 'tblTempUsageDetail_20' ) end [2025-01-27 09:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340606', 'tblTempVendorCDR_20' ) start [2025-01-27 09:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340606', 'tblTempVendorCDR_20' ) end [2025-01-27 09:02:24] Production.INFO: ProcessCDR(1,14340606,1,1,2) [2025-01-27 09:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340606', 'tblTempUsageDetail_20' ) start [2025-01-27 09:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340606', 'tblTempUsageDetail_20' ) end [2025-01-27 09:02:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:02:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:02:30] Production.INFO: ==18165== Releasing lock... [2025-01-27 09:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:02:30] Production.INFO: 34.25 MB #Memory Used# [2025-01-27 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:03:06 [end_date_ymd] => 2025-01-27 09:03:06 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:03:06' and `end` < '2025-01-27 09: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-01-27 09:03:19] Production.INFO: count ==857 [2025-01-27 09:03:19] Production.ERROR: pbx CDR StartTime 2025-01-27 06:03:06 - End Time 2025-01-27 09:03:06 [2025-01-27 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340611', 'tblTempUsageDetail_20' ) start [2025-01-27 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340611', 'tblTempUsageDetail_20' ) end [2025-01-27 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340611', 'tblTempVendorCDR_20' ) start [2025-01-27 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340611', 'tblTempVendorCDR_20' ) end [2025-01-27 09:03:19] Production.INFO: ProcessCDR(1,14340611,1,1,2) [2025-01-27 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340611', 'tblTempUsageDetail_20' ) start [2025-01-27 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340611', 'tblTempUsageDetail_20' ) end [2025-01-27 09:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:03:24] Production.INFO: ==18298== Releasing lock... [2025-01-27 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:03:24] Production.INFO: 34.25 MB #Memory Used# [2025-01-27 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:04:05 [end_date_ymd] => 2025-01-27 09:04:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:04:05' and `end` < '2025-01-27 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-01-27 09:04:33] Production.INFO: count ==866 [2025-01-27 09:04:33] Production.ERROR: pbx CDR StartTime 2025-01-27 06:04:05 - End Time 2025-01-27 09:04:05 [2025-01-27 09:04:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340616', 'tblTempUsageDetail_20' ) start [2025-01-27 09:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340616', 'tblTempUsageDetail_20' ) end [2025-01-27 09:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340616', 'tblTempVendorCDR_20' ) start [2025-01-27 09:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340616', 'tblTempVendorCDR_20' ) end [2025-01-27 09:04:33] Production.INFO: ProcessCDR(1,14340616,1,1,2) [2025-01-27 09:04:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:04:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:04:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:04:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340616', 'tblTempUsageDetail_20' ) start [2025-01-27 09:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340616', 'tblTempUsageDetail_20' ) end [2025-01-27 09:04:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:04:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:04:39] Production.INFO: ==18391== Releasing lock... [2025-01-27 09:04:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:04:39] Production.INFO: 34.5 MB #Memory Used# [2025-01-27 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:05:06 [end_date_ymd] => 2025-01-27 09:05:06 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:05:06' and `end` < '2025-01-27 09: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-01-27 09:05:26] Production.INFO: count ==892 [2025-01-27 09:05:26] Production.ERROR: pbx CDR StartTime 2025-01-27 06:05:06 - End Time 2025-01-27 09:05:06 [2025-01-27 09:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340621', 'tblTempUsageDetail_20' ) start [2025-01-27 09:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340621', 'tblTempUsageDetail_20' ) end [2025-01-27 09:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340621', 'tblTempVendorCDR_20' ) start [2025-01-27 09:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340621', 'tblTempVendorCDR_20' ) end [2025-01-27 09:05:27] Production.INFO: ProcessCDR(1,14340621,1,1,2) [2025-01-27 09:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340621', 'tblTempUsageDetail_20' ) start [2025-01-27 09:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340621', 'tblTempUsageDetail_20' ) end [2025-01-27 09:05:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:05:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:05:32] Production.INFO: ==18478== Releasing lock... [2025-01-27 09:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:05:32] Production.INFO: 35 MB #Memory Used# [2025-01-27 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:06:05 [end_date_ymd] => 2025-01-27 09:06:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:06:05' and `end` < '2025-01-27 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-01-27 09:06:26] Production.INFO: count ==905 [2025-01-27 09:06:26] Production.ERROR: pbx CDR StartTime 2025-01-27 06:06:05 - End Time 2025-01-27 09:06:05 [2025-01-27 09:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340626', 'tblTempUsageDetail_20' ) start [2025-01-27 09:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340626', 'tblTempUsageDetail_20' ) end [2025-01-27 09:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340626', 'tblTempVendorCDR_20' ) start [2025-01-27 09:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340626', 'tblTempVendorCDR_20' ) end [2025-01-27 09:06:26] Production.INFO: ProcessCDR(1,14340626,1,1,2) [2025-01-27 09:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340626', 'tblTempUsageDetail_20' ) start [2025-01-27 09:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340626', 'tblTempUsageDetail_20' ) end [2025-01-27 09:06:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:06:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:06:31] Production.INFO: ==18573== Releasing lock... [2025-01-27 09:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:06:31] Production.INFO: 35 MB #Memory Used# [2025-01-27 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:07:06 [end_date_ymd] => 2025-01-27 09:07:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:07:06' and `end` < '2025-01-27 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-01-27 09:07:29] Production.INFO: count ==915 [2025-01-27 09:07:29] Production.ERROR: pbx CDR StartTime 2025-01-27 06:07:06 - End Time 2025-01-27 09:07:06 [2025-01-27 09:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340631', 'tblTempUsageDetail_20' ) start [2025-01-27 09:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340631', 'tblTempUsageDetail_20' ) end [2025-01-27 09:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340631', 'tblTempVendorCDR_20' ) start [2025-01-27 09:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340631', 'tblTempVendorCDR_20' ) end [2025-01-27 09:07:29] Production.INFO: ProcessCDR(1,14340631,1,1,2) [2025-01-27 09:07:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:07:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:07:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340631', 'tblTempUsageDetail_20' ) start [2025-01-27 09:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340631', 'tblTempUsageDetail_20' ) end [2025-01-27 09:07:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:07:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:07:34] Production.INFO: ==18656== Releasing lock... [2025-01-27 09:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:07:34] Production.INFO: 34.75 MB #Memory Used# [2025-01-27 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:08:05 [end_date_ymd] => 2025-01-27 09:08:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:08:05' and `end` < '2025-01-27 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-01-27 09:08:25] Production.INFO: count ==929 [2025-01-27 09:08:25] Production.ERROR: pbx CDR StartTime 2025-01-27 06:08:05 - End Time 2025-01-27 09:08:05 [2025-01-27 09:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340636', 'tblTempUsageDetail_20' ) start [2025-01-27 09:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340636', 'tblTempUsageDetail_20' ) end [2025-01-27 09:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340636', 'tblTempVendorCDR_20' ) start [2025-01-27 09:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340636', 'tblTempVendorCDR_20' ) end [2025-01-27 09:08:25] Production.INFO: ProcessCDR(1,14340636,1,1,2) [2025-01-27 09:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340636', 'tblTempUsageDetail_20' ) start [2025-01-27 09:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340636', 'tblTempUsageDetail_20' ) end [2025-01-27 09:08:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:08:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:08:30] Production.INFO: ==18737== Releasing lock... [2025-01-27 09:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:08:30] Production.INFO: 35 MB #Memory Used# [2025-01-27 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:09:05 [end_date_ymd] => 2025-01-27 09:09:05 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:09:05' and `end` < '2025-01-27 09: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-01-27 09:09:24] Production.INFO: count ==943 [2025-01-27 09:09:24] Production.ERROR: pbx CDR StartTime 2025-01-27 06:09:05 - End Time 2025-01-27 09:09:05 [2025-01-27 09:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340641', 'tblTempUsageDetail_20' ) start [2025-01-27 09:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340641', 'tblTempUsageDetail_20' ) end [2025-01-27 09:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340641', 'tblTempVendorCDR_20' ) start [2025-01-27 09:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340641', 'tblTempVendorCDR_20' ) end [2025-01-27 09:09:24] Production.INFO: ProcessCDR(1,14340641,1,1,2) [2025-01-27 09:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340641', 'tblTempUsageDetail_20' ) start [2025-01-27 09:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340641', 'tblTempUsageDetail_20' ) end [2025-01-27 09:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:09:29] Production.INFO: ==18820== Releasing lock... [2025-01-27 09:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:09:29] Production.INFO: 35.75 MB #Memory Used# [2025-01-27 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:10:06 [end_date_ymd] => 2025-01-27 09:10:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:10:06' and `end` < '2025-01-27 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-01-27 09:10:27] Production.INFO: count ==971 [2025-01-27 09:10:28] Production.ERROR: pbx CDR StartTime 2025-01-27 06:10:06 - End Time 2025-01-27 09:10:06 [2025-01-27 09:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340646', 'tblTempUsageDetail_20' ) start [2025-01-27 09:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340646', 'tblTempUsageDetail_20' ) end [2025-01-27 09:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340646', 'tblTempVendorCDR_20' ) start [2025-01-27 09:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340646', 'tblTempVendorCDR_20' ) end [2025-01-27 09:10:28] Production.INFO: ProcessCDR(1,14340646,1,1,2) [2025-01-27 09:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340646', 'tblTempUsageDetail_20' ) start [2025-01-27 09:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340646', 'tblTempUsageDetail_20' ) end [2025-01-27 09:10:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:10:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:10:33] Production.INFO: ==18897== Releasing lock... [2025-01-27 09:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:10:33] Production.INFO: 35.75 MB #Memory Used# [2025-01-27 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:11:05 [end_date_ymd] => 2025-01-27 09:11:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:11:05' and `end` < '2025-01-27 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-01-27 09:11:23] Production.INFO: count ==1063 [2025-01-27 09:11:24] Production.ERROR: pbx CDR StartTime 2025-01-27 06:11:05 - End Time 2025-01-27 09:11:05 [2025-01-27 09:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340652', 'tblTempUsageDetail_20' ) start [2025-01-27 09:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340652', 'tblTempUsageDetail_20' ) end [2025-01-27 09:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340652', 'tblTempVendorCDR_20' ) start [2025-01-27 09:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340652', 'tblTempVendorCDR_20' ) end [2025-01-27 09:11:24] Production.INFO: ProcessCDR(1,14340652,1,1,2) [2025-01-27 09:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340652', 'tblTempUsageDetail_20' ) start [2025-01-27 09:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340652', 'tblTempUsageDetail_20' ) end [2025-01-27 09:11:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:11:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:11:29] Production.INFO: ==18975== Releasing lock... [2025-01-27 09:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:11:29] Production.INFO: 36.5 MB #Memory Used# [2025-01-27 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:12:05 [end_date_ymd] => 2025-01-27 09:12:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:12:05' and `end` < '2025-01-27 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-01-27 09:12:23] Production.INFO: count ==1081 [2025-01-27 09:12:23] Production.ERROR: pbx CDR StartTime 2025-01-27 06:12:05 - End Time 2025-01-27 09:12:05 [2025-01-27 09:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340657', 'tblTempUsageDetail_20' ) start [2025-01-27 09:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340657', 'tblTempUsageDetail_20' ) end [2025-01-27 09:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340657', 'tblTempVendorCDR_20' ) start [2025-01-27 09:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340657', 'tblTempVendorCDR_20' ) end [2025-01-27 09:12:23] Production.INFO: ProcessCDR(1,14340657,1,1,2) [2025-01-27 09:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340657', 'tblTempUsageDetail_20' ) start [2025-01-27 09:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340657', 'tblTempUsageDetail_20' ) end [2025-01-27 09:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:12:29] Production.INFO: ==19055== Releasing lock... [2025-01-27 09:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:12:29] Production.INFO: 36.5 MB #Memory Used# [2025-01-27 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:13:05 [end_date_ymd] => 2025-01-27 09:13:05 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:13:05' and `end` < '2025-01-27 09: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-01-27 09:13:24] Production.INFO: count ==1103 [2025-01-27 09:13:25] Production.ERROR: pbx CDR StartTime 2025-01-27 06:13:05 - End Time 2025-01-27 09:13:05 [2025-01-27 09:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340662', 'tblTempUsageDetail_20' ) start [2025-01-27 09:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340662', 'tblTempUsageDetail_20' ) end [2025-01-27 09:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340662', 'tblTempVendorCDR_20' ) start [2025-01-27 09:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340662', 'tblTempVendorCDR_20' ) end [2025-01-27 09:13:25] Production.INFO: ProcessCDR(1,14340662,1,1,2) [2025-01-27 09:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340662', 'tblTempUsageDetail_20' ) start [2025-01-27 09:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340662', 'tblTempUsageDetail_20' ) end [2025-01-27 09:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:13:30] Production.INFO: ==19137== Releasing lock... [2025-01-27 09:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:13:30] Production.INFO: 36 MB #Memory Used# [2025-01-27 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:14:05 [end_date_ymd] => 2025-01-27 09:14:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:14:05' and `end` < '2025-01-27 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-01-27 09:14:18] Production.INFO: count ==1104 [2025-01-27 09:14:18] Production.ERROR: pbx CDR StartTime 2025-01-27 06:14:05 - End Time 2025-01-27 09:14:05 [2025-01-27 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340667', 'tblTempUsageDetail_20' ) start [2025-01-27 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340667', 'tblTempUsageDetail_20' ) end [2025-01-27 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340667', 'tblTempVendorCDR_20' ) start [2025-01-27 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340667', 'tblTempVendorCDR_20' ) end [2025-01-27 09:14:18] Production.INFO: ProcessCDR(1,14340667,1,1,2) [2025-01-27 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340667', 'tblTempUsageDetail_20' ) start [2025-01-27 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340667', 'tblTempUsageDetail_20' ) end [2025-01-27 09:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:14:21] Production.INFO: ==19213== Releasing lock... [2025-01-27 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:14:21] Production.INFO: 36 MB #Memory Used# [2025-01-27 09:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:15:06 [end_date_ymd] => 2025-01-27 09:15:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:15:06' and `end` < '2025-01-27 09: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-01-27 09:15:25] Production.INFO: count ==1128 [2025-01-27 09:15:25] Production.ERROR: pbx CDR StartTime 2025-01-27 06:15:06 - End Time 2025-01-27 09:15:06 [2025-01-27 09:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340672', 'tblTempUsageDetail_20' ) start [2025-01-27 09:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340672', 'tblTempUsageDetail_20' ) end [2025-01-27 09:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340672', 'tblTempVendorCDR_20' ) start [2025-01-27 09:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340672', 'tblTempVendorCDR_20' ) end [2025-01-27 09:15:25] Production.INFO: ProcessCDR(1,14340672,1,1,2) [2025-01-27 09:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340672', 'tblTempUsageDetail_20' ) start [2025-01-27 09:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340672', 'tblTempUsageDetail_20' ) end [2025-01-27 09:15:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:15:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:15:31] Production.INFO: ==19296== Releasing lock... [2025-01-27 09:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:15:31] Production.INFO: 36.5 MB #Memory Used# [2025-01-27 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:16:06 [end_date_ymd] => 2025-01-27 09:16:06 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:16:06' and `end` < '2025-01-27 09: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-01-27 09:16:30] Production.INFO: count ==1146 [2025-01-27 09:16:31] Production.ERROR: pbx CDR StartTime 2025-01-27 06:16:06 - End Time 2025-01-27 09:16:06 [2025-01-27 09:16:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340677', 'tblTempUsageDetail_20' ) start [2025-01-27 09:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340677', 'tblTempUsageDetail_20' ) end [2025-01-27 09:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340677', 'tblTempVendorCDR_20' ) start [2025-01-27 09:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340677', 'tblTempVendorCDR_20' ) end [2025-01-27 09:16:31] Production.INFO: ProcessCDR(1,14340677,1,1,2) [2025-01-27 09:16:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:16:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:16:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:16:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:16:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340677', 'tblTempUsageDetail_20' ) start [2025-01-27 09:16:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340677', 'tblTempUsageDetail_20' ) end [2025-01-27 09:16:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:16:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:16:36] Production.INFO: ==19373== Releasing lock... [2025-01-27 09:16:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:16:36] Production.INFO: 37 MB #Memory Used# [2025-01-27 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:17:05 [end_date_ymd] => 2025-01-27 09:17:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:17:05' and `end` < '2025-01-27 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-01-27 09:17:24] Production.INFO: count ==1154 [2025-01-27 09:17:24] Production.ERROR: pbx CDR StartTime 2025-01-27 06:17:05 - End Time 2025-01-27 09:17:05 [2025-01-27 09:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340682', 'tblTempUsageDetail_20' ) start [2025-01-27 09:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340682', 'tblTempUsageDetail_20' ) end [2025-01-27 09:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340682', 'tblTempVendorCDR_20' ) start [2025-01-27 09:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340682', 'tblTempVendorCDR_20' ) end [2025-01-27 09:17:24] Production.INFO: ProcessCDR(1,14340682,1,1,2) [2025-01-27 09:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340682', 'tblTempUsageDetail_20' ) start [2025-01-27 09:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340682', 'tblTempUsageDetail_20' ) end [2025-01-27 09:17:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:17:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:17:30] Production.INFO: ==19447== Releasing lock... [2025-01-27 09:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:17:30] Production.INFO: 37.25 MB #Memory Used# [2025-01-27 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:18:06 [end_date_ymd] => 2025-01-27 09:18:06 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:18:06' and `end` < '2025-01-27 09: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-01-27 09:18:18] Production.INFO: count ==1157 [2025-01-27 09:18:19] Production.ERROR: pbx CDR StartTime 2025-01-27 06:18:06 - End Time 2025-01-27 09:18:06 [2025-01-27 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340687', 'tblTempUsageDetail_20' ) start [2025-01-27 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340687', 'tblTempUsageDetail_20' ) end [2025-01-27 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340687', 'tblTempVendorCDR_20' ) start [2025-01-27 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340687', 'tblTempVendorCDR_20' ) end [2025-01-27 09:18:19] Production.INFO: ProcessCDR(1,14340687,1,1,2) [2025-01-27 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340687', 'tblTempUsageDetail_20' ) start [2025-01-27 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340687', 'tblTempUsageDetail_20' ) end [2025-01-27 09:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:18:22] Production.INFO: ==19564== Releasing lock... [2025-01-27 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:18:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-27 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:19:05 [end_date_ymd] => 2025-01-27 09:19:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:19:05' and `end` < '2025-01-27 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-01-27 09:19:18] Production.INFO: count ==1182 [2025-01-27 09:19:18] Production.ERROR: pbx CDR StartTime 2025-01-27 06:19:05 - End Time 2025-01-27 09:19:05 [2025-01-27 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340692', 'tblTempUsageDetail_20' ) start [2025-01-27 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340692', 'tblTempUsageDetail_20' ) end [2025-01-27 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340692', 'tblTempVendorCDR_20' ) start [2025-01-27 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340692', 'tblTempVendorCDR_20' ) end [2025-01-27 09:19:18] Production.INFO: ProcessCDR(1,14340692,1,1,2) [2025-01-27 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340692', 'tblTempUsageDetail_20' ) start [2025-01-27 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340692', 'tblTempUsageDetail_20' ) end [2025-01-27 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:19:23] Production.INFO: ==19644== Releasing lock... [2025-01-27 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:19:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-27 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:20:06 [end_date_ymd] => 2025-01-27 09:20:06 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:20:06' and `end` < '2025-01-27 09: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-01-27 09:20:27] Production.INFO: count ==1195 [2025-01-27 09:20:27] Production.ERROR: pbx CDR StartTime 2025-01-27 06:20:06 - End Time 2025-01-27 09:20:06 [2025-01-27 09:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340698', 'tblTempUsageDetail_20' ) start [2025-01-27 09:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340698', 'tblTempUsageDetail_20' ) end [2025-01-27 09:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340698', 'tblTempVendorCDR_20' ) start [2025-01-27 09:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340698', 'tblTempVendorCDR_20' ) end [2025-01-27 09:20:27] Production.INFO: ProcessCDR(1,14340698,1,1,2) [2025-01-27 09:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340698', 'tblTempUsageDetail_20' ) start [2025-01-27 09:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340698', 'tblTempUsageDetail_20' ) end [2025-01-27 09:20:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:20:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:20:30] Production.INFO: ==19721== Releasing lock... [2025-01-27 09:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:20:30] Production.INFO: 37.5 MB #Memory Used# [2025-01-27 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:21:05 [end_date_ymd] => 2025-01-27 09:21:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:21:05' and `end` < '2025-01-27 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-01-27 09:21:21] Production.INFO: count ==1319 [2025-01-27 09:21:21] Production.ERROR: pbx CDR StartTime 2025-01-27 06:21:05 - End Time 2025-01-27 09:21:05 [2025-01-27 09:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340703', 'tblTempUsageDetail_20' ) start [2025-01-27 09:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340703', 'tblTempUsageDetail_20' ) end [2025-01-27 09:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340703', 'tblTempVendorCDR_20' ) start [2025-01-27 09:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340703', 'tblTempVendorCDR_20' ) end [2025-01-27 09:21:21] Production.INFO: ProcessCDR(1,14340703,1,1,2) [2025-01-27 09:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340703', 'tblTempUsageDetail_20' ) start [2025-01-27 09:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340703', 'tblTempUsageDetail_20' ) end [2025-01-27 09:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:21:26] Production.INFO: ==19799== Releasing lock... [2025-01-27 09:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:21:26] Production.INFO: 38 MB #Memory Used# [2025-01-27 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:22:05 [end_date_ymd] => 2025-01-27 09:22:05 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:22:05' and `end` < '2025-01-27 09: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-01-27 09:22:29] Production.INFO: count ==1331 [2025-01-27 09:22:29] Production.ERROR: pbx CDR StartTime 2025-01-27 06:22:05 - End Time 2025-01-27 09:22:05 [2025-01-27 09:22:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340708', 'tblTempUsageDetail_20' ) start [2025-01-27 09:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340708', 'tblTempUsageDetail_20' ) end [2025-01-27 09:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340708', 'tblTempVendorCDR_20' ) start [2025-01-27 09:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340708', 'tblTempVendorCDR_20' ) end [2025-01-27 09:22:29] Production.INFO: ProcessCDR(1,14340708,1,1,2) [2025-01-27 09:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:22:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:22:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:22:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340708', 'tblTempUsageDetail_20' ) start [2025-01-27 09:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340708', 'tblTempUsageDetail_20' ) end [2025-01-27 09:22:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:22:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:22:34] Production.INFO: ==19878== Releasing lock... [2025-01-27 09:22:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:22:34] Production.INFO: 38.25 MB #Memory Used# [2025-01-27 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:23:05 [end_date_ymd] => 2025-01-27 09:23:05 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:23:05' and `end` < '2025-01-27 09: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-01-27 09:23:25] Production.INFO: count ==1342 [2025-01-27 09:23:25] Production.ERROR: pbx CDR StartTime 2025-01-27 06:23:05 - End Time 2025-01-27 09:23:05 [2025-01-27 09:23:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340713', 'tblTempUsageDetail_20' ) start [2025-01-27 09:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340713', 'tblTempUsageDetail_20' ) end [2025-01-27 09:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340713', 'tblTempVendorCDR_20' ) start [2025-01-27 09:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340713', 'tblTempVendorCDR_20' ) end [2025-01-27 09:23:25] Production.INFO: ProcessCDR(1,14340713,1,1,2) [2025-01-27 09:23:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340713', 'tblTempUsageDetail_20' ) start [2025-01-27 09:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340713', 'tblTempUsageDetail_20' ) end [2025-01-27 09:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:23:29] Production.INFO: ==19962== Releasing lock... [2025-01-27 09:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:23:29] Production.INFO: 38.5 MB #Memory Used# [2025-01-27 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:24:05 [end_date_ymd] => 2025-01-27 09:24:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:24:05' and `end` < '2025-01-27 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-01-27 09:24:32] Production.INFO: count ==1361 [2025-01-27 09:24:33] Production.ERROR: pbx CDR StartTime 2025-01-27 06:24:05 - End Time 2025-01-27 09:24:05 [2025-01-27 09:24:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340718', 'tblTempUsageDetail_20' ) start [2025-01-27 09:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340718', 'tblTempUsageDetail_20' ) end [2025-01-27 09:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340718', 'tblTempVendorCDR_20' ) start [2025-01-27 09:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340718', 'tblTempVendorCDR_20' ) end [2025-01-27 09:24:33] Production.INFO: ProcessCDR(1,14340718,1,1,2) [2025-01-27 09:24:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:24:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:24:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:24:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:24:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340718', 'tblTempUsageDetail_20' ) start [2025-01-27 09:24:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340718', 'tblTempUsageDetail_20' ) end [2025-01-27 09:24:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:24:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:24:38] Production.INFO: ==20040== Releasing lock... [2025-01-27 09:24:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:24:38] Production.INFO: 38.5 MB #Memory Used# [2025-01-27 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:25:04 [end_date_ymd] => 2025-01-27 09:25:04 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:25:04' and `end` < '2025-01-27 09: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-01-27 09:25:23] Production.INFO: count ==1371 [2025-01-27 09:25:24] Production.ERROR: pbx CDR StartTime 2025-01-27 06:25:04 - End Time 2025-01-27 09:25:04 [2025-01-27 09:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340723', 'tblTempUsageDetail_20' ) start [2025-01-27 09:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340723', 'tblTempUsageDetail_20' ) end [2025-01-27 09:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340723', 'tblTempVendorCDR_20' ) start [2025-01-27 09:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340723', 'tblTempVendorCDR_20' ) end [2025-01-27 09:25:24] Production.INFO: ProcessCDR(1,14340723,1,1,2) [2025-01-27 09:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340723', 'tblTempUsageDetail_20' ) start [2025-01-27 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340723', 'tblTempUsageDetail_20' ) end [2025-01-27 09:25:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:25:28] Production.INFO: ==20115== Releasing lock... [2025-01-27 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:25:28] Production.INFO: 38.5 MB #Memory Used# [2025-01-27 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:26:05 [end_date_ymd] => 2025-01-27 09:26:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:26:05' and `end` < '2025-01-27 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-01-27 09:26:25] Production.INFO: count ==1382 [2025-01-27 09:26:25] Production.ERROR: pbx CDR StartTime 2025-01-27 06:26:05 - End Time 2025-01-27 09:26:05 [2025-01-27 09:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340728', 'tblTempUsageDetail_20' ) start [2025-01-27 09:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340728', 'tblTempUsageDetail_20' ) end [2025-01-27 09:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340728', 'tblTempVendorCDR_20' ) start [2025-01-27 09:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340728', 'tblTempVendorCDR_20' ) end [2025-01-27 09:26:25] Production.INFO: ProcessCDR(1,14340728,1,1,2) [2025-01-27 09:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340728', 'tblTempUsageDetail_20' ) start [2025-01-27 09:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340728', 'tblTempUsageDetail_20' ) end [2025-01-27 09:26:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:26:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:26:30] Production.INFO: ==20194== Releasing lock... [2025-01-27 09:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:26:30] Production.INFO: 38.75 MB #Memory Used# [2025-01-27 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:27:05 [end_date_ymd] => 2025-01-27 09:27:05 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:27:05' and `end` < '2025-01-27 09: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-01-27 09:27:26] Production.INFO: count ==1404 [2025-01-27 09:27:27] Production.ERROR: pbx CDR StartTime 2025-01-27 06:27:05 - End Time 2025-01-27 09:27:05 [2025-01-27 09:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340733', 'tblTempUsageDetail_20' ) start [2025-01-27 09:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340733', 'tblTempUsageDetail_20' ) end [2025-01-27 09:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340733', 'tblTempVendorCDR_20' ) start [2025-01-27 09:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340733', 'tblTempVendorCDR_20' ) end [2025-01-27 09:27:27] Production.INFO: ProcessCDR(1,14340733,1,1,2) [2025-01-27 09:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340733', 'tblTempUsageDetail_20' ) start [2025-01-27 09:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340733', 'tblTempUsageDetail_20' ) end [2025-01-27 09:27:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:27:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:27:32] Production.INFO: ==20270== Releasing lock... [2025-01-27 09:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:27:32] Production.INFO: 38.75 MB #Memory Used# [2025-01-27 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:28:05 [end_date_ymd] => 2025-01-27 09:28:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:28:05' and `end` < '2025-01-27 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-01-27 09:28:31] Production.INFO: count ==1418 [2025-01-27 09:28:31] Production.ERROR: pbx CDR StartTime 2025-01-27 06:28:05 - End Time 2025-01-27 09:28:05 [2025-01-27 09:28:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340738', 'tblTempUsageDetail_20' ) start [2025-01-27 09:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340738', 'tblTempUsageDetail_20' ) end [2025-01-27 09:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340738', 'tblTempVendorCDR_20' ) start [2025-01-27 09:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340738', 'tblTempVendorCDR_20' ) end [2025-01-27 09:28:31] Production.INFO: ProcessCDR(1,14340738,1,1,2) [2025-01-27 09:28:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:28:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:28:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:28:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:28:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340738', 'tblTempUsageDetail_20' ) start [2025-01-27 09:28:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340738', 'tblTempUsageDetail_20' ) end [2025-01-27 09:28:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:28:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:28:36] Production.INFO: ==20346== Releasing lock... [2025-01-27 09:28:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:28:36] Production.INFO: 38.75 MB #Memory Used# [2025-01-27 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:29:06 [end_date_ymd] => 2025-01-27 09:29:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:29:06' and `end` < '2025-01-27 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-01-27 09:29:26] Production.INFO: count ==1434 [2025-01-27 09:29:26] Production.ERROR: pbx CDR StartTime 2025-01-27 06:29:06 - End Time 2025-01-27 09:29:06 [2025-01-27 09:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340743', 'tblTempUsageDetail_20' ) start [2025-01-27 09:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340743', 'tblTempUsageDetail_20' ) end [2025-01-27 09:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340743', 'tblTempVendorCDR_20' ) start [2025-01-27 09:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340743', 'tblTempVendorCDR_20' ) end [2025-01-27 09:29:26] Production.INFO: ProcessCDR(1,14340743,1,1,2) [2025-01-27 09:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340743', 'tblTempUsageDetail_20' ) start [2025-01-27 09:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340743', 'tblTempUsageDetail_20' ) end [2025-01-27 09:29:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:29:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:29:31] Production.INFO: ==20422== Releasing lock... [2025-01-27 09:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:29:31] Production.INFO: 38.5 MB #Memory Used# [2025-01-27 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:30:06 [end_date_ymd] => 2025-01-27 09:30:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:30:06' and `end` < '2025-01-27 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-01-27 09:30:34] Production.INFO: count ==1454 [2025-01-27 09:30:34] Production.ERROR: pbx CDR StartTime 2025-01-27 06:30:06 - End Time 2025-01-27 09:30:06 [2025-01-27 09:30:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340749', 'tblTempUsageDetail_20' ) start [2025-01-27 09:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340749', 'tblTempUsageDetail_20' ) end [2025-01-27 09:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340749', 'tblTempVendorCDR_20' ) start [2025-01-27 09:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340749', 'tblTempVendorCDR_20' ) end [2025-01-27 09:30:34] Production.INFO: ProcessCDR(1,14340749,1,1,2) [2025-01-27 09:30:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:30:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:30:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:30:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340749', 'tblTempUsageDetail_20' ) start [2025-01-27 09:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340749', 'tblTempUsageDetail_20' ) end [2025-01-27 09:30:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:30:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:30:39] Production.INFO: ==20502== Releasing lock... [2025-01-27 09:30:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:30:39] Production.INFO: 39 MB #Memory Used# [2025-01-27 09:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:31:04 [end_date_ymd] => 2025-01-27 09:31:04 [RateCDR] => 1 ) [2025-01-27 09:31: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-01-27 06:31:04' and `end` < '2025-01-27 09:31: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-01-27 09:31:26] Production.INFO: count ==1551 [2025-01-27 09:31:26] Production.ERROR: pbx CDR StartTime 2025-01-27 06:31:04 - End Time 2025-01-27 09:31:04 [2025-01-27 09:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340754', 'tblTempUsageDetail_20' ) start [2025-01-27 09:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340754', 'tblTempUsageDetail_20' ) end [2025-01-27 09:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340754', 'tblTempVendorCDR_20' ) start [2025-01-27 09:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340754', 'tblTempVendorCDR_20' ) end [2025-01-27 09:31:26] Production.INFO: ProcessCDR(1,14340754,1,1,2) [2025-01-27 09:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340754', 'tblTempUsageDetail_20' ) start [2025-01-27 09:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340754', 'tblTempUsageDetail_20' ) end [2025-01-27 09:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:31:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:31:31] Production.INFO: ==20581== Releasing lock... [2025-01-27 09:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:31:31] Production.INFO: 39.75 MB #Memory Used# [2025-01-27 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:32:05 [end_date_ymd] => 2025-01-27 09:32:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:32:05' and `end` < '2025-01-27 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-01-27 09:32:27] Production.INFO: count ==1579 [2025-01-27 09:32:27] Production.ERROR: pbx CDR StartTime 2025-01-27 06:32:05 - End Time 2025-01-27 09:32:05 [2025-01-27 09:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340759', 'tblTempUsageDetail_20' ) start [2025-01-27 09:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340759', 'tblTempUsageDetail_20' ) end [2025-01-27 09:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340759', 'tblTempVendorCDR_20' ) start [2025-01-27 09:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340759', 'tblTempVendorCDR_20' ) end [2025-01-27 09:32:27] Production.INFO: ProcessCDR(1,14340759,1,1,2) [2025-01-27 09:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340759', 'tblTempUsageDetail_20' ) start [2025-01-27 09:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340759', 'tblTempUsageDetail_20' ) end [2025-01-27 09:32:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:32:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:32:32] Production.INFO: ==20656== Releasing lock... [2025-01-27 09:32:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:32:32] Production.INFO: 40 MB #Memory Used# [2025-01-27 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:33:06 [end_date_ymd] => 2025-01-27 09:33:06 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:33:06' and `end` < '2025-01-27 09: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-01-27 09:33:33] Production.INFO: count ==1595 [2025-01-27 09:33:34] Production.ERROR: pbx CDR StartTime 2025-01-27 06:33:06 - End Time 2025-01-27 09:33:06 [2025-01-27 09:33:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340764', 'tblTempUsageDetail_20' ) start [2025-01-27 09:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340764', 'tblTempUsageDetail_20' ) end [2025-01-27 09:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340764', 'tblTempVendorCDR_20' ) start [2025-01-27 09:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340764', 'tblTempVendorCDR_20' ) end [2025-01-27 09:33:34] Production.INFO: ProcessCDR(1,14340764,1,1,2) [2025-01-27 09:33:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:33:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:33:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:33:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:33:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340764', 'tblTempUsageDetail_20' ) start [2025-01-27 09:33:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340764', 'tblTempUsageDetail_20' ) end [2025-01-27 09:33:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:33:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:33:39] Production.INFO: ==20731== Releasing lock... [2025-01-27 09:33:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:33:39] Production.INFO: 40 MB #Memory Used# [2025-01-27 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:34:05 [end_date_ymd] => 2025-01-27 09:34:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:34:05' and `end` < '2025-01-27 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-01-27 09:34:26] Production.INFO: count ==1599 [2025-01-27 09:34:26] Production.ERROR: pbx CDR StartTime 2025-01-27 06:34:05 - End Time 2025-01-27 09:34:05 [2025-01-27 09:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340769', 'tblTempUsageDetail_20' ) start [2025-01-27 09:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340769', 'tblTempUsageDetail_20' ) end [2025-01-27 09:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340769', 'tblTempVendorCDR_20' ) start [2025-01-27 09:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340769', 'tblTempVendorCDR_20' ) end [2025-01-27 09:34:26] Production.INFO: ProcessCDR(1,14340769,1,1,2) [2025-01-27 09:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340769', 'tblTempUsageDetail_20' ) start [2025-01-27 09:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340769', 'tblTempUsageDetail_20' ) end [2025-01-27 09:34:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:34:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:34:30] Production.INFO: ==20854== Releasing lock... [2025-01-27 09:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:34:30] Production.INFO: 40 MB #Memory Used# [2025-01-27 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:35:05 [end_date_ymd] => 2025-01-27 09:35:05 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:35:05' and `end` < '2025-01-27 09: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-01-27 09:35:18] Production.INFO: count ==1602 [2025-01-27 09:35:19] Production.ERROR: pbx CDR StartTime 2025-01-27 06:35:05 - End Time 2025-01-27 09:35:05 [2025-01-27 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340774', 'tblTempUsageDetail_20' ) start [2025-01-27 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340774', 'tblTempUsageDetail_20' ) end [2025-01-27 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340774', 'tblTempVendorCDR_20' ) start [2025-01-27 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340774', 'tblTempVendorCDR_20' ) end [2025-01-27 09:35:19] Production.INFO: ProcessCDR(1,14340774,1,1,2) [2025-01-27 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340774', 'tblTempUsageDetail_20' ) start [2025-01-27 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340774', 'tblTempUsageDetail_20' ) end [2025-01-27 09:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:35:24] Production.INFO: ==20930== Releasing lock... [2025-01-27 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:35:24] Production.INFO: 40 MB #Memory Used# [2025-01-27 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:36:05 [end_date_ymd] => 2025-01-27 09:36:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:36:05' and `end` < '2025-01-27 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-01-27 09:36:18] Production.INFO: count ==1604 [2025-01-27 09:36:18] Production.ERROR: pbx CDR StartTime 2025-01-27 06:36:05 - End Time 2025-01-27 09:36:05 [2025-01-27 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340779', 'tblTempUsageDetail_20' ) start [2025-01-27 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340779', 'tblTempUsageDetail_20' ) end [2025-01-27 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340779', 'tblTempVendorCDR_20' ) start [2025-01-27 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340779', 'tblTempVendorCDR_20' ) end [2025-01-27 09:36:18] Production.INFO: ProcessCDR(1,14340779,1,1,2) [2025-01-27 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340779', 'tblTempUsageDetail_20' ) start [2025-01-27 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340779', 'tblTempUsageDetail_20' ) end [2025-01-27 09:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:36:22] Production.INFO: ==21008== Releasing lock... [2025-01-27 09:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:36:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-27 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:37:05 [end_date_ymd] => 2025-01-27 09:37:05 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:37:05' and `end` < '2025-01-27 09: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-01-27 09:37:18] Production.INFO: count ==1607 [2025-01-27 09:37:19] Production.ERROR: pbx CDR StartTime 2025-01-27 06:37:05 - End Time 2025-01-27 09:37:05 [2025-01-27 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340784', 'tblTempUsageDetail_20' ) start [2025-01-27 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340784', 'tblTempUsageDetail_20' ) end [2025-01-27 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340784', 'tblTempVendorCDR_20' ) start [2025-01-27 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340784', 'tblTempVendorCDR_20' ) end [2025-01-27 09:37:19] Production.INFO: ProcessCDR(1,14340784,1,1,2) [2025-01-27 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340784', 'tblTempUsageDetail_20' ) start [2025-01-27 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340784', 'tblTempUsageDetail_20' ) end [2025-01-27 09:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:37:23] Production.INFO: ==21084== Releasing lock... [2025-01-27 09:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:37:23] Production.INFO: 40 MB #Memory Used# [2025-01-27 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:38:05 [end_date_ymd] => 2025-01-27 09:38:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:38:05' and `end` < '2025-01-27 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-01-27 09:38:27] Production.INFO: count ==1614 [2025-01-27 09:38:27] Production.ERROR: pbx CDR StartTime 2025-01-27 06:38:05 - End Time 2025-01-27 09:38:05 [2025-01-27 09:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340789', 'tblTempUsageDetail_20' ) start [2025-01-27 09:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340789', 'tblTempUsageDetail_20' ) end [2025-01-27 09:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340789', 'tblTempVendorCDR_20' ) start [2025-01-27 09:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340789', 'tblTempVendorCDR_20' ) end [2025-01-27 09:38:27] Production.INFO: ProcessCDR(1,14340789,1,1,2) [2025-01-27 09:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:38:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:38:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340789', 'tblTempUsageDetail_20' ) start [2025-01-27 09:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340789', 'tblTempUsageDetail_20' ) end [2025-01-27 09:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:38:32] Production.INFO: ==21165== Releasing lock... [2025-01-27 09:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:38:32] Production.INFO: 40.25 MB #Memory Used# [2025-01-27 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:39:05 [end_date_ymd] => 2025-01-27 09:39:05 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:39:05' and `end` < '2025-01-27 09: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-01-27 09:39:25] Production.INFO: count ==1623 [2025-01-27 09:39:26] Production.ERROR: pbx CDR StartTime 2025-01-27 06:39:05 - End Time 2025-01-27 09:39:05 [2025-01-27 09:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340794', 'tblTempUsageDetail_20' ) start [2025-01-27 09:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340794', 'tblTempUsageDetail_20' ) end [2025-01-27 09:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340794', 'tblTempVendorCDR_20' ) start [2025-01-27 09:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340794', 'tblTempVendorCDR_20' ) end [2025-01-27 09:39:26] Production.INFO: ProcessCDR(1,14340794,1,1,2) [2025-01-27 09:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340794', 'tblTempUsageDetail_20' ) start [2025-01-27 09:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340794', 'tblTempUsageDetail_20' ) end [2025-01-27 09:39:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:39:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:39:31] Production.INFO: ==21241== Releasing lock... [2025-01-27 09:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:39:31] Production.INFO: 40.25 MB #Memory Used# [2025-01-27 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:40:06 [end_date_ymd] => 2025-01-27 09:40:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:40:06' and `end` < '2025-01-27 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-01-27 09:40:27] Production.INFO: count ==1653 [2025-01-27 09:40:27] Production.ERROR: pbx CDR StartTime 2025-01-27 06:40:06 - End Time 2025-01-27 09:40:06 [2025-01-27 09:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340799', 'tblTempUsageDetail_20' ) start [2025-01-27 09:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340799', 'tblTempUsageDetail_20' ) end [2025-01-27 09:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340799', 'tblTempVendorCDR_20' ) start [2025-01-27 09:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340799', 'tblTempVendorCDR_20' ) end [2025-01-27 09:40:27] Production.INFO: ProcessCDR(1,14340799,1,1,2) [2025-01-27 09:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340799', 'tblTempUsageDetail_20' ) start [2025-01-27 09:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340799', 'tblTempUsageDetail_20' ) end [2025-01-27 09:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:40:32] Production.INFO: ==21333== Releasing lock... [2025-01-27 09:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:40:32] Production.INFO: 40.75 MB #Memory Used# [2025-01-27 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:41:05 [end_date_ymd] => 2025-01-27 09:41:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:41:05' and `end` < '2025-01-27 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-01-27 09:41:23] Production.INFO: count ==1741 [2025-01-27 09:41:24] Production.ERROR: pbx CDR StartTime 2025-01-27 06:41:05 - End Time 2025-01-27 09:41:05 [2025-01-27 09:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340805', 'tblTempUsageDetail_20' ) start [2025-01-27 09:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340805', 'tblTempUsageDetail_20' ) end [2025-01-27 09:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340805', 'tblTempVendorCDR_20' ) start [2025-01-27 09:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340805', 'tblTempVendorCDR_20' ) end [2025-01-27 09:41:24] Production.INFO: ProcessCDR(1,14340805,1,1,2) [2025-01-27 09:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340805', 'tblTempUsageDetail_20' ) start [2025-01-27 09:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340805', 'tblTempUsageDetail_20' ) end [2025-01-27 09:41:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:41:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:41:29] Production.INFO: ==21408== Releasing lock... [2025-01-27 09:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:41:29] Production.INFO: 41 MB #Memory Used# [2025-01-27 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:42:05 [end_date_ymd] => 2025-01-27 09:42:05 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:42:05' and `end` < '2025-01-27 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-01-27 09:42:23] Production.INFO: count ==1746 [2025-01-27 09:42:23] Production.ERROR: pbx CDR StartTime 2025-01-27 06:42:05 - End Time 2025-01-27 09:42:05 [2025-01-27 09:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340810', 'tblTempUsageDetail_20' ) start [2025-01-27 09:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340810', 'tblTempUsageDetail_20' ) end [2025-01-27 09:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340810', 'tblTempVendorCDR_20' ) start [2025-01-27 09:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340810', 'tblTempVendorCDR_20' ) end [2025-01-27 09:42:23] Production.INFO: ProcessCDR(1,14340810,1,1,2) [2025-01-27 09:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340810', 'tblTempUsageDetail_20' ) start [2025-01-27 09:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340810', 'tblTempUsageDetail_20' ) end [2025-01-27 09:42:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:42:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:42:28] Production.INFO: ==21497== Releasing lock... [2025-01-27 09:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:42:28] Production.INFO: 41.25 MB #Memory Used# [2025-01-27 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:43:05 [end_date_ymd] => 2025-01-27 09:43:05 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:43:05' and `end` < '2025-01-27 09: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-01-27 09:43:28] Production.INFO: count ==1767 [2025-01-27 09:43:29] Production.ERROR: pbx CDR StartTime 2025-01-27 06:43:05 - End Time 2025-01-27 09:43:05 [2025-01-27 09:43:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340815', 'tblTempUsageDetail_20' ) start [2025-01-27 09:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340815', 'tblTempUsageDetail_20' ) end [2025-01-27 09:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340815', 'tblTempVendorCDR_20' ) start [2025-01-27 09:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340815', 'tblTempVendorCDR_20' ) end [2025-01-27 09:43:29] Production.INFO: ProcessCDR(1,14340815,1,1,2) [2025-01-27 09:43:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:43:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:43:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:43:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340815', 'tblTempUsageDetail_20' ) start [2025-01-27 09:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340815', 'tblTempUsageDetail_20' ) end [2025-01-27 09:43:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:43:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:43:34] Production.INFO: ==21583== Releasing lock... [2025-01-27 09:43:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:43:34] Production.INFO: 41.25 MB #Memory Used# [2025-01-27 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:44:05 [end_date_ymd] => 2025-01-27 09:44:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:44:05' and `end` < '2025-01-27 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-01-27 09:44:23] Production.INFO: count ==1780 [2025-01-27 09:44:24] Production.ERROR: pbx CDR StartTime 2025-01-27 06:44:05 - End Time 2025-01-27 09:44:05 [2025-01-27 09:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340820', 'tblTempUsageDetail_20' ) start [2025-01-27 09:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340820', 'tblTempUsageDetail_20' ) end [2025-01-27 09:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340820', 'tblTempVendorCDR_20' ) start [2025-01-27 09:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340820', 'tblTempVendorCDR_20' ) end [2025-01-27 09:44:24] Production.INFO: ProcessCDR(1,14340820,1,1,2) [2025-01-27 09:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340820', 'tblTempUsageDetail_20' ) start [2025-01-27 09:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340820', 'tblTempUsageDetail_20' ) end [2025-01-27 09:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:44:29] Production.INFO: ==21656== Releasing lock... [2025-01-27 09:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:44:29] Production.INFO: 41.5 MB #Memory Used# [2025-01-27 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:45:05 [end_date_ymd] => 2025-01-27 09:45:05 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:45:05' and `end` < '2025-01-27 09: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-01-27 09:45:24] Production.INFO: count ==1796 [2025-01-27 09:45:25] Production.ERROR: pbx CDR StartTime 2025-01-27 06:45:05 - End Time 2025-01-27 09:45:05 [2025-01-27 09:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340825', 'tblTempUsageDetail_20' ) start [2025-01-27 09:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340825', 'tblTempUsageDetail_20' ) end [2025-01-27 09:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340825', 'tblTempVendorCDR_20' ) start [2025-01-27 09:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340825', 'tblTempVendorCDR_20' ) end [2025-01-27 09:45:25] Production.INFO: ProcessCDR(1,14340825,1,1,2) [2025-01-27 09:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340825', 'tblTempUsageDetail_20' ) start [2025-01-27 09:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340825', 'tblTempUsageDetail_20' ) end [2025-01-27 09:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:45:30] Production.INFO: ==21735== Releasing lock... [2025-01-27 09:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:45:30] Production.INFO: 41.5 MB #Memory Used# [2025-01-27 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:46:05 [end_date_ymd] => 2025-01-27 09:46:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:46:05' and `end` < '2025-01-27 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-01-27 09:46:32] Production.INFO: count ==1831 [2025-01-27 09:46:32] Production.ERROR: pbx CDR StartTime 2025-01-27 06:46:05 - End Time 2025-01-27 09:46:05 [2025-01-27 09:46:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340830', 'tblTempUsageDetail_20' ) start [2025-01-27 09:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340830', 'tblTempUsageDetail_20' ) end [2025-01-27 09:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340830', 'tblTempVendorCDR_20' ) start [2025-01-27 09:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340830', 'tblTempVendorCDR_20' ) end [2025-01-27 09:46:33] Production.INFO: ProcessCDR(1,14340830,1,1,2) [2025-01-27 09:46:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:46:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:46:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:46:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:46:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340830', 'tblTempUsageDetail_20' ) start [2025-01-27 09:46:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340830', 'tblTempUsageDetail_20' ) end [2025-01-27 09:46:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:46:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:46:38] Production.INFO: ==21820== Releasing lock... [2025-01-27 09:46:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:46:38] Production.INFO: 41.75 MB #Memory Used# [2025-01-27 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:47:05 [end_date_ymd] => 2025-01-27 09:47:05 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:47:05' and `end` < '2025-01-27 09: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-01-27 09:47:24] Production.INFO: count ==1845 [2025-01-27 09:47:24] Production.ERROR: pbx CDR StartTime 2025-01-27 06:47:05 - End Time 2025-01-27 09:47:05 [2025-01-27 09:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340835', 'tblTempUsageDetail_20' ) start [2025-01-27 09:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340835', 'tblTempUsageDetail_20' ) end [2025-01-27 09:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340835', 'tblTempVendorCDR_20' ) start [2025-01-27 09:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340835', 'tblTempVendorCDR_20' ) end [2025-01-27 09:47:24] Production.INFO: ProcessCDR(1,14340835,1,1,2) [2025-01-27 09:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340835', 'tblTempUsageDetail_20' ) start [2025-01-27 09:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340835', 'tblTempUsageDetail_20' ) end [2025-01-27 09:47:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:47:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:47:28] Production.INFO: ==21901== Releasing lock... [2025-01-27 09:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:47:28] Production.INFO: 42 MB #Memory Used# [2025-01-27 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:48:06 [end_date_ymd] => 2025-01-27 09:48:06 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:48:06' and `end` < '2025-01-27 09: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-01-27 09:48:29] Production.INFO: count ==1871 [2025-01-27 09:48:30] Production.ERROR: pbx CDR StartTime 2025-01-27 06:48:06 - End Time 2025-01-27 09:48:06 [2025-01-27 09:48:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340840', 'tblTempUsageDetail_20' ) start [2025-01-27 09:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340840', 'tblTempUsageDetail_20' ) end [2025-01-27 09:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340840', 'tblTempVendorCDR_20' ) start [2025-01-27 09:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340840', 'tblTempVendorCDR_20' ) end [2025-01-27 09:48:30] Production.INFO: ProcessCDR(1,14340840,1,1,2) [2025-01-27 09:48:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:48:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:48:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:48:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340840', 'tblTempUsageDetail_20' ) start [2025-01-27 09:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340840', 'tblTempUsageDetail_20' ) end [2025-01-27 09:48:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:48:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:48:35] Production.INFO: ==21986== Releasing lock... [2025-01-27 09:48:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:48:35] Production.INFO: 42 MB #Memory Used# [2025-01-27 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:49:05 [end_date_ymd] => 2025-01-27 09:49:05 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:49:05' and `end` < '2025-01-27 09: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-01-27 09:49:24] Production.INFO: count ==1888 [2025-01-27 09:49:25] Production.ERROR: pbx CDR StartTime 2025-01-27 06:49:05 - End Time 2025-01-27 09:49:05 [2025-01-27 09:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340845', 'tblTempUsageDetail_20' ) start [2025-01-27 09:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340845', 'tblTempUsageDetail_20' ) end [2025-01-27 09:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340845', 'tblTempVendorCDR_20' ) start [2025-01-27 09:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340845', 'tblTempVendorCDR_20' ) end [2025-01-27 09:49:25] Production.INFO: ProcessCDR(1,14340845,1,1,2) [2025-01-27 09:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340845', 'tblTempUsageDetail_20' ) start [2025-01-27 09:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340845', 'tblTempUsageDetail_20' ) end [2025-01-27 09:49:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:49:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:49:30] Production.INFO: ==22104== Releasing lock... [2025-01-27 09:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:49:30] Production.INFO: 42.25 MB #Memory Used# [2025-01-27 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:50:06 [end_date_ymd] => 2025-01-27 09:50:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:50:06' and `end` < '2025-01-27 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-01-27 09:50:37] Production.INFO: count ==1930 [2025-01-27 09:50:37] Production.ERROR: pbx CDR StartTime 2025-01-27 06:50:06 - End Time 2025-01-27 09:50:06 [2025-01-27 09:50:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:50:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340850', 'tblTempUsageDetail_20' ) start [2025-01-27 09:50:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340850', 'tblTempUsageDetail_20' ) end [2025-01-27 09:50:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340850', 'tblTempVendorCDR_20' ) start [2025-01-27 09:50:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340850', 'tblTempVendorCDR_20' ) end [2025-01-27 09:50:37] Production.INFO: ProcessCDR(1,14340850,1,1,2) [2025-01-27 09:50:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:50:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:50:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:50:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:50:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340850', 'tblTempUsageDetail_20' ) start [2025-01-27 09:50:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340850', 'tblTempUsageDetail_20' ) end [2025-01-27 09:50:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:50:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:50:43] Production.INFO: ==22187== Releasing lock... [2025-01-27 09:50:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:50:43] Production.INFO: 42.5 MB #Memory Used# [2025-01-27 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:51:05 [end_date_ymd] => 2025-01-27 09:51:05 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:51:05' and `end` < '2025-01-27 09: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-01-27 09:51:32] Production.INFO: count ==2089 [2025-01-27 09:51:33] Production.ERROR: pbx CDR StartTime 2025-01-27 06:51:05 - End Time 2025-01-27 09:51:05 [2025-01-27 09:51:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:51:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340856', 'tblTempUsageDetail_20' ) start [2025-01-27 09:51:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340856', 'tblTempUsageDetail_20' ) end [2025-01-27 09:51:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340856', 'tblTempVendorCDR_20' ) start [2025-01-27 09:51:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340856', 'tblTempVendorCDR_20' ) end [2025-01-27 09:51:33] Production.INFO: ProcessCDR(1,14340856,1,1,2) [2025-01-27 09:51:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:51:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:51:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:51:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340856', 'tblTempUsageDetail_20' ) start [2025-01-27 09:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340856', 'tblTempUsageDetail_20' ) end [2025-01-27 09:51:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:51:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:51:37] Production.INFO: ==22269== Releasing lock... [2025-01-27 09:51:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:51:37] Production.INFO: 43.75 MB #Memory Used# [2025-01-27 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:52:06 [end_date_ymd] => 2025-01-27 09:52:06 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:52:06' and `end` < '2025-01-27 09: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-01-27 09:52:35] Production.INFO: count ==2118 [2025-01-27 09:52:36] Production.ERROR: pbx CDR StartTime 2025-01-27 06:52:06 - End Time 2025-01-27 09:52:06 [2025-01-27 09:52:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340861', 'tblTempUsageDetail_20' ) start [2025-01-27 09:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340861', 'tblTempUsageDetail_20' ) end [2025-01-27 09:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340861', 'tblTempVendorCDR_20' ) start [2025-01-27 09:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340861', 'tblTempVendorCDR_20' ) end [2025-01-27 09:52:36] Production.INFO: ProcessCDR(1,14340861,1,1,2) [2025-01-27 09:52:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:52:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:52:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:52:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:52:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340861', 'tblTempUsageDetail_20' ) start [2025-01-27 09:52:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340861', 'tblTempUsageDetail_20' ) end [2025-01-27 09:52:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:52:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:52:41] Production.INFO: ==22358== Releasing lock... [2025-01-27 09:52:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:52:41] Production.INFO: 44.25 MB #Memory Used# [2025-01-27 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:53:06 [end_date_ymd] => 2025-01-27 09:53:06 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:53:06' and `end` < '2025-01-27 09: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-01-27 09:53:27] Production.INFO: count ==2145 [2025-01-27 09:53:27] Production.ERROR: pbx CDR StartTime 2025-01-27 06:53:06 - End Time 2025-01-27 09:53:06 [2025-01-27 09:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340866', 'tblTempUsageDetail_20' ) start [2025-01-27 09:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340866', 'tblTempUsageDetail_20' ) end [2025-01-27 09:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340866', 'tblTempVendorCDR_20' ) start [2025-01-27 09:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340866', 'tblTempVendorCDR_20' ) end [2025-01-27 09:53:27] Production.INFO: ProcessCDR(1,14340866,1,1,2) [2025-01-27 09:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:53:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:53:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340866', 'tblTempUsageDetail_20' ) start [2025-01-27 09:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340866', 'tblTempUsageDetail_20' ) end [2025-01-27 09:53:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:53:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:53:33] Production.INFO: ==22434== Releasing lock... [2025-01-27 09:53:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:53:33] Production.INFO: 44.25 MB #Memory Used# [2025-01-27 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:54:06 [end_date_ymd] => 2025-01-27 09:54:06 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:54:06' and `end` < '2025-01-27 09: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-01-27 09:54:31] Production.INFO: count ==2171 [2025-01-27 09:54:32] Production.ERROR: pbx CDR StartTime 2025-01-27 06:54:06 - End Time 2025-01-27 09:54:06 [2025-01-27 09:54:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340871', 'tblTempUsageDetail_20' ) start [2025-01-27 09:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340871', 'tblTempUsageDetail_20' ) end [2025-01-27 09:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340871', 'tblTempVendorCDR_20' ) start [2025-01-27 09:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340871', 'tblTempVendorCDR_20' ) end [2025-01-27 09:54:32] Production.INFO: ProcessCDR(1,14340871,1,1,2) [2025-01-27 09:54:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:54:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:54:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:54:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:54:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340871', 'tblTempUsageDetail_20' ) start [2025-01-27 09:54:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340871', 'tblTempUsageDetail_20' ) end [2025-01-27 09:54:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:54:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:54:38] Production.INFO: ==22525== Releasing lock... [2025-01-27 09:54:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:54:38] Production.INFO: 44.5 MB #Memory Used# [2025-01-27 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:55:05 [end_date_ymd] => 2025-01-27 09:55:05 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:55:05' and `end` < '2025-01-27 09: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-01-27 09:55:28] Production.INFO: count ==2180 [2025-01-27 09:55:29] Production.ERROR: pbx CDR StartTime 2025-01-27 06:55:05 - End Time 2025-01-27 09:55:05 [2025-01-27 09:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340876', 'tblTempUsageDetail_20' ) start [2025-01-27 09:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340876', 'tblTempUsageDetail_20' ) end [2025-01-27 09:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340876', 'tblTempVendorCDR_20' ) start [2025-01-27 09:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340876', 'tblTempVendorCDR_20' ) end [2025-01-27 09:55:29] Production.INFO: ProcessCDR(1,14340876,1,1,2) [2025-01-27 09:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340876', 'tblTempUsageDetail_20' ) start [2025-01-27 09:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340876', 'tblTempUsageDetail_20' ) end [2025-01-27 09:55:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:55:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:55:34] Production.INFO: ==22608== Releasing lock... [2025-01-27 09:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:55:34] Production.INFO: 44.5 MB #Memory Used# [2025-01-27 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:56:05 [end_date_ymd] => 2025-01-27 09:56:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:56:05' and `end` < '2025-01-27 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-01-27 09:56:28] Production.INFO: count ==2193 [2025-01-27 09:56:29] Production.ERROR: pbx CDR StartTime 2025-01-27 06:56:05 - End Time 2025-01-27 09:56:05 [2025-01-27 09:56:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340881', 'tblTempUsageDetail_20' ) start [2025-01-27 09:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340881', 'tblTempUsageDetail_20' ) end [2025-01-27 09:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340881', 'tblTempVendorCDR_20' ) start [2025-01-27 09:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340881', 'tblTempVendorCDR_20' ) end [2025-01-27 09:56:29] Production.INFO: ProcessCDR(1,14340881,1,1,2) [2025-01-27 09:56:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:56:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:56:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:56:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340881', 'tblTempUsageDetail_20' ) start [2025-01-27 09:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340881', 'tblTempUsageDetail_20' ) end [2025-01-27 09:56:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:56:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:56:34] Production.INFO: ==22686== Releasing lock... [2025-01-27 09:56:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:56:34] Production.INFO: 44.75 MB #Memory Used# [2025-01-27 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:57:05 [end_date_ymd] => 2025-01-27 09:57:05 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:57:05' and `end` < '2025-01-27 09: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-01-27 09:57:34] Production.INFO: count ==2216 [2025-01-27 09:57:35] Production.ERROR: pbx CDR StartTime 2025-01-27 06:57:05 - End Time 2025-01-27 09:57:05 [2025-01-27 09:57:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:57:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340886', 'tblTempUsageDetail_20' ) start [2025-01-27 09:57:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340886', 'tblTempUsageDetail_20' ) end [2025-01-27 09:57:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340886', 'tblTempVendorCDR_20' ) start [2025-01-27 09:57:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340886', 'tblTempVendorCDR_20' ) end [2025-01-27 09:57:35] Production.INFO: ProcessCDR(1,14340886,1,1,2) [2025-01-27 09:57:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:57:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:57:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:57:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:57:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340886', 'tblTempUsageDetail_20' ) start [2025-01-27 09:57:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340886', 'tblTempUsageDetail_20' ) end [2025-01-27 09:57:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:57:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:57:40] Production.INFO: ==22769== Releasing lock... [2025-01-27 09:57:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:57:40] Production.INFO: 45 MB #Memory Used# [2025-01-27 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:58:05 [end_date_ymd] => 2025-01-27 09:58:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 06:58:05' and `end` < '2025-01-27 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-01-27 09:58:27] Production.INFO: count ==2241 [2025-01-27 09:58:28] Production.ERROR: pbx CDR StartTime 2025-01-27 06:58:05 - End Time 2025-01-27 09:58:05 [2025-01-27 09:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340891', 'tblTempUsageDetail_20' ) start [2025-01-27 09:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340891', 'tblTempUsageDetail_20' ) end [2025-01-27 09:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340891', 'tblTempVendorCDR_20' ) start [2025-01-27 09:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340891', 'tblTempVendorCDR_20' ) end [2025-01-27 09:58:28] Production.INFO: ProcessCDR(1,14340891,1,1,2) [2025-01-27 09:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340891', 'tblTempUsageDetail_20' ) start [2025-01-27 09:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340891', 'tblTempUsageDetail_20' ) end [2025-01-27 09:58:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:58:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:58:32] Production.INFO: ==22848== Releasing lock... [2025-01-27 09:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:58:32] Production.INFO: 45 MB #Memory Used# [2025-01-27 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 06:59:05 [end_date_ymd] => 2025-01-27 09:59:05 [RateCDR] => 1 ) [2025-01-27 09: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-01-27 06:59:05' and `end` < '2025-01-27 09: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-01-27 09:59:32] Production.INFO: count ==2260 [2025-01-27 09:59:33] Production.ERROR: pbx CDR StartTime 2025-01-27 06:59:05 - End Time 2025-01-27 09:59:05 [2025-01-27 09:59:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 09:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340896', 'tblTempUsageDetail_20' ) start [2025-01-27 09:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340896', 'tblTempUsageDetail_20' ) end [2025-01-27 09:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340896', 'tblTempVendorCDR_20' ) start [2025-01-27 09:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340896', 'tblTempVendorCDR_20' ) end [2025-01-27 09:59:33] Production.INFO: ProcessCDR(1,14340896,1,1,2) [2025-01-27 09:59:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:59:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 09:59:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:59:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 09:59:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340896', 'tblTempUsageDetail_20' ) start [2025-01-27 09:59:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340896', 'tblTempUsageDetail_20' ) end [2025-01-27 09:59:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 09:59:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 09:59:38] Production.INFO: ==22926== Releasing lock... [2025-01-27 09:59:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 09:59:38] Production.INFO: 45 MB #Memory Used# [2025-01-27 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:00:06 [end_date_ymd] => 2025-01-27 10:00:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:00:06' and `end` < '2025-01-27 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-01-27 10:00:28] Production.INFO: count ==2287 [2025-01-27 10:00:29] Production.ERROR: pbx CDR StartTime 2025-01-27 07:00:06 - End Time 2025-01-27 10:00:06 [2025-01-27 10:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340902', 'tblTempUsageDetail_20' ) start [2025-01-27 10:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340902', 'tblTempUsageDetail_20' ) end [2025-01-27 10:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340902', 'tblTempVendorCDR_20' ) start [2025-01-27 10:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340902', 'tblTempVendorCDR_20' ) end [2025-01-27 10:00:29] Production.INFO: ProcessCDR(1,14340902,1,1,2) [2025-01-27 10:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340902', 'tblTempUsageDetail_20' ) start [2025-01-27 10:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340902', 'tblTempUsageDetail_20' ) end [2025-01-27 10:00:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:00:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:00:32] Production.INFO: ==23014== Releasing lock... [2025-01-27 10:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:00:32] Production.INFO: 45.25 MB #Memory Used# [2025-01-27 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:01:05 [end_date_ymd] => 2025-01-27 10:01:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:01:05' and `end` < '2025-01-27 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-01-27 10:01:30] Production.INFO: count ==2428 [2025-01-27 10:01:31] Production.ERROR: pbx CDR StartTime 2025-01-27 07:01:05 - End Time 2025-01-27 10:01:05 [2025-01-27 10:01:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340907', 'tblTempUsageDetail_20' ) start [2025-01-27 10:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340907', 'tblTempUsageDetail_20' ) end [2025-01-27 10:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340907', 'tblTempVendorCDR_20' ) start [2025-01-27 10:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340907', 'tblTempVendorCDR_20' ) end [2025-01-27 10:01:31] Production.INFO: ProcessCDR(1,14340907,1,1,2) [2025-01-27 10:01:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:01:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:01:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:01:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:01:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340907', 'tblTempUsageDetail_20' ) start [2025-01-27 10:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340907', 'tblTempUsageDetail_20' ) end [2025-01-27 10:01:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:01:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:01:36] Production.INFO: ==23111== Releasing lock... [2025-01-27 10:01:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:01:36] Production.INFO: 46.25 MB #Memory Used# [2025-01-27 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:02:05 [end_date_ymd] => 2025-01-27 10:02:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:02:05' and `end` < '2025-01-27 10: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-01-27 10:02:27] Production.INFO: count ==2443 [2025-01-27 10:02:28] Production.ERROR: pbx CDR StartTime 2025-01-27 07:02:05 - End Time 2025-01-27 10:02:05 [2025-01-27 10:02:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340912', 'tblTempUsageDetail_20' ) start [2025-01-27 10:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340912', 'tblTempUsageDetail_20' ) end [2025-01-27 10:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340912', 'tblTempVendorCDR_20' ) start [2025-01-27 10:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340912', 'tblTempVendorCDR_20' ) end [2025-01-27 10:02:28] Production.INFO: ProcessCDR(1,14340912,1,1,2) [2025-01-27 10:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340912', 'tblTempUsageDetail_20' ) start [2025-01-27 10:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340912', 'tblTempUsageDetail_20' ) end [2025-01-27 10:02:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:02:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:02:33] Production.INFO: ==23187== Releasing lock... [2025-01-27 10:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:02:33] Production.INFO: 46.5 MB #Memory Used# [2025-01-27 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:03:05 [end_date_ymd] => 2025-01-27 10:03:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:03:05' and `end` < '2025-01-27 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-01-27 10:03:32] Production.INFO: count ==2461 [2025-01-27 10:03:33] Production.ERROR: pbx CDR StartTime 2025-01-27 07:03:05 - End Time 2025-01-27 10:03:05 [2025-01-27 10:03:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340917', 'tblTempUsageDetail_20' ) start [2025-01-27 10:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340917', 'tblTempUsageDetail_20' ) end [2025-01-27 10:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340917', 'tblTempVendorCDR_20' ) start [2025-01-27 10:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340917', 'tblTempVendorCDR_20' ) end [2025-01-27 10:03:33] Production.INFO: ProcessCDR(1,14340917,1,1,2) [2025-01-27 10:03:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:03:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:03:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:03:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:03:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340917', 'tblTempUsageDetail_20' ) start [2025-01-27 10:03:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340917', 'tblTempUsageDetail_20' ) end [2025-01-27 10:03:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:03:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:03:37] Production.INFO: ==23265== Releasing lock... [2025-01-27 10:03:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:03:37] Production.INFO: 46.5 MB #Memory Used# [2025-01-27 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:04:06 [end_date_ymd] => 2025-01-27 10:04:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:04:06' and `end` < '2025-01-27 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-01-27 10:04:27] Production.INFO: count ==2489 [2025-01-27 10:04:28] Production.ERROR: pbx CDR StartTime 2025-01-27 07:04:06 - End Time 2025-01-27 10:04:06 [2025-01-27 10:04:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340922', 'tblTempUsageDetail_20' ) start [2025-01-27 10:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340922', 'tblTempUsageDetail_20' ) end [2025-01-27 10:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340922', 'tblTempVendorCDR_20' ) start [2025-01-27 10:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340922', 'tblTempVendorCDR_20' ) end [2025-01-27 10:04:28] Production.INFO: ProcessCDR(1,14340922,1,1,2) [2025-01-27 10:04:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:04:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340922', 'tblTempUsageDetail_20' ) start [2025-01-27 10:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340922', 'tblTempUsageDetail_20' ) end [2025-01-27 10:04:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:04:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:04:33] Production.INFO: ==23345== Releasing lock... [2025-01-27 10:04:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:04:33] Production.INFO: 46.75 MB #Memory Used# [2025-01-27 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:05:05 [end_date_ymd] => 2025-01-27 10:05:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:05:05' and `end` < '2025-01-27 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-01-27 10:05:24] Production.INFO: count ==2502 [2025-01-27 10:05:25] Production.ERROR: pbx CDR StartTime 2025-01-27 07:05:05 - End Time 2025-01-27 10:05:05 [2025-01-27 10:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340926', 'tblTempUsageDetail_20' ) start [2025-01-27 10:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340926', 'tblTempUsageDetail_20' ) end [2025-01-27 10:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340926', 'tblTempVendorCDR_20' ) start [2025-01-27 10:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340926', 'tblTempVendorCDR_20' ) end [2025-01-27 10:05:25] Production.INFO: ProcessCDR(1,14340926,1,1,2) [2025-01-27 10:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340926', 'tblTempUsageDetail_20' ) start [2025-01-27 10:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340926', 'tblTempUsageDetail_20' ) end [2025-01-27 10:05:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:05:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:05:30] Production.INFO: ==23458== Releasing lock... [2025-01-27 10:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:05:30] Production.INFO: 46.75 MB #Memory Used# [2025-01-27 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:06:05 [end_date_ymd] => 2025-01-27 10:06:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:06:05' and `end` < '2025-01-27 10: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-01-27 10:06:24] Production.INFO: count ==2545 [2025-01-27 10:06:25] Production.ERROR: pbx CDR StartTime 2025-01-27 07:06:05 - End Time 2025-01-27 10:06:05 [2025-01-27 10:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340932', 'tblTempUsageDetail_20' ) start [2025-01-27 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340932', 'tblTempUsageDetail_20' ) end [2025-01-27 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340932', 'tblTempVendorCDR_20' ) start [2025-01-27 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340932', 'tblTempVendorCDR_20' ) end [2025-01-27 10:06:25] Production.INFO: ProcessCDR(1,14340932,1,1,2) [2025-01-27 10:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340932', 'tblTempUsageDetail_20' ) start [2025-01-27 10:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340932', 'tblTempUsageDetail_20' ) end [2025-01-27 10:06:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:06:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:06:31] Production.INFO: ==23536== Releasing lock... [2025-01-27 10:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:06:31] Production.INFO: 47.25 MB #Memory Used# [2025-01-27 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:07:06 [end_date_ymd] => 2025-01-27 10:07:06 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:07:06' and `end` < '2025-01-27 10: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-01-27 10:07:28] Production.INFO: count ==2558 [2025-01-27 10:07:29] Production.ERROR: pbx CDR StartTime 2025-01-27 07:07:06 - End Time 2025-01-27 10:07:06 [2025-01-27 10:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340937', 'tblTempUsageDetail_20' ) start [2025-01-27 10:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340937', 'tblTempUsageDetail_20' ) end [2025-01-27 10:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340937', 'tblTempVendorCDR_20' ) start [2025-01-27 10:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340937', 'tblTempVendorCDR_20' ) end [2025-01-27 10:07:29] Production.INFO: ProcessCDR(1,14340937,1,1,2) [2025-01-27 10:07:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:07:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:07:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340937', 'tblTempUsageDetail_20' ) start [2025-01-27 10:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340937', 'tblTempUsageDetail_20' ) end [2025-01-27 10:07:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:07:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:07:34] Production.INFO: ==23622== Releasing lock... [2025-01-27 10:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:07:34] Production.INFO: 47.25 MB #Memory Used# [2025-01-27 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:08:05 [end_date_ymd] => 2025-01-27 10:08:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:08:05' and `end` < '2025-01-27 10: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-01-27 10:08:24] Production.INFO: count ==2577 [2025-01-27 10:08:25] Production.ERROR: pbx CDR StartTime 2025-01-27 07:08:05 - End Time 2025-01-27 10:08:05 [2025-01-27 10:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340942', 'tblTempUsageDetail_20' ) start [2025-01-27 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340942', 'tblTempUsageDetail_20' ) end [2025-01-27 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340942', 'tblTempVendorCDR_20' ) start [2025-01-27 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340942', 'tblTempVendorCDR_20' ) end [2025-01-27 10:08:25] Production.INFO: ProcessCDR(1,14340942,1,1,2) [2025-01-27 10:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340942', 'tblTempUsageDetail_20' ) start [2025-01-27 10:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340942', 'tblTempUsageDetail_20' ) end [2025-01-27 10:08:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:08:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:08:30] Production.INFO: ==23699== Releasing lock... [2025-01-27 10:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:08:30] Production.INFO: 47.5 MB #Memory Used# [2025-01-27 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:09:06 [end_date_ymd] => 2025-01-27 10:09:06 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:09:06' and `end` < '2025-01-27 10: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-01-27 10:09:22] Production.INFO: count ==2588 [2025-01-27 10:09:23] Production.ERROR: pbx CDR StartTime 2025-01-27 07:09:06 - End Time 2025-01-27 10:09:06 [2025-01-27 10:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340947', 'tblTempUsageDetail_20' ) start [2025-01-27 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340947', 'tblTempUsageDetail_20' ) end [2025-01-27 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340947', 'tblTempVendorCDR_20' ) start [2025-01-27 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340947', 'tblTempVendorCDR_20' ) end [2025-01-27 10:09:23] Production.INFO: ProcessCDR(1,14340947,1,1,2) [2025-01-27 10:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340947', 'tblTempUsageDetail_20' ) start [2025-01-27 10:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340947', 'tblTempUsageDetail_20' ) end [2025-01-27 10:09:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:09:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:09:28] Production.INFO: ==23775== Releasing lock... [2025-01-27 10:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:09:28] Production.INFO: 47.5 MB #Memory Used# [2025-01-27 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:10:06 [end_date_ymd] => 2025-01-27 10:10:06 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:10:06' and `end` < '2025-01-27 10: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-01-27 10:10:25] Production.INFO: count ==2621 [2025-01-27 10:10:25] Production.ERROR: pbx CDR StartTime 2025-01-27 07:10:06 - End Time 2025-01-27 10:10:06 [2025-01-27 10:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340953', 'tblTempUsageDetail_20' ) start [2025-01-27 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340953', 'tblTempUsageDetail_20' ) end [2025-01-27 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340953', 'tblTempVendorCDR_20' ) start [2025-01-27 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340953', 'tblTempVendorCDR_20' ) end [2025-01-27 10:10:26] Production.INFO: ProcessCDR(1,14340953,1,1,2) [2025-01-27 10:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340953', 'tblTempUsageDetail_20' ) start [2025-01-27 10:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340953', 'tblTempUsageDetail_20' ) end [2025-01-27 10:10:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:10:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:10:31] Production.INFO: ==23857== Releasing lock... [2025-01-27 10:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:10:31] Production.INFO: 47.75 MB #Memory Used# [2025-01-27 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:11:06 [end_date_ymd] => 2025-01-27 10:11:06 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:11:06' and `end` < '2025-01-27 10: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-01-27 10:11:22] Production.INFO: count ==2734 [2025-01-27 10:11:23] Production.ERROR: pbx CDR StartTime 2025-01-27 07:11:06 - End Time 2025-01-27 10:11:06 [2025-01-27 10:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340958', 'tblTempUsageDetail_20' ) start [2025-01-27 10:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340958', 'tblTempUsageDetail_20' ) end [2025-01-27 10:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340958', 'tblTempVendorCDR_20' ) start [2025-01-27 10:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340958', 'tblTempVendorCDR_20' ) end [2025-01-27 10:11:23] Production.INFO: ProcessCDR(1,14340958,1,1,2) [2025-01-27 10:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340958', 'tblTempUsageDetail_20' ) start [2025-01-27 10:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340958', 'tblTempUsageDetail_20' ) end [2025-01-27 10:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:11:28] Production.INFO: ==23935== Releasing lock... [2025-01-27 10:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:11:28] Production.INFO: 48.5 MB #Memory Used# [2025-01-27 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:12:05 [end_date_ymd] => 2025-01-27 10:12:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:12:05' and `end` < '2025-01-27 10: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-01-27 10:12:30] Production.INFO: count ==2757 [2025-01-27 10:12:31] Production.ERROR: pbx CDR StartTime 2025-01-27 07:12:05 - End Time 2025-01-27 10:12:05 [2025-01-27 10:12:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340963', 'tblTempUsageDetail_20' ) start [2025-01-27 10:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340963', 'tblTempUsageDetail_20' ) end [2025-01-27 10:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340963', 'tblTempVendorCDR_20' ) start [2025-01-27 10:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340963', 'tblTempVendorCDR_20' ) end [2025-01-27 10:12:32] Production.INFO: ProcessCDR(1,14340963,1,1,2) [2025-01-27 10:12:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:12:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:12:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:12:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:12:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340963', 'tblTempUsageDetail_20' ) start [2025-01-27 10:12:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340963', 'tblTempUsageDetail_20' ) end [2025-01-27 10:12:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:12:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:12:37] Production.INFO: ==24015== Releasing lock... [2025-01-27 10:12:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:12:37] Production.INFO: 48.75 MB #Memory Used# [2025-01-27 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:13:05 [end_date_ymd] => 2025-01-27 10:13:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:13:05' and `end` < '2025-01-27 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-01-27 10:13:29] Production.INFO: count ==2782 [2025-01-27 10:13:30] Production.ERROR: pbx CDR StartTime 2025-01-27 07:13:05 - End Time 2025-01-27 10:13:05 [2025-01-27 10:13:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340968', 'tblTempUsageDetail_20' ) start [2025-01-27 10:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340968', 'tblTempUsageDetail_20' ) end [2025-01-27 10:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340968', 'tblTempVendorCDR_20' ) start [2025-01-27 10:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340968', 'tblTempVendorCDR_20' ) end [2025-01-27 10:13:31] Production.INFO: ProcessCDR(1,14340968,1,1,2) [2025-01-27 10:13:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:13:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:13:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:13:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:13:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340968', 'tblTempUsageDetail_20' ) start [2025-01-27 10:13:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340968', 'tblTempUsageDetail_20' ) end [2025-01-27 10:13:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:13:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:13:35] Production.INFO: ==24098== Releasing lock... [2025-01-27 10:13:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:13:35] Production.INFO: 49 MB #Memory Used# [2025-01-27 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:14:05 [end_date_ymd] => 2025-01-27 10:14:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:14:05' and `end` < '2025-01-27 10: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-01-27 10:14:26] Production.INFO: count ==2802 [2025-01-27 10:14:27] Production.ERROR: pbx CDR StartTime 2025-01-27 07:14:05 - End Time 2025-01-27 10:14:05 [2025-01-27 10:14:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340973', 'tblTempUsageDetail_20' ) start [2025-01-27 10:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340973', 'tblTempUsageDetail_20' ) end [2025-01-27 10:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340973', 'tblTempVendorCDR_20' ) start [2025-01-27 10:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340973', 'tblTempVendorCDR_20' ) end [2025-01-27 10:14:27] Production.INFO: ProcessCDR(1,14340973,1,1,2) [2025-01-27 10:14:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340973', 'tblTempUsageDetail_20' ) start [2025-01-27 10:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340973', 'tblTempUsageDetail_20' ) end [2025-01-27 10:14:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:14:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:14:32] Production.INFO: ==24182== Releasing lock... [2025-01-27 10:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:14:32] Production.INFO: 49 MB #Memory Used# [2025-01-27 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:15:05 [end_date_ymd] => 2025-01-27 10:15:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:15:05' and `end` < '2025-01-27 10: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-01-27 10:15:27] Production.INFO: count ==2839 [2025-01-27 10:15:29] Production.ERROR: pbx CDR StartTime 2025-01-27 07:15:05 - End Time 2025-01-27 10:15:05 [2025-01-27 10:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340978', 'tblTempUsageDetail_20' ) start [2025-01-27 10:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340978', 'tblTempUsageDetail_20' ) end [2025-01-27 10:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340978', 'tblTempVendorCDR_20' ) start [2025-01-27 10:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340978', 'tblTempVendorCDR_20' ) end [2025-01-27 10:15:29] Production.INFO: ProcessCDR(1,14340978,1,1,2) [2025-01-27 10:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340978', 'tblTempUsageDetail_20' ) start [2025-01-27 10:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340978', 'tblTempUsageDetail_20' ) end [2025-01-27 10:15:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:15:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:15:34] Production.INFO: ==24267== Releasing lock... [2025-01-27 10:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:15:34] Production.INFO: 49.25 MB #Memory Used# [2025-01-27 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:16:05 [end_date_ymd] => 2025-01-27 10:16:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:16:05' and `end` < '2025-01-27 10: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-01-27 10:16:31] Production.INFO: count ==2848 [2025-01-27 10:16:32] Production.ERROR: pbx CDR StartTime 2025-01-27 07:16:05 - End Time 2025-01-27 10:16:05 [2025-01-27 10:16:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340983', 'tblTempUsageDetail_20' ) start [2025-01-27 10:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340983', 'tblTempUsageDetail_20' ) end [2025-01-27 10:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340983', 'tblTempVendorCDR_20' ) start [2025-01-27 10:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340983', 'tblTempVendorCDR_20' ) end [2025-01-27 10:16:32] Production.INFO: ProcessCDR(1,14340983,1,1,2) [2025-01-27 10:16:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:16:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:16:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:16:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:16:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340983', 'tblTempUsageDetail_20' ) start [2025-01-27 10:16:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340983', 'tblTempUsageDetail_20' ) end [2025-01-27 10:16:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:16:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:16:36] Production.INFO: ==24342== Releasing lock... [2025-01-27 10:16:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:16:36] Production.INFO: 49.25 MB #Memory Used# [2025-01-27 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:17:05 [end_date_ymd] => 2025-01-27 10:17:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:17:05' and `end` < '2025-01-27 10: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-01-27 10:17:30] Production.INFO: count ==2884 [2025-01-27 10:17:31] Production.ERROR: pbx CDR StartTime 2025-01-27 07:17:05 - End Time 2025-01-27 10:17:05 [2025-01-27 10:17:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340988', 'tblTempUsageDetail_20' ) start [2025-01-27 10:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340988', 'tblTempUsageDetail_20' ) end [2025-01-27 10:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340988', 'tblTempVendorCDR_20' ) start [2025-01-27 10:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340988', 'tblTempVendorCDR_20' ) end [2025-01-27 10:17:31] Production.INFO: ProcessCDR(1,14340988,1,1,2) [2025-01-27 10:17:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:17:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:17:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:17:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:17:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340988', 'tblTempUsageDetail_20' ) start [2025-01-27 10:17:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340988', 'tblTempUsageDetail_20' ) end [2025-01-27 10:17:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:17:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:17:37] Production.INFO: ==24416== Releasing lock... [2025-01-27 10:17:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:17:37] Production.INFO: 49.5 MB #Memory Used# [2025-01-27 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:18:05 [end_date_ymd] => 2025-01-27 10:18:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:18:05' and `end` < '2025-01-27 10: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-01-27 10:18:36] Production.INFO: count ==2912 [2025-01-27 10:18:37] Production.ERROR: pbx CDR StartTime 2025-01-27 07:18:05 - End Time 2025-01-27 10:18:05 [2025-01-27 10:18:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:18:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340993', 'tblTempUsageDetail_20' ) start [2025-01-27 10:18:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340993', 'tblTempUsageDetail_20' ) end [2025-01-27 10:18:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340993', 'tblTempVendorCDR_20' ) start [2025-01-27 10:18:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340993', 'tblTempVendorCDR_20' ) end [2025-01-27 10:18:37] Production.INFO: ProcessCDR(1,14340993,1,1,2) [2025-01-27 10:18:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:18:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:18:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:18:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:18:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340993', 'tblTempUsageDetail_20' ) start [2025-01-27 10:18:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340993', 'tblTempUsageDetail_20' ) end [2025-01-27 10:18:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:18:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:18:42] Production.INFO: ==24493== Releasing lock... [2025-01-27 10:18:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:18:42] Production.INFO: 49.5 MB #Memory Used# [2025-01-27 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:19:05 [end_date_ymd] => 2025-01-27 10:19:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:19:05' and `end` < '2025-01-27 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-01-27 10:19:29] Production.INFO: count ==2938 [2025-01-27 10:19:30] Production.ERROR: pbx CDR StartTime 2025-01-27 07:19:05 - End Time 2025-01-27 10:19:05 [2025-01-27 10:19:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340998', 'tblTempUsageDetail_20' ) start [2025-01-27 10:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14340998', 'tblTempUsageDetail_20' ) end [2025-01-27 10:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340998', 'tblTempVendorCDR_20' ) start [2025-01-27 10:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14340998', 'tblTempVendorCDR_20' ) end [2025-01-27 10:19:30] Production.INFO: ProcessCDR(1,14340998,1,1,2) [2025-01-27 10:19:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14340998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:19:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14340998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:19:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14340998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:19:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14340998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340998', 'tblTempUsageDetail_20' ) start [2025-01-27 10:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14340998', 'tblTempUsageDetail_20' ) end [2025-01-27 10:19:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:19:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:19:36] Production.INFO: ==24577== Releasing lock... [2025-01-27 10:19:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:19:36] Production.INFO: 49.75 MB #Memory Used# [2025-01-27 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:20:06 [end_date_ymd] => 2025-01-27 10:20:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:20:06' and `end` < '2025-01-27 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-01-27 10:20:28] Production.INFO: count ==2959 [2025-01-27 10:20:29] Production.ERROR: pbx CDR StartTime 2025-01-27 07:20:06 - End Time 2025-01-27 10:20:06 [2025-01-27 10:20:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341003', 'tblTempUsageDetail_20' ) start [2025-01-27 10:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341003', 'tblTempUsageDetail_20' ) end [2025-01-27 10:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341003', 'tblTempVendorCDR_20' ) start [2025-01-27 10:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341003', 'tblTempVendorCDR_20' ) end [2025-01-27 10:20:29] Production.INFO: ProcessCDR(1,14341003,1,1,2) [2025-01-27 10:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:20:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:20:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:20:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341003', 'tblTempUsageDetail_20' ) start [2025-01-27 10:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341003', 'tblTempUsageDetail_20' ) end [2025-01-27 10:20:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:20:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:20:34] Production.INFO: ==24694== Releasing lock... [2025-01-27 10:20:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:20:34] Production.INFO: 49.75 MB #Memory Used# [2025-01-27 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:21:05 [end_date_ymd] => 2025-01-27 10:21:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:21:05' and `end` < '2025-01-27 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-01-27 10:21:34] Production.INFO: count ==3192 [2025-01-27 10:21:36] Production.ERROR: pbx CDR StartTime 2025-01-27 07:21:05 - End Time 2025-01-27 10:21:05 [2025-01-27 10:21:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:21:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341009', 'tblTempUsageDetail_20' ) start [2025-01-27 10:21:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341009', 'tblTempUsageDetail_20' ) end [2025-01-27 10:21:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341009', 'tblTempVendorCDR_20' ) start [2025-01-27 10:21:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341009', 'tblTempVendorCDR_20' ) end [2025-01-27 10:21:36] Production.INFO: ProcessCDR(1,14341009,1,1,2) [2025-01-27 10:21:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:21:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:21:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:21:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:21:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341009', 'tblTempUsageDetail_20' ) start [2025-01-27 10:21:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341009', 'tblTempUsageDetail_20' ) end [2025-01-27 10:21:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:21:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:21:41] Production.INFO: ==24769== Releasing lock... [2025-01-27 10:21:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:21:41] Production.INFO: 51.75 MB #Memory Used# [2025-01-27 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:22:06 [end_date_ymd] => 2025-01-27 10:22:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:22:06' and `end` < '2025-01-27 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-01-27 10:22:31] Production.INFO: count ==3212 [2025-01-27 10:22:32] Production.ERROR: pbx CDR StartTime 2025-01-27 07:22:06 - End Time 2025-01-27 10:22:06 [2025-01-27 10:22:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341014', 'tblTempUsageDetail_20' ) start [2025-01-27 10:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341014', 'tblTempUsageDetail_20' ) end [2025-01-27 10:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341014', 'tblTempVendorCDR_20' ) start [2025-01-27 10:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341014', 'tblTempVendorCDR_20' ) end [2025-01-27 10:22:33] Production.INFO: ProcessCDR(1,14341014,1,1,2) [2025-01-27 10:22:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:22:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:22:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:22:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:22:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341014', 'tblTempUsageDetail_20' ) start [2025-01-27 10:22:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341014', 'tblTempUsageDetail_20' ) end [2025-01-27 10:22:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:22:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:22:37] Production.INFO: ==24847== Releasing lock... [2025-01-27 10:22:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:22:37] Production.INFO: 52.25 MB #Memory Used# [2025-01-27 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:23:05 [end_date_ymd] => 2025-01-27 10:23:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:23:05' and `end` < '2025-01-27 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-01-27 10:23:31] Production.INFO: count ==3225 [2025-01-27 10:23:32] Production.ERROR: pbx CDR StartTime 2025-01-27 07:23:05 - End Time 2025-01-27 10:23:05 [2025-01-27 10:23:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341019', 'tblTempUsageDetail_20' ) start [2025-01-27 10:23:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341019', 'tblTempUsageDetail_20' ) end [2025-01-27 10:23:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341019', 'tblTempVendorCDR_20' ) start [2025-01-27 10:23:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341019', 'tblTempVendorCDR_20' ) end [2025-01-27 10:23:33] Production.INFO: ProcessCDR(1,14341019,1,1,2) [2025-01-27 10:23:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:23:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:23:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:23:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:23:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341019', 'tblTempUsageDetail_20' ) start [2025-01-27 10:23:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341019', 'tblTempUsageDetail_20' ) end [2025-01-27 10:23:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:23:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:23:37] Production.INFO: ==24925== Releasing lock... [2025-01-27 10:23:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:23:37] Production.INFO: 52 MB #Memory Used# [2025-01-27 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:24:05 [end_date_ymd] => 2025-01-27 10:24:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:24:05' and `end` < '2025-01-27 10: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-01-27 10:24:30] Production.INFO: count ==3252 [2025-01-27 10:24:31] Production.ERROR: pbx CDR StartTime 2025-01-27 07:24:05 - End Time 2025-01-27 10:24:05 [2025-01-27 10:24:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341024', 'tblTempUsageDetail_20' ) start [2025-01-27 10:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341024', 'tblTempUsageDetail_20' ) end [2025-01-27 10:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341024', 'tblTempVendorCDR_20' ) start [2025-01-27 10:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341024', 'tblTempVendorCDR_20' ) end [2025-01-27 10:24:32] Production.INFO: ProcessCDR(1,14341024,1,1,2) [2025-01-27 10:24:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:24:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:24:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:24:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:24:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341024', 'tblTempUsageDetail_20' ) start [2025-01-27 10:24:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341024', 'tblTempUsageDetail_20' ) end [2025-01-27 10:24:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:24:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:24:37] Production.INFO: ==24999== Releasing lock... [2025-01-27 10:24:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:24:37] Production.INFO: 52.75 MB #Memory Used# [2025-01-27 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:25:05 [end_date_ymd] => 2025-01-27 10:25:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:25:05' and `end` < '2025-01-27 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-01-27 10:25:30] Production.INFO: count ==3263 [2025-01-27 10:25:31] Production.ERROR: pbx CDR StartTime 2025-01-27 07:25:05 - End Time 2025-01-27 10:25:05 [2025-01-27 10:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341029', 'tblTempUsageDetail_20' ) start [2025-01-27 10:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341029', 'tblTempUsageDetail_20' ) end [2025-01-27 10:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341029', 'tblTempVendorCDR_20' ) start [2025-01-27 10:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341029', 'tblTempVendorCDR_20' ) end [2025-01-27 10:25:31] Production.INFO: ProcessCDR(1,14341029,1,1,2) [2025-01-27 10:25:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341029', 'tblTempUsageDetail_20' ) start [2025-01-27 10:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341029', 'tblTempUsageDetail_20' ) end [2025-01-27 10:25:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:25:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:25:36] Production.INFO: ==25079== Releasing lock... [2025-01-27 10:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:25:36] Production.INFO: 52.75 MB #Memory Used# [2025-01-27 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:26:05 [end_date_ymd] => 2025-01-27 10:26:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:26:05' and `end` < '2025-01-27 10: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-01-27 10:26:36] Production.INFO: count ==3273 [2025-01-27 10:26:37] Production.ERROR: pbx CDR StartTime 2025-01-27 07:26:05 - End Time 2025-01-27 10:26:05 [2025-01-27 10:26:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:26:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341034', 'tblTempUsageDetail_20' ) start [2025-01-27 10:26:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341034', 'tblTempUsageDetail_20' ) end [2025-01-27 10:26:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341034', 'tblTempVendorCDR_20' ) start [2025-01-27 10:26:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341034', 'tblTempVendorCDR_20' ) end [2025-01-27 10:26:37] Production.INFO: ProcessCDR(1,14341034,1,1,2) [2025-01-27 10:26:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:26:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:26:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:26:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:26:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341034', 'tblTempUsageDetail_20' ) start [2025-01-27 10:26:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341034', 'tblTempUsageDetail_20' ) end [2025-01-27 10:26:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:26:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:26:42] Production.INFO: ==25153== Releasing lock... [2025-01-27 10:26:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:26:42] Production.INFO: 53 MB #Memory Used# [2025-01-27 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:27:05 [end_date_ymd] => 2025-01-27 10:27:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:27:05' and `end` < '2025-01-27 10: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-01-27 10:27:32] Production.INFO: count ==3292 [2025-01-27 10:27:33] Production.ERROR: pbx CDR StartTime 2025-01-27 07:27:05 - End Time 2025-01-27 10:27:05 [2025-01-27 10:27:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341039', 'tblTempUsageDetail_20' ) start [2025-01-27 10:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341039', 'tblTempUsageDetail_20' ) end [2025-01-27 10:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341039', 'tblTempVendorCDR_20' ) start [2025-01-27 10:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341039', 'tblTempVendorCDR_20' ) end [2025-01-27 10:27:33] Production.INFO: ProcessCDR(1,14341039,1,1,2) [2025-01-27 10:27:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:27:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:27:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:27:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:27:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341039', 'tblTempUsageDetail_20' ) start [2025-01-27 10:27:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341039', 'tblTempUsageDetail_20' ) end [2025-01-27 10:27:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:27:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:27:38] Production.INFO: ==25229== Releasing lock... [2025-01-27 10:27:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:27:38] Production.INFO: 53.5 MB #Memory Used# [2025-01-27 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:28:05 [end_date_ymd] => 2025-01-27 10:28:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:28:05' and `end` < '2025-01-27 10: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-01-27 10:28:27] Production.INFO: count ==3302 [2025-01-27 10:28:28] Production.ERROR: pbx CDR StartTime 2025-01-27 07:28:05 - End Time 2025-01-27 10:28:05 [2025-01-27 10:28:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341044', 'tblTempUsageDetail_20' ) start [2025-01-27 10:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341044', 'tblTempUsageDetail_20' ) end [2025-01-27 10:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341044', 'tblTempVendorCDR_20' ) start [2025-01-27 10:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341044', 'tblTempVendorCDR_20' ) end [2025-01-27 10:28:28] Production.INFO: ProcessCDR(1,14341044,1,1,2) [2025-01-27 10:28:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:28:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:28:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:28:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341044', 'tblTempUsageDetail_20' ) start [2025-01-27 10:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341044', 'tblTempUsageDetail_20' ) end [2025-01-27 10:28:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:28:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:28:33] Production.INFO: ==25306== Releasing lock... [2025-01-27 10:28:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:28:33] Production.INFO: 53.25 MB #Memory Used# [2025-01-27 10:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:29:04 [end_date_ymd] => 2025-01-27 10:29:04 [RateCDR] => 1 ) [2025-01-27 10:29: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-01-27 07:29:04' and `end` < '2025-01-27 10:29: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-01-27 10:29:26] Production.INFO: count ==3325 [2025-01-27 10:29:27] Production.ERROR: pbx CDR StartTime 2025-01-27 07:29:04 - End Time 2025-01-27 10:29:04 [2025-01-27 10:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341049', 'tblTempUsageDetail_20' ) start [2025-01-27 10:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341049', 'tblTempUsageDetail_20' ) end [2025-01-27 10:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341049', 'tblTempVendorCDR_20' ) start [2025-01-27 10:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341049', 'tblTempVendorCDR_20' ) end [2025-01-27 10:29:27] Production.INFO: ProcessCDR(1,14341049,1,1,2) [2025-01-27 10:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341049', 'tblTempUsageDetail_20' ) start [2025-01-27 10:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341049', 'tblTempUsageDetail_20' ) end [2025-01-27 10:29:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:29:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:29:32] Production.INFO: ==25382== Releasing lock... [2025-01-27 10:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:29:32] Production.INFO: 53.5 MB #Memory Used# [2025-01-27 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:30:06 [end_date_ymd] => 2025-01-27 10:30:06 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:30:06' and `end` < '2025-01-27 10: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-01-27 10:30:32] Production.INFO: count ==3350 [2025-01-27 10:30:34] Production.ERROR: pbx CDR StartTime 2025-01-27 07:30:06 - End Time 2025-01-27 10:30:06 [2025-01-27 10:30:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341055', 'tblTempUsageDetail_20' ) start [2025-01-27 10:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341055', 'tblTempUsageDetail_20' ) end [2025-01-27 10:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341055', 'tblTempVendorCDR_20' ) start [2025-01-27 10:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341055', 'tblTempVendorCDR_20' ) end [2025-01-27 10:30:34] Production.INFO: ProcessCDR(1,14341055,1,1,2) [2025-01-27 10:30:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:30:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:30:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:30:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341055', 'tblTempUsageDetail_20' ) start [2025-01-27 10:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341055', 'tblTempUsageDetail_20' ) end [2025-01-27 10:30:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:30:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:30:39] Production.INFO: ==25460== Releasing lock... [2025-01-27 10:30:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:30:39] Production.INFO: 53.5 MB #Memory Used# [2025-01-27 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:31:05 [end_date_ymd] => 2025-01-27 10:31:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:31:05' and `end` < '2025-01-27 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-01-27 10:31:28] Production.INFO: count ==3497 [2025-01-27 10:31:30] Production.ERROR: pbx CDR StartTime 2025-01-27 07:31:05 - End Time 2025-01-27 10:31:05 [2025-01-27 10:31:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341060', 'tblTempUsageDetail_20' ) start [2025-01-27 10:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341060', 'tblTempUsageDetail_20' ) end [2025-01-27 10:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341060', 'tblTempVendorCDR_20' ) start [2025-01-27 10:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341060', 'tblTempVendorCDR_20' ) end [2025-01-27 10:31:30] Production.INFO: ProcessCDR(1,14341060,1,1,2) [2025-01-27 10:31:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:31:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:31:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:31:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341060', 'tblTempUsageDetail_20' ) start [2025-01-27 10:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341060', 'tblTempUsageDetail_20' ) end [2025-01-27 10:31:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:31:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:31:35] Production.INFO: ==25537== Releasing lock... [2025-01-27 10:31:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:31:35] Production.INFO: 54.5 MB #Memory Used# [2025-01-27 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:32:06 [end_date_ymd] => 2025-01-27 10:32:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:32:06' and `end` < '2025-01-27 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-01-27 10:32:28] Production.INFO: count ==3527 [2025-01-27 10:32:29] Production.ERROR: pbx CDR StartTime 2025-01-27 07:32:06 - End Time 2025-01-27 10:32:06 [2025-01-27 10:32:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341065', 'tblTempUsageDetail_20' ) start [2025-01-27 10:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341065', 'tblTempUsageDetail_20' ) end [2025-01-27 10:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341065', 'tblTempVendorCDR_20' ) start [2025-01-27 10:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341065', 'tblTempVendorCDR_20' ) end [2025-01-27 10:32:29] Production.INFO: ProcessCDR(1,14341065,1,1,2) [2025-01-27 10:32:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:32:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:32:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:32:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341065', 'tblTempUsageDetail_20' ) start [2025-01-27 10:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341065', 'tblTempUsageDetail_20' ) end [2025-01-27 10:32:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:32:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:32:34] Production.INFO: ==25621== Releasing lock... [2025-01-27 10:32:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:32:34] Production.INFO: 54.75 MB #Memory Used# [2025-01-27 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:33:05 [end_date_ymd] => 2025-01-27 10:33:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:33:05' and `end` < '2025-01-27 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-01-27 10:33:27] Production.INFO: count ==3535 [2025-01-27 10:33:29] Production.ERROR: pbx CDR StartTime 2025-01-27 07:33:05 - End Time 2025-01-27 10:33:05 [2025-01-27 10:33:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341070', 'tblTempUsageDetail_20' ) start [2025-01-27 10:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341070', 'tblTempUsageDetail_20' ) end [2025-01-27 10:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341070', 'tblTempVendorCDR_20' ) start [2025-01-27 10:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341070', 'tblTempVendorCDR_20' ) end [2025-01-27 10:33:29] Production.INFO: ProcessCDR(1,14341070,1,1,2) [2025-01-27 10:33:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:33:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:33:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:33:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341070', 'tblTempUsageDetail_20' ) start [2025-01-27 10:33:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341070', 'tblTempUsageDetail_20' ) end [2025-01-27 10:33:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:33:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:33:34] Production.INFO: ==25695== Releasing lock... [2025-01-27 10:33:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:33:34] Production.INFO: 55.25 MB #Memory Used# [2025-01-27 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:34:05 [end_date_ymd] => 2025-01-27 10:34:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:34:05' and `end` < '2025-01-27 10: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-01-27 10:34:23] Production.INFO: count ==3544 [2025-01-27 10:34:24] Production.ERROR: pbx CDR StartTime 2025-01-27 07:34:05 - End Time 2025-01-27 10:34:05 [2025-01-27 10:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341075', 'tblTempUsageDetail_20' ) start [2025-01-27 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341075', 'tblTempUsageDetail_20' ) end [2025-01-27 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341075', 'tblTempVendorCDR_20' ) start [2025-01-27 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341075', 'tblTempVendorCDR_20' ) end [2025-01-27 10:34:24] Production.INFO: ProcessCDR(1,14341075,1,1,2) [2025-01-27 10:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341075', 'tblTempUsageDetail_20' ) start [2025-01-27 10:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341075', 'tblTempUsageDetail_20' ) end [2025-01-27 10:34:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:34:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:34:29] Production.INFO: ==25771== Releasing lock... [2025-01-27 10:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:34:29] Production.INFO: 55 MB #Memory Used# [2025-01-27 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:35:05 [end_date_ymd] => 2025-01-27 10:35:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:35:05' and `end` < '2025-01-27 10: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-01-27 10:35:28] Production.INFO: count ==3564 [2025-01-27 10:35:29] Production.ERROR: pbx CDR StartTime 2025-01-27 07:35:05 - End Time 2025-01-27 10:35:05 [2025-01-27 10:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341080', 'tblTempUsageDetail_20' ) start [2025-01-27 10:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341080', 'tblTempUsageDetail_20' ) end [2025-01-27 10:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341080', 'tblTempVendorCDR_20' ) start [2025-01-27 10:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341080', 'tblTempVendorCDR_20' ) end [2025-01-27 10:35:29] Production.INFO: ProcessCDR(1,14341080,1,1,2) [2025-01-27 10:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341080', 'tblTempUsageDetail_20' ) start [2025-01-27 10:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341080', 'tblTempUsageDetail_20' ) end [2025-01-27 10:35:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:35:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:35:34] Production.INFO: ==25887== Releasing lock... [2025-01-27 10:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:35:34] Production.INFO: 55 MB #Memory Used# [2025-01-27 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:36:05 [end_date_ymd] => 2025-01-27 10:36:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:36:05' and `end` < '2025-01-27 10: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-01-27 10:36:31] Production.INFO: count ==3577 [2025-01-27 10:36:32] Production.ERROR: pbx CDR StartTime 2025-01-27 07:36:05 - End Time 2025-01-27 10:36:05 [2025-01-27 10:36:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341085', 'tblTempUsageDetail_20' ) start [2025-01-27 10:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341085', 'tblTempUsageDetail_20' ) end [2025-01-27 10:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341085', 'tblTempVendorCDR_20' ) start [2025-01-27 10:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341085', 'tblTempVendorCDR_20' ) end [2025-01-27 10:36:32] Production.INFO: ProcessCDR(1,14341085,1,1,2) [2025-01-27 10:36:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:36:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:36:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:36:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:36:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341085', 'tblTempUsageDetail_20' ) start [2025-01-27 10:36:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341085', 'tblTempUsageDetail_20' ) end [2025-01-27 10:36:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:36:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:36:38] Production.INFO: ==25965== Releasing lock... [2025-01-27 10:36:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:36:38] Production.INFO: 55.25 MB #Memory Used# [2025-01-27 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:37:05 [end_date_ymd] => 2025-01-27 10:37:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:37:05' and `end` < '2025-01-27 10: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-01-27 10:37:37] Production.INFO: count ==3608 [2025-01-27 10:37:38] Production.ERROR: pbx CDR StartTime 2025-01-27 07:37:05 - End Time 2025-01-27 10:37:05 [2025-01-27 10:37:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:37:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341090', 'tblTempUsageDetail_20' ) start [2025-01-27 10:37:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341090', 'tblTempUsageDetail_20' ) end [2025-01-27 10:37:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341090', 'tblTempVendorCDR_20' ) start [2025-01-27 10:37:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341090', 'tblTempVendorCDR_20' ) end [2025-01-27 10:37:38] Production.INFO: ProcessCDR(1,14341090,1,1,2) [2025-01-27 10:37:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:37:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:37:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:37:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:37:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341090', 'tblTempUsageDetail_20' ) start [2025-01-27 10:37:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341090', 'tblTempUsageDetail_20' ) end [2025-01-27 10:37:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:37:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:37:43] Production.INFO: ==26044== Releasing lock... [2025-01-27 10:37:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:37:43] Production.INFO: 55.5 MB #Memory Used# [2025-01-27 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:38:05 [end_date_ymd] => 2025-01-27 10:38:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:38:05' and `end` < '2025-01-27 10: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-01-27 10:38:27] Production.INFO: count ==3631 [2025-01-27 10:38:29] Production.ERROR: pbx CDR StartTime 2025-01-27 07:38:05 - End Time 2025-01-27 10:38:05 [2025-01-27 10:38:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341095', 'tblTempUsageDetail_20' ) start [2025-01-27 10:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341095', 'tblTempUsageDetail_20' ) end [2025-01-27 10:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341095', 'tblTempVendorCDR_20' ) start [2025-01-27 10:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341095', 'tblTempVendorCDR_20' ) end [2025-01-27 10:38:29] Production.INFO: ProcessCDR(1,14341095,1,1,2) [2025-01-27 10:38:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:38:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:38:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:38:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341095', 'tblTempUsageDetail_20' ) start [2025-01-27 10:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341095', 'tblTempUsageDetail_20' ) end [2025-01-27 10:38:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:38:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:38:34] Production.INFO: ==26122== Releasing lock... [2025-01-27 10:38:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:38:34] Production.INFO: 55.5 MB #Memory Used# [2025-01-27 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:39:05 [end_date_ymd] => 2025-01-27 10:39:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:39:05' and `end` < '2025-01-27 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-01-27 10:39:33] Production.INFO: count ==3653 [2025-01-27 10:39:34] Production.ERROR: pbx CDR StartTime 2025-01-27 07:39:05 - End Time 2025-01-27 10:39:05 [2025-01-27 10:39:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:39:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341100', 'tblTempUsageDetail_20' ) start [2025-01-27 10:39:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341100', 'tblTempUsageDetail_20' ) end [2025-01-27 10:39:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341100', 'tblTempVendorCDR_20' ) start [2025-01-27 10:39:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341100', 'tblTempVendorCDR_20' ) end [2025-01-27 10:39:34] Production.INFO: ProcessCDR(1,14341100,1,1,2) [2025-01-27 10:39:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:39:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:39:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:39:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:39:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341100', 'tblTempUsageDetail_20' ) start [2025-01-27 10:39:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341100', 'tblTempUsageDetail_20' ) end [2025-01-27 10:39:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:39:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:39:39] Production.INFO: ==26201== Releasing lock... [2025-01-27 10:39:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:39:39] Production.INFO: 55.5 MB #Memory Used# [2025-01-27 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:40:05 [end_date_ymd] => 2025-01-27 10:40:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:40:05' and `end` < '2025-01-27 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-01-27 10:40:28] Production.INFO: count ==3677 [2025-01-27 10:40:29] Production.ERROR: pbx CDR StartTime 2025-01-27 07:40:05 - End Time 2025-01-27 10:40:05 [2025-01-27 10:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341105', 'tblTempUsageDetail_20' ) start [2025-01-27 10:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341105', 'tblTempUsageDetail_20' ) end [2025-01-27 10:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341105', 'tblTempVendorCDR_20' ) start [2025-01-27 10:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341105', 'tblTempVendorCDR_20' ) end [2025-01-27 10:40:30] Production.INFO: ProcessCDR(1,14341105,1,1,2) [2025-01-27 10:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341105', 'tblTempUsageDetail_20' ) start [2025-01-27 10:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341105', 'tblTempUsageDetail_20' ) end [2025-01-27 10:40:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:40:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:40:35] Production.INFO: ==26279== Releasing lock... [2025-01-27 10:40:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:40:35] Production.INFO: 56 MB #Memory Used# [2025-01-27 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:41:05 [end_date_ymd] => 2025-01-27 10:41:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:41:05' and `end` < '2025-01-27 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-01-27 10:41:33] Production.INFO: count ==3827 [2025-01-27 10:41:34] Production.ERROR: pbx CDR StartTime 2025-01-27 07:41:05 - End Time 2025-01-27 10:41:05 [2025-01-27 10:41:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341111', 'tblTempUsageDetail_20' ) start [2025-01-27 10:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341111', 'tblTempUsageDetail_20' ) end [2025-01-27 10:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341111', 'tblTempVendorCDR_20' ) start [2025-01-27 10:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341111', 'tblTempVendorCDR_20' ) end [2025-01-27 10:41:34] Production.INFO: ProcessCDR(1,14341111,1,1,2) [2025-01-27 10:41:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:41:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:41:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:41:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:41:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341111', 'tblTempUsageDetail_20' ) start [2025-01-27 10:41:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341111', 'tblTempUsageDetail_20' ) end [2025-01-27 10:41:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:41:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:41:39] Production.INFO: ==26359== Releasing lock... [2025-01-27 10:41:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:41:39] Production.INFO: 56.5 MB #Memory Used# [2025-01-27 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:42:05 [end_date_ymd] => 2025-01-27 10:42:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:42:05' and `end` < '2025-01-27 10: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-01-27 10:42:33] Production.INFO: count ==3841 [2025-01-27 10:42:34] Production.ERROR: pbx CDR StartTime 2025-01-27 07:42:05 - End Time 2025-01-27 10:42:05 [2025-01-27 10:42:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341116', 'tblTempUsageDetail_20' ) start [2025-01-27 10:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341116', 'tblTempUsageDetail_20' ) end [2025-01-27 10:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341116', 'tblTempVendorCDR_20' ) start [2025-01-27 10:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341116', 'tblTempVendorCDR_20' ) end [2025-01-27 10:42:34] Production.INFO: ProcessCDR(1,14341116,1,1,2) [2025-01-27 10:42:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:42:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:42:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:42:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:42:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341116', 'tblTempUsageDetail_20' ) start [2025-01-27 10:42:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341116', 'tblTempUsageDetail_20' ) end [2025-01-27 10:42:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:42:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:42:40] Production.INFO: ==26435== Releasing lock... [2025-01-27 10:42:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:42:40] Production.INFO: 57 MB #Memory Used# [2025-01-27 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:43:06 [end_date_ymd] => 2025-01-27 10:43:06 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:43:06' and `end` < '2025-01-27 10: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-01-27 10:43:30] Production.INFO: count ==3873 [2025-01-27 10:43:31] Production.ERROR: pbx CDR StartTime 2025-01-27 07:43:06 - End Time 2025-01-27 10:43:06 [2025-01-27 10:43:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341121', 'tblTempUsageDetail_20' ) start [2025-01-27 10:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341121', 'tblTempUsageDetail_20' ) end [2025-01-27 10:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341121', 'tblTempVendorCDR_20' ) start [2025-01-27 10:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341121', 'tblTempVendorCDR_20' ) end [2025-01-27 10:43:32] Production.INFO: ProcessCDR(1,14341121,1,1,2) [2025-01-27 10:43:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:43:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:43:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:43:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:43:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341121', 'tblTempUsageDetail_20' ) start [2025-01-27 10:43:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341121', 'tblTempUsageDetail_20' ) end [2025-01-27 10:43:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:43:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:43:37] Production.INFO: ==26510== Releasing lock... [2025-01-27 10:43:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:43:37] Production.INFO: 57 MB #Memory Used# [2025-01-27 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:44:05 [end_date_ymd] => 2025-01-27 10:44:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:44:05' and `end` < '2025-01-27 10: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-01-27 10:44:36] Production.INFO: count ==3880 [2025-01-27 10:44:38] Production.ERROR: pbx CDR StartTime 2025-01-27 07:44:05 - End Time 2025-01-27 10:44:05 [2025-01-27 10:44:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:44:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341126', 'tblTempUsageDetail_20' ) start [2025-01-27 10:44:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341126', 'tblTempUsageDetail_20' ) end [2025-01-27 10:44:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341126', 'tblTempVendorCDR_20' ) start [2025-01-27 10:44:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341126', 'tblTempVendorCDR_20' ) end [2025-01-27 10:44:38] Production.INFO: ProcessCDR(1,14341126,1,1,2) [2025-01-27 10:44:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:44:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:44:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:44:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:44:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341126', 'tblTempUsageDetail_20' ) start [2025-01-27 10:44:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341126', 'tblTempUsageDetail_20' ) end [2025-01-27 10:44:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:44:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:44:41] Production.INFO: ==26590== Releasing lock... [2025-01-27 10:44:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:44:41] Production.INFO: 57.25 MB #Memory Used# [2025-01-27 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:45:06 [end_date_ymd] => 2025-01-27 10:45:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:45:06' and `end` < '2025-01-27 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-01-27 10:45:31] Production.INFO: count ==3896 [2025-01-27 10:45:33] Production.ERROR: pbx CDR StartTime 2025-01-27 07:45:06 - End Time 2025-01-27 10:45:06 [2025-01-27 10:45:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341131', 'tblTempUsageDetail_20' ) start [2025-01-27 10:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341131', 'tblTempUsageDetail_20' ) end [2025-01-27 10:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341131', 'tblTempVendorCDR_20' ) start [2025-01-27 10:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341131', 'tblTempVendorCDR_20' ) end [2025-01-27 10:45:33] Production.INFO: ProcessCDR(1,14341131,1,1,2) [2025-01-27 10:45:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:45:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:45:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:45:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341131', 'tblTempUsageDetail_20' ) start [2025-01-27 10:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341131', 'tblTempUsageDetail_20' ) end [2025-01-27 10:45:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:45:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:45:37] Production.INFO: ==26670== Releasing lock... [2025-01-27 10:45:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:45:37] Production.INFO: 57.25 MB #Memory Used# [2025-01-27 10:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:46:04 [end_date_ymd] => 2025-01-27 10:46:04 [RateCDR] => 1 ) [2025-01-27 10:46: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-01-27 07:46:04' and `end` < '2025-01-27 10:46: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-01-27 10:46:32] Production.INFO: count ==3923 [2025-01-27 10:46:33] Production.ERROR: pbx CDR StartTime 2025-01-27 07:46:04 - End Time 2025-01-27 10:46:04 [2025-01-27 10:46:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341136', 'tblTempUsageDetail_20' ) start [2025-01-27 10:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341136', 'tblTempUsageDetail_20' ) end [2025-01-27 10:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341136', 'tblTempVendorCDR_20' ) start [2025-01-27 10:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341136', 'tblTempVendorCDR_20' ) end [2025-01-27 10:46:34] Production.INFO: ProcessCDR(1,14341136,1,1,2) [2025-01-27 10:46:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:46:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:46:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:46:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:46:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341136', 'tblTempUsageDetail_20' ) start [2025-01-27 10:46:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341136', 'tblTempUsageDetail_20' ) end [2025-01-27 10:46:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:46:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:46:39] Production.INFO: ==26746== Releasing lock... [2025-01-27 10:46:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:46:39] Production.INFO: 57.5 MB #Memory Used# [2025-01-27 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:47:05 [end_date_ymd] => 2025-01-27 10:47:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:47:05' and `end` < '2025-01-27 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-01-27 10:47:27] Production.INFO: count ==3929 [2025-01-27 10:47:29] Production.ERROR: pbx CDR StartTime 2025-01-27 07:47:05 - End Time 2025-01-27 10:47:05 [2025-01-27 10:47:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341141', 'tblTempUsageDetail_20' ) start [2025-01-27 10:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341141', 'tblTempUsageDetail_20' ) end [2025-01-27 10:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341141', 'tblTempVendorCDR_20' ) start [2025-01-27 10:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341141', 'tblTempVendorCDR_20' ) end [2025-01-27 10:47:29] Production.INFO: ProcessCDR(1,14341141,1,1,2) [2025-01-27 10:47:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:47:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:47:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341141', 'tblTempUsageDetail_20' ) start [2025-01-27 10:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341141', 'tblTempUsageDetail_20' ) end [2025-01-27 10:47:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:47:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:47:33] Production.INFO: ==26823== Releasing lock... [2025-01-27 10:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:47:33] Production.INFO: 57.25 MB #Memory Used# [2025-01-27 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:48:05 [end_date_ymd] => 2025-01-27 10:48:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:48:05' and `end` < '2025-01-27 10: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-01-27 10:48:29] Production.INFO: count ==3968 [2025-01-27 10:48:30] Production.ERROR: pbx CDR StartTime 2025-01-27 07:48:05 - End Time 2025-01-27 10:48:05 [2025-01-27 10:48:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341146', 'tblTempUsageDetail_20' ) start [2025-01-27 10:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341146', 'tblTempUsageDetail_20' ) end [2025-01-27 10:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341146', 'tblTempVendorCDR_20' ) start [2025-01-27 10:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341146', 'tblTempVendorCDR_20' ) end [2025-01-27 10:48:30] Production.INFO: ProcessCDR(1,14341146,1,1,2) [2025-01-27 10:48:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:48:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:48:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:48:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341146', 'tblTempUsageDetail_20' ) start [2025-01-27 10:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341146', 'tblTempUsageDetail_20' ) end [2025-01-27 10:48:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:48:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:48:35] Production.INFO: ==26895== Releasing lock... [2025-01-27 10:48:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:48:35] Production.INFO: 57.75 MB #Memory Used# [2025-01-27 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:49:05 [end_date_ymd] => 2025-01-27 10:49:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:49:05' and `end` < '2025-01-27 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-01-27 10:49:25] Production.INFO: count ==3985 [2025-01-27 10:49:27] Production.ERROR: pbx CDR StartTime 2025-01-27 07:49:05 - End Time 2025-01-27 10:49:05 [2025-01-27 10:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341151', 'tblTempUsageDetail_20' ) start [2025-01-27 10:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341151', 'tblTempUsageDetail_20' ) end [2025-01-27 10:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341151', 'tblTempVendorCDR_20' ) start [2025-01-27 10:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341151', 'tblTempVendorCDR_20' ) end [2025-01-27 10:49:27] Production.INFO: ProcessCDR(1,14341151,1,1,2) [2025-01-27 10:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341151', 'tblTempUsageDetail_20' ) start [2025-01-27 10:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341151', 'tblTempUsageDetail_20' ) end [2025-01-27 10:49:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:49:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:49:31] Production.INFO: ==26973== Releasing lock... [2025-01-27 10:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:49:31] Production.INFO: 57.75 MB #Memory Used# [2025-01-27 10:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:50:07 [end_date_ymd] => 2025-01-27 10:50:07 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:50:07' and `end` < '2025-01-27 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-01-27 10:50:25] Production.INFO: count ==4018 [2025-01-27 10:50:27] Production.ERROR: pbx CDR StartTime 2025-01-27 07:50:07 - End Time 2025-01-27 10:50:07 [2025-01-27 10:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341157', 'tblTempUsageDetail_20' ) start [2025-01-27 10:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341157', 'tblTempUsageDetail_20' ) end [2025-01-27 10:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341157', 'tblTempVendorCDR_20' ) start [2025-01-27 10:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341157', 'tblTempVendorCDR_20' ) end [2025-01-27 10:50:27] Production.INFO: ProcessCDR(1,14341157,1,1,2) [2025-01-27 10:50:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341157', 'tblTempUsageDetail_20' ) start [2025-01-27 10:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341157', 'tblTempUsageDetail_20' ) end [2025-01-27 10:50:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:50:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:50:32] Production.INFO: ==27050== Releasing lock... [2025-01-27 10:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:50:32] Production.INFO: 58.25 MB #Memory Used# [2025-01-27 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:51:05 [end_date_ymd] => 2025-01-27 10:51:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:51:05' and `end` < '2025-01-27 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-01-27 10:51:26] Production.INFO: count ==4174 [2025-01-27 10:51:28] Production.ERROR: pbx CDR StartTime 2025-01-27 07:51:05 - End Time 2025-01-27 10:51:05 [2025-01-27 10:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341162', 'tblTempUsageDetail_20' ) start [2025-01-27 10:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341162', 'tblTempUsageDetail_20' ) end [2025-01-27 10:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341162', 'tblTempVendorCDR_20' ) start [2025-01-27 10:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341162', 'tblTempVendorCDR_20' ) end [2025-01-27 10:51:28] Production.INFO: ProcessCDR(1,14341162,1,1,2) [2025-01-27 10:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341162', 'tblTempUsageDetail_20' ) start [2025-01-27 10:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341162', 'tblTempUsageDetail_20' ) end [2025-01-27 10:51:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:51:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:51:33] Production.INFO: ==27172== Releasing lock... [2025-01-27 10:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:51:33] Production.INFO: 59.25 MB #Memory Used# [2025-01-27 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:52:05 [end_date_ymd] => 2025-01-27 10:52:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:52:05' and `end` < '2025-01-27 10: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-01-27 10:52:28] Production.INFO: count ==4187 [2025-01-27 10:52:29] Production.ERROR: pbx CDR StartTime 2025-01-27 07:52:05 - End Time 2025-01-27 10:52:05 [2025-01-27 10:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341167', 'tblTempUsageDetail_20' ) start [2025-01-27 10:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341167', 'tblTempUsageDetail_20' ) end [2025-01-27 10:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341167', 'tblTempVendorCDR_20' ) start [2025-01-27 10:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341167', 'tblTempVendorCDR_20' ) end [2025-01-27 10:52:30] Production.INFO: ProcessCDR(1,14341167,1,1,2) [2025-01-27 10:52:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341167', 'tblTempUsageDetail_20' ) start [2025-01-27 10:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341167', 'tblTempUsageDetail_20' ) end [2025-01-27 10:52:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:52:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:52:34] Production.INFO: ==27252== Releasing lock... [2025-01-27 10:52:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:52:34] Production.INFO: 59.25 MB #Memory Used# [2025-01-27 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:53:05 [end_date_ymd] => 2025-01-27 10:53:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:53:05' and `end` < '2025-01-27 10: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-01-27 10:53:23] Production.INFO: count ==4196 [2025-01-27 10:53:25] Production.ERROR: pbx CDR StartTime 2025-01-27 07:53:05 - End Time 2025-01-27 10:53:05 [2025-01-27 10:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341172', 'tblTempUsageDetail_20' ) start [2025-01-27 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341172', 'tblTempUsageDetail_20' ) end [2025-01-27 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341172', 'tblTempVendorCDR_20' ) start [2025-01-27 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341172', 'tblTempVendorCDR_20' ) end [2025-01-27 10:53:25] Production.INFO: ProcessCDR(1,14341172,1,1,2) [2025-01-27 10:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341172', 'tblTempUsageDetail_20' ) start [2025-01-27 10:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341172', 'tblTempUsageDetail_20' ) end [2025-01-27 10:53:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:53:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:53:29] Production.INFO: ==27330== Releasing lock... [2025-01-27 10:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:53:29] Production.INFO: 59.5 MB #Memory Used# [2025-01-27 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:54:05 [end_date_ymd] => 2025-01-27 10:54:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:54:05' and `end` < '2025-01-27 10: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-01-27 10:54:29] Production.INFO: count ==4217 [2025-01-27 10:54:31] Production.ERROR: pbx CDR StartTime 2025-01-27 07:54:05 - End Time 2025-01-27 10:54:05 [2025-01-27 10:54:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341176', 'tblTempUsageDetail_20' ) start [2025-01-27 10:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341176', 'tblTempUsageDetail_20' ) end [2025-01-27 10:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341176', 'tblTempVendorCDR_20' ) start [2025-01-27 10:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341176', 'tblTempVendorCDR_20' ) end [2025-01-27 10:54:31] Production.INFO: ProcessCDR(1,14341176,1,1,2) [2025-01-27 10:54:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:54:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:54:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:54:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:54:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341176', 'tblTempUsageDetail_20' ) start [2025-01-27 10:54:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341176', 'tblTempUsageDetail_20' ) end [2025-01-27 10:54:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:54:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:54:36] Production.INFO: ==27406== Releasing lock... [2025-01-27 10:54:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:54:36] Production.INFO: 59.5 MB #Memory Used# [2025-01-27 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:55:05 [end_date_ymd] => 2025-01-27 10:55:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 07:55:05' and `end` < '2025-01-27 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-01-27 10:55:23] Production.INFO: count ==4239 [2025-01-27 10:55:25] Production.ERROR: pbx CDR StartTime 2025-01-27 07:55:05 - End Time 2025-01-27 10:55:05 [2025-01-27 10:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341182', 'tblTempUsageDetail_20' ) start [2025-01-27 10:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341182', 'tblTempUsageDetail_20' ) end [2025-01-27 10:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341182', 'tblTempVendorCDR_20' ) start [2025-01-27 10:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341182', 'tblTempVendorCDR_20' ) end [2025-01-27 10:55:25] Production.INFO: ProcessCDR(1,14341182,1,1,2) [2025-01-27 10:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341182', 'tblTempUsageDetail_20' ) start [2025-01-27 10:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341182', 'tblTempUsageDetail_20' ) end [2025-01-27 10:55:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:55:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:55:30] Production.INFO: ==27483== Releasing lock... [2025-01-27 10:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:55:30] Production.INFO: 59.75 MB #Memory Used# [2025-01-27 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:56:05 [end_date_ymd] => 2025-01-27 10:56:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:56:05' and `end` < '2025-01-27 10: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-01-27 10:56:19] Production.INFO: count ==4262 [2025-01-27 10:56:20] Production.ERROR: pbx CDR StartTime 2025-01-27 07:56:05 - End Time 2025-01-27 10:56:05 [2025-01-27 10:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341187', 'tblTempUsageDetail_20' ) start [2025-01-27 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341187', 'tblTempUsageDetail_20' ) end [2025-01-27 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341187', 'tblTempVendorCDR_20' ) start [2025-01-27 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341187', 'tblTempVendorCDR_20' ) end [2025-01-27 10:56:20] Production.INFO: ProcessCDR(1,14341187,1,1,2) [2025-01-27 10:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341187', 'tblTempUsageDetail_20' ) start [2025-01-27 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341187', 'tblTempUsageDetail_20' ) end [2025-01-27 10:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:56:25] Production.INFO: ==27561== Releasing lock... [2025-01-27 10:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:56:25] Production.INFO: 60 MB #Memory Used# [2025-01-27 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:57:05 [end_date_ymd] => 2025-01-27 10:57:05 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:57:05' and `end` < '2025-01-27 10: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-01-27 10:57:23] Production.INFO: count ==4284 [2025-01-27 10:57:25] Production.ERROR: pbx CDR StartTime 2025-01-27 07:57:05 - End Time 2025-01-27 10:57:05 [2025-01-27 10:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341192', 'tblTempUsageDetail_20' ) start [2025-01-27 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341192', 'tblTempUsageDetail_20' ) end [2025-01-27 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341192', 'tblTempVendorCDR_20' ) start [2025-01-27 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341192', 'tblTempVendorCDR_20' ) end [2025-01-27 10:57:25] Production.INFO: ProcessCDR(1,14341192,1,1,2) [2025-01-27 10:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341192', 'tblTempUsageDetail_20' ) start [2025-01-27 10:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341192', 'tblTempUsageDetail_20' ) end [2025-01-27 10:57:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:57:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:57:31] Production.INFO: ==27636== Releasing lock... [2025-01-27 10:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:57:31] Production.INFO: 60 MB #Memory Used# [2025-01-27 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:58:06 [end_date_ymd] => 2025-01-27 10:58:06 [RateCDR] => 1 ) [2025-01-27 10: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-01-27 07:58:06' and `end` < '2025-01-27 10: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-01-27 10:58:25] Production.INFO: count ==4301 [2025-01-27 10:58:26] Production.ERROR: pbx CDR StartTime 2025-01-27 07:58:06 - End Time 2025-01-27 10:58:06 [2025-01-27 10:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341197', 'tblTempUsageDetail_20' ) start [2025-01-27 10:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341197', 'tblTempUsageDetail_20' ) end [2025-01-27 10:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341197', 'tblTempVendorCDR_20' ) start [2025-01-27 10:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341197', 'tblTempVendorCDR_20' ) end [2025-01-27 10:58:26] Production.INFO: ProcessCDR(1,14341197,1,1,2) [2025-01-27 10:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341197', 'tblTempUsageDetail_20' ) start [2025-01-27 10:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341197', 'tblTempUsageDetail_20' ) end [2025-01-27 10:58:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:58:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:58:32] Production.INFO: ==27718== Releasing lock... [2025-01-27 10:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:58:32] Production.INFO: 60.25 MB #Memory Used# [2025-01-27 10:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 07:59:04 [end_date_ymd] => 2025-01-27 10:59:04 [RateCDR] => 1 ) [2025-01-27 10:59: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-01-27 07:59:04' and `end` < '2025-01-27 10:59: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-01-27 10:59:25] Production.INFO: count ==4334 [2025-01-27 10:59:27] Production.ERROR: pbx CDR StartTime 2025-01-27 07:59:04 - End Time 2025-01-27 10:59:04 [2025-01-27 10:59:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 10:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341202', 'tblTempUsageDetail_20' ) start [2025-01-27 10:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341202', 'tblTempUsageDetail_20' ) end [2025-01-27 10:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341202', 'tblTempVendorCDR_20' ) start [2025-01-27 10:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341202', 'tblTempVendorCDR_20' ) end [2025-01-27 10:59:27] Production.INFO: ProcessCDR(1,14341202,1,1,2) [2025-01-27 10:59:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 10:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 10:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341202', 'tblTempUsageDetail_20' ) start [2025-01-27 10:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341202', 'tblTempUsageDetail_20' ) end [2025-01-27 10:59:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 10:59:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 10:59:32] Production.INFO: ==27788== Releasing lock... [2025-01-27 10:59:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 10:59:32] Production.INFO: 60.5 MB #Memory Used# [2025-01-27 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:00:06 [end_date_ymd] => 2025-01-27 11:00:06 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:00:06' and `end` < '2025-01-27 11: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-01-27 11:00:30] Production.INFO: count ==4344 [2025-01-27 11:00:32] Production.ERROR: pbx CDR StartTime 2025-01-27 08:00:06 - End Time 2025-01-27 11:00:06 [2025-01-27 11:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341208', 'tblTempUsageDetail_20' ) start [2025-01-27 11:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341208', 'tblTempUsageDetail_20' ) end [2025-01-27 11:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341208', 'tblTempVendorCDR_20' ) start [2025-01-27 11:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341208', 'tblTempVendorCDR_20' ) end [2025-01-27 11:00:32] Production.INFO: ProcessCDR(1,14341208,1,1,2) [2025-01-27 11:00:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341208', 'tblTempUsageDetail_20' ) start [2025-01-27 11:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341208', 'tblTempUsageDetail_20' ) end [2025-01-27 11:00:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:00:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:00:37] Production.INFO: ==27929== Releasing lock... [2025-01-27 11:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:00:37] Production.INFO: 60.5 MB #Memory Used# [2025-01-27 11:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:01:04 [end_date_ymd] => 2025-01-27 11:01:04 [RateCDR] => 1 ) [2025-01-27 11:01: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-01-27 08:01:04' and `end` < '2025-01-27 11:01: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-01-27 11:01:25] Production.INFO: count ==4449 [2025-01-27 11:01:26] Production.ERROR: pbx CDR StartTime 2025-01-27 08:01:04 - End Time 2025-01-27 11:01:04 [2025-01-27 11:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341213', 'tblTempUsageDetail_20' ) start [2025-01-27 11:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341213', 'tblTempUsageDetail_20' ) end [2025-01-27 11:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341213', 'tblTempVendorCDR_20' ) start [2025-01-27 11:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341213', 'tblTempVendorCDR_20' ) end [2025-01-27 11:01:27] Production.INFO: ProcessCDR(1,14341213,1,1,2) [2025-01-27 11:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341213', 'tblTempUsageDetail_20' ) start [2025-01-27 11:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341213', 'tblTempUsageDetail_20' ) end [2025-01-27 11:01:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:01:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:01:32] Production.INFO: ==28100== Releasing lock... [2025-01-27 11:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:01:32] Production.INFO: 61.5 MB #Memory Used# [2025-01-27 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:02:06 [end_date_ymd] => 2025-01-27 11:02:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:02:06' and `end` < '2025-01-27 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-01-27 11:02:33] Production.INFO: count ==4440 [2025-01-27 11:02:34] Production.ERROR: pbx CDR StartTime 2025-01-27 08:02:06 - End Time 2025-01-27 11:02:06 [2025-01-27 11:02:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341218', 'tblTempUsageDetail_20' ) start [2025-01-27 11:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341218', 'tblTempUsageDetail_20' ) end [2025-01-27 11:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341218', 'tblTempVendorCDR_20' ) start [2025-01-27 11:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341218', 'tblTempVendorCDR_20' ) end [2025-01-27 11:02:35] Production.INFO: ProcessCDR(1,14341218,1,1,2) [2025-01-27 11:02:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:02:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:02:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:02:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341218', 'tblTempUsageDetail_20' ) start [2025-01-27 11:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341218', 'tblTempUsageDetail_20' ) end [2025-01-27 11:02:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:02:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:02:40] Production.INFO: ==28174== Releasing lock... [2025-01-27 11:02:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:02:40] Production.INFO: 61.25 MB #Memory Used# [2025-01-27 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:03:05 [end_date_ymd] => 2025-01-27 11:03:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:03:05' and `end` < '2025-01-27 11: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-01-27 11:03:30] Production.INFO: count ==4454 [2025-01-27 11:03:32] Production.ERROR: pbx CDR StartTime 2025-01-27 08:03:05 - End Time 2025-01-27 11:03:05 [2025-01-27 11:03:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341223', 'tblTempUsageDetail_20' ) start [2025-01-27 11:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341223', 'tblTempUsageDetail_20' ) end [2025-01-27 11:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341223', 'tblTempVendorCDR_20' ) start [2025-01-27 11:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341223', 'tblTempVendorCDR_20' ) end [2025-01-27 11:03:32] Production.INFO: ProcessCDR(1,14341223,1,1,2) [2025-01-27 11:03:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:03:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:03:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:03:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:03:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341223', 'tblTempUsageDetail_20' ) start [2025-01-27 11:03:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341223', 'tblTempUsageDetail_20' ) end [2025-01-27 11:03:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:03:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:03:38] Production.INFO: ==28256== Releasing lock... [2025-01-27 11:03:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:03:38] Production.INFO: 61.25 MB #Memory Used# [2025-01-27 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:04:06 [end_date_ymd] => 2025-01-27 11:04:06 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:04:06' and `end` < '2025-01-27 11: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-01-27 11:04:27] Production.INFO: count ==4462 [2025-01-27 11:04:28] Production.ERROR: pbx CDR StartTime 2025-01-27 08:04:06 - End Time 2025-01-27 11:04:06 [2025-01-27 11:04:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341228', 'tblTempUsageDetail_20' ) start [2025-01-27 11:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341228', 'tblTempUsageDetail_20' ) end [2025-01-27 11:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341228', 'tblTempVendorCDR_20' ) start [2025-01-27 11:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341228', 'tblTempVendorCDR_20' ) end [2025-01-27 11:04:29] Production.INFO: ProcessCDR(1,14341228,1,1,2) [2025-01-27 11:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:04:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:04:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:04:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341228', 'tblTempUsageDetail_20' ) start [2025-01-27 11:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341228', 'tblTempUsageDetail_20' ) end [2025-01-27 11:04:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:04:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:04:34] Production.INFO: ==28336== Releasing lock... [2025-01-27 11:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:04:34] Production.INFO: 61.5 MB #Memory Used# [2025-01-27 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:05:05 [end_date_ymd] => 2025-01-27 11:05:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:05:05' and `end` < '2025-01-27 11: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-01-27 11:05:29] Production.INFO: count ==4482 [2025-01-27 11:05:30] Production.ERROR: pbx CDR StartTime 2025-01-27 08:05:05 - End Time 2025-01-27 11:05:05 [2025-01-27 11:05:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341233', 'tblTempUsageDetail_20' ) start [2025-01-27 11:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341233', 'tblTempUsageDetail_20' ) end [2025-01-27 11:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341233', 'tblTempVendorCDR_20' ) start [2025-01-27 11:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341233', 'tblTempVendorCDR_20' ) end [2025-01-27 11:05:31] Production.INFO: ProcessCDR(1,14341233,1,1,2) [2025-01-27 11:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341233', 'tblTempUsageDetail_20' ) start [2025-01-27 11:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341233', 'tblTempUsageDetail_20' ) end [2025-01-27 11:05:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:05:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:05:36] Production.INFO: ==28492== Releasing lock... [2025-01-27 11:05:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:05:36] Production.INFO: 61.5 MB #Memory Used# [2025-01-27 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:06:05 [end_date_ymd] => 2025-01-27 11:06:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:06:05' and `end` < '2025-01-27 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-01-27 11:06:30] Production.INFO: count ==4483 [2025-01-27 11:06:32] Production.ERROR: pbx CDR StartTime 2025-01-27 08:06:05 - End Time 2025-01-27 11:06:05 [2025-01-27 11:06:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341238', 'tblTempUsageDetail_20' ) start [2025-01-27 11:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341238', 'tblTempUsageDetail_20' ) end [2025-01-27 11:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341238', 'tblTempVendorCDR_20' ) start [2025-01-27 11:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341238', 'tblTempVendorCDR_20' ) end [2025-01-27 11:06:32] Production.INFO: ProcessCDR(1,14341238,1,1,2) [2025-01-27 11:06:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:06:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:06:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:06:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:06:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341238', 'tblTempUsageDetail_20' ) start [2025-01-27 11:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341238', 'tblTempUsageDetail_20' ) end [2025-01-27 11:06:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:06:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:06:38] Production.INFO: ==28613== Releasing lock... [2025-01-27 11:06:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:06:38] Production.INFO: 61.5 MB #Memory Used# [2025-01-27 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:07:05 [end_date_ymd] => 2025-01-27 11:07:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:07:05' and `end` < '2025-01-27 11: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-01-27 11:07:27] Production.INFO: count ==4490 [2025-01-27 11:07:29] Production.ERROR: pbx CDR StartTime 2025-01-27 08:07:05 - End Time 2025-01-27 11:07:05 [2025-01-27 11:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341239', 'tblTempUsageDetail_20' ) start [2025-01-27 11:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341239', 'tblTempUsageDetail_20' ) end [2025-01-27 11:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341239', 'tblTempVendorCDR_20' ) start [2025-01-27 11:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341239', 'tblTempVendorCDR_20' ) end [2025-01-27 11:07:29] Production.INFO: ProcessCDR(1,14341239,1,1,2) [2025-01-27 11:07:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:07:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:07:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341239', 'tblTempUsageDetail_20' ) start [2025-01-27 11:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341239', 'tblTempUsageDetail_20' ) end [2025-01-27 11:07:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:07:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:07:34] Production.INFO: ==28692== Releasing lock... [2025-01-27 11:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:07:34] Production.INFO: 61.5 MB #Memory Used# [2025-01-27 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:08:05 [end_date_ymd] => 2025-01-27 11:08:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:08:05' and `end` < '2025-01-27 11: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-01-27 11:08:26] Production.INFO: count ==4500 [2025-01-27 11:08:28] Production.ERROR: pbx CDR StartTime 2025-01-27 08:08:05 - End Time 2025-01-27 11:08:05 [2025-01-27 11:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341248', 'tblTempUsageDetail_20' ) start [2025-01-27 11:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341248', 'tblTempUsageDetail_20' ) end [2025-01-27 11:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341248', 'tblTempVendorCDR_20' ) start [2025-01-27 11:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341248', 'tblTempVendorCDR_20' ) end [2025-01-27 11:08:28] Production.INFO: ProcessCDR(1,14341248,1,1,2) [2025-01-27 11:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341248', 'tblTempUsageDetail_20' ) start [2025-01-27 11:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341248', 'tblTempUsageDetail_20' ) end [2025-01-27 11:08:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:08:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:08:33] Production.INFO: ==28846== Releasing lock... [2025-01-27 11:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:08:33] Production.INFO: 61.75 MB #Memory Used# [2025-01-27 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:09:06 [end_date_ymd] => 2025-01-27 11:09:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:09:06' and `end` < '2025-01-27 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-01-27 11:09:27] Production.INFO: count ==4512 [2025-01-27 11:09:29] Production.ERROR: pbx CDR StartTime 2025-01-27 08:09:06 - End Time 2025-01-27 11:09:06 [2025-01-27 11:09:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341253', 'tblTempUsageDetail_20' ) start [2025-01-27 11:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341253', 'tblTempUsageDetail_20' ) end [2025-01-27 11:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341253', 'tblTempVendorCDR_20' ) start [2025-01-27 11:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341253', 'tblTempVendorCDR_20' ) end [2025-01-27 11:09:29] Production.INFO: ProcessCDR(1,14341253,1,1,2) [2025-01-27 11:09:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:09:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:09:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:09:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341253', 'tblTempUsageDetail_20' ) start [2025-01-27 11:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341253', 'tblTempUsageDetail_20' ) end [2025-01-27 11:09:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:09:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:09:34] Production.INFO: ==28919== Releasing lock... [2025-01-27 11:09:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:09:34] Production.INFO: 61.75 MB #Memory Used# [2025-01-27 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:10:06 [end_date_ymd] => 2025-01-27 11:10:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:10:06' and `end` < '2025-01-27 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-01-27 11:10:28] Production.INFO: count ==4526 [2025-01-27 11:10:30] Production.ERROR: pbx CDR StartTime 2025-01-27 08:10:06 - End Time 2025-01-27 11:10:06 [2025-01-27 11:10:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341258', 'tblTempUsageDetail_20' ) start [2025-01-27 11:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341258', 'tblTempUsageDetail_20' ) end [2025-01-27 11:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341258', 'tblTempVendorCDR_20' ) start [2025-01-27 11:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341258', 'tblTempVendorCDR_20' ) end [2025-01-27 11:10:30] Production.INFO: ProcessCDR(1,14341258,1,1,2) [2025-01-27 11:10:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:10:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:10:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:10:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341258', 'tblTempUsageDetail_20' ) start [2025-01-27 11:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341258', 'tblTempUsageDetail_20' ) end [2025-01-27 11:10:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:10:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:10:35] Production.INFO: ==29026== Releasing lock... [2025-01-27 11:10:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:10:35] Production.INFO: 62 MB #Memory Used# [2025-01-27 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:11:06 [end_date_ymd] => 2025-01-27 11:11:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:11:06' and `end` < '2025-01-27 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-01-27 11:11:22] Production.INFO: count ==4633 [2025-01-27 11:11:24] Production.ERROR: pbx CDR StartTime 2025-01-27 08:11:06 - End Time 2025-01-27 11:11:06 [2025-01-27 11:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341264', 'tblTempUsageDetail_20' ) start [2025-01-27 11:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341264', 'tblTempUsageDetail_20' ) end [2025-01-27 11:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341264', 'tblTempVendorCDR_20' ) start [2025-01-27 11:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341264', 'tblTempVendorCDR_20' ) end [2025-01-27 11:11:24] Production.INFO: ProcessCDR(1,14341264,1,1,2) [2025-01-27 11:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341264', 'tblTempUsageDetail_20' ) start [2025-01-27 11:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341264', 'tblTempUsageDetail_20' ) end [2025-01-27 11:11:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:11:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:11:30] Production.INFO: ==29178== Releasing lock... [2025-01-27 11:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:11:30] Production.INFO: 62.75 MB #Memory Used# [2025-01-27 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:12:05 [end_date_ymd] => 2025-01-27 11:12:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:12:05' and `end` < '2025-01-27 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-01-27 11:12:26] Production.INFO: count ==4650 [2025-01-27 11:12:28] Production.ERROR: pbx CDR StartTime 2025-01-27 08:12:05 - End Time 2025-01-27 11:12:05 [2025-01-27 11:12:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341269', 'tblTempUsageDetail_20' ) start [2025-01-27 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341269', 'tblTempUsageDetail_20' ) end [2025-01-27 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341269', 'tblTempVendorCDR_20' ) start [2025-01-27 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341269', 'tblTempVendorCDR_20' ) end [2025-01-27 11:12:28] Production.INFO: ProcessCDR(1,14341269,1,1,2) [2025-01-27 11:12:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341269', 'tblTempUsageDetail_20' ) start [2025-01-27 11:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341269', 'tblTempUsageDetail_20' ) end [2025-01-27 11:12:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:12:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:12:33] Production.INFO: ==29432== Releasing lock... [2025-01-27 11:12:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:12:33] Production.INFO: 62.75 MB #Memory Used# [2025-01-27 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:13:05 [end_date_ymd] => 2025-01-27 11:13:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:13:05' and `end` < '2025-01-27 11: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-01-27 11:13:28] Production.INFO: count ==4672 [2025-01-27 11:13:29] Production.ERROR: pbx CDR StartTime 2025-01-27 08:13:05 - End Time 2025-01-27 11:13:05 [2025-01-27 11:13:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341274', 'tblTempUsageDetail_20' ) start [2025-01-27 11:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341274', 'tblTempUsageDetail_20' ) end [2025-01-27 11:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341274', 'tblTempVendorCDR_20' ) start [2025-01-27 11:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341274', 'tblTempVendorCDR_20' ) end [2025-01-27 11:13:30] Production.INFO: ProcessCDR(1,14341274,1,1,2) [2025-01-27 11:13:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:13:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:13:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:13:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:13:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341274', 'tblTempUsageDetail_20' ) start [2025-01-27 11:13:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341274', 'tblTempUsageDetail_20' ) end [2025-01-27 11:13:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:13:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:13:36] Production.INFO: ==29576== Releasing lock... [2025-01-27 11:13:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:13:36] Production.INFO: 63 MB #Memory Used# [2025-01-27 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:14:05 [end_date_ymd] => 2025-01-27 11:14:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:14:05' and `end` < '2025-01-27 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-01-27 11:14:31] Production.INFO: count ==4704 [2025-01-27 11:14:33] Production.ERROR: pbx CDR StartTime 2025-01-27 08:14:05 - End Time 2025-01-27 11:14:05 [2025-01-27 11:14:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:14:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341279', 'tblTempUsageDetail_20' ) start [2025-01-27 11:14:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341279', 'tblTempUsageDetail_20' ) end [2025-01-27 11:14:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341279', 'tblTempVendorCDR_20' ) start [2025-01-27 11:14:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341279', 'tblTempVendorCDR_20' ) end [2025-01-27 11:14:33] Production.INFO: ProcessCDR(1,14341279,1,1,2) [2025-01-27 11:14:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:14:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:14:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:14:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:14:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341279', 'tblTempUsageDetail_20' ) start [2025-01-27 11:14:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341279', 'tblTempUsageDetail_20' ) end [2025-01-27 11:14:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:14:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:14:38] Production.INFO: ==29720== Releasing lock... [2025-01-27 11:14:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:14:38] Production.INFO: 63.25 MB #Memory Used# [2025-01-27 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:15:05 [end_date_ymd] => 2025-01-27 11:15:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:15:05' and `end` < '2025-01-27 11: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-01-27 11:15:32] Production.INFO: count ==4708 [2025-01-27 11:15:33] Production.ERROR: pbx CDR StartTime 2025-01-27 08:15:05 - End Time 2025-01-27 11:15:05 [2025-01-27 11:15:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341284', 'tblTempUsageDetail_20' ) start [2025-01-27 11:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341284', 'tblTempUsageDetail_20' ) end [2025-01-27 11:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341284', 'tblTempVendorCDR_20' ) start [2025-01-27 11:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341284', 'tblTempVendorCDR_20' ) end [2025-01-27 11:15:34] Production.INFO: ProcessCDR(1,14341284,1,1,2) [2025-01-27 11:15:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:15:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:15:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:15:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:15:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341284', 'tblTempUsageDetail_20' ) start [2025-01-27 11:15:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341284', 'tblTempUsageDetail_20' ) end [2025-01-27 11:15:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:15:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:15:38] Production.INFO: ==29871== Releasing lock... [2025-01-27 11:15:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:15:38] Production.INFO: 63.25 MB #Memory Used# [2025-01-27 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:16:05 [end_date_ymd] => 2025-01-27 11:16:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:16:05' and `end` < '2025-01-27 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-01-27 11:16:35] Production.INFO: count ==4725 [2025-01-27 11:16:37] Production.ERROR: pbx CDR StartTime 2025-01-27 08:16:05 - End Time 2025-01-27 11:16:05 [2025-01-27 11:16:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:16:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341289', 'tblTempUsageDetail_20' ) start [2025-01-27 11:16:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341289', 'tblTempUsageDetail_20' ) end [2025-01-27 11:16:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341289', 'tblTempVendorCDR_20' ) start [2025-01-27 11:16:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341289', 'tblTempVendorCDR_20' ) end [2025-01-27 11:16:38] Production.INFO: ProcessCDR(1,14341289,1,1,2) [2025-01-27 11:16:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:16:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:16:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:16:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:16:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341289', 'tblTempUsageDetail_20' ) start [2025-01-27 11:16:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341289', 'tblTempUsageDetail_20' ) end [2025-01-27 11:16:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:16:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:16:43] Production.INFO: ==29952== Releasing lock... [2025-01-27 11:16:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:16:43] Production.INFO: 63.5 MB #Memory Used# [2025-01-27 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:17:05 [end_date_ymd] => 2025-01-27 11:17:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:17:05' and `end` < '2025-01-27 11: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-01-27 11:17:37] Production.INFO: count ==4762 [2025-01-27 11:17:39] Production.ERROR: pbx CDR StartTime 2025-01-27 08:17:05 - End Time 2025-01-27 11:17:05 [2025-01-27 11:17:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:17:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341294', 'tblTempUsageDetail_20' ) start [2025-01-27 11:17:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341294', 'tblTempUsageDetail_20' ) end [2025-01-27 11:17:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341294', 'tblTempVendorCDR_20' ) start [2025-01-27 11:17:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341294', 'tblTempVendorCDR_20' ) end [2025-01-27 11:17:39] Production.INFO: ProcessCDR(1,14341294,1,1,2) [2025-01-27 11:17:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:17:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:17:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:17:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:17:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341294', 'tblTempUsageDetail_20' ) start [2025-01-27 11:17:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341294', 'tblTempUsageDetail_20' ) end [2025-01-27 11:17:45] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:17:45] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:17:45] Production.INFO: ==30034== Releasing lock... [2025-01-27 11:17:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:17:45] Production.INFO: 63.75 MB #Memory Used# [2025-01-27 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:18:05 [end_date_ymd] => 2025-01-27 11:18:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:18:05' and `end` < '2025-01-27 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-01-27 11:18:35] Production.INFO: count ==4780 [2025-01-27 11:18:37] Production.ERROR: pbx CDR StartTime 2025-01-27 08:18:05 - End Time 2025-01-27 11:18:05 [2025-01-27 11:18:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:18:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341299', 'tblTempUsageDetail_20' ) start [2025-01-27 11:18:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341299', 'tblTempUsageDetail_20' ) end [2025-01-27 11:18:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341299', 'tblTempVendorCDR_20' ) start [2025-01-27 11:18:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341299', 'tblTempVendorCDR_20' ) end [2025-01-27 11:18:37] Production.INFO: ProcessCDR(1,14341299,1,1,2) [2025-01-27 11:18:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:18:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:18:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:18:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:18:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341299', 'tblTempUsageDetail_20' ) start [2025-01-27 11:18:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341299', 'tblTempUsageDetail_20' ) end [2025-01-27 11:18:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:18:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:18:42] Production.INFO: ==30110== Releasing lock... [2025-01-27 11:18:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:18:42] Production.INFO: 63.75 MB #Memory Used# [2025-01-27 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:19:05 [end_date_ymd] => 2025-01-27 11:19:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:19:05' and `end` < '2025-01-27 11: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-01-27 11:19:31] Production.INFO: count ==4791 [2025-01-27 11:19:33] Production.ERROR: pbx CDR StartTime 2025-01-27 08:19:05 - End Time 2025-01-27 11:19:05 [2025-01-27 11:19:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341304', 'tblTempUsageDetail_20' ) start [2025-01-27 11:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341304', 'tblTempUsageDetail_20' ) end [2025-01-27 11:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341304', 'tblTempVendorCDR_20' ) start [2025-01-27 11:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341304', 'tblTempVendorCDR_20' ) end [2025-01-27 11:19:33] Production.INFO: ProcessCDR(1,14341304,1,1,2) [2025-01-27 11:19:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:19:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:19:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:19:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:19:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341304', 'tblTempUsageDetail_20' ) start [2025-01-27 11:19:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341304', 'tblTempUsageDetail_20' ) end [2025-01-27 11:19:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:19:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:19:38] Production.INFO: ==30192== Releasing lock... [2025-01-27 11:19:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:19:38] Production.INFO: 64 MB #Memory Used# [2025-01-27 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:20:06 [end_date_ymd] => 2025-01-27 11:20:06 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:20:06' and `end` < '2025-01-27 11: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-01-27 11:20:28] Production.INFO: count ==4816 [2025-01-27 11:20:30] Production.ERROR: pbx CDR StartTime 2025-01-27 08:20:06 - End Time 2025-01-27 11:20:06 [2025-01-27 11:20:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341310', 'tblTempUsageDetail_20' ) start [2025-01-27 11:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341310', 'tblTempUsageDetail_20' ) end [2025-01-27 11:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341310', 'tblTempVendorCDR_20' ) start [2025-01-27 11:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341310', 'tblTempVendorCDR_20' ) end [2025-01-27 11:20:30] Production.INFO: ProcessCDR(1,14341310,1,1,2) [2025-01-27 11:20:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:20:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:20:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:20:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341310', 'tblTempUsageDetail_20' ) start [2025-01-27 11:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341310', 'tblTempUsageDetail_20' ) end [2025-01-27 11:20:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:20:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:20:35] Production.INFO: ==30283== Releasing lock... [2025-01-27 11:20:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:20:35] Production.INFO: 64 MB #Memory Used# [2025-01-27 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:21:05 [end_date_ymd] => 2025-01-27 11:21:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:21:05' and `end` < '2025-01-27 11: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-01-27 11:21:27] Production.INFO: count ==4949 [2025-01-27 11:21:29] Production.ERROR: pbx CDR StartTime 2025-01-27 08:21:05 - End Time 2025-01-27 11:21:05 [2025-01-27 11:21:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341315', 'tblTempUsageDetail_20' ) start [2025-01-27 11:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341315', 'tblTempUsageDetail_20' ) end [2025-01-27 11:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341315', 'tblTempVendorCDR_20' ) start [2025-01-27 11:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341315', 'tblTempVendorCDR_20' ) end [2025-01-27 11:21:29] Production.INFO: ProcessCDR(1,14341315,1,1,2) [2025-01-27 11:21:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:21:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:21:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:21:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341315', 'tblTempUsageDetail_20' ) start [2025-01-27 11:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341315', 'tblTempUsageDetail_20' ) end [2025-01-27 11:21:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:21:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:21:34] Production.INFO: ==30387== Releasing lock... [2025-01-27 11:21:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:21:34] Production.INFO: 65 MB #Memory Used# [2025-01-27 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:22:05 [end_date_ymd] => 2025-01-27 11:22:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:22:05' and `end` < '2025-01-27 11: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-01-27 11:22:27] Production.INFO: count ==4989 [2025-01-27 11:22:29] Production.ERROR: pbx CDR StartTime 2025-01-27 08:22:05 - End Time 2025-01-27 11:22:05 [2025-01-27 11:22:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341320', 'tblTempUsageDetail_20' ) start [2025-01-27 11:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341320', 'tblTempUsageDetail_20' ) end [2025-01-27 11:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341320', 'tblTempVendorCDR_20' ) start [2025-01-27 11:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341320', 'tblTempVendorCDR_20' ) end [2025-01-27 11:22:29] Production.INFO: ProcessCDR(1,14341320,1,1,2) [2025-01-27 11:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:22:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:22:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:22:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341320', 'tblTempUsageDetail_20' ) start [2025-01-27 11:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341320', 'tblTempUsageDetail_20' ) end [2025-01-27 11:22:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:22:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:22:34] Production.INFO: ==30512== Releasing lock... [2025-01-27 11:22:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:22:34] Production.INFO: 65.25 MB #Memory Used# [2025-01-27 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:23:05 [end_date_ymd] => 2025-01-27 11:23:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:23:05' and `end` < '2025-01-27 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-01-27 11:23:31] Production.INFO: count ==5030 [2025-01-27 11:23:33] Production.ERROR: pbx CDR StartTime 2025-01-27 08:23:05 - End Time 2025-01-27 11:23:05 [2025-01-27 11:23:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:23:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341325', 'tblTempUsageDetail_20' ) start [2025-01-27 11:23:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341325', 'tblTempUsageDetail_20' ) end [2025-01-27 11:23:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341325', 'tblTempVendorCDR_20' ) start [2025-01-27 11:23:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341325', 'tblTempVendorCDR_20' ) end [2025-01-27 11:23:33] Production.INFO: ProcessCDR(1,14341325,1,1,2) [2025-01-27 11:23:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:23:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:23:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:23:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:23:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341325', 'tblTempUsageDetail_20' ) start [2025-01-27 11:23:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341325', 'tblTempUsageDetail_20' ) end [2025-01-27 11:23:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:23:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:23:38] Production.INFO: ==30596== Releasing lock... [2025-01-27 11:23:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:23:38] Production.INFO: 65.75 MB #Memory Used# [2025-01-27 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:24:06 [end_date_ymd] => 2025-01-27 11:24:06 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:24:06' and `end` < '2025-01-27 11: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-01-27 11:24:32] Production.INFO: count ==5054 [2025-01-27 11:24:34] Production.ERROR: pbx CDR StartTime 2025-01-27 08:24:06 - End Time 2025-01-27 11:24:06 [2025-01-27 11:24:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341330', 'tblTempUsageDetail_20' ) start [2025-01-27 11:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341330', 'tblTempUsageDetail_20' ) end [2025-01-27 11:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341330', 'tblTempVendorCDR_20' ) start [2025-01-27 11:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341330', 'tblTempVendorCDR_20' ) end [2025-01-27 11:24:35] Production.INFO: ProcessCDR(1,14341330,1,1,2) [2025-01-27 11:24:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:24:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:24:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:24:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:24:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341330', 'tblTempUsageDetail_20' ) start [2025-01-27 11:24:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341330', 'tblTempUsageDetail_20' ) end [2025-01-27 11:24:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:24:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:24:40] Production.INFO: ==30680== Releasing lock... [2025-01-27 11:24:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:24:40] Production.INFO: 65.75 MB #Memory Used# [2025-01-27 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:25:06 [end_date_ymd] => 2025-01-27 11:25:06 [RateCDR] => 1 ) [2025-01-27 11:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 08:25:06' and `end` < '2025-01-27 11:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-27 11:25:30] Production.INFO: count ==5058 [2025-01-27 11:25:32] Production.ERROR: pbx CDR StartTime 2025-01-27 08:25:06 - End Time 2025-01-27 11:25:06 [2025-01-27 11:25:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341335', 'tblTempUsageDetail_20' ) start [2025-01-27 11:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341335', 'tblTempUsageDetail_20' ) end [2025-01-27 11:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341335', 'tblTempVendorCDR_20' ) start [2025-01-27 11:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341335', 'tblTempVendorCDR_20' ) end [2025-01-27 11:25:32] Production.INFO: ProcessCDR(1,14341335,1,1,2) [2025-01-27 11:25:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:25:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:25:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:25:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341335', 'tblTempUsageDetail_20' ) start [2025-01-27 11:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341335', 'tblTempUsageDetail_20' ) end [2025-01-27 11:25:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:25:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:25:37] Production.INFO: ==30761== Releasing lock... [2025-01-27 11:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:25:37] Production.INFO: 66 MB #Memory Used# [2025-01-27 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:26:06 [end_date_ymd] => 2025-01-27 11:26:06 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:26:06' and `end` < '2025-01-27 11: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-01-27 11:26:33] Production.INFO: count ==5067 [2025-01-27 11:26:35] Production.ERROR: pbx CDR StartTime 2025-01-27 08:26:06 - End Time 2025-01-27 11:26:06 [2025-01-27 11:26:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:26:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341340', 'tblTempUsageDetail_20' ) start [2025-01-27 11:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341340', 'tblTempUsageDetail_20' ) end [2025-01-27 11:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341340', 'tblTempVendorCDR_20' ) start [2025-01-27 11:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341340', 'tblTempVendorCDR_20' ) end [2025-01-27 11:26:36] Production.INFO: ProcessCDR(1,14341340,1,1,2) [2025-01-27 11:26:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:26:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:26:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:26:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:26:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341340', 'tblTempUsageDetail_20' ) start [2025-01-27 11:26:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341340', 'tblTempUsageDetail_20' ) end [2025-01-27 11:26:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:26:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:26:41] Production.INFO: ==30847== Releasing lock... [2025-01-27 11:26:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:26:41] Production.INFO: 66 MB #Memory Used# [2025-01-27 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:27:05 [end_date_ymd] => 2025-01-27 11:27:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:27:05' and `end` < '2025-01-27 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-01-27 11:27:32] Production.INFO: count ==5085 [2025-01-27 11:27:34] Production.ERROR: pbx CDR StartTime 2025-01-27 08:27:05 - End Time 2025-01-27 11:27:05 [2025-01-27 11:27:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341345', 'tblTempUsageDetail_20' ) start [2025-01-27 11:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341345', 'tblTempUsageDetail_20' ) end [2025-01-27 11:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341345', 'tblTempVendorCDR_20' ) start [2025-01-27 11:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341345', 'tblTempVendorCDR_20' ) end [2025-01-27 11:27:35] Production.INFO: ProcessCDR(1,14341345,1,1,2) [2025-01-27 11:27:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:27:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:27:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:27:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:27:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341345', 'tblTempUsageDetail_20' ) start [2025-01-27 11:27:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341345', 'tblTempUsageDetail_20' ) end [2025-01-27 11:27:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:27:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:27:40] Production.INFO: ==30937== Releasing lock... [2025-01-27 11:27:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:27:40] Production.INFO: 66 MB #Memory Used# [2025-01-27 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:28:06 [end_date_ymd] => 2025-01-27 11:28:06 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:28:06' and `end` < '2025-01-27 11: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-01-27 11:28:35] Production.INFO: count ==5096 [2025-01-27 11:28:38] Production.ERROR: pbx CDR StartTime 2025-01-27 08:28:06 - End Time 2025-01-27 11:28:06 [2025-01-27 11:28:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:28:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341350', 'tblTempUsageDetail_20' ) start [2025-01-27 11:28:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341350', 'tblTempUsageDetail_20' ) end [2025-01-27 11:28:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341350', 'tblTempVendorCDR_20' ) start [2025-01-27 11:28:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341350', 'tblTempVendorCDR_20' ) end [2025-01-27 11:28:38] Production.INFO: ProcessCDR(1,14341350,1,1,2) [2025-01-27 11:28:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:28:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:28:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:28:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:28:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341350', 'tblTempUsageDetail_20' ) start [2025-01-27 11:28:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341350', 'tblTempUsageDetail_20' ) end [2025-01-27 11:28:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:28:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:28:43] Production.INFO: ==31019== Releasing lock... [2025-01-27 11:28:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:28:43] Production.INFO: 66.25 MB #Memory Used# [2025-01-27 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:29:05 [end_date_ymd] => 2025-01-27 11:29:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:29:05' and `end` < '2025-01-27 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-01-27 11:29:33] Production.INFO: count ==5125 [2025-01-27 11:29:36] Production.ERROR: pbx CDR StartTime 2025-01-27 08:29:05 - End Time 2025-01-27 11:29:05 [2025-01-27 11:29:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341355', 'tblTempUsageDetail_20' ) start [2025-01-27 11:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341355', 'tblTempUsageDetail_20' ) end [2025-01-27 11:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341355', 'tblTempVendorCDR_20' ) start [2025-01-27 11:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341355', 'tblTempVendorCDR_20' ) end [2025-01-27 11:29:36] Production.INFO: ProcessCDR(1,14341355,1,1,2) [2025-01-27 11:29:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:29:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:29:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:29:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:29:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341355', 'tblTempUsageDetail_20' ) start [2025-01-27 11:29:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341355', 'tblTempUsageDetail_20' ) end [2025-01-27 11:29:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:29:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:29:41] Production.INFO: ==31102== Releasing lock... [2025-01-27 11:29:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:29:41] Production.INFO: 66.5 MB #Memory Used# [2025-01-27 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:30:06 [end_date_ymd] => 2025-01-27 11:30:06 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:30:06' and `end` < '2025-01-27 11: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-01-27 11:30:29] Production.INFO: count ==5133 [2025-01-27 11:30:31] Production.ERROR: pbx CDR StartTime 2025-01-27 08:30:06 - End Time 2025-01-27 11:30:06 [2025-01-27 11:30:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341361', 'tblTempUsageDetail_20' ) start [2025-01-27 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341361', 'tblTempUsageDetail_20' ) end [2025-01-27 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341361', 'tblTempVendorCDR_20' ) start [2025-01-27 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341361', 'tblTempVendorCDR_20' ) end [2025-01-27 11:30:31] Production.INFO: ProcessCDR(1,14341361,1,1,2) [2025-01-27 11:30:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:30:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:30:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:30:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341361', 'tblTempUsageDetail_20' ) start [2025-01-27 11:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341361', 'tblTempUsageDetail_20' ) end [2025-01-27 11:30:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:30:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:30:36] Production.INFO: ==31188== Releasing lock... [2025-01-27 11:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:30:36] Production.INFO: 66.5 MB #Memory Used# [2025-01-27 11:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:31:04 [end_date_ymd] => 2025-01-27 11:31:04 [RateCDR] => 1 ) [2025-01-27 11:31: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-01-27 08:31:04' and `end` < '2025-01-27 11:31: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-01-27 11:31:23] Production.INFO: count ==5221 [2025-01-27 11:31:25] Production.ERROR: pbx CDR StartTime 2025-01-27 08:31:04 - End Time 2025-01-27 11:31:04 [2025-01-27 11:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341366', 'tblTempUsageDetail_20' ) start [2025-01-27 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341366', 'tblTempUsageDetail_20' ) end [2025-01-27 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341366', 'tblTempVendorCDR_20' ) start [2025-01-27 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341366', 'tblTempVendorCDR_20' ) end [2025-01-27 11:31:25] Production.INFO: ProcessCDR(1,14341366,1,1,2) [2025-01-27 11:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341366', 'tblTempUsageDetail_20' ) start [2025-01-27 11:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341366', 'tblTempUsageDetail_20' ) end [2025-01-27 11:31:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:31:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:31:30] Production.INFO: ==31270== Releasing lock... [2025-01-27 11:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:31:30] Production.INFO: 67 MB #Memory Used# [2025-01-27 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:32:06 [end_date_ymd] => 2025-01-27 11:32:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:32:06' and `end` < '2025-01-27 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-01-27 11:32:25] Production.INFO: count ==5233 [2025-01-27 11:32:27] Production.ERROR: pbx CDR StartTime 2025-01-27 08:32:06 - End Time 2025-01-27 11:32:06 [2025-01-27 11:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341371', 'tblTempUsageDetail_20' ) start [2025-01-27 11:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341371', 'tblTempUsageDetail_20' ) end [2025-01-27 11:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341371', 'tblTempVendorCDR_20' ) start [2025-01-27 11:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341371', 'tblTempVendorCDR_20' ) end [2025-01-27 11:32:27] Production.INFO: ProcessCDR(1,14341371,1,1,2) [2025-01-27 11:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341371', 'tblTempUsageDetail_20' ) start [2025-01-27 11:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341371', 'tblTempUsageDetail_20' ) end [2025-01-27 11:32:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:32:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:32:33] Production.INFO: ==31356== Releasing lock... [2025-01-27 11:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:32:33] Production.INFO: 67.25 MB #Memory Used# [2025-01-27 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:33:05 [end_date_ymd] => 2025-01-27 11:33:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:33:05' and `end` < '2025-01-27 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-01-27 11:33:34] Production.INFO: count ==5259 [2025-01-27 11:33:36] Production.ERROR: pbx CDR StartTime 2025-01-27 08:33:05 - End Time 2025-01-27 11:33:05 [2025-01-27 11:33:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:33:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341376', 'tblTempUsageDetail_20' ) start [2025-01-27 11:33:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341376', 'tblTempUsageDetail_20' ) end [2025-01-27 11:33:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341376', 'tblTempVendorCDR_20' ) start [2025-01-27 11:33:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341376', 'tblTempVendorCDR_20' ) end [2025-01-27 11:33:36] Production.INFO: ProcessCDR(1,14341376,1,1,2) [2025-01-27 11:33:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:33:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:33:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:33:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:33:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341376', 'tblTempUsageDetail_20' ) start [2025-01-27 11:33:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341376', 'tblTempUsageDetail_20' ) end [2025-01-27 11:33:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:33:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:33:42] Production.INFO: ==31434== Releasing lock... [2025-01-27 11:33:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:33:42] Production.INFO: 67.5 MB #Memory Used# [2025-01-27 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:34:06 [end_date_ymd] => 2025-01-27 11:34:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:34:06' and `end` < '2025-01-27 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-01-27 11:34:27] Production.INFO: count ==5260 [2025-01-27 11:34:29] Production.ERROR: pbx CDR StartTime 2025-01-27 08:34:06 - End Time 2025-01-27 11:34:06 [2025-01-27 11:34:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341381', 'tblTempUsageDetail_20' ) start [2025-01-27 11:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341381', 'tblTempUsageDetail_20' ) end [2025-01-27 11:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341381', 'tblTempVendorCDR_20' ) start [2025-01-27 11:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341381', 'tblTempVendorCDR_20' ) end [2025-01-27 11:34:29] Production.INFO: ProcessCDR(1,14341381,1,1,2) [2025-01-27 11:34:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:34:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:34:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:34:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341381', 'tblTempUsageDetail_20' ) start [2025-01-27 11:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341381', 'tblTempUsageDetail_20' ) end [2025-01-27 11:34:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:34:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:34:35] Production.INFO: ==31514== Releasing lock... [2025-01-27 11:34:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:34:35] Production.INFO: 67.5 MB #Memory Used# [2025-01-27 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:35:05 [end_date_ymd] => 2025-01-27 11:35:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:35:05' and `end` < '2025-01-27 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-01-27 11:35:25] Production.INFO: count ==5263 [2025-01-27 11:35:27] Production.ERROR: pbx CDR StartTime 2025-01-27 08:35:05 - End Time 2025-01-27 11:35:05 [2025-01-27 11:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341386', 'tblTempUsageDetail_20' ) start [2025-01-27 11:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341386', 'tblTempUsageDetail_20' ) end [2025-01-27 11:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341386', 'tblTempVendorCDR_20' ) start [2025-01-27 11:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341386', 'tblTempVendorCDR_20' ) end [2025-01-27 11:35:27] Production.INFO: ProcessCDR(1,14341386,1,1,2) [2025-01-27 11:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341386', 'tblTempUsageDetail_20' ) start [2025-01-27 11:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341386', 'tblTempUsageDetail_20' ) end [2025-01-27 11:35:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:35:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:35:32] Production.INFO: ==31600== Releasing lock... [2025-01-27 11:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:35:32] Production.INFO: 67.5 MB #Memory Used# [2025-01-27 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:36:06 [end_date_ymd] => 2025-01-27 11:36:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:36:06' and `end` < '2025-01-27 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-01-27 11:36:26] Production.INFO: count ==5267 [2025-01-27 11:36:28] Production.ERROR: pbx CDR StartTime 2025-01-27 08:36:06 - End Time 2025-01-27 11:36:06 [2025-01-27 11:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341391', 'tblTempUsageDetail_20' ) start [2025-01-27 11:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341391', 'tblTempUsageDetail_20' ) end [2025-01-27 11:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341391', 'tblTempVendorCDR_20' ) start [2025-01-27 11:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341391', 'tblTempVendorCDR_20' ) end [2025-01-27 11:36:29] Production.INFO: ProcessCDR(1,14341391,1,1,2) [2025-01-27 11:36:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:36:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:36:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341391', 'tblTempUsageDetail_20' ) start [2025-01-27 11:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341391', 'tblTempUsageDetail_20' ) end [2025-01-27 11:36:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:36:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:36:33] Production.INFO: ==31678== Releasing lock... [2025-01-27 11:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:36:33] Production.INFO: 67.5 MB #Memory Used# [2025-01-27 11:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:37:04 [end_date_ymd] => 2025-01-27 11:37:04 [RateCDR] => 1 ) [2025-01-27 11:37: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-01-27 08:37:04' and `end` < '2025-01-27 11:37: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-01-27 11:37:25] Production.INFO: count ==5278 [2025-01-27 11:37:27] Production.ERROR: pbx CDR StartTime 2025-01-27 08:37:04 - End Time 2025-01-27 11:37:04 [2025-01-27 11:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341396', 'tblTempUsageDetail_20' ) start [2025-01-27 11:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341396', 'tblTempUsageDetail_20' ) end [2025-01-27 11:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341396', 'tblTempVendorCDR_20' ) start [2025-01-27 11:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341396', 'tblTempVendorCDR_20' ) end [2025-01-27 11:37:27] Production.INFO: ProcessCDR(1,14341396,1,1,2) [2025-01-27 11:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:37:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:37:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341396', 'tblTempUsageDetail_20' ) start [2025-01-27 11:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341396', 'tblTempUsageDetail_20' ) end [2025-01-27 11:37:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:37:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:37:32] Production.INFO: ==31796== Releasing lock... [2025-01-27 11:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:37:32] Production.INFO: 67.5 MB #Memory Used# [2025-01-27 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:38:05 [end_date_ymd] => 2025-01-27 11:38:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:38:05' and `end` < '2025-01-27 11: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-01-27 11:38:30] Production.INFO: count ==5305 [2025-01-27 11:38:32] Production.ERROR: pbx CDR StartTime 2025-01-27 08:38:05 - End Time 2025-01-27 11:38:05 [2025-01-27 11:38:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341401', 'tblTempUsageDetail_20' ) start [2025-01-27 11:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341401', 'tblTempUsageDetail_20' ) end [2025-01-27 11:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341401', 'tblTempVendorCDR_20' ) start [2025-01-27 11:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341401', 'tblTempVendorCDR_20' ) end [2025-01-27 11:38:32] Production.INFO: ProcessCDR(1,14341401,1,1,2) [2025-01-27 11:38:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:38:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:38:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:38:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:38:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341401', 'tblTempUsageDetail_20' ) start [2025-01-27 11:38:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341401', 'tblTempUsageDetail_20' ) end [2025-01-27 11:38:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:38:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:38:37] Production.INFO: ==31875== Releasing lock... [2025-01-27 11:38:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:38:37] Production.INFO: 67.75 MB #Memory Used# [2025-01-27 11:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:39:04 [end_date_ymd] => 2025-01-27 11:39:04 [RateCDR] => 1 ) [2025-01-27 11:39: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-01-27 08:39:04' and `end` < '2025-01-27 11:39: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-01-27 11:39:26] Production.INFO: count ==5314 [2025-01-27 11:39:28] Production.ERROR: pbx CDR StartTime 2025-01-27 08:39:04 - End Time 2025-01-27 11:39:04 [2025-01-27 11:39:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341406', 'tblTempUsageDetail_20' ) start [2025-01-27 11:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341406', 'tblTempUsageDetail_20' ) end [2025-01-27 11:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341406', 'tblTempVendorCDR_20' ) start [2025-01-27 11:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341406', 'tblTempVendorCDR_20' ) end [2025-01-27 11:39:28] Production.INFO: ProcessCDR(1,14341406,1,1,2) [2025-01-27 11:39:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:39:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:39:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:39:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341406', 'tblTempUsageDetail_20' ) start [2025-01-27 11:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341406', 'tblTempUsageDetail_20' ) end [2025-01-27 11:39:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:39:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:39:33] Production.INFO: ==31956== Releasing lock... [2025-01-27 11:39:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:39:33] Production.INFO: 67.75 MB #Memory Used# [2025-01-27 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:40:06 [end_date_ymd] => 2025-01-27 11:40:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:40:06' and `end` < '2025-01-27 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-01-27 11:40:30] Production.INFO: count ==5326 [2025-01-27 11:40:32] Production.ERROR: pbx CDR StartTime 2025-01-27 08:40:06 - End Time 2025-01-27 11:40:06 [2025-01-27 11:40:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341412', 'tblTempUsageDetail_20' ) start [2025-01-27 11:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341412', 'tblTempUsageDetail_20' ) end [2025-01-27 11:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341412', 'tblTempVendorCDR_20' ) start [2025-01-27 11:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341412', 'tblTempVendorCDR_20' ) end [2025-01-27 11:40:32] Production.INFO: ProcessCDR(1,14341412,1,1,2) [2025-01-27 11:40:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:40:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:40:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:40:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:40:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341412', 'tblTempUsageDetail_20' ) start [2025-01-27 11:40:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341412', 'tblTempUsageDetail_20' ) end [2025-01-27 11:40:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:40:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:40:38] Production.INFO: ==32039== Releasing lock... [2025-01-27 11:40:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:40:38] Production.INFO: 68 MB #Memory Used# [2025-01-27 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:41:06 [end_date_ymd] => 2025-01-27 11:41:06 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:41:06' and `end` < '2025-01-27 11: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-01-27 11:41:26] Production.INFO: count ==5405 [2025-01-27 11:41:28] Production.ERROR: pbx CDR StartTime 2025-01-27 08:41:06 - End Time 2025-01-27 11:41:06 [2025-01-27 11:41:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341417', 'tblTempUsageDetail_20' ) start [2025-01-27 11:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341417', 'tblTempUsageDetail_20' ) end [2025-01-27 11:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341417', 'tblTempVendorCDR_20' ) start [2025-01-27 11:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341417', 'tblTempVendorCDR_20' ) end [2025-01-27 11:41:28] Production.INFO: ProcessCDR(1,14341417,1,1,2) [2025-01-27 11:41:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:41:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:41:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:41:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341417', 'tblTempUsageDetail_20' ) start [2025-01-27 11:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341417', 'tblTempUsageDetail_20' ) end [2025-01-27 11:41:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:41:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:41:33] Production.INFO: ==32124== Releasing lock... [2025-01-27 11:41:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:41:33] Production.INFO: 68.5 MB #Memory Used# [2025-01-27 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:42:05 [end_date_ymd] => 2025-01-27 11:42:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:42:05' and `end` < '2025-01-27 11: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-01-27 11:42:25] Production.INFO: count ==5417 [2025-01-27 11:42:27] Production.ERROR: pbx CDR StartTime 2025-01-27 08:42:05 - End Time 2025-01-27 11:42:05 [2025-01-27 11:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341422', 'tblTempUsageDetail_20' ) start [2025-01-27 11:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341422', 'tblTempUsageDetail_20' ) end [2025-01-27 11:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341422', 'tblTempVendorCDR_20' ) start [2025-01-27 11:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341422', 'tblTempVendorCDR_20' ) end [2025-01-27 11:42:28] Production.INFO: ProcessCDR(1,14341422,1,1,2) [2025-01-27 11:42:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:42:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:42:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341422', 'tblTempUsageDetail_20' ) start [2025-01-27 11:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341422', 'tblTempUsageDetail_20' ) end [2025-01-27 11:42:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:42:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:42:33] Production.INFO: ==32207== Releasing lock... [2025-01-27 11:42:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:42:33] Production.INFO: 68.5 MB #Memory Used# [2025-01-27 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:43:05 [end_date_ymd] => 2025-01-27 11:43:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:43:05' and `end` < '2025-01-27 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-01-27 11:43:37] Production.INFO: count ==5421 [2025-01-27 11:43:39] Production.ERROR: pbx CDR StartTime 2025-01-27 08:43:05 - End Time 2025-01-27 11:43:05 [2025-01-27 11:43:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:43:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341427', 'tblTempUsageDetail_20' ) start [2025-01-27 11:43:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341427', 'tblTempUsageDetail_20' ) end [2025-01-27 11:43:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341427', 'tblTempVendorCDR_20' ) start [2025-01-27 11:43:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341427', 'tblTempVendorCDR_20' ) end [2025-01-27 11:43:39] Production.INFO: ProcessCDR(1,14341427,1,1,2) [2025-01-27 11:43:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:43:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:43:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:43:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:43:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341427', 'tblTempUsageDetail_20' ) start [2025-01-27 11:43:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341427', 'tblTempUsageDetail_20' ) end [2025-01-27 11:43:44] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:43:44] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:43:44] Production.INFO: ==32285== Releasing lock... [2025-01-27 11:43:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:43:44] Production.INFO: 68.5 MB #Memory Used# [2025-01-27 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:44:05 [end_date_ymd] => 2025-01-27 11:44:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:44:05' and `end` < '2025-01-27 11: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-01-27 11:44:27] Production.INFO: count ==5426 [2025-01-27 11:44:29] Production.ERROR: pbx CDR StartTime 2025-01-27 08:44:05 - End Time 2025-01-27 11:44:05 [2025-01-27 11:44:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341432', 'tblTempUsageDetail_20' ) start [2025-01-27 11:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341432', 'tblTempUsageDetail_20' ) end [2025-01-27 11:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341432', 'tblTempVendorCDR_20' ) start [2025-01-27 11:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341432', 'tblTempVendorCDR_20' ) end [2025-01-27 11:44:29] Production.INFO: ProcessCDR(1,14341432,1,1,2) [2025-01-27 11:44:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:44:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:44:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:44:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:44:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341432', 'tblTempUsageDetail_20' ) start [2025-01-27 11:44:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341432', 'tblTempUsageDetail_20' ) end [2025-01-27 11:44:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:44:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:44:34] Production.INFO: ==32370== Releasing lock... [2025-01-27 11:44:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:44:34] Production.INFO: 68.75 MB #Memory Used# [2025-01-27 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:45:05 [end_date_ymd] => 2025-01-27 11:45:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:45:05' and `end` < '2025-01-27 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-01-27 11:45:31] Production.INFO: count ==5433 [2025-01-27 11:45:33] Production.ERROR: pbx CDR StartTime 2025-01-27 08:45:05 - End Time 2025-01-27 11:45:05 [2025-01-27 11:45:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341437', 'tblTempUsageDetail_20' ) start [2025-01-27 11:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341437', 'tblTempUsageDetail_20' ) end [2025-01-27 11:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341437', 'tblTempVendorCDR_20' ) start [2025-01-27 11:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341437', 'tblTempVendorCDR_20' ) end [2025-01-27 11:45:33] Production.INFO: ProcessCDR(1,14341437,1,1,2) [2025-01-27 11:45:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:45:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:45:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:45:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:45:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341437', 'tblTempUsageDetail_20' ) start [2025-01-27 11:45:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341437', 'tblTempUsageDetail_20' ) end [2025-01-27 11:45:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:45:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:45:38] Production.INFO: ==32444== Releasing lock... [2025-01-27 11:45:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:45:38] Production.INFO: 68.75 MB #Memory Used# [2025-01-27 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:46:05 [end_date_ymd] => 2025-01-27 11:46:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:46:05' and `end` < '2025-01-27 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-01-27 11:46:26] Production.INFO: count ==5443 [2025-01-27 11:46:28] Production.ERROR: pbx CDR StartTime 2025-01-27 08:46:05 - End Time 2025-01-27 11:46:05 [2025-01-27 11:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341442', 'tblTempUsageDetail_20' ) start [2025-01-27 11:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341442', 'tblTempUsageDetail_20' ) end [2025-01-27 11:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341442', 'tblTempVendorCDR_20' ) start [2025-01-27 11:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341442', 'tblTempVendorCDR_20' ) end [2025-01-27 11:46:29] Production.INFO: ProcessCDR(1,14341442,1,1,2) [2025-01-27 11:46:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:46:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:46:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:46:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341442', 'tblTempUsageDetail_20' ) start [2025-01-27 11:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341442', 'tblTempUsageDetail_20' ) end [2025-01-27 11:46:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:46:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:46:33] Production.INFO: ==32524== Releasing lock... [2025-01-27 11:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:46:33] Production.INFO: 68.75 MB #Memory Used# [2025-01-27 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:47:06 [end_date_ymd] => 2025-01-27 11:47:06 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:47:06' and `end` < '2025-01-27 11: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-01-27 11:47:24] Production.INFO: count ==5443 [2025-01-27 11:47:27] Production.ERROR: pbx CDR StartTime 2025-01-27 08:47:06 - End Time 2025-01-27 11:47:06 [2025-01-27 11:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341447', 'tblTempUsageDetail_20' ) start [2025-01-27 11:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341447', 'tblTempUsageDetail_20' ) end [2025-01-27 11:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341447', 'tblTempVendorCDR_20' ) start [2025-01-27 11:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341447', 'tblTempVendorCDR_20' ) end [2025-01-27 11:47:27] Production.INFO: ProcessCDR(1,14341447,1,1,2) [2025-01-27 11:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:47:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:47:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341447', 'tblTempUsageDetail_20' ) start [2025-01-27 11:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341447', 'tblTempUsageDetail_20' ) end [2025-01-27 11:47:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:47:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:47:32] Production.INFO: ==32605== Releasing lock... [2025-01-27 11:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:47:32] Production.INFO: 68.75 MB #Memory Used# [2025-01-27 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:48:05 [end_date_ymd] => 2025-01-27 11:48:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:48:05' and `end` < '2025-01-27 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-01-27 11:48:28] Production.INFO: count ==5451 [2025-01-27 11:48:30] Production.ERROR: pbx CDR StartTime 2025-01-27 08:48:05 - End Time 2025-01-27 11:48:05 [2025-01-27 11:48:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341452', 'tblTempUsageDetail_20' ) start [2025-01-27 11:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341452', 'tblTempUsageDetail_20' ) end [2025-01-27 11:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341452', 'tblTempVendorCDR_20' ) start [2025-01-27 11:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341452', 'tblTempVendorCDR_20' ) end [2025-01-27 11:48:30] Production.INFO: ProcessCDR(1,14341452,1,1,2) [2025-01-27 11:48:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:48:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:48:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:48:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341452', 'tblTempUsageDetail_20' ) start [2025-01-27 11:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341452', 'tblTempUsageDetail_20' ) end [2025-01-27 11:48:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:48:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:48:35] Production.INFO: ==32679== Releasing lock... [2025-01-27 11:48:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:48:35] Production.INFO: 68.75 MB #Memory Used# [2025-01-27 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:49:06 [end_date_ymd] => 2025-01-27 11:49:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:49:06' and `end` < '2025-01-27 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-01-27 11:49:33] Production.INFO: count ==5444 [2025-01-27 11:49:36] Production.ERROR: pbx CDR StartTime 2025-01-27 08:49:06 - End Time 2025-01-27 11:49:06 [2025-01-27 11:49:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341457', 'tblTempUsageDetail_20' ) start [2025-01-27 11:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341457', 'tblTempUsageDetail_20' ) end [2025-01-27 11:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341457', 'tblTempVendorCDR_20' ) start [2025-01-27 11:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341457', 'tblTempVendorCDR_20' ) end [2025-01-27 11:49:36] Production.INFO: ProcessCDR(1,14341457,1,1,2) [2025-01-27 11:49:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:49:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:49:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:49:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:49:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341457', 'tblTempUsageDetail_20' ) start [2025-01-27 11:49:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341457', 'tblTempUsageDetail_20' ) end [2025-01-27 11:49:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:49:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:49:41] Production.INFO: ==32767== Releasing lock... [2025-01-27 11:49:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:49:41] Production.INFO: 68.75 MB #Memory Used# [2025-01-27 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:50:05 [end_date_ymd] => 2025-01-27 11:50:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:50:05' and `end` < '2025-01-27 11: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-01-27 11:50:32] Production.INFO: count ==5465 [2025-01-27 11:50:34] Production.ERROR: pbx CDR StartTime 2025-01-27 08:50:05 - End Time 2025-01-27 11:50:05 [2025-01-27 11:50:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341462', 'tblTempUsageDetail_20' ) start [2025-01-27 11:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341462', 'tblTempUsageDetail_20' ) end [2025-01-27 11:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341462', 'tblTempVendorCDR_20' ) start [2025-01-27 11:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341462', 'tblTempVendorCDR_20' ) end [2025-01-27 11:50:34] Production.INFO: ProcessCDR(1,14341462,1,1,2) [2025-01-27 11:50:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:50:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:50:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:50:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:50:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341462', 'tblTempUsageDetail_20' ) start [2025-01-27 11:50:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341462', 'tblTempUsageDetail_20' ) end [2025-01-27 11:50:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:50:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:50:40] Production.INFO: ==402== Releasing lock... [2025-01-27 11:50:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:50:40] Production.INFO: 69 MB #Memory Used# [2025-01-27 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:51:05 [end_date_ymd] => 2025-01-27 11:51:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:51:05' and `end` < '2025-01-27 11: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-01-27 11:51:26] Production.INFO: count ==5507 [2025-01-27 11:51:28] Production.ERROR: pbx CDR StartTime 2025-01-27 08:51:05 - End Time 2025-01-27 11:51:05 [2025-01-27 11:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341467', 'tblTempUsageDetail_20' ) start [2025-01-27 11:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341467', 'tblTempUsageDetail_20' ) end [2025-01-27 11:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341467', 'tblTempVendorCDR_20' ) start [2025-01-27 11:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341467', 'tblTempVendorCDR_20' ) end [2025-01-27 11:51:29] Production.INFO: ProcessCDR(1,14341467,1,1,2) [2025-01-27 11:51:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341467', 'tblTempUsageDetail_20' ) start [2025-01-27 11:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341467', 'tblTempUsageDetail_20' ) end [2025-01-27 11:51:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:51:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:51:34] Production.INFO: ==487== Releasing lock... [2025-01-27 11:51:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:51:34] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:52:05 [end_date_ymd] => 2025-01-27 11:52:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:52:05' and `end` < '2025-01-27 11: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-01-27 11:52:24] Production.INFO: count ==5520 [2025-01-27 11:52:26] Production.ERROR: pbx CDR StartTime 2025-01-27 08:52:05 - End Time 2025-01-27 11:52:05 [2025-01-27 11:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341473', 'tblTempUsageDetail_20' ) start [2025-01-27 11:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341473', 'tblTempUsageDetail_20' ) end [2025-01-27 11:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341473', 'tblTempVendorCDR_20' ) start [2025-01-27 11:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341473', 'tblTempVendorCDR_20' ) end [2025-01-27 11:52:27] Production.INFO: ProcessCDR(1,14341473,1,1,2) [2025-01-27 11:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341473', 'tblTempUsageDetail_20' ) start [2025-01-27 11:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341473', 'tblTempUsageDetail_20' ) end [2025-01-27 11:52:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:52:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:52:32] Production.INFO: ==568== Releasing lock... [2025-01-27 11:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:52:32] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:53:05 [end_date_ymd] => 2025-01-27 11:53:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:53:05' and `end` < '2025-01-27 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-01-27 11:53:32] Production.INFO: count ==5545 [2025-01-27 11:53:34] Production.ERROR: pbx CDR StartTime 2025-01-27 08:53:05 - End Time 2025-01-27 11:53:05 [2025-01-27 11:53:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341478', 'tblTempUsageDetail_20' ) start [2025-01-27 11:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341478', 'tblTempUsageDetail_20' ) end [2025-01-27 11:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341478', 'tblTempVendorCDR_20' ) start [2025-01-27 11:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341478', 'tblTempVendorCDR_20' ) end [2025-01-27 11:53:34] Production.INFO: ProcessCDR(1,14341478,1,1,2) [2025-01-27 11:53:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:53:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:53:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:53:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:53:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341478', 'tblTempUsageDetail_20' ) start [2025-01-27 11:53:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341478', 'tblTempUsageDetail_20' ) end [2025-01-27 11:53:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:53:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:53:39] Production.INFO: ==715== Releasing lock... [2025-01-27 11:53:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:53:39] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:54:05 [end_date_ymd] => 2025-01-27 11:54:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:54:05' and `end` < '2025-01-27 11: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-01-27 11:54:33] Production.INFO: count ==5541 [2025-01-27 11:54:36] Production.ERROR: pbx CDR StartTime 2025-01-27 08:54:05 - End Time 2025-01-27 11:54:05 [2025-01-27 11:54:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341483', 'tblTempUsageDetail_20' ) start [2025-01-27 11:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341483', 'tblTempUsageDetail_20' ) end [2025-01-27 11:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341483', 'tblTempVendorCDR_20' ) start [2025-01-27 11:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341483', 'tblTempVendorCDR_20' ) end [2025-01-27 11:54:36] Production.INFO: ProcessCDR(1,14341483,1,1,2) [2025-01-27 11:54:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:54:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:54:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:54:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:54:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341483', 'tblTempUsageDetail_20' ) start [2025-01-27 11:54:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341483', 'tblTempUsageDetail_20' ) end [2025-01-27 11:54:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:54:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:54:41] Production.INFO: ==800== Releasing lock... [2025-01-27 11:54:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:54:41] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:55:05 [end_date_ymd] => 2025-01-27 11:55:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:55:05' and `end` < '2025-01-27 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-01-27 11:55:35] Production.INFO: count ==5541 [2025-01-27 11:55:37] Production.ERROR: pbx CDR StartTime 2025-01-27 08:55:05 - End Time 2025-01-27 11:55:05 [2025-01-27 11:55:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:55:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341488', 'tblTempUsageDetail_20' ) start [2025-01-27 11:55:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341488', 'tblTempUsageDetail_20' ) end [2025-01-27 11:55:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341488', 'tblTempVendorCDR_20' ) start [2025-01-27 11:55:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341488', 'tblTempVendorCDR_20' ) end [2025-01-27 11:55:38] Production.INFO: ProcessCDR(1,14341488,1,1,2) [2025-01-27 11:55:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:55:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:55:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:55:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:55:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341488', 'tblTempUsageDetail_20' ) start [2025-01-27 11:55:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341488', 'tblTempUsageDetail_20' ) end [2025-01-27 11:55:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:55:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:55:43] Production.INFO: ==879== Releasing lock... [2025-01-27 11:55:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:55:43] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:56:05 [end_date_ymd] => 2025-01-27 11:56:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:56:05' and `end` < '2025-01-27 11: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-01-27 11:56:30] Production.INFO: count ==5574 [2025-01-27 11:56:33] Production.ERROR: pbx CDR StartTime 2025-01-27 08:56:05 - End Time 2025-01-27 11:56:05 [2025-01-27 11:56:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341493', 'tblTempUsageDetail_20' ) start [2025-01-27 11:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341493', 'tblTempUsageDetail_20' ) end [2025-01-27 11:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341493', 'tblTempVendorCDR_20' ) start [2025-01-27 11:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341493', 'tblTempVendorCDR_20' ) end [2025-01-27 11:56:33] Production.INFO: ProcessCDR(1,14341493,1,1,2) [2025-01-27 11:56:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:56:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:56:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:56:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341493', 'tblTempUsageDetail_20' ) start [2025-01-27 11:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341493', 'tblTempUsageDetail_20' ) end [2025-01-27 11:56:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:56:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:56:38] Production.INFO: ==955== Releasing lock... [2025-01-27 11:56:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:56:38] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:57:05 [end_date_ymd] => 2025-01-27 11:57:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:57:05' and `end` < '2025-01-27 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-01-27 11:57:29] Production.INFO: count ==5582 [2025-01-27 11:57:31] Production.ERROR: pbx CDR StartTime 2025-01-27 08:57:05 - End Time 2025-01-27 11:57:05 [2025-01-27 11:57:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341498', 'tblTempUsageDetail_20' ) start [2025-01-27 11:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341498', 'tblTempUsageDetail_20' ) end [2025-01-27 11:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341498', 'tblTempVendorCDR_20' ) start [2025-01-27 11:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341498', 'tblTempVendorCDR_20' ) end [2025-01-27 11:57:31] Production.INFO: ProcessCDR(1,14341498,1,1,2) [2025-01-27 11:57:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:57:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:57:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:57:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341498', 'tblTempUsageDetail_20' ) start [2025-01-27 11:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341498', 'tblTempUsageDetail_20' ) end [2025-01-27 11:57:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:57:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:57:36] Production.INFO: ==1039== Releasing lock... [2025-01-27 11:57:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:57:36] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:58:05 [end_date_ymd] => 2025-01-27 11:58:05 [RateCDR] => 1 ) [2025-01-27 11: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-01-27 08:58:05' and `end` < '2025-01-27 11: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-01-27 11:58:29] Production.INFO: count ==5599 [2025-01-27 11:58:31] Production.ERROR: pbx CDR StartTime 2025-01-27 08:58:05 - End Time 2025-01-27 11:58:05 [2025-01-27 11:58:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341503', 'tblTempUsageDetail_20' ) start [2025-01-27 11:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341503', 'tblTempUsageDetail_20' ) end [2025-01-27 11:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341503', 'tblTempVendorCDR_20' ) start [2025-01-27 11:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341503', 'tblTempVendorCDR_20' ) end [2025-01-27 11:58:31] Production.INFO: ProcessCDR(1,14341503,1,1,2) [2025-01-27 11:58:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:58:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:58:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:58:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:58:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341503', 'tblTempUsageDetail_20' ) start [2025-01-27 11:58:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341503', 'tblTempUsageDetail_20' ) end [2025-01-27 11:58:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:58:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:58:37] Production.INFO: ==1114== Releasing lock... [2025-01-27 11:58:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:58:37] Production.INFO: 70 MB #Memory Used# [2025-01-27 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 08:59:05 [end_date_ymd] => 2025-01-27 11:59:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 08:59:05' and `end` < '2025-01-27 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-01-27 11:59:26] Production.INFO: count ==5603 [2025-01-27 11:59:28] Production.ERROR: pbx CDR StartTime 2025-01-27 08:59:05 - End Time 2025-01-27 11:59:05 [2025-01-27 11:59:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 11:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341508', 'tblTempUsageDetail_20' ) start [2025-01-27 11:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341508', 'tblTempUsageDetail_20' ) end [2025-01-27 11:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341508', 'tblTempVendorCDR_20' ) start [2025-01-27 11:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341508', 'tblTempVendorCDR_20' ) end [2025-01-27 11:59:28] Production.INFO: ProcessCDR(1,14341508,1,1,2) [2025-01-27 11:59:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:59:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 11:59:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:59:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 11:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341508', 'tblTempUsageDetail_20' ) start [2025-01-27 11:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341508', 'tblTempUsageDetail_20' ) end [2025-01-27 11:59:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 11:59:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 11:59:33] Production.INFO: ==1201== Releasing lock... [2025-01-27 11:59:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 11:59:33] Production.INFO: 70 MB #Memory Used# [2025-01-27 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:00:06 [end_date_ymd] => 2025-01-27 12:00:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:00:06' and `end` < '2025-01-27 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-01-27 12:00:22] Production.INFO: count ==5620 [2025-01-27 12:00:24] Production.ERROR: pbx CDR StartTime 2025-01-27 09:00:06 - End Time 2025-01-27 12:00:06 [2025-01-27 12:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341514', 'tblTempUsageDetail_20' ) start [2025-01-27 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341514', 'tblTempUsageDetail_20' ) end [2025-01-27 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341514', 'tblTempVendorCDR_20' ) start [2025-01-27 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341514', 'tblTempVendorCDR_20' ) end [2025-01-27 12:00:25] Production.INFO: ProcessCDR(1,14341514,1,1,2) [2025-01-27 12:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341514', 'tblTempUsageDetail_20' ) start [2025-01-27 12:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341514', 'tblTempUsageDetail_20' ) end [2025-01-27 12:00:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:00:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:00:30] Production.INFO: ==1289== Releasing lock... [2025-01-27 12:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:00:30] Production.INFO: 70.25 MB #Memory Used# [2025-01-27 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:01:05 [end_date_ymd] => 2025-01-27 12:01:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:01:05' and `end` < '2025-01-27 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-01-27 12:01:32] Production.INFO: count ==5702 [2025-01-27 12:01:34] Production.ERROR: pbx CDR StartTime 2025-01-27 09:01:05 - End Time 2025-01-27 12:01:05 [2025-01-27 12:01:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341519', 'tblTempUsageDetail_20' ) start [2025-01-27 12:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341519', 'tblTempUsageDetail_20' ) end [2025-01-27 12:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341519', 'tblTempVendorCDR_20' ) start [2025-01-27 12:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341519', 'tblTempVendorCDR_20' ) end [2025-01-27 12:01:34] Production.INFO: ProcessCDR(1,14341519,1,1,2) [2025-01-27 12:01:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:01:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:01:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:01:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:01:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341519', 'tblTempUsageDetail_20' ) start [2025-01-27 12:01:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341519', 'tblTempUsageDetail_20' ) end [2025-01-27 12:01:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:01:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:01:40] Production.INFO: ==1377== Releasing lock... [2025-01-27 12:01:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:01:40] Production.INFO: 71 MB #Memory Used# [2025-01-27 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:02:05 [end_date_ymd] => 2025-01-27 12:02:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:02:05' and `end` < '2025-01-27 12: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-01-27 12:02:29] Production.INFO: count ==5722 [2025-01-27 12:02:31] Production.ERROR: pbx CDR StartTime 2025-01-27 09:02:05 - End Time 2025-01-27 12:02:05 [2025-01-27 12:02:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341524', 'tblTempUsageDetail_20' ) start [2025-01-27 12:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341524', 'tblTempUsageDetail_20' ) end [2025-01-27 12:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341524', 'tblTempVendorCDR_20' ) start [2025-01-27 12:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341524', 'tblTempVendorCDR_20' ) end [2025-01-27 12:02:31] Production.INFO: ProcessCDR(1,14341524,1,1,2) [2025-01-27 12:02:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:02:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:02:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341524', 'tblTempUsageDetail_20' ) start [2025-01-27 12:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341524', 'tblTempUsageDetail_20' ) end [2025-01-27 12:02:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:02:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:02:36] Production.INFO: ==1460== Releasing lock... [2025-01-27 12:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:02:36] Production.INFO: 71 MB #Memory Used# [2025-01-27 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:03:05 [end_date_ymd] => 2025-01-27 12:03:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:03:05' and `end` < '2025-01-27 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-01-27 12:03:29] Production.INFO: count ==5732 [2025-01-27 12:03:32] Production.ERROR: pbx CDR StartTime 2025-01-27 09:03:05 - End Time 2025-01-27 12:03:05 [2025-01-27 12:03:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341529', 'tblTempUsageDetail_20' ) start [2025-01-27 12:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341529', 'tblTempUsageDetail_20' ) end [2025-01-27 12:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341529', 'tblTempVendorCDR_20' ) start [2025-01-27 12:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341529', 'tblTempVendorCDR_20' ) end [2025-01-27 12:03:32] Production.INFO: ProcessCDR(1,14341529,1,1,2) [2025-01-27 12:03:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:03:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:03:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:03:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:03:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341529', 'tblTempUsageDetail_20' ) start [2025-01-27 12:03:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341529', 'tblTempUsageDetail_20' ) end [2025-01-27 12:03:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:03:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:03:37] Production.INFO: ==1575== Releasing lock... [2025-01-27 12:03:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:03:37] Production.INFO: 71 MB #Memory Used# [2025-01-27 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:04:05 [end_date_ymd] => 2025-01-27 12:04:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:04:05' and `end` < '2025-01-27 12: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-01-27 12:04:34] Production.INFO: count ==5753 [2025-01-27 12:04:37] Production.ERROR: pbx CDR StartTime 2025-01-27 09:04:05 - End Time 2025-01-27 12:04:05 [2025-01-27 12:04:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:04:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341534', 'tblTempUsageDetail_20' ) start [2025-01-27 12:04:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341534', 'tblTempUsageDetail_20' ) end [2025-01-27 12:04:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341534', 'tblTempVendorCDR_20' ) start [2025-01-27 12:04:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341534', 'tblTempVendorCDR_20' ) end [2025-01-27 12:04:37] Production.INFO: ProcessCDR(1,14341534,1,1,2) [2025-01-27 12:04:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:04:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:04:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:04:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:04:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341534', 'tblTempUsageDetail_20' ) start [2025-01-27 12:04:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341534', 'tblTempUsageDetail_20' ) end [2025-01-27 12:04:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:04:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:04:42] Production.INFO: ==1658== Releasing lock... [2025-01-27 12:04:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:04:42] Production.INFO: 71.25 MB #Memory Used# [2025-01-27 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:05:05 [end_date_ymd] => 2025-01-27 12:05:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:05:05' and `end` < '2025-01-27 12: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-01-27 12:05:34] Production.INFO: count ==5758 [2025-01-27 12:05:36] Production.ERROR: pbx CDR StartTime 2025-01-27 09:05:05 - End Time 2025-01-27 12:05:05 [2025-01-27 12:05:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341539', 'tblTempUsageDetail_20' ) start [2025-01-27 12:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341539', 'tblTempUsageDetail_20' ) end [2025-01-27 12:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341539', 'tblTempVendorCDR_20' ) start [2025-01-27 12:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341539', 'tblTempVendorCDR_20' ) end [2025-01-27 12:05:36] Production.INFO: ProcessCDR(1,14341539,1,1,2) [2025-01-27 12:05:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:05:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:05:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:05:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:05:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341539', 'tblTempUsageDetail_20' ) start [2025-01-27 12:05:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341539', 'tblTempUsageDetail_20' ) end [2025-01-27 12:05:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:05:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:05:41] Production.INFO: ==1730== Releasing lock... [2025-01-27 12:05:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:05:41] Production.INFO: 71.25 MB #Memory Used# [2025-01-27 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:06:05 [end_date_ymd] => 2025-01-27 12:06:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:06:05' and `end` < '2025-01-27 12: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-01-27 12:06:38] Production.INFO: count ==5754 [2025-01-27 12:06:40] Production.ERROR: pbx CDR StartTime 2025-01-27 09:06:05 - End Time 2025-01-27 12:06:05 [2025-01-27 12:06:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:06:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341544', 'tblTempUsageDetail_20' ) start [2025-01-27 12:06:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341544', 'tblTempUsageDetail_20' ) end [2025-01-27 12:06:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341544', 'tblTempVendorCDR_20' ) start [2025-01-27 12:06:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341544', 'tblTempVendorCDR_20' ) end [2025-01-27 12:06:40] Production.INFO: ProcessCDR(1,14341544,1,1,2) [2025-01-27 12:06:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:06:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:06:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:06:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:06:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341544', 'tblTempUsageDetail_20' ) start [2025-01-27 12:06:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341544', 'tblTempUsageDetail_20' ) end [2025-01-27 12:06:45] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:06:45] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:06:45] Production.INFO: ==1802== Releasing lock... [2025-01-27 12:06:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:06:45] Production.INFO: 71.5 MB #Memory Used# [2025-01-27 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:07:05 [end_date_ymd] => 2025-01-27 12:07:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:07:05' and `end` < '2025-01-27 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-01-27 12:07:28] Production.INFO: count ==5770 [2025-01-27 12:07:30] Production.ERROR: pbx CDR StartTime 2025-01-27 09:07:05 - End Time 2025-01-27 12:07:05 [2025-01-27 12:07:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341549', 'tblTempUsageDetail_20' ) start [2025-01-27 12:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341549', 'tblTempUsageDetail_20' ) end [2025-01-27 12:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341549', 'tblTempVendorCDR_20' ) start [2025-01-27 12:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341549', 'tblTempVendorCDR_20' ) end [2025-01-27 12:07:30] Production.INFO: ProcessCDR(1,14341549,1,1,2) [2025-01-27 12:07:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:07:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:07:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:07:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341549', 'tblTempUsageDetail_20' ) start [2025-01-27 12:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341549', 'tblTempUsageDetail_20' ) end [2025-01-27 12:07:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:07:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:07:35] Production.INFO: ==1875== Releasing lock... [2025-01-27 12:07:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:07:35] Production.INFO: 71.25 MB #Memory Used# [2025-01-27 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:08:06 [end_date_ymd] => 2025-01-27 12:08:06 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:08:06' and `end` < '2025-01-27 12: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-01-27 12:08:26] Production.INFO: count ==5763 [2025-01-27 12:08:29] Production.ERROR: pbx CDR StartTime 2025-01-27 09:08:06 - End Time 2025-01-27 12:08:06 [2025-01-27 12:08:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341554', 'tblTempUsageDetail_20' ) start [2025-01-27 12:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341554', 'tblTempUsageDetail_20' ) end [2025-01-27 12:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341554', 'tblTempVendorCDR_20' ) start [2025-01-27 12:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341554', 'tblTempVendorCDR_20' ) end [2025-01-27 12:08:29] Production.INFO: ProcessCDR(1,14341554,1,1,2) [2025-01-27 12:08:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:08:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:08:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:08:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341554', 'tblTempUsageDetail_20' ) start [2025-01-27 12:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341554', 'tblTempUsageDetail_20' ) end [2025-01-27 12:08:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:08:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:08:34] Production.INFO: ==1991== Releasing lock... [2025-01-27 12:08:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:08:34] Production.INFO: 71.25 MB #Memory Used# [2025-01-27 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:09:05 [end_date_ymd] => 2025-01-27 12:09:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:09:05' and `end` < '2025-01-27 12: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-01-27 12:09:27] Production.INFO: count ==5771 [2025-01-27 12:09:29] Production.ERROR: pbx CDR StartTime 2025-01-27 09:09:05 - End Time 2025-01-27 12:09:05 [2025-01-27 12:09:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341559', 'tblTempUsageDetail_20' ) start [2025-01-27 12:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341559', 'tblTempUsageDetail_20' ) end [2025-01-27 12:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341559', 'tblTempVendorCDR_20' ) start [2025-01-27 12:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341559', 'tblTempVendorCDR_20' ) end [2025-01-27 12:09:30] Production.INFO: ProcessCDR(1,14341559,1,1,2) [2025-01-27 12:09:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:09:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:09:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:09:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341559', 'tblTempUsageDetail_20' ) start [2025-01-27 12:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341559', 'tblTempUsageDetail_20' ) end [2025-01-27 12:09:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:09:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:09:35] Production.INFO: ==2069== Releasing lock... [2025-01-27 12:09:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:09:35] Production.INFO: 71.25 MB #Memory Used# [2025-01-27 12:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:10:07 [end_date_ymd] => 2025-01-27 12:10:07 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:10:07' and `end` < '2025-01-27 12: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-01-27 12:10:33] Production.INFO: count ==5783 [2025-01-27 12:10:35] Production.ERROR: pbx CDR StartTime 2025-01-27 09:10:07 - End Time 2025-01-27 12:10:07 [2025-01-27 12:10:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341565', 'tblTempUsageDetail_20' ) start [2025-01-27 12:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341565', 'tblTempUsageDetail_20' ) end [2025-01-27 12:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341565', 'tblTempVendorCDR_20' ) start [2025-01-27 12:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341565', 'tblTempVendorCDR_20' ) end [2025-01-27 12:10:35] Production.INFO: ProcessCDR(1,14341565,1,1,2) [2025-01-27 12:10:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:10:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:10:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:10:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:10:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341565', 'tblTempUsageDetail_20' ) start [2025-01-27 12:10:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341565', 'tblTempUsageDetail_20' ) end [2025-01-27 12:10:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:10:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:10:41] Production.INFO: ==2145== Releasing lock... [2025-01-27 12:10:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:10:41] Production.INFO: 71.25 MB #Memory Used# [2025-01-27 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:11:05 [end_date_ymd] => 2025-01-27 12:11:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:11:05' and `end` < '2025-01-27 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-01-27 12:11:24] Production.INFO: count ==5837 [2025-01-27 12:11:26] Production.ERROR: pbx CDR StartTime 2025-01-27 09:11:05 - End Time 2025-01-27 12:11:05 [2025-01-27 12:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341570', 'tblTempUsageDetail_20' ) start [2025-01-27 12:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341570', 'tblTempUsageDetail_20' ) end [2025-01-27 12:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341570', 'tblTempVendorCDR_20' ) start [2025-01-27 12:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341570', 'tblTempVendorCDR_20' ) end [2025-01-27 12:11:27] Production.INFO: ProcessCDR(1,14341570,1,1,2) [2025-01-27 12:11:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341570', 'tblTempUsageDetail_20' ) start [2025-01-27 12:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341570', 'tblTempUsageDetail_20' ) end [2025-01-27 12:11:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:11:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:11:32] Production.INFO: ==2223== Releasing lock... [2025-01-27 12:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:11:32] Production.INFO: 71.75 MB #Memory Used# [2025-01-27 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:12:06 [end_date_ymd] => 2025-01-27 12:12:06 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:12:06' and `end` < '2025-01-27 12: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-01-27 12:12:26] Production.INFO: count ==5836 [2025-01-27 12:12:28] Production.ERROR: pbx CDR StartTime 2025-01-27 09:12:06 - End Time 2025-01-27 12:12:06 [2025-01-27 12:12:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341575', 'tblTempUsageDetail_20' ) start [2025-01-27 12:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341575', 'tblTempUsageDetail_20' ) end [2025-01-27 12:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341575', 'tblTempVendorCDR_20' ) start [2025-01-27 12:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341575', 'tblTempVendorCDR_20' ) end [2025-01-27 12:12:28] Production.INFO: ProcessCDR(1,14341575,1,1,2) [2025-01-27 12:12:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:12:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:12:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341575', 'tblTempUsageDetail_20' ) start [2025-01-27 12:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341575', 'tblTempUsageDetail_20' ) end [2025-01-27 12:12:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:12:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:12:34] Production.INFO: ==2297== Releasing lock... [2025-01-27 12:12:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:12:34] Production.INFO: 71.75 MB #Memory Used# [2025-01-27 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:13:05 [end_date_ymd] => 2025-01-27 12:13:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:13:05' and `end` < '2025-01-27 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-01-27 12:13:36] Production.INFO: count ==5844 [2025-01-27 12:13:38] Production.ERROR: pbx CDR StartTime 2025-01-27 09:13:05 - End Time 2025-01-27 12:13:05 [2025-01-27 12:13:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:13:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341580', 'tblTempUsageDetail_20' ) start [2025-01-27 12:13:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341580', 'tblTempUsageDetail_20' ) end [2025-01-27 12:13:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341580', 'tblTempVendorCDR_20' ) start [2025-01-27 12:13:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341580', 'tblTempVendorCDR_20' ) end [2025-01-27 12:13:38] Production.INFO: ProcessCDR(1,14341580,1,1,2) [2025-01-27 12:13:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:13:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:13:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:13:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:13:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341580', 'tblTempUsageDetail_20' ) start [2025-01-27 12:13:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341580', 'tblTempUsageDetail_20' ) end [2025-01-27 12:13:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:13:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:13:43] Production.INFO: ==2368== Releasing lock... [2025-01-27 12:13:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:13:43] Production.INFO: 71.75 MB #Memory Used# [2025-01-27 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:14:06 [end_date_ymd] => 2025-01-27 12:14:06 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:14:06' and `end` < '2025-01-27 12: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-01-27 12:14:30] Production.INFO: count ==5859 [2025-01-27 12:14:32] Production.ERROR: pbx CDR StartTime 2025-01-27 09:14:06 - End Time 2025-01-27 12:14:06 [2025-01-27 12:14:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:14:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341585', 'tblTempUsageDetail_20' ) start [2025-01-27 12:14:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341585', 'tblTempUsageDetail_20' ) end [2025-01-27 12:14:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341585', 'tblTempVendorCDR_20' ) start [2025-01-27 12:14:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341585', 'tblTempVendorCDR_20' ) end [2025-01-27 12:14:32] Production.INFO: ProcessCDR(1,14341585,1,1,2) [2025-01-27 12:14:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:14:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:14:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:14:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:14:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341585', 'tblTempUsageDetail_20' ) start [2025-01-27 12:14:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341585', 'tblTempUsageDetail_20' ) end [2025-01-27 12:14:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:14:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:14:38] Production.INFO: ==2446== Releasing lock... [2025-01-27 12:14:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:14:38] Production.INFO: 72 MB #Memory Used# [2025-01-27 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:15:05 [end_date_ymd] => 2025-01-27 12:15:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:15:05' and `end` < '2025-01-27 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-01-27 12:15:27] Production.INFO: count ==5875 [2025-01-27 12:15:30] Production.ERROR: pbx CDR StartTime 2025-01-27 09:15:05 - End Time 2025-01-27 12:15:05 [2025-01-27 12:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341590', 'tblTempUsageDetail_20' ) start [2025-01-27 12:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341590', 'tblTempUsageDetail_20' ) end [2025-01-27 12:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341590', 'tblTempVendorCDR_20' ) start [2025-01-27 12:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341590', 'tblTempVendorCDR_20' ) end [2025-01-27 12:15:30] Production.INFO: ProcessCDR(1,14341590,1,1,2) [2025-01-27 12:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341590', 'tblTempUsageDetail_20' ) start [2025-01-27 12:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341590', 'tblTempUsageDetail_20' ) end [2025-01-27 12:15:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:15:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:15:35] Production.INFO: ==2521== Releasing lock... [2025-01-27 12:15:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:15:35] Production.INFO: 72 MB #Memory Used# [2025-01-27 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:16:05 [end_date_ymd] => 2025-01-27 12:16:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:16:05' and `end` < '2025-01-27 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-01-27 12:16:23] Production.INFO: count ==5878 [2025-01-27 12:16:25] Production.ERROR: pbx CDR StartTime 2025-01-27 09:16:05 - End Time 2025-01-27 12:16:05 [2025-01-27 12:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341595', 'tblTempUsageDetail_20' ) start [2025-01-27 12:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341595', 'tblTempUsageDetail_20' ) end [2025-01-27 12:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341595', 'tblTempVendorCDR_20' ) start [2025-01-27 12:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341595', 'tblTempVendorCDR_20' ) end [2025-01-27 12:16:26] Production.INFO: ProcessCDR(1,14341595,1,1,2) [2025-01-27 12:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341595', 'tblTempUsageDetail_20' ) start [2025-01-27 12:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341595', 'tblTempUsageDetail_20' ) end [2025-01-27 12:16:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:16:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:16:31] Production.INFO: ==2594== Releasing lock... [2025-01-27 12:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:16:31] Production.INFO: 72 MB #Memory Used# [2025-01-27 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:17:05 [end_date_ymd] => 2025-01-27 12:17:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:17:05' and `end` < '2025-01-27 12: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-01-27 12:17:19] Production.INFO: count ==5877 [2025-01-27 12:17:22] Production.ERROR: pbx CDR StartTime 2025-01-27 09:17:05 - End Time 2025-01-27 12:17:05 [2025-01-27 12:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341600', 'tblTempUsageDetail_20' ) start [2025-01-27 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341600', 'tblTempUsageDetail_20' ) end [2025-01-27 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341600', 'tblTempVendorCDR_20' ) start [2025-01-27 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341600', 'tblTempVendorCDR_20' ) end [2025-01-27 12:17:22] Production.INFO: ProcessCDR(1,14341600,1,1,2) [2025-01-27 12:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341600', 'tblTempUsageDetail_20' ) start [2025-01-27 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341600', 'tblTempUsageDetail_20' ) end [2025-01-27 12:17:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:17:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:17:26] Production.INFO: ==2668== Releasing lock... [2025-01-27 12:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:17:26] Production.INFO: 72 MB #Memory Used# [2025-01-27 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:18:06 [end_date_ymd] => 2025-01-27 12:18:06 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:18:06' and `end` < '2025-01-27 12: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-01-27 12:18:27] Production.INFO: count ==5884 [2025-01-27 12:18:29] Production.ERROR: pbx CDR StartTime 2025-01-27 09:18:06 - End Time 2025-01-27 12:18:06 [2025-01-27 12:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341605', 'tblTempUsageDetail_20' ) start [2025-01-27 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341605', 'tblTempUsageDetail_20' ) end [2025-01-27 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341605', 'tblTempVendorCDR_20' ) start [2025-01-27 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341605', 'tblTempVendorCDR_20' ) end [2025-01-27 12:18:29] Production.INFO: ProcessCDR(1,14341605,1,1,2) [2025-01-27 12:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:18:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:18:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:18:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341605', 'tblTempUsageDetail_20' ) start [2025-01-27 12:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341605', 'tblTempUsageDetail_20' ) end [2025-01-27 12:18:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:18:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:18:34] Production.INFO: ==2756== Releasing lock... [2025-01-27 12:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:18:34] Production.INFO: 72 MB #Memory Used# [2025-01-27 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:19:05 [end_date_ymd] => 2025-01-27 12:19:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:19:05' and `end` < '2025-01-27 12: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-01-27 12:19:36] Production.INFO: count ==5888 [2025-01-27 12:19:38] Production.ERROR: pbx CDR StartTime 2025-01-27 09:19:05 - End Time 2025-01-27 12:19:05 [2025-01-27 12:19:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:19:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341610', 'tblTempUsageDetail_20' ) start [2025-01-27 12:19:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341610', 'tblTempUsageDetail_20' ) end [2025-01-27 12:19:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341610', 'tblTempVendorCDR_20' ) start [2025-01-27 12:19:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341610', 'tblTempVendorCDR_20' ) end [2025-01-27 12:19:39] Production.INFO: ProcessCDR(1,14341610,1,1,2) [2025-01-27 12:19:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:19:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:19:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:19:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:19:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341610', 'tblTempUsageDetail_20' ) start [2025-01-27 12:19:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341610', 'tblTempUsageDetail_20' ) end [2025-01-27 12:19:44] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:19:44] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:19:44] Production.INFO: ==2834== Releasing lock... [2025-01-27 12:19:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:19:44] Production.INFO: 72.25 MB #Memory Used# [2025-01-27 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:20:06 [end_date_ymd] => 2025-01-27 12:20:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:20:06' and `end` < '2025-01-27 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-01-27 12:20:35] Production.INFO: count ==5904 [2025-01-27 12:20:37] Production.ERROR: pbx CDR StartTime 2025-01-27 09:20:06 - End Time 2025-01-27 12:20:06 [2025-01-27 12:20:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:20:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341616', 'tblTempUsageDetail_20' ) start [2025-01-27 12:20:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341616', 'tblTempUsageDetail_20' ) end [2025-01-27 12:20:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341616', 'tblTempVendorCDR_20' ) start [2025-01-27 12:20:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341616', 'tblTempVendorCDR_20' ) end [2025-01-27 12:20:38] Production.INFO: ProcessCDR(1,14341616,1,1,2) [2025-01-27 12:20:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:20:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:20:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:20:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:20:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341616', 'tblTempUsageDetail_20' ) start [2025-01-27 12:20:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341616', 'tblTempUsageDetail_20' ) end [2025-01-27 12:20:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:20:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:20:43] Production.INFO: ==2910== Releasing lock... [2025-01-27 12:20:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:20:43] Production.INFO: 72.25 MB #Memory Used# [2025-01-27 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:21:05 [end_date_ymd] => 2025-01-27 12:21:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:21:05' and `end` < '2025-01-27 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-01-27 12:21:27] Production.INFO: count ==5916 [2025-01-27 12:21:29] Production.ERROR: pbx CDR StartTime 2025-01-27 09:21:05 - End Time 2025-01-27 12:21:05 [2025-01-27 12:21:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341621', 'tblTempUsageDetail_20' ) start [2025-01-27 12:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341621', 'tblTempUsageDetail_20' ) end [2025-01-27 12:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341621', 'tblTempVendorCDR_20' ) start [2025-01-27 12:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341621', 'tblTempVendorCDR_20' ) end [2025-01-27 12:21:29] Production.INFO: ProcessCDR(1,14341621,1,1,2) [2025-01-27 12:21:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:21:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:21:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:21:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341621', 'tblTempUsageDetail_20' ) start [2025-01-27 12:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341621', 'tblTempUsageDetail_20' ) end [2025-01-27 12:21:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:21:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:21:34] Production.INFO: ==2988== Releasing lock... [2025-01-27 12:21:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:21:34] Production.INFO: 72.25 MB #Memory Used# [2025-01-27 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:22:06 [end_date_ymd] => 2025-01-27 12:22:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:22:06' and `end` < '2025-01-27 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-01-27 12:22:27] Production.INFO: count ==5914 [2025-01-27 12:22:30] Production.ERROR: pbx CDR StartTime 2025-01-27 09:22:06 - End Time 2025-01-27 12:22:06 [2025-01-27 12:22:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341626', 'tblTempUsageDetail_20' ) start [2025-01-27 12:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341626', 'tblTempUsageDetail_20' ) end [2025-01-27 12:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341626', 'tblTempVendorCDR_20' ) start [2025-01-27 12:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341626', 'tblTempVendorCDR_20' ) end [2025-01-27 12:22:30] Production.INFO: ProcessCDR(1,14341626,1,1,2) [2025-01-27 12:22:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:22:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:22:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:22:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341626', 'tblTempUsageDetail_20' ) start [2025-01-27 12:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341626', 'tblTempUsageDetail_20' ) end [2025-01-27 12:22:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:22:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:22:35] Production.INFO: ==3064== Releasing lock... [2025-01-27 12:22:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:22:35] Production.INFO: 72.25 MB #Memory Used# [2025-01-27 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:23:05 [end_date_ymd] => 2025-01-27 12:23:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:23:05' and `end` < '2025-01-27 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-01-27 12:23:24] Production.INFO: count ==5906 [2025-01-27 12:23:27] Production.ERROR: pbx CDR StartTime 2025-01-27 09:23:05 - End Time 2025-01-27 12:23:05 [2025-01-27 12:23:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341631', 'tblTempUsageDetail_20' ) start [2025-01-27 12:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341631', 'tblTempUsageDetail_20' ) end [2025-01-27 12:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341631', 'tblTempVendorCDR_20' ) start [2025-01-27 12:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341631', 'tblTempVendorCDR_20' ) end [2025-01-27 12:23:27] Production.INFO: ProcessCDR(1,14341631,1,1,2) [2025-01-27 12:23:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341631', 'tblTempUsageDetail_20' ) start [2025-01-27 12:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341631', 'tblTempUsageDetail_20' ) end [2025-01-27 12:23:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:23:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:23:32] Production.INFO: ==3180== Releasing lock... [2025-01-27 12:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:23:32] Production.INFO: 72.25 MB #Memory Used# [2025-01-27 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:24:06 [end_date_ymd] => 2025-01-27 12:24:06 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:24:06' and `end` < '2025-01-27 12: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-01-27 12:24:28] Production.INFO: count ==5907 [2025-01-27 12:24:30] Production.ERROR: pbx CDR StartTime 2025-01-27 09:24:06 - End Time 2025-01-27 12:24:06 [2025-01-27 12:24:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341636', 'tblTempUsageDetail_20' ) start [2025-01-27 12:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341636', 'tblTempUsageDetail_20' ) end [2025-01-27 12:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341636', 'tblTempVendorCDR_20' ) start [2025-01-27 12:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341636', 'tblTempVendorCDR_20' ) end [2025-01-27 12:24:31] Production.INFO: ProcessCDR(1,14341636,1,1,2) [2025-01-27 12:24:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:24:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:24:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:24:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341636', 'tblTempUsageDetail_20' ) start [2025-01-27 12:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341636', 'tblTempUsageDetail_20' ) end [2025-01-27 12:24:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:24:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:24:35] Production.INFO: ==3250== Releasing lock... [2025-01-27 12:24:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:24:35] Production.INFO: 72.25 MB #Memory Used# [2025-01-27 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:25:05 [end_date_ymd] => 2025-01-27 12:25:05 [RateCDR] => 1 ) [2025-01-27 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 09:25:05' and `end` < '2025-01-27 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-27 12:25:30] Production.INFO: count ==5901 [2025-01-27 12:25:32] Production.ERROR: pbx CDR StartTime 2025-01-27 09:25:05 - End Time 2025-01-27 12:25:05 [2025-01-27 12:25:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341641', 'tblTempUsageDetail_20' ) start [2025-01-27 12:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341641', 'tblTempUsageDetail_20' ) end [2025-01-27 12:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341641', 'tblTempVendorCDR_20' ) start [2025-01-27 12:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341641', 'tblTempVendorCDR_20' ) end [2025-01-27 12:25:33] Production.INFO: ProcessCDR(1,14341641,1,1,2) [2025-01-27 12:25:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:25:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:25:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:25:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341641', 'tblTempUsageDetail_20' ) start [2025-01-27 12:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341641', 'tblTempUsageDetail_20' ) end [2025-01-27 12:25:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:25:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:25:38] Production.INFO: ==3327== Releasing lock... [2025-01-27 12:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:25:38] Production.INFO: 72.25 MB #Memory Used# [2025-01-27 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:26:06 [end_date_ymd] => 2025-01-27 12:26:06 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:26:06' and `end` < '2025-01-27 12: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-01-27 12:26:33] Production.INFO: count ==5913 [2025-01-27 12:26:36] Production.ERROR: pbx CDR StartTime 2025-01-27 09:26:06 - End Time 2025-01-27 12:26:06 [2025-01-27 12:26:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341646', 'tblTempUsageDetail_20' ) start [2025-01-27 12:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341646', 'tblTempUsageDetail_20' ) end [2025-01-27 12:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341646', 'tblTempVendorCDR_20' ) start [2025-01-27 12:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341646', 'tblTempVendorCDR_20' ) end [2025-01-27 12:26:36] Production.INFO: ProcessCDR(1,14341646,1,1,2) [2025-01-27 12:26:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:26:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:26:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:26:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:26:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341646', 'tblTempUsageDetail_20' ) start [2025-01-27 12:26:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341646', 'tblTempUsageDetail_20' ) end [2025-01-27 12:26:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:26:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:26:41] Production.INFO: ==3402== Releasing lock... [2025-01-27 12:26:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:26:41] Production.INFO: 72.25 MB #Memory Used# [2025-01-27 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:27:05 [end_date_ymd] => 2025-01-27 12:27:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:27:05' and `end` < '2025-01-27 12: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-01-27 12:27:34] Production.INFO: count ==5926 [2025-01-27 12:27:37] Production.ERROR: pbx CDR StartTime 2025-01-27 09:27:05 - End Time 2025-01-27 12:27:05 [2025-01-27 12:27:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341651', 'tblTempUsageDetail_20' ) start [2025-01-27 12:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341651', 'tblTempUsageDetail_20' ) end [2025-01-27 12:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341651', 'tblTempVendorCDR_20' ) start [2025-01-27 12:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341651', 'tblTempVendorCDR_20' ) end [2025-01-27 12:27:37] Production.INFO: ProcessCDR(1,14341651,1,1,2) [2025-01-27 12:27:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:27:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:27:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:27:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:27:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341651', 'tblTempUsageDetail_20' ) start [2025-01-27 12:27:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341651', 'tblTempUsageDetail_20' ) end [2025-01-27 12:27:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:27:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:27:42] Production.INFO: ==3481== Releasing lock... [2025-01-27 12:27:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:27:42] Production.INFO: 72.5 MB #Memory Used# [2025-01-27 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:28:06 [end_date_ymd] => 2025-01-27 12:28:06 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:28:06' and `end` < '2025-01-27 12: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-01-27 12:28:37] Production.INFO: count ==5932 [2025-01-27 12:28:39] Production.ERROR: pbx CDR StartTime 2025-01-27 09:28:06 - End Time 2025-01-27 12:28:06 [2025-01-27 12:28:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341656', 'tblTempUsageDetail_20' ) start [2025-01-27 12:28:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341656', 'tblTempUsageDetail_20' ) end [2025-01-27 12:28:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341656', 'tblTempVendorCDR_20' ) start [2025-01-27 12:28:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341656', 'tblTempVendorCDR_20' ) end [2025-01-27 12:28:40] Production.INFO: ProcessCDR(1,14341656,1,1,2) [2025-01-27 12:28:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:28:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:28:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:28:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:28:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341656', 'tblTempUsageDetail_20' ) start [2025-01-27 12:28:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341656', 'tblTempUsageDetail_20' ) end [2025-01-27 12:28:45] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:28:45] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:28:45] Production.INFO: ==3561== Releasing lock... [2025-01-27 12:28:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:28:45] Production.INFO: 72.5 MB #Memory Used# [2025-01-27 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:29:06 [end_date_ymd] => 2025-01-27 12:29:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:29:06' and `end` < '2025-01-27 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-01-27 12:29:34] Production.INFO: count ==5929 [2025-01-27 12:29:37] Production.ERROR: pbx CDR StartTime 2025-01-27 09:29:06 - End Time 2025-01-27 12:29:06 [2025-01-27 12:29:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:29:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341661', 'tblTempUsageDetail_20' ) start [2025-01-27 12:29:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341661', 'tblTempUsageDetail_20' ) end [2025-01-27 12:29:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341661', 'tblTempVendorCDR_20' ) start [2025-01-27 12:29:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341661', 'tblTempVendorCDR_20' ) end [2025-01-27 12:29:37] Production.INFO: ProcessCDR(1,14341661,1,1,2) [2025-01-27 12:29:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:29:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:29:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:29:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:29:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341661', 'tblTempUsageDetail_20' ) start [2025-01-27 12:29:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341661', 'tblTempUsageDetail_20' ) end [2025-01-27 12:29:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:29:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:29:42] Production.INFO: ==3635== Releasing lock... [2025-01-27 12:29:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:29:42] Production.INFO: 72.5 MB #Memory Used# [2025-01-27 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:30:06 [end_date_ymd] => 2025-01-27 12:30:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:30:06' and `end` < '2025-01-27 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-01-27 12:30:29] Production.INFO: count ==5934 [2025-01-27 12:30:31] Production.ERROR: pbx CDR StartTime 2025-01-27 09:30:06 - End Time 2025-01-27 12:30:06 [2025-01-27 12:30:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341667', 'tblTempUsageDetail_20' ) start [2025-01-27 12:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341667', 'tblTempUsageDetail_20' ) end [2025-01-27 12:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341667', 'tblTempVendorCDR_20' ) start [2025-01-27 12:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341667', 'tblTempVendorCDR_20' ) end [2025-01-27 12:30:32] Production.INFO: ProcessCDR(1,14341667,1,1,2) [2025-01-27 12:30:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:30:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:30:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:30:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341667', 'tblTempUsageDetail_20' ) start [2025-01-27 12:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341667', 'tblTempUsageDetail_20' ) end [2025-01-27 12:30:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:30:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:30:37] Production.INFO: ==3713== Releasing lock... [2025-01-27 12:30:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:30:37] Production.INFO: 72.5 MB #Memory Used# [2025-01-27 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:31:05 [end_date_ymd] => 2025-01-27 12:31:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:31:05' and `end` < '2025-01-27 12: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-01-27 12:31:29] Production.INFO: count ==5995 [2025-01-27 12:31:32] Production.ERROR: pbx CDR StartTime 2025-01-27 09:31:05 - End Time 2025-01-27 12:31:05 [2025-01-27 12:31:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341672', 'tblTempUsageDetail_20' ) start [2025-01-27 12:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341672', 'tblTempUsageDetail_20' ) end [2025-01-27 12:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341672', 'tblTempVendorCDR_20' ) start [2025-01-27 12:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341672', 'tblTempVendorCDR_20' ) end [2025-01-27 12:31:32] Production.INFO: ProcessCDR(1,14341672,1,1,2) [2025-01-27 12:31:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:31:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:31:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:31:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341672', 'tblTempUsageDetail_20' ) start [2025-01-27 12:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341672', 'tblTempUsageDetail_20' ) end [2025-01-27 12:31:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:31:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:31:37] Production.INFO: ==3789== Releasing lock... [2025-01-27 12:31:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:31:37] Production.INFO: 73 MB #Memory Used# [2025-01-27 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:32:05 [end_date_ymd] => 2025-01-27 12:32:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:32:05' and `end` < '2025-01-27 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-01-27 12:32:30] Production.INFO: count ==6003 [2025-01-27 12:32:32] Production.ERROR: pbx CDR StartTime 2025-01-27 09:32:05 - End Time 2025-01-27 12:32:05 [2025-01-27 12:32:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:32:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341677', 'tblTempUsageDetail_20' ) start [2025-01-27 12:32:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341677', 'tblTempUsageDetail_20' ) end [2025-01-27 12:32:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341677', 'tblTempVendorCDR_20' ) start [2025-01-27 12:32:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341677', 'tblTempVendorCDR_20' ) end [2025-01-27 12:32:33] Production.INFO: ProcessCDR(1,14341677,1,1,2) [2025-01-27 12:32:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:32:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:32:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:32:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:32:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341677', 'tblTempUsageDetail_20' ) start [2025-01-27 12:32:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341677', 'tblTempUsageDetail_20' ) end [2025-01-27 12:32:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:32:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:32:38] Production.INFO: ==3862== Releasing lock... [2025-01-27 12:32:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:32:38] Production.INFO: 73 MB #Memory Used# [2025-01-27 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:33:05 [end_date_ymd] => 2025-01-27 12:33:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:33:05' and `end` < '2025-01-27 12: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-01-27 12:33:25] Production.INFO: count ==6005 [2025-01-27 12:33:27] Production.ERROR: pbx CDR StartTime 2025-01-27 09:33:05 - End Time 2025-01-27 12:33:05 [2025-01-27 12:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341682', 'tblTempUsageDetail_20' ) start [2025-01-27 12:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341682', 'tblTempUsageDetail_20' ) end [2025-01-27 12:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341682', 'tblTempVendorCDR_20' ) start [2025-01-27 12:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341682', 'tblTempVendorCDR_20' ) end [2025-01-27 12:33:27] Production.INFO: ProcessCDR(1,14341682,1,1,2) [2025-01-27 12:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:33:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:33:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341682', 'tblTempUsageDetail_20' ) start [2025-01-27 12:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341682', 'tblTempUsageDetail_20' ) end [2025-01-27 12:33:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:33:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:33:32] Production.INFO: ==3938== Releasing lock... [2025-01-27 12:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:33:32] Production.INFO: 73 MB #Memory Used# [2025-01-27 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:34:05 [end_date_ymd] => 2025-01-27 12:34:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:34:05' and `end` < '2025-01-27 12: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-01-27 12:34:33] Production.INFO: count ==6012 [2025-01-27 12:34:35] Production.ERROR: pbx CDR StartTime 2025-01-27 09:34:05 - End Time 2025-01-27 12:34:05 [2025-01-27 12:34:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:34:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341687', 'tblTempUsageDetail_20' ) start [2025-01-27 12:34:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341687', 'tblTempUsageDetail_20' ) end [2025-01-27 12:34:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341687', 'tblTempVendorCDR_20' ) start [2025-01-27 12:34:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341687', 'tblTempVendorCDR_20' ) end [2025-01-27 12:34:35] Production.INFO: ProcessCDR(1,14341687,1,1,2) [2025-01-27 12:34:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:34:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:34:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:34:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:34:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341687', 'tblTempUsageDetail_20' ) start [2025-01-27 12:34:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341687', 'tblTempUsageDetail_20' ) end [2025-01-27 12:34:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:34:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:34:40] Production.INFO: ==4017== Releasing lock... [2025-01-27 12:34:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:34:40] Production.INFO: 73 MB #Memory Used# [2025-01-27 12:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:35:04 [end_date_ymd] => 2025-01-27 12:35:04 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:35:04' and `end` < '2025-01-27 12: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-01-27 12:35:30] Production.INFO: count ==6026 [2025-01-27 12:35:32] Production.ERROR: pbx CDR StartTime 2025-01-27 09:35:04 - End Time 2025-01-27 12:35:04 [2025-01-27 12:35:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341692', 'tblTempUsageDetail_20' ) start [2025-01-27 12:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341692', 'tblTempUsageDetail_20' ) end [2025-01-27 12:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341692', 'tblTempVendorCDR_20' ) start [2025-01-27 12:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341692', 'tblTempVendorCDR_20' ) end [2025-01-27 12:35:33] Production.INFO: ProcessCDR(1,14341692,1,1,2) [2025-01-27 12:35:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:35:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341692', 'tblTempUsageDetail_20' ) start [2025-01-27 12:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341692', 'tblTempUsageDetail_20' ) end [2025-01-27 12:35:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:35:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:35:38] Production.INFO: ==4143== Releasing lock... [2025-01-27 12:35:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:35:38] Production.INFO: 73.25 MB #Memory Used# [2025-01-27 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:36:05 [end_date_ymd] => 2025-01-27 12:36:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:36:05' and `end` < '2025-01-27 12: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-01-27 12:36:33] Production.INFO: count ==6034 [2025-01-27 12:36:35] Production.ERROR: pbx CDR StartTime 2025-01-27 09:36:05 - End Time 2025-01-27 12:36:05 [2025-01-27 12:36:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:36:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341697', 'tblTempUsageDetail_20' ) start [2025-01-27 12:36:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341697', 'tblTempUsageDetail_20' ) end [2025-01-27 12:36:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341697', 'tblTempVendorCDR_20' ) start [2025-01-27 12:36:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341697', 'tblTempVendorCDR_20' ) end [2025-01-27 12:36:36] Production.INFO: ProcessCDR(1,14341697,1,1,2) [2025-01-27 12:36:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:36:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:36:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:36:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:36:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341697', 'tblTempUsageDetail_20' ) start [2025-01-27 12:36:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341697', 'tblTempUsageDetail_20' ) end [2025-01-27 12:36:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:36:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:36:41] Production.INFO: ==4273== Releasing lock... [2025-01-27 12:36:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:36:41] Production.INFO: 73.25 MB #Memory Used# [2025-01-27 12:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:37:04 [end_date_ymd] => 2025-01-27 12:37:04 [RateCDR] => 1 ) [2025-01-27 12:37: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-01-27 09:37:04' and `end` < '2025-01-27 12:37: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-01-27 12:37:30] Production.INFO: count ==6040 [2025-01-27 12:37:32] Production.ERROR: pbx CDR StartTime 2025-01-27 09:37:04 - End Time 2025-01-27 12:37:04 [2025-01-27 12:37:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341702', 'tblTempUsageDetail_20' ) start [2025-01-27 12:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341702', 'tblTempUsageDetail_20' ) end [2025-01-27 12:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341702', 'tblTempVendorCDR_20' ) start [2025-01-27 12:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341702', 'tblTempVendorCDR_20' ) end [2025-01-27 12:37:32] Production.INFO: ProcessCDR(1,14341702,1,1,2) [2025-01-27 12:37:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:37:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:37:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:37:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:37:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341702', 'tblTempUsageDetail_20' ) start [2025-01-27 12:37:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341702', 'tblTempUsageDetail_20' ) end [2025-01-27 12:37:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:37:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:37:37] Production.INFO: ==4405== Releasing lock... [2025-01-27 12:37:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:37:37] Production.INFO: 73.25 MB #Memory Used# [2025-01-27 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:38:05 [end_date_ymd] => 2025-01-27 12:38:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:38:05' and `end` < '2025-01-27 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-01-27 12:38:31] Production.INFO: count ==6038 [2025-01-27 12:38:34] Production.ERROR: pbx CDR StartTime 2025-01-27 09:38:05 - End Time 2025-01-27 12:38:05 [2025-01-27 12:38:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341707', 'tblTempUsageDetail_20' ) start [2025-01-27 12:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341707', 'tblTempUsageDetail_20' ) end [2025-01-27 12:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341707', 'tblTempVendorCDR_20' ) start [2025-01-27 12:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341707', 'tblTempVendorCDR_20' ) end [2025-01-27 12:38:34] Production.INFO: ProcessCDR(1,14341707,1,1,2) [2025-01-27 12:38:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:38:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:38:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:38:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:38:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341707', 'tblTempUsageDetail_20' ) start [2025-01-27 12:38:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341707', 'tblTempUsageDetail_20' ) end [2025-01-27 12:38:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:38:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:38:39] Production.INFO: ==4542== Releasing lock... [2025-01-27 12:38:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:38:39] Production.INFO: 73.25 MB #Memory Used# [2025-01-27 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:39:05 [end_date_ymd] => 2025-01-27 12:39:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:39:05' and `end` < '2025-01-27 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-01-27 12:39:29] Production.INFO: count ==6024 [2025-01-27 12:39:31] Production.ERROR: pbx CDR StartTime 2025-01-27 09:39:05 - End Time 2025-01-27 12:39:05 [2025-01-27 12:39:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341712', 'tblTempUsageDetail_20' ) start [2025-01-27 12:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341712', 'tblTempUsageDetail_20' ) end [2025-01-27 12:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341712', 'tblTempVendorCDR_20' ) start [2025-01-27 12:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341712', 'tblTempVendorCDR_20' ) end [2025-01-27 12:39:32] Production.INFO: ProcessCDR(1,14341712,1,1,2) [2025-01-27 12:39:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:39:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:39:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:39:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:39:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341712', 'tblTempUsageDetail_20' ) start [2025-01-27 12:39:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341712', 'tblTempUsageDetail_20' ) end [2025-01-27 12:39:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:39:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:39:37] Production.INFO: ==4727== Releasing lock... [2025-01-27 12:39:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:39:37] Production.INFO: 73.25 MB #Memory Used# [2025-01-27 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:40:06 [end_date_ymd] => 2025-01-27 12:40:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:40:06' and `end` < '2025-01-27 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-01-27 12:40:28] Production.INFO: count ==6032 [2025-01-27 12:40:31] Production.ERROR: pbx CDR StartTime 2025-01-27 09:40:06 - End Time 2025-01-27 12:40:06 [2025-01-27 12:40:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341718', 'tblTempUsageDetail_20' ) start [2025-01-27 12:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341718', 'tblTempUsageDetail_20' ) end [2025-01-27 12:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341718', 'tblTempVendorCDR_20' ) start [2025-01-27 12:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341718', 'tblTempVendorCDR_20' ) end [2025-01-27 12:40:31] Production.INFO: ProcessCDR(1,14341718,1,1,2) [2025-01-27 12:40:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:40:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:40:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:40:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341718', 'tblTempUsageDetail_20' ) start [2025-01-27 12:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341718', 'tblTempUsageDetail_20' ) end [2025-01-27 12:40:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:40:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:40:36] Production.INFO: ==4859== Releasing lock... [2025-01-27 12:40:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:40:36] Production.INFO: 73.25 MB #Memory Used# [2025-01-27 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:41:05 [end_date_ymd] => 2025-01-27 12:41:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:41:05' and `end` < '2025-01-27 12: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-01-27 12:41:28] Production.INFO: count ==6076 [2025-01-27 12:41:31] Production.ERROR: pbx CDR StartTime 2025-01-27 09:41:05 - End Time 2025-01-27 12:41:05 [2025-01-27 12:41:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341723', 'tblTempUsageDetail_20' ) start [2025-01-27 12:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341723', 'tblTempUsageDetail_20' ) end [2025-01-27 12:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341723', 'tblTempVendorCDR_20' ) start [2025-01-27 12:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341723', 'tblTempVendorCDR_20' ) end [2025-01-27 12:41:31] Production.INFO: ProcessCDR(1,14341723,1,1,2) [2025-01-27 12:41:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:41:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:41:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:41:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:41:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341723', 'tblTempUsageDetail_20' ) start [2025-01-27 12:41:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341723', 'tblTempUsageDetail_20' ) end [2025-01-27 12:41:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:41:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:41:36] Production.INFO: ==4990== Releasing lock... [2025-01-27 12:41:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:41:36] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:42:05 [end_date_ymd] => 2025-01-27 12:42:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:42:05' and `end` < '2025-01-27 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-01-27 12:42:34] Production.INFO: count ==6083 [2025-01-27 12:42:36] Production.ERROR: pbx CDR StartTime 2025-01-27 09:42:05 - End Time 2025-01-27 12:42:05 [2025-01-27 12:42:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:42:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341728', 'tblTempUsageDetail_20' ) start [2025-01-27 12:42:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341728', 'tblTempUsageDetail_20' ) end [2025-01-27 12:42:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341728', 'tblTempVendorCDR_20' ) start [2025-01-27 12:42:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341728', 'tblTempVendorCDR_20' ) end [2025-01-27 12:42:36] Production.INFO: ProcessCDR(1,14341728,1,1,2) [2025-01-27 12:42:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:42:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:42:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:42:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:42:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341728', 'tblTempUsageDetail_20' ) start [2025-01-27 12:42:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341728', 'tblTempUsageDetail_20' ) end [2025-01-27 12:42:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:42:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:42:41] Production.INFO: ==5123== Releasing lock... [2025-01-27 12:42:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:42:41] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:43:06 [end_date_ymd] => 2025-01-27 12:43:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:43:06' and `end` < '2025-01-27 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-01-27 12:43:28] Production.INFO: count ==6080 [2025-01-27 12:43:31] Production.ERROR: pbx CDR StartTime 2025-01-27 09:43:06 - End Time 2025-01-27 12:43:06 [2025-01-27 12:43:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341733', 'tblTempUsageDetail_20' ) start [2025-01-27 12:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341733', 'tblTempUsageDetail_20' ) end [2025-01-27 12:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341733', 'tblTempVendorCDR_20' ) start [2025-01-27 12:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341733', 'tblTempVendorCDR_20' ) end [2025-01-27 12:43:31] Production.INFO: ProcessCDR(1,14341733,1,1,2) [2025-01-27 12:43:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:43:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:43:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:43:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:43:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341733', 'tblTempUsageDetail_20' ) start [2025-01-27 12:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341733', 'tblTempUsageDetail_20' ) end [2025-01-27 12:43:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:43:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:43:36] Production.INFO: ==5250== Releasing lock... [2025-01-27 12:43:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:43:36] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:44:05 [end_date_ymd] => 2025-01-27 12:44:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:44:05' and `end` < '2025-01-27 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-01-27 12:44:27] Production.INFO: count ==6091 [2025-01-27 12:44:29] Production.ERROR: pbx CDR StartTime 2025-01-27 09:44:05 - End Time 2025-01-27 12:44:05 [2025-01-27 12:44:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341738', 'tblTempUsageDetail_20' ) start [2025-01-27 12:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341738', 'tblTempUsageDetail_20' ) end [2025-01-27 12:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341738', 'tblTempVendorCDR_20' ) start [2025-01-27 12:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341738', 'tblTempVendorCDR_20' ) end [2025-01-27 12:44:29] Production.INFO: ProcessCDR(1,14341738,1,1,2) [2025-01-27 12:44:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:44:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:44:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:44:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:44:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341738', 'tblTempUsageDetail_20' ) start [2025-01-27 12:44:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341738', 'tblTempUsageDetail_20' ) end [2025-01-27 12:44:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:44:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:44:34] Production.INFO: ==5383== Releasing lock... [2025-01-27 12:44:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:44:34] Production.INFO: 73.75 MB #Memory Used# [2025-01-27 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:45:05 [end_date_ymd] => 2025-01-27 12:45:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:45:05' and `end` < '2025-01-27 12: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-01-27 12:45:28] Production.INFO: count ==6079 [2025-01-27 12:45:30] Production.ERROR: pbx CDR StartTime 2025-01-27 09:45:05 - End Time 2025-01-27 12:45:05 [2025-01-27 12:45:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341743', 'tblTempUsageDetail_20' ) start [2025-01-27 12:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341743', 'tblTempUsageDetail_20' ) end [2025-01-27 12:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341743', 'tblTempVendorCDR_20' ) start [2025-01-27 12:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341743', 'tblTempVendorCDR_20' ) end [2025-01-27 12:45:31] Production.INFO: ProcessCDR(1,14341743,1,1,2) [2025-01-27 12:45:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:45:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:45:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:45:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341743', 'tblTempUsageDetail_20' ) start [2025-01-27 12:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341743', 'tblTempUsageDetail_20' ) end [2025-01-27 12:45:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:45:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:45:36] Production.INFO: ==5526== Releasing lock... [2025-01-27 12:45:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:45:36] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:46:05 [end_date_ymd] => 2025-01-27 12:46:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:46:05' and `end` < '2025-01-27 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-01-27 12:46:33] Production.INFO: count ==6074 [2025-01-27 12:46:35] Production.ERROR: pbx CDR StartTime 2025-01-27 09:46:05 - End Time 2025-01-27 12:46:05 [2025-01-27 12:46:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:46:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341748', 'tblTempUsageDetail_20' ) start [2025-01-27 12:46:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341748', 'tblTempUsageDetail_20' ) end [2025-01-27 12:46:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341748', 'tblTempVendorCDR_20' ) start [2025-01-27 12:46:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341748', 'tblTempVendorCDR_20' ) end [2025-01-27 12:46:36] Production.INFO: ProcessCDR(1,14341748,1,1,2) [2025-01-27 12:46:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:46:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:46:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:46:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:46:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341748', 'tblTempUsageDetail_20' ) start [2025-01-27 12:46:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341748', 'tblTempUsageDetail_20' ) end [2025-01-27 12:46:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:46:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:46:40] Production.INFO: ==5663== Releasing lock... [2025-01-27 12:46:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:46:40] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:47:05 [end_date_ymd] => 2025-01-27 12:47:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:47:05' and `end` < '2025-01-27 12: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-01-27 12:47:30] Production.INFO: count ==6075 [2025-01-27 12:47:32] Production.ERROR: pbx CDR StartTime 2025-01-27 09:47:05 - End Time 2025-01-27 12:47:05 [2025-01-27 12:47:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341753', 'tblTempUsageDetail_20' ) start [2025-01-27 12:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341753', 'tblTempUsageDetail_20' ) end [2025-01-27 12:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341753', 'tblTempVendorCDR_20' ) start [2025-01-27 12:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341753', 'tblTempVendorCDR_20' ) end [2025-01-27 12:47:33] Production.INFO: ProcessCDR(1,14341753,1,1,2) [2025-01-27 12:47:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:47:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:47:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:47:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:47:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341753', 'tblTempUsageDetail_20' ) start [2025-01-27 12:47:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341753', 'tblTempUsageDetail_20' ) end [2025-01-27 12:47:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:47:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:47:38] Production.INFO: ==5791== Releasing lock... [2025-01-27 12:47:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:47:38] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:48:05 [end_date_ymd] => 2025-01-27 12:48:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:48:05' and `end` < '2025-01-27 12: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-01-27 12:48:34] Production.INFO: count ==6071 [2025-01-27 12:48:36] Production.ERROR: pbx CDR StartTime 2025-01-27 09:48:05 - End Time 2025-01-27 12:48:05 [2025-01-27 12:48:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:48:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341758', 'tblTempUsageDetail_20' ) start [2025-01-27 12:48:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341758', 'tblTempUsageDetail_20' ) end [2025-01-27 12:48:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341758', 'tblTempVendorCDR_20' ) start [2025-01-27 12:48:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341758', 'tblTempVendorCDR_20' ) end [2025-01-27 12:48:37] Production.INFO: ProcessCDR(1,14341758,1,1,2) [2025-01-27 12:48:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:48:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:48:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:48:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:48:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341758', 'tblTempUsageDetail_20' ) start [2025-01-27 12:48:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341758', 'tblTempUsageDetail_20' ) end [2025-01-27 12:48:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:48:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:48:41] Production.INFO: ==5925== Releasing lock... [2025-01-27 12:48:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:48:41] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:49:05 [end_date_ymd] => 2025-01-27 12:49:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:49:05' and `end` < '2025-01-27 12: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-01-27 12:49:35] Production.INFO: count ==6066 [2025-01-27 12:49:38] Production.ERROR: pbx CDR StartTime 2025-01-27 09:49:05 - End Time 2025-01-27 12:49:05 [2025-01-27 12:49:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341763', 'tblTempUsageDetail_20' ) start [2025-01-27 12:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341763', 'tblTempUsageDetail_20' ) end [2025-01-27 12:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341763', 'tblTempVendorCDR_20' ) start [2025-01-27 12:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341763', 'tblTempVendorCDR_20' ) end [2025-01-27 12:49:38] Production.INFO: ProcessCDR(1,14341763,1,1,2) [2025-01-27 12:49:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:49:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:49:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:49:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:49:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341763', 'tblTempUsageDetail_20' ) start [2025-01-27 12:49:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341763', 'tblTempUsageDetail_20' ) end [2025-01-27 12:49:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:49:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:49:43] Production.INFO: ==6060== Releasing lock... [2025-01-27 12:49:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:49:43] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:50:06 [end_date_ymd] => 2025-01-27 12:50:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:50:06' and `end` < '2025-01-27 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-01-27 12:50:32] Production.INFO: count ==6055 [2025-01-27 12:50:34] Production.ERROR: pbx CDR StartTime 2025-01-27 09:50:06 - End Time 2025-01-27 12:50:06 [2025-01-27 12:50:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341768', 'tblTempUsageDetail_20' ) start [2025-01-27 12:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341768', 'tblTempUsageDetail_20' ) end [2025-01-27 12:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341768', 'tblTempVendorCDR_20' ) start [2025-01-27 12:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341768', 'tblTempVendorCDR_20' ) end [2025-01-27 12:50:35] Production.INFO: ProcessCDR(1,14341768,1,1,2) [2025-01-27 12:50:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:50:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:50:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:50:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341768', 'tblTempUsageDetail_20' ) start [2025-01-27 12:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341768', 'tblTempUsageDetail_20' ) end [2025-01-27 12:50:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:50:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:50:40] Production.INFO: ==6200== Releasing lock... [2025-01-27 12:50:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:50:40] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:51:05 [end_date_ymd] => 2025-01-27 12:51:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:51:05' and `end` < '2025-01-27 12: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-01-27 12:51:29] Production.INFO: count ==6030 [2025-01-27 12:51:32] Production.ERROR: pbx CDR StartTime 2025-01-27 09:51:05 - End Time 2025-01-27 12:51:05 [2025-01-27 12:51:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341774', 'tblTempUsageDetail_20' ) start [2025-01-27 12:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341774', 'tblTempUsageDetail_20' ) end [2025-01-27 12:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341774', 'tblTempVendorCDR_20' ) start [2025-01-27 12:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341774', 'tblTempVendorCDR_20' ) end [2025-01-27 12:51:32] Production.INFO: ProcessCDR(1,14341774,1,1,2) [2025-01-27 12:51:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:51:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:51:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:51:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341774', 'tblTempUsageDetail_20' ) start [2025-01-27 12:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341774', 'tblTempUsageDetail_20' ) end [2025-01-27 12:51:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:51:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:51:37] Production.INFO: ==6340== Releasing lock... [2025-01-27 12:51:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:51:37] Production.INFO: 73.25 MB #Memory Used# [2025-01-27 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:52:05 [end_date_ymd] => 2025-01-27 12:52:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:52:05' and `end` < '2025-01-27 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-01-27 12:52:27] Production.INFO: count ==6027 [2025-01-27 12:52:29] Production.ERROR: pbx CDR StartTime 2025-01-27 09:52:05 - End Time 2025-01-27 12:52:05 [2025-01-27 12:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341779', 'tblTempUsageDetail_20' ) start [2025-01-27 12:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341779', 'tblTempUsageDetail_20' ) end [2025-01-27 12:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341779', 'tblTempVendorCDR_20' ) start [2025-01-27 12:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341779', 'tblTempVendorCDR_20' ) end [2025-01-27 12:52:29] Production.INFO: ProcessCDR(1,14341779,1,1,2) [2025-01-27 12:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341779', 'tblTempUsageDetail_20' ) start [2025-01-27 12:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341779', 'tblTempUsageDetail_20' ) end [2025-01-27 12:52:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:52:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:52:35] Production.INFO: ==6477== Releasing lock... [2025-01-27 12:52:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:52:35] Production.INFO: 73.25 MB #Memory Used# [2025-01-27 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:53:05 [end_date_ymd] => 2025-01-27 12:53:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:53:05' and `end` < '2025-01-27 12: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-01-27 12:53:26] Production.INFO: count ==6025 [2025-01-27 12:53:28] Production.ERROR: pbx CDR StartTime 2025-01-27 09:53:05 - End Time 2025-01-27 12:53:05 [2025-01-27 12:53:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341784', 'tblTempUsageDetail_20' ) start [2025-01-27 12:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341784', 'tblTempUsageDetail_20' ) end [2025-01-27 12:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341784', 'tblTempVendorCDR_20' ) start [2025-01-27 12:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341784', 'tblTempVendorCDR_20' ) end [2025-01-27 12:53:28] Production.INFO: ProcessCDR(1,14341784,1,1,2) [2025-01-27 12:53:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:53:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:53:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:53:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341784', 'tblTempUsageDetail_20' ) start [2025-01-27 12:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341784', 'tblTempUsageDetail_20' ) end [2025-01-27 12:53:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:53:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:53:33] Production.INFO: ==6607== Releasing lock... [2025-01-27 12:53:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:53:33] Production.INFO: 73.25 MB #Memory Used# [2025-01-27 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:54:05 [end_date_ymd] => 2025-01-27 12:54:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:54:05' and `end` < '2025-01-27 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-01-27 12:54:24] Production.INFO: count ==5987 [2025-01-27 12:54:26] Production.ERROR: pbx CDR StartTime 2025-01-27 09:54:05 - End Time 2025-01-27 12:54:05 [2025-01-27 12:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341789', 'tblTempUsageDetail_20' ) start [2025-01-27 12:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341789', 'tblTempUsageDetail_20' ) end [2025-01-27 12:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341789', 'tblTempVendorCDR_20' ) start [2025-01-27 12:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341789', 'tblTempVendorCDR_20' ) end [2025-01-27 12:54:26] Production.INFO: ProcessCDR(1,14341789,1,1,2) [2025-01-27 12:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341789', 'tblTempUsageDetail_20' ) start [2025-01-27 12:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341789', 'tblTempUsageDetail_20' ) end [2025-01-27 12:54:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:54:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:54:31] Production.INFO: ==6794== Releasing lock... [2025-01-27 12:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:54:31] Production.INFO: 73 MB #Memory Used# [2025-01-27 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:55:05 [end_date_ymd] => 2025-01-27 12:55:05 [RateCDR] => 1 ) [2025-01-27 12: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-01-27 09:55:05' and `end` < '2025-01-27 12: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-01-27 12:55:24] Production.INFO: count ==5988 [2025-01-27 12:55:27] Production.ERROR: pbx CDR StartTime 2025-01-27 09:55:05 - End Time 2025-01-27 12:55:05 [2025-01-27 12:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341794', 'tblTempUsageDetail_20' ) start [2025-01-27 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341794', 'tblTempUsageDetail_20' ) end [2025-01-27 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341794', 'tblTempVendorCDR_20' ) start [2025-01-27 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341794', 'tblTempVendorCDR_20' ) end [2025-01-27 12:55:27] Production.INFO: ProcessCDR(1,14341794,1,1,2) [2025-01-27 12:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341794', 'tblTempUsageDetail_20' ) start [2025-01-27 12:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341794', 'tblTempUsageDetail_20' ) end [2025-01-27 12:55:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:55:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:55:32] Production.INFO: ==6925== Releasing lock... [2025-01-27 12:55:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:55:32] Production.INFO: 73 MB #Memory Used# [2025-01-27 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:56:06 [end_date_ymd] => 2025-01-27 12:56:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:56:06' and `end` < '2025-01-27 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-01-27 12:56:28] Production.INFO: count ==6013 [2025-01-27 12:56:31] Production.ERROR: pbx CDR StartTime 2025-01-27 09:56:06 - End Time 2025-01-27 12:56:06 [2025-01-27 12:56:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341799', 'tblTempUsageDetail_20' ) start [2025-01-27 12:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341799', 'tblTempUsageDetail_20' ) end [2025-01-27 12:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341799', 'tblTempVendorCDR_20' ) start [2025-01-27 12:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341799', 'tblTempVendorCDR_20' ) end [2025-01-27 12:56:31] Production.INFO: ProcessCDR(1,14341799,1,1,2) [2025-01-27 12:56:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:56:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:56:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:56:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:56:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341799', 'tblTempUsageDetail_20' ) start [2025-01-27 12:56:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341799', 'tblTempUsageDetail_20' ) end [2025-01-27 12:56:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:56:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:56:36] Production.INFO: ==7058== Releasing lock... [2025-01-27 12:56:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:56:36] Production.INFO: 73 MB #Memory Used# [2025-01-27 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:57:05 [end_date_ymd] => 2025-01-27 12:57:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:57:05' and `end` < '2025-01-27 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-01-27 12:57:27] Production.INFO: count ==6020 [2025-01-27 12:57:30] Production.ERROR: pbx CDR StartTime 2025-01-27 09:57:05 - End Time 2025-01-27 12:57:05 [2025-01-27 12:57:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341804', 'tblTempUsageDetail_20' ) start [2025-01-27 12:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341804', 'tblTempUsageDetail_20' ) end [2025-01-27 12:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341804', 'tblTempVendorCDR_20' ) start [2025-01-27 12:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341804', 'tblTempVendorCDR_20' ) end [2025-01-27 12:57:30] Production.INFO: ProcessCDR(1,14341804,1,1,2) [2025-01-27 12:57:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:57:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:57:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:57:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341804', 'tblTempUsageDetail_20' ) start [2025-01-27 12:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341804', 'tblTempUsageDetail_20' ) end [2025-01-27 12:57:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:57:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:57:35] Production.INFO: ==7194== Releasing lock... [2025-01-27 12:57:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:57:35] Production.INFO: 73.25 MB #Memory Used# [2025-01-27 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:58:05 [end_date_ymd] => 2025-01-27 12:58:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:58:05' and `end` < '2025-01-27 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-01-27 12:58:31] Production.INFO: count ==6021 [2025-01-27 12:58:33] Production.ERROR: pbx CDR StartTime 2025-01-27 09:58:05 - End Time 2025-01-27 12:58:05 [2025-01-27 12:58:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:58:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341809', 'tblTempUsageDetail_20' ) start [2025-01-27 12:58:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341809', 'tblTempUsageDetail_20' ) end [2025-01-27 12:58:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341809', 'tblTempVendorCDR_20' ) start [2025-01-27 12:58:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341809', 'tblTempVendorCDR_20' ) end [2025-01-27 12:58:33] Production.INFO: ProcessCDR(1,14341809,1,1,2) [2025-01-27 12:58:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:58:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:58:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:58:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:58:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341809', 'tblTempUsageDetail_20' ) start [2025-01-27 12:58:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341809', 'tblTempUsageDetail_20' ) end [2025-01-27 12:58:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:58:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:58:39] Production.INFO: ==7330== Releasing lock... [2025-01-27 12:58:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:58:39] Production.INFO: 73.25 MB #Memory Used# [2025-01-27 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 09:59:05 [end_date_ymd] => 2025-01-27 12:59:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 09:59:05' and `end` < '2025-01-27 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-01-27 12:59:26] Production.INFO: count ==6019 [2025-01-27 12:59:29] Production.ERROR: pbx CDR StartTime 2025-01-27 09:59:05 - End Time 2025-01-27 12:59:05 [2025-01-27 12:59:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 12:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341814', 'tblTempUsageDetail_20' ) start [2025-01-27 12:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341814', 'tblTempUsageDetail_20' ) end [2025-01-27 12:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341814', 'tblTempVendorCDR_20' ) start [2025-01-27 12:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341814', 'tblTempVendorCDR_20' ) end [2025-01-27 12:59:29] Production.INFO: ProcessCDR(1,14341814,1,1,2) [2025-01-27 12:59:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:59:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 12:59:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:59:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 12:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341814', 'tblTempUsageDetail_20' ) start [2025-01-27 12:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341814', 'tblTempUsageDetail_20' ) end [2025-01-27 12:59:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 12:59:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 12:59:35] Production.INFO: ==7461== Releasing lock... [2025-01-27 12:59:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 12:59:35] Production.INFO: 73.25 MB #Memory Used# [2025-01-27 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:00:06 [end_date_ymd] => 2025-01-27 13:00:06 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:00:06' and `end` < '2025-01-27 13: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-01-27 13:00:31] Production.INFO: count ==6024 [2025-01-27 13:00:33] Production.ERROR: pbx CDR StartTime 2025-01-27 10:00:06 - End Time 2025-01-27 13:00:06 [2025-01-27 13:00:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341819', 'tblTempUsageDetail_20' ) start [2025-01-27 13:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341819', 'tblTempUsageDetail_20' ) end [2025-01-27 13:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341819', 'tblTempVendorCDR_20' ) start [2025-01-27 13:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341819', 'tblTempVendorCDR_20' ) end [2025-01-27 13:00:34] Production.INFO: ProcessCDR(1,14341819,1,1,2) [2025-01-27 13:00:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:00:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:00:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:00:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341819', 'tblTempUsageDetail_20' ) start [2025-01-27 13:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341819', 'tblTempUsageDetail_20' ) end [2025-01-27 13:00:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:00:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:00:39] Production.INFO: ==7594== Releasing lock... [2025-01-27 13:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:00:39] Production.INFO: 73.25 MB #Memory Used# [2025-01-27 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:01:05 [end_date_ymd] => 2025-01-27 13:01:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:01:05' and `end` < '2025-01-27 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-01-27 13:01:37] Production.INFO: count ==6033 [2025-01-27 13:01:40] Production.ERROR: pbx CDR StartTime 2025-01-27 10:01:05 - End Time 2025-01-27 13:01:05 [2025-01-27 13:01:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:01:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341825', 'tblTempUsageDetail_20' ) start [2025-01-27 13:01:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341825', 'tblTempUsageDetail_20' ) end [2025-01-27 13:01:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341825', 'tblTempVendorCDR_20' ) start [2025-01-27 13:01:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341825', 'tblTempVendorCDR_20' ) end [2025-01-27 13:01:40] Production.INFO: ProcessCDR(1,14341825,1,1,2) [2025-01-27 13:01:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:01:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:01:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:01:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:01:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341825', 'tblTempUsageDetail_20' ) start [2025-01-27 13:01:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341825', 'tblTempUsageDetail_20' ) end [2025-01-27 13:01:46] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:01:46] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:01:46] Production.INFO: ==7737== Releasing lock... [2025-01-27 13:01:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:01:46] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:02:06 [end_date_ymd] => 2025-01-27 13:02:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:02:06' and `end` < '2025-01-27 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-01-27 13:02:32] Production.INFO: count ==6037 [2025-01-27 13:02:35] Production.ERROR: pbx CDR StartTime 2025-01-27 10:02:06 - End Time 2025-01-27 13:02:06 [2025-01-27 13:02:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341830', 'tblTempUsageDetail_20' ) start [2025-01-27 13:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341830', 'tblTempUsageDetail_20' ) end [2025-01-27 13:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341830', 'tblTempVendorCDR_20' ) start [2025-01-27 13:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341830', 'tblTempVendorCDR_20' ) end [2025-01-27 13:02:35] Production.INFO: ProcessCDR(1,14341830,1,1,2) [2025-01-27 13:02:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:02:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:02:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:02:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341830', 'tblTempUsageDetail_20' ) start [2025-01-27 13:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341830', 'tblTempUsageDetail_20' ) end [2025-01-27 13:02:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:02:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:02:41] Production.INFO: ==7866== Releasing lock... [2025-01-27 13:02:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:02:41] Production.INFO: 73.25 MB #Memory Used# [2025-01-27 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:03:05 [end_date_ymd] => 2025-01-27 13:03:05 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:03:05' and `end` < '2025-01-27 13: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-01-27 13:03:34] Production.INFO: count ==6041 [2025-01-27 13:03:37] Production.ERROR: pbx CDR StartTime 2025-01-27 10:03:05 - End Time 2025-01-27 13:03:05 [2025-01-27 13:03:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:03:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341835', 'tblTempUsageDetail_20' ) start [2025-01-27 13:03:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341835', 'tblTempUsageDetail_20' ) end [2025-01-27 13:03:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341835', 'tblTempVendorCDR_20' ) start [2025-01-27 13:03:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341835', 'tblTempVendorCDR_20' ) end [2025-01-27 13:03:37] Production.INFO: ProcessCDR(1,14341835,1,1,2) [2025-01-27 13:03:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:03:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:03:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:03:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:03:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341835', 'tblTempUsageDetail_20' ) start [2025-01-27 13:03:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341835', 'tblTempUsageDetail_20' ) end [2025-01-27 13:03:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:03:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:03:42] Production.INFO: ==8003== Releasing lock... [2025-01-27 13:03:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:03:42] Production.INFO: 73.25 MB #Memory Used# [2025-01-27 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:04:06 [end_date_ymd] => 2025-01-27 13:04:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:04:06' and `end` < '2025-01-27 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-01-27 13:04:32] Production.INFO: count ==6024 [2025-01-27 13:04:34] Production.ERROR: pbx CDR StartTime 2025-01-27 10:04:06 - End Time 2025-01-27 13:04:06 [2025-01-27 13:04:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341840', 'tblTempUsageDetail_20' ) start [2025-01-27 13:04:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341840', 'tblTempUsageDetail_20' ) end [2025-01-27 13:04:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341840', 'tblTempVendorCDR_20' ) start [2025-01-27 13:04:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341840', 'tblTempVendorCDR_20' ) end [2025-01-27 13:04:35] Production.INFO: ProcessCDR(1,14341840,1,1,2) [2025-01-27 13:04:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:04:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:04:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:04:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:04:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341840', 'tblTempUsageDetail_20' ) start [2025-01-27 13:04:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341840', 'tblTempUsageDetail_20' ) end [2025-01-27 13:04:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:04:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:04:40] Production.INFO: ==8143== Releasing lock... [2025-01-27 13:04:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:04:40] Production.INFO: 73.25 MB #Memory Used# [2025-01-27 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:05:05 [end_date_ymd] => 2025-01-27 13:05:05 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:05:05' and `end` < '2025-01-27 13: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-01-27 13:05:29] Production.INFO: count ==6046 [2025-01-27 13:05:31] Production.ERROR: pbx CDR StartTime 2025-01-27 10:05:05 - End Time 2025-01-27 13:05:05 [2025-01-27 13:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341845', 'tblTempUsageDetail_20' ) start [2025-01-27 13:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341845', 'tblTempUsageDetail_20' ) end [2025-01-27 13:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341845', 'tblTempVendorCDR_20' ) start [2025-01-27 13:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341845', 'tblTempVendorCDR_20' ) end [2025-01-27 13:05:32] Production.INFO: ProcessCDR(1,14341845,1,1,2) [2025-01-27 13:05:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:05:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341845', 'tblTempUsageDetail_20' ) start [2025-01-27 13:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341845', 'tblTempUsageDetail_20' ) end [2025-01-27 13:05:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:05:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:05:37] Production.INFO: ==8272== Releasing lock... [2025-01-27 13:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:05:37] Production.INFO: 73.25 MB #Memory Used# [2025-01-27 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:06:05 [end_date_ymd] => 2025-01-27 13:06:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:06:05' and `end` < '2025-01-27 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-01-27 13:06:29] Production.INFO: count ==6034 [2025-01-27 13:06:32] Production.ERROR: pbx CDR StartTime 2025-01-27 10:06:05 - End Time 2025-01-27 13:06:05 [2025-01-27 13:06:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341850', 'tblTempUsageDetail_20' ) start [2025-01-27 13:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341850', 'tblTempUsageDetail_20' ) end [2025-01-27 13:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341850', 'tblTempVendorCDR_20' ) start [2025-01-27 13:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341850', 'tblTempVendorCDR_20' ) end [2025-01-27 13:06:32] Production.INFO: ProcessCDR(1,14341850,1,1,2) [2025-01-27 13:06:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:06:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:06:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:06:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:06:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341850', 'tblTempUsageDetail_20' ) start [2025-01-27 13:06:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341850', 'tblTempUsageDetail_20' ) end [2025-01-27 13:06:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:06:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:06:37] Production.INFO: ==8401== Releasing lock... [2025-01-27 13:06:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:06:37] Production.INFO: 73.25 MB #Memory Used# [2025-01-27 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:07:05 [end_date_ymd] => 2025-01-27 13:07:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:07:05' and `end` < '2025-01-27 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-01-27 13:07:27] Production.INFO: count ==6053 [2025-01-27 13:07:30] Production.ERROR: pbx CDR StartTime 2025-01-27 10:07:05 - End Time 2025-01-27 13:07:05 [2025-01-27 13:07:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341855', 'tblTempUsageDetail_20' ) start [2025-01-27 13:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341855', 'tblTempUsageDetail_20' ) end [2025-01-27 13:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341855', 'tblTempVendorCDR_20' ) start [2025-01-27 13:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341855', 'tblTempVendorCDR_20' ) end [2025-01-27 13:07:30] Production.INFO: ProcessCDR(1,14341855,1,1,2) [2025-01-27 13:07:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:07:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:07:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341855', 'tblTempUsageDetail_20' ) start [2025-01-27 13:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341855', 'tblTempUsageDetail_20' ) end [2025-01-27 13:07:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:07:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:07:35] Production.INFO: ==8531== Releasing lock... [2025-01-27 13:07:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:07:35] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:08:05 [end_date_ymd] => 2025-01-27 13:08:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:08:05' and `end` < '2025-01-27 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-01-27 13:08:34] Production.INFO: count ==6050 [2025-01-27 13:08:37] Production.ERROR: pbx CDR StartTime 2025-01-27 10:08:05 - End Time 2025-01-27 13:08:05 [2025-01-27 13:08:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:08:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341860', 'tblTempUsageDetail_20' ) start [2025-01-27 13:08:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341860', 'tblTempUsageDetail_20' ) end [2025-01-27 13:08:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341860', 'tblTempVendorCDR_20' ) start [2025-01-27 13:08:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341860', 'tblTempVendorCDR_20' ) end [2025-01-27 13:08:38] Production.INFO: ProcessCDR(1,14341860,1,1,2) [2025-01-27 13:08:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:08:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:08:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:08:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:08:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341860', 'tblTempUsageDetail_20' ) start [2025-01-27 13:08:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341860', 'tblTempUsageDetail_20' ) end [2025-01-27 13:08:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:08:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:08:43] Production.INFO: ==8661== Releasing lock... [2025-01-27 13:08:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:08:43] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:09:05 [end_date_ymd] => 2025-01-27 13:09:05 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:09:05' and `end` < '2025-01-27 13: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-01-27 13:09:33] Production.INFO: count ==6068 [2025-01-27 13:09:36] Production.ERROR: pbx CDR StartTime 2025-01-27 10:09:05 - End Time 2025-01-27 13:09:05 [2025-01-27 13:09:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:09:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341865', 'tblTempUsageDetail_20' ) start [2025-01-27 13:09:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341865', 'tblTempUsageDetail_20' ) end [2025-01-27 13:09:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341865', 'tblTempVendorCDR_20' ) start [2025-01-27 13:09:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341865', 'tblTempVendorCDR_20' ) end [2025-01-27 13:09:36] Production.INFO: ProcessCDR(1,14341865,1,1,2) [2025-01-27 13:09:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:09:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:09:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:09:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:09:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341865', 'tblTempUsageDetail_20' ) start [2025-01-27 13:09:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341865', 'tblTempUsageDetail_20' ) end [2025-01-27 13:09:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:09:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:09:41] Production.INFO: ==8788== Releasing lock... [2025-01-27 13:09:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:09:41] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:10:06 [end_date_ymd] => 2025-01-27 13:10:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:10:06' and `end` < '2025-01-27 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-01-27 13:10:36] Production.INFO: count ==6074 [2025-01-27 13:10:39] Production.ERROR: pbx CDR StartTime 2025-01-27 10:10:06 - End Time 2025-01-27 13:10:06 [2025-01-27 13:10:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:10:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341871', 'tblTempUsageDetail_20' ) start [2025-01-27 13:10:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341871', 'tblTempUsageDetail_20' ) end [2025-01-27 13:10:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341871', 'tblTempVendorCDR_20' ) start [2025-01-27 13:10:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341871', 'tblTempVendorCDR_20' ) end [2025-01-27 13:10:39] Production.INFO: ProcessCDR(1,14341871,1,1,2) [2025-01-27 13:10:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:10:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:10:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:10:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:10:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341871', 'tblTempUsageDetail_20' ) start [2025-01-27 13:10:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341871', 'tblTempUsageDetail_20' ) end [2025-01-27 13:10:44] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:10:44] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:10:44] Production.INFO: ==8965== Releasing lock... [2025-01-27 13:10:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:10:44] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:11:05 [end_date_ymd] => 2025-01-27 13:11:05 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:11:05' and `end` < '2025-01-27 13: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-01-27 13:11:30] Production.INFO: count ==6077 [2025-01-27 13:11:32] Production.ERROR: pbx CDR StartTime 2025-01-27 10:11:05 - End Time 2025-01-27 13:11:05 [2025-01-27 13:11:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341876', 'tblTempUsageDetail_20' ) start [2025-01-27 13:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341876', 'tblTempUsageDetail_20' ) end [2025-01-27 13:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341876', 'tblTempVendorCDR_20' ) start [2025-01-27 13:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341876', 'tblTempVendorCDR_20' ) end [2025-01-27 13:11:32] Production.INFO: ProcessCDR(1,14341876,1,1,2) [2025-01-27 13:11:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:11:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:11:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:11:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:11:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341876', 'tblTempUsageDetail_20' ) start [2025-01-27 13:11:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341876', 'tblTempUsageDetail_20' ) end [2025-01-27 13:11:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:11:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:11:37] Production.INFO: ==9115== Releasing lock... [2025-01-27 13:11:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:11:37] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:12:05 [end_date_ymd] => 2025-01-27 13:12:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:12:05' and `end` < '2025-01-27 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-01-27 13:12:35] Production.INFO: count ==6074 [2025-01-27 13:12:38] Production.ERROR: pbx CDR StartTime 2025-01-27 10:12:05 - End Time 2025-01-27 13:12:05 [2025-01-27 13:12:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:12:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341881', 'tblTempUsageDetail_20' ) start [2025-01-27 13:12:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341881', 'tblTempUsageDetail_20' ) end [2025-01-27 13:12:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341881', 'tblTempVendorCDR_20' ) start [2025-01-27 13:12:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341881', 'tblTempVendorCDR_20' ) end [2025-01-27 13:12:38] Production.INFO: ProcessCDR(1,14341881,1,1,2) [2025-01-27 13:12:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:12:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:12:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:12:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:12:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341881', 'tblTempUsageDetail_20' ) start [2025-01-27 13:12:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341881', 'tblTempUsageDetail_20' ) end [2025-01-27 13:12:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:12:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:12:43] Production.INFO: ==9250== Releasing lock... [2025-01-27 13:12:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:12:43] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:13:06 [end_date_ymd] => 2025-01-27 13:13:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:13:06' and `end` < '2025-01-27 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-01-27 13:13:35] Production.INFO: count ==6072 [2025-01-27 13:13:37] Production.ERROR: pbx CDR StartTime 2025-01-27 10:13:06 - End Time 2025-01-27 13:13:06 [2025-01-27 13:13:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:13:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341886', 'tblTempUsageDetail_20' ) start [2025-01-27 13:13:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341886', 'tblTempUsageDetail_20' ) end [2025-01-27 13:13:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341886', 'tblTempVendorCDR_20' ) start [2025-01-27 13:13:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341886', 'tblTempVendorCDR_20' ) end [2025-01-27 13:13:37] Production.INFO: ProcessCDR(1,14341886,1,1,2) [2025-01-27 13:13:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:13:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:13:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:13:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:13:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341886', 'tblTempUsageDetail_20' ) start [2025-01-27 13:13:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341886', 'tblTempUsageDetail_20' ) end [2025-01-27 13:13:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:13:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:13:43] Production.INFO: ==9392== Releasing lock... [2025-01-27 13:13:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:13:43] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 13:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:14:04 [end_date_ymd] => 2025-01-27 13:14:04 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:14:04' and `end` < '2025-01-27 13: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-01-27 13:14:30] Production.INFO: count ==6071 [2025-01-27 13:14:32] Production.ERROR: pbx CDR StartTime 2025-01-27 10:14:04 - End Time 2025-01-27 13:14:04 [2025-01-27 13:14:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:14:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341891', 'tblTempUsageDetail_20' ) start [2025-01-27 13:14:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341891', 'tblTempUsageDetail_20' ) end [2025-01-27 13:14:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341891', 'tblTempVendorCDR_20' ) start [2025-01-27 13:14:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341891', 'tblTempVendorCDR_20' ) end [2025-01-27 13:14:32] Production.INFO: ProcessCDR(1,14341891,1,1,2) [2025-01-27 13:14:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:14:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:14:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:14:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:14:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341891', 'tblTempUsageDetail_20' ) start [2025-01-27 13:14:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341891', 'tblTempUsageDetail_20' ) end [2025-01-27 13:14:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:14:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:14:38] Production.INFO: ==9521== Releasing lock... [2025-01-27 13:14:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:14:38] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:15:05 [end_date_ymd] => 2025-01-27 13:15:05 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:15:05' and `end` < '2025-01-27 13: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-01-27 13:15:27] Production.INFO: count ==6054 [2025-01-27 13:15:30] Production.ERROR: pbx CDR StartTime 2025-01-27 10:15:05 - End Time 2025-01-27 13:15:05 [2025-01-27 13:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341896', 'tblTempUsageDetail_20' ) start [2025-01-27 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341896', 'tblTempUsageDetail_20' ) end [2025-01-27 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341896', 'tblTempVendorCDR_20' ) start [2025-01-27 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341896', 'tblTempVendorCDR_20' ) end [2025-01-27 13:15:30] Production.INFO: ProcessCDR(1,14341896,1,1,2) [2025-01-27 13:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341896', 'tblTempUsageDetail_20' ) start [2025-01-27 13:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341896', 'tblTempUsageDetail_20' ) end [2025-01-27 13:15:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:15:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:15:35] Production.INFO: ==9661== Releasing lock... [2025-01-27 13:15:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:15:35] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:16:05 [end_date_ymd] => 2025-01-27 13:16:05 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:16:05' and `end` < '2025-01-27 13: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-01-27 13:16:30] Production.INFO: count ==6075 [2025-01-27 13:16:33] Production.ERROR: pbx CDR StartTime 2025-01-27 10:16:05 - End Time 2025-01-27 13:16:05 [2025-01-27 13:16:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341901', 'tblTempUsageDetail_20' ) start [2025-01-27 13:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341901', 'tblTempUsageDetail_20' ) end [2025-01-27 13:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341901', 'tblTempVendorCDR_20' ) start [2025-01-27 13:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341901', 'tblTempVendorCDR_20' ) end [2025-01-27 13:16:33] Production.INFO: ProcessCDR(1,14341901,1,1,2) [2025-01-27 13:16:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:16:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:16:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:16:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:16:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341901', 'tblTempUsageDetail_20' ) start [2025-01-27 13:16:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341901', 'tblTempUsageDetail_20' ) end [2025-01-27 13:16:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:16:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:16:39] Production.INFO: ==9802== Releasing lock... [2025-01-27 13:16:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:16:39] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:17:06 [end_date_ymd] => 2025-01-27 13:17:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:17:06' and `end` < '2025-01-27 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-01-27 13:17:31] Production.INFO: count ==6063 [2025-01-27 13:17:33] Production.ERROR: pbx CDR StartTime 2025-01-27 10:17:06 - End Time 2025-01-27 13:17:06 [2025-01-27 13:17:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341906', 'tblTempUsageDetail_20' ) start [2025-01-27 13:17:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341906', 'tblTempUsageDetail_20' ) end [2025-01-27 13:17:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341906', 'tblTempVendorCDR_20' ) start [2025-01-27 13:17:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341906', 'tblTempVendorCDR_20' ) end [2025-01-27 13:17:34] Production.INFO: ProcessCDR(1,14341906,1,1,2) [2025-01-27 13:17:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:17:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:17:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:17:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:17:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341906', 'tblTempUsageDetail_20' ) start [2025-01-27 13:17:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341906', 'tblTempUsageDetail_20' ) end [2025-01-27 13:17:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:17:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:17:39] Production.INFO: ==9946== Releasing lock... [2025-01-27 13:17:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:17:39] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:18:05 [end_date_ymd] => 2025-01-27 13:18:05 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:18:05' and `end` < '2025-01-27 13: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-01-27 13:18:37] Production.INFO: count ==6062 [2025-01-27 13:18:39] Production.ERROR: pbx CDR StartTime 2025-01-27 10:18:05 - End Time 2025-01-27 13:18:05 [2025-01-27 13:18:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:18:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341911', 'tblTempUsageDetail_20' ) start [2025-01-27 13:18:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341911', 'tblTempUsageDetail_20' ) end [2025-01-27 13:18:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341911', 'tblTempVendorCDR_20' ) start [2025-01-27 13:18:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341911', 'tblTempVendorCDR_20' ) end [2025-01-27 13:18:39] Production.INFO: ProcessCDR(1,14341911,1,1,2) [2025-01-27 13:18:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:18:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:18:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:18:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:18:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341911', 'tblTempUsageDetail_20' ) start [2025-01-27 13:18:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341911', 'tblTempUsageDetail_20' ) end [2025-01-27 13:18:45] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:18:45] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:18:45] Production.INFO: ==10084== Releasing lock... [2025-01-27 13:18:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:18:45] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:19:06 [end_date_ymd] => 2025-01-27 13:19:06 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:19:06' and `end` < '2025-01-27 13: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-01-27 13:19:35] Production.INFO: count ==6051 [2025-01-27 13:19:37] Production.ERROR: pbx CDR StartTime 2025-01-27 10:19:06 - End Time 2025-01-27 13:19:06 [2025-01-27 13:19:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:19:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341916', 'tblTempUsageDetail_20' ) start [2025-01-27 13:19:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341916', 'tblTempUsageDetail_20' ) end [2025-01-27 13:19:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341916', 'tblTempVendorCDR_20' ) start [2025-01-27 13:19:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341916', 'tblTempVendorCDR_20' ) end [2025-01-27 13:19:38] Production.INFO: ProcessCDR(1,14341916,1,1,2) [2025-01-27 13:19:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:19:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:19:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:19:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:19:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341916', 'tblTempUsageDetail_20' ) start [2025-01-27 13:19:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341916', 'tblTempUsageDetail_20' ) end [2025-01-27 13:19:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:19:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:19:43] Production.INFO: ==10221== Releasing lock... [2025-01-27 13:19:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:19:43] Production.INFO: 73.5 MB #Memory Used# [2025-01-27 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:20:06 [end_date_ymd] => 2025-01-27 13:20:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:20:06' and `end` < '2025-01-27 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-01-27 13:20:27] Production.INFO: count ==6040 [2025-01-27 13:20:30] Production.ERROR: pbx CDR StartTime 2025-01-27 10:20:06 - End Time 2025-01-27 13:20:06 [2025-01-27 13:20:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341921', 'tblTempUsageDetail_20' ) start [2025-01-27 13:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341921', 'tblTempUsageDetail_20' ) end [2025-01-27 13:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341921', 'tblTempVendorCDR_20' ) start [2025-01-27 13:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341921', 'tblTempVendorCDR_20' ) end [2025-01-27 13:20:30] Production.INFO: ProcessCDR(1,14341921,1,1,2) [2025-01-27 13:20:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:20:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:20:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:20:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341921', 'tblTempUsageDetail_20' ) start [2025-01-27 13:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341921', 'tblTempUsageDetail_20' ) end [2025-01-27 13:20:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:20:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:20:35] Production.INFO: ==10353== Releasing lock... [2025-01-27 13:20:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:20:35] Production.INFO: 73.25 MB #Memory Used# [2025-01-27 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:21:06 [end_date_ymd] => 2025-01-27 13:21:06 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:21:06' and `end` < '2025-01-27 13: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-01-27 13:21:22] Production.INFO: count ==5949 [2025-01-27 13:21:24] Production.ERROR: pbx CDR StartTime 2025-01-27 10:21:06 - End Time 2025-01-27 13:21:06 [2025-01-27 13:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341927', 'tblTempUsageDetail_20' ) start [2025-01-27 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341927', 'tblTempUsageDetail_20' ) end [2025-01-27 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341927', 'tblTempVendorCDR_20' ) start [2025-01-27 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341927', 'tblTempVendorCDR_20' ) end [2025-01-27 13:21:25] Production.INFO: ProcessCDR(1,14341927,1,1,2) [2025-01-27 13:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341927', 'tblTempUsageDetail_20' ) start [2025-01-27 13:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341927', 'tblTempUsageDetail_20' ) end [2025-01-27 13:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:21:30] Production.INFO: ==10487== Releasing lock... [2025-01-27 13:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:21:30] Production.INFO: 72.75 MB #Memory Used# [2025-01-27 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:22:05 [end_date_ymd] => 2025-01-27 13:22:05 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:22:05' and `end` < '2025-01-27 13: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-01-27 13:22:33] Production.INFO: count ==5960 [2025-01-27 13:22:36] Production.ERROR: pbx CDR StartTime 2025-01-27 10:22:05 - End Time 2025-01-27 13:22:05 [2025-01-27 13:22:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:22:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341932', 'tblTempUsageDetail_20' ) start [2025-01-27 13:22:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341932', 'tblTempUsageDetail_20' ) end [2025-01-27 13:22:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341932', 'tblTempVendorCDR_20' ) start [2025-01-27 13:22:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341932', 'tblTempVendorCDR_20' ) end [2025-01-27 13:22:36] Production.INFO: ProcessCDR(1,14341932,1,1,2) [2025-01-27 13:22:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:22:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:22:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:22:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:22:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341932', 'tblTempUsageDetail_20' ) start [2025-01-27 13:22:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341932', 'tblTempUsageDetail_20' ) end [2025-01-27 13:22:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:22:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:22:42] Production.INFO: ==10613== Releasing lock... [2025-01-27 13:22:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:22:42] Production.INFO: 72.75 MB #Memory Used# [2025-01-27 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:23:05 [end_date_ymd] => 2025-01-27 13:23:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:23:05' and `end` < '2025-01-27 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-01-27 13:23:28] Production.INFO: count ==5964 [2025-01-27 13:23:30] Production.ERROR: pbx CDR StartTime 2025-01-27 10:23:05 - End Time 2025-01-27 13:23:05 [2025-01-27 13:23:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341937', 'tblTempUsageDetail_20' ) start [2025-01-27 13:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341937', 'tblTempUsageDetail_20' ) end [2025-01-27 13:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341937', 'tblTempVendorCDR_20' ) start [2025-01-27 13:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341937', 'tblTempVendorCDR_20' ) end [2025-01-27 13:23:31] Production.INFO: ProcessCDR(1,14341937,1,1,2) [2025-01-27 13:23:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:23:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:23:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:23:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:23:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341937', 'tblTempUsageDetail_20' ) start [2025-01-27 13:23:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341937', 'tblTempUsageDetail_20' ) end [2025-01-27 13:23:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:23:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:23:36] Production.INFO: ==10747== Releasing lock... [2025-01-27 13:23:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:23:36] Production.INFO: 72.75 MB #Memory Used# [2025-01-27 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:24:06 [end_date_ymd] => 2025-01-27 13:24:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:24:06' and `end` < '2025-01-27 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-01-27 13:24:31] Production.INFO: count ==5955 [2025-01-27 13:24:34] Production.ERROR: pbx CDR StartTime 2025-01-27 10:24:06 - End Time 2025-01-27 13:24:06 [2025-01-27 13:24:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341942', 'tblTempUsageDetail_20' ) start [2025-01-27 13:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341942', 'tblTempUsageDetail_20' ) end [2025-01-27 13:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341942', 'tblTempVendorCDR_20' ) start [2025-01-27 13:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341942', 'tblTempVendorCDR_20' ) end [2025-01-27 13:24:34] Production.INFO: ProcessCDR(1,14341942,1,1,2) [2025-01-27 13:24:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:24:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:24:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:24:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:24:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341942', 'tblTempUsageDetail_20' ) start [2025-01-27 13:24:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341942', 'tblTempUsageDetail_20' ) end [2025-01-27 13:24:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:24:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:24:40] Production.INFO: ==10882== Releasing lock... [2025-01-27 13:24:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:24:40] Production.INFO: 72.75 MB #Memory Used# [2025-01-27 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:25:06 [end_date_ymd] => 2025-01-27 13:25:06 [RateCDR] => 1 ) [2025-01-27 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 10:25:06' and `end` < '2025-01-27 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-27 13:25:27] Production.INFO: count ==5945 [2025-01-27 13:25:30] Production.ERROR: pbx CDR StartTime 2025-01-27 10:25:06 - End Time 2025-01-27 13:25:06 [2025-01-27 13:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341947', 'tblTempUsageDetail_20' ) start [2025-01-27 13:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341947', 'tblTempUsageDetail_20' ) end [2025-01-27 13:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341947', 'tblTempVendorCDR_20' ) start [2025-01-27 13:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341947', 'tblTempVendorCDR_20' ) end [2025-01-27 13:25:30] Production.INFO: ProcessCDR(1,14341947,1,1,2) [2025-01-27 13:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:25:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:25:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341947', 'tblTempUsageDetail_20' ) start [2025-01-27 13:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341947', 'tblTempUsageDetail_20' ) end [2025-01-27 13:25:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:25:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:25:35] Production.INFO: ==11052== Releasing lock... [2025-01-27 13:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:25:35] Production.INFO: 72.5 MB #Memory Used# [2025-01-27 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:26:05 [end_date_ymd] => 2025-01-27 13:26:05 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:26:05' and `end` < '2025-01-27 13: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-01-27 13:26:26] Production.INFO: count ==5964 [2025-01-27 13:26:29] Production.ERROR: pbx CDR StartTime 2025-01-27 10:26:05 - End Time 2025-01-27 13:26:05 [2025-01-27 13:26:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341952', 'tblTempUsageDetail_20' ) start [2025-01-27 13:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341952', 'tblTempUsageDetail_20' ) end [2025-01-27 13:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341952', 'tblTempVendorCDR_20' ) start [2025-01-27 13:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341952', 'tblTempVendorCDR_20' ) end [2025-01-27 13:26:29] Production.INFO: ProcessCDR(1,14341952,1,1,2) [2025-01-27 13:26:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:26:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:26:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:26:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341952', 'tblTempUsageDetail_20' ) start [2025-01-27 13:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341952', 'tblTempUsageDetail_20' ) end [2025-01-27 13:26:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:26:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:26:34] Production.INFO: ==11174== Releasing lock... [2025-01-27 13:26:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:26:34] Production.INFO: 72.75 MB #Memory Used# [2025-01-27 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:27:06 [end_date_ymd] => 2025-01-27 13:27:06 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:27:06' and `end` < '2025-01-27 13: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-01-27 13:27:29] Production.INFO: count ==5957 [2025-01-27 13:27:32] Production.ERROR: pbx CDR StartTime 2025-01-27 10:27:06 - End Time 2025-01-27 13:27:06 [2025-01-27 13:27:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:27:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341957', 'tblTempUsageDetail_20' ) start [2025-01-27 13:27:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341957', 'tblTempUsageDetail_20' ) end [2025-01-27 13:27:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341957', 'tblTempVendorCDR_20' ) start [2025-01-27 13:27:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341957', 'tblTempVendorCDR_20' ) end [2025-01-27 13:27:32] Production.INFO: ProcessCDR(1,14341957,1,1,2) [2025-01-27 13:27:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:27:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:27:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:27:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:27:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341957', 'tblTempUsageDetail_20' ) start [2025-01-27 13:27:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341957', 'tblTempUsageDetail_20' ) end [2025-01-27 13:27:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:27:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:27:37] Production.INFO: ==11312== Releasing lock... [2025-01-27 13:27:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:27:37] Production.INFO: 72.75 MB #Memory Used# [2025-01-27 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:28:05 [end_date_ymd] => 2025-01-27 13:28:05 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:28:05' and `end` < '2025-01-27 13: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-01-27 13:28:34] Production.INFO: count ==5967 [2025-01-27 13:28:37] Production.ERROR: pbx CDR StartTime 2025-01-27 10:28:05 - End Time 2025-01-27 13:28:05 [2025-01-27 13:28:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341962', 'tblTempUsageDetail_20' ) start [2025-01-27 13:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341962', 'tblTempUsageDetail_20' ) end [2025-01-27 13:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341962', 'tblTempVendorCDR_20' ) start [2025-01-27 13:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341962', 'tblTempVendorCDR_20' ) end [2025-01-27 13:28:37] Production.INFO: ProcessCDR(1,14341962,1,1,2) [2025-01-27 13:28:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:28:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:28:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:28:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:28:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341962', 'tblTempUsageDetail_20' ) start [2025-01-27 13:28:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341962', 'tblTempUsageDetail_20' ) end [2025-01-27 13:28:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:28:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:28:42] Production.INFO: ==11440== Releasing lock... [2025-01-27 13:28:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:28:42] Production.INFO: 72.75 MB #Memory Used# [2025-01-27 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:29:05 [end_date_ymd] => 2025-01-27 13:29:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:29:05' and `end` < '2025-01-27 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-01-27 13:29:28] Production.INFO: count ==5947 [2025-01-27 13:29:30] Production.ERROR: pbx CDR StartTime 2025-01-27 10:29:05 - End Time 2025-01-27 13:29:05 [2025-01-27 13:29:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341967', 'tblTempUsageDetail_20' ) start [2025-01-27 13:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341967', 'tblTempUsageDetail_20' ) end [2025-01-27 13:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341967', 'tblTempVendorCDR_20' ) start [2025-01-27 13:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341967', 'tblTempVendorCDR_20' ) end [2025-01-27 13:29:30] Production.INFO: ProcessCDR(1,14341967,1,1,2) [2025-01-27 13:29:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:29:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:29:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:29:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341967', 'tblTempUsageDetail_20' ) start [2025-01-27 13:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341967', 'tblTempUsageDetail_20' ) end [2025-01-27 13:29:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:29:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:29:35] Production.INFO: ==11577== Releasing lock... [2025-01-27 13:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:29:35] Production.INFO: 72.5 MB #Memory Used# [2025-01-27 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:30:06 [end_date_ymd] => 2025-01-27 13:30:06 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:30:06' and `end` < '2025-01-27 13: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-01-27 13:30:26] Production.INFO: count ==5954 [2025-01-27 13:30:28] Production.ERROR: pbx CDR StartTime 2025-01-27 10:30:06 - End Time 2025-01-27 13:30:06 [2025-01-27 13:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341973', 'tblTempUsageDetail_20' ) start [2025-01-27 13:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341973', 'tblTempUsageDetail_20' ) end [2025-01-27 13:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341973', 'tblTempVendorCDR_20' ) start [2025-01-27 13:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341973', 'tblTempVendorCDR_20' ) end [2025-01-27 13:30:29] Production.INFO: ProcessCDR(1,14341973,1,1,2) [2025-01-27 13:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341973', 'tblTempUsageDetail_20' ) start [2025-01-27 13:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341973', 'tblTempUsageDetail_20' ) end [2025-01-27 13:30:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:30:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:30:34] Production.INFO: ==11712== Releasing lock... [2025-01-27 13:30:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:30:34] Production.INFO: 72.75 MB #Memory Used# [2025-01-27 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:31:05 [end_date_ymd] => 2025-01-27 13:31:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:31:05' and `end` < '2025-01-27 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-01-27 13:31:27] Production.INFO: count ==5933 [2025-01-27 13:31:30] Production.ERROR: pbx CDR StartTime 2025-01-27 10:31:05 - End Time 2025-01-27 13:31:05 [2025-01-27 13:31:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341978', 'tblTempUsageDetail_20' ) start [2025-01-27 13:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341978', 'tblTempUsageDetail_20' ) end [2025-01-27 13:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341978', 'tblTempVendorCDR_20' ) start [2025-01-27 13:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341978', 'tblTempVendorCDR_20' ) end [2025-01-27 13:31:30] Production.INFO: ProcessCDR(1,14341978,1,1,2) [2025-01-27 13:31:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:31:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:31:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:31:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341978', 'tblTempUsageDetail_20' ) start [2025-01-27 13:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341978', 'tblTempUsageDetail_20' ) end [2025-01-27 13:31:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:31:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:31:35] Production.INFO: ==11840== Releasing lock... [2025-01-27 13:31:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:31:35] Production.INFO: 72.5 MB #Memory Used# [2025-01-27 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:32:05 [end_date_ymd] => 2025-01-27 13:32:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:32:05' and `end` < '2025-01-27 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-01-27 13:32:27] Production.INFO: count ==5923 [2025-01-27 13:32:30] Production.ERROR: pbx CDR StartTime 2025-01-27 10:32:05 - End Time 2025-01-27 13:32:05 [2025-01-27 13:32:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341983', 'tblTempUsageDetail_20' ) start [2025-01-27 13:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341983', 'tblTempUsageDetail_20' ) end [2025-01-27 13:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341983', 'tblTempVendorCDR_20' ) start [2025-01-27 13:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341983', 'tblTempVendorCDR_20' ) end [2025-01-27 13:32:30] Production.INFO: ProcessCDR(1,14341983,1,1,2) [2025-01-27 13:32:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:32:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:32:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:32:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341983', 'tblTempUsageDetail_20' ) start [2025-01-27 13:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341983', 'tblTempUsageDetail_20' ) end [2025-01-27 13:32:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:32:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:32:35] Production.INFO: ==11966== Releasing lock... [2025-01-27 13:32:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:32:35] Production.INFO: 72.5 MB #Memory Used# [2025-01-27 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:33:05 [end_date_ymd] => 2025-01-27 13:33:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:33:05' and `end` < '2025-01-27 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-01-27 13:33:26] Production.INFO: count ==5939 [2025-01-27 13:33:28] Production.ERROR: pbx CDR StartTime 2025-01-27 10:33:05 - End Time 2025-01-27 13:33:05 [2025-01-27 13:33:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341988', 'tblTempUsageDetail_20' ) start [2025-01-27 13:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341988', 'tblTempUsageDetail_20' ) end [2025-01-27 13:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341988', 'tblTempVendorCDR_20' ) start [2025-01-27 13:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341988', 'tblTempVendorCDR_20' ) end [2025-01-27 13:33:28] Production.INFO: ProcessCDR(1,14341988,1,1,2) [2025-01-27 13:33:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:33:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:33:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:33:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341988', 'tblTempUsageDetail_20' ) start [2025-01-27 13:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341988', 'tblTempUsageDetail_20' ) end [2025-01-27 13:33:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:33:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:33:33] Production.INFO: ==12090== Releasing lock... [2025-01-27 13:33:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:33:33] Production.INFO: 72.5 MB #Memory Used# [2025-01-27 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:34:06 [end_date_ymd] => 2025-01-27 13:34:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:34:06' and `end` < '2025-01-27 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-01-27 13:34:26] Production.INFO: count ==5935 [2025-01-27 13:34:28] Production.ERROR: pbx CDR StartTime 2025-01-27 10:34:06 - End Time 2025-01-27 13:34:06 [2025-01-27 13:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341993', 'tblTempUsageDetail_20' ) start [2025-01-27 13:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341993', 'tblTempUsageDetail_20' ) end [2025-01-27 13:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341993', 'tblTempVendorCDR_20' ) start [2025-01-27 13:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341993', 'tblTempVendorCDR_20' ) end [2025-01-27 13:34:29] Production.INFO: ProcessCDR(1,14341993,1,1,2) [2025-01-27 13:34:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:34:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:34:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:34:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341993', 'tblTempUsageDetail_20' ) start [2025-01-27 13:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341993', 'tblTempUsageDetail_20' ) end [2025-01-27 13:34:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:34:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:34:34] Production.INFO: ==12219== Releasing lock... [2025-01-27 13:34:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:34:34] Production.INFO: 72.5 MB #Memory Used# [2025-01-27 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:35:05 [end_date_ymd] => 2025-01-27 13:35:05 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:35:05' and `end` < '2025-01-27 13: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-01-27 13:35:26] Production.INFO: count ==5925 [2025-01-27 13:35:28] Production.ERROR: pbx CDR StartTime 2025-01-27 10:35:05 - End Time 2025-01-27 13:35:05 [2025-01-27 13:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341998', 'tblTempUsageDetail_20' ) start [2025-01-27 13:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14341998', 'tblTempUsageDetail_20' ) end [2025-01-27 13:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341998', 'tblTempVendorCDR_20' ) start [2025-01-27 13:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14341998', 'tblTempVendorCDR_20' ) end [2025-01-27 13:35:28] Production.INFO: ProcessCDR(1,14341998,1,1,2) [2025-01-27 13:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14341998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14341998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14341998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:35:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14341998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341998', 'tblTempUsageDetail_20' ) start [2025-01-27 13:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14341998', 'tblTempUsageDetail_20' ) end [2025-01-27 13:35:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:35:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:35:33] Production.INFO: ==12350== Releasing lock... [2025-01-27 13:35:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:35:33] Production.INFO: 72.5 MB #Memory Used# [2025-01-27 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:36:06 [end_date_ymd] => 2025-01-27 13:36:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:36:06' and `end` < '2025-01-27 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-01-27 13:36:30] Production.INFO: count ==5926 [2025-01-27 13:36:33] Production.ERROR: pbx CDR StartTime 2025-01-27 10:36:06 - End Time 2025-01-27 13:36:06 [2025-01-27 13:36:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342003', 'tblTempUsageDetail_20' ) start [2025-01-27 13:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342003', 'tblTempUsageDetail_20' ) end [2025-01-27 13:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342003', 'tblTempVendorCDR_20' ) start [2025-01-27 13:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342003', 'tblTempVendorCDR_20' ) end [2025-01-27 13:36:33] Production.INFO: ProcessCDR(1,14342003,1,1,2) [2025-01-27 13:36:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:36:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:36:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:36:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:36:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342003', 'tblTempUsageDetail_20' ) start [2025-01-27 13:36:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342003', 'tblTempUsageDetail_20' ) end [2025-01-27 13:36:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:36:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:36:38] Production.INFO: ==12484== Releasing lock... [2025-01-27 13:36:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:36:38] Production.INFO: 72.5 MB #Memory Used# [2025-01-27 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:37:05 [end_date_ymd] => 2025-01-27 13:37:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:37:05' and `end` < '2025-01-27 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-01-27 13:37:31] Production.INFO: count ==5939 [2025-01-27 13:37:34] Production.ERROR: pbx CDR StartTime 2025-01-27 10:37:05 - End Time 2025-01-27 13:37:05 [2025-01-27 13:37:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342008', 'tblTempUsageDetail_20' ) start [2025-01-27 13:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342008', 'tblTempUsageDetail_20' ) end [2025-01-27 13:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342008', 'tblTempVendorCDR_20' ) start [2025-01-27 13:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342008', 'tblTempVendorCDR_20' ) end [2025-01-27 13:37:34] Production.INFO: ProcessCDR(1,14342008,1,1,2) [2025-01-27 13:37:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:37:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:37:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:37:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:37:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342008', 'tblTempUsageDetail_20' ) start [2025-01-27 13:37:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342008', 'tblTempUsageDetail_20' ) end [2025-01-27 13:37:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:37:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:37:39] Production.INFO: ==12616== Releasing lock... [2025-01-27 13:37:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:37:39] Production.INFO: 72.5 MB #Memory Used# [2025-01-27 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:38:06 [end_date_ymd] => 2025-01-27 13:38:06 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:38:06' and `end` < '2025-01-27 13: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-01-27 13:38:30] Production.INFO: count ==5932 [2025-01-27 13:38:33] Production.ERROR: pbx CDR StartTime 2025-01-27 10:38:06 - End Time 2025-01-27 13:38:06 [2025-01-27 13:38:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:38:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342013', 'tblTempUsageDetail_20' ) start [2025-01-27 13:38:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342013', 'tblTempUsageDetail_20' ) end [2025-01-27 13:38:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342013', 'tblTempVendorCDR_20' ) start [2025-01-27 13:38:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342013', 'tblTempVendorCDR_20' ) end [2025-01-27 13:38:33] Production.INFO: ProcessCDR(1,14342013,1,1,2) [2025-01-27 13:38:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:38:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:38:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:38:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:38:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342013', 'tblTempUsageDetail_20' ) start [2025-01-27 13:38:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342013', 'tblTempUsageDetail_20' ) end [2025-01-27 13:38:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:38:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:38:38] Production.INFO: ==12747== Releasing lock... [2025-01-27 13:38:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:38:38] Production.INFO: 72.5 MB #Memory Used# [2025-01-27 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:39:05 [end_date_ymd] => 2025-01-27 13:39:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:39:05' and `end` < '2025-01-27 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-01-27 13:39:22] Production.INFO: count ==5923 [2025-01-27 13:39:24] Production.ERROR: pbx CDR StartTime 2025-01-27 10:39:05 - End Time 2025-01-27 13:39:05 [2025-01-27 13:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342018', 'tblTempUsageDetail_20' ) start [2025-01-27 13:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342018', 'tblTempUsageDetail_20' ) end [2025-01-27 13:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342018', 'tblTempVendorCDR_20' ) start [2025-01-27 13:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342018', 'tblTempVendorCDR_20' ) end [2025-01-27 13:39:25] Production.INFO: ProcessCDR(1,14342018,1,1,2) [2025-01-27 13:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342018', 'tblTempUsageDetail_20' ) start [2025-01-27 13:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342018', 'tblTempUsageDetail_20' ) end [2025-01-27 13:39:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:39:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:39:29] Production.INFO: ==12867== Releasing lock... [2025-01-27 13:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:39:29] Production.INFO: 72.5 MB #Memory Used# [2025-01-27 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:40:06 [end_date_ymd] => 2025-01-27 13:40:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:40:06' and `end` < '2025-01-27 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-01-27 13:40:21] Production.INFO: count ==5917 [2025-01-27 13:40:23] Production.ERROR: pbx CDR StartTime 2025-01-27 10:40:06 - End Time 2025-01-27 13:40:06 [2025-01-27 13:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342024', 'tblTempUsageDetail_20' ) start [2025-01-27 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342024', 'tblTempUsageDetail_20' ) end [2025-01-27 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342024', 'tblTempVendorCDR_20' ) start [2025-01-27 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342024', 'tblTempVendorCDR_20' ) end [2025-01-27 13:40:24] Production.INFO: ProcessCDR(1,14342024,1,1,2) [2025-01-27 13:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342024', 'tblTempUsageDetail_20' ) start [2025-01-27 13:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342024', 'tblTempUsageDetail_20' ) end [2025-01-27 13:40:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:40:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:40:29] Production.INFO: ==13000== Releasing lock... [2025-01-27 13:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:40:29] Production.INFO: 72.5 MB #Memory Used# [2025-01-27 13:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:41:04 [end_date_ymd] => 2025-01-27 13:41:04 [RateCDR] => 1 ) [2025-01-27 13:41: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-01-27 10:41:04' and `end` < '2025-01-27 13:41: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-01-27 13:41:27] Production.INFO: count ==5932 [2025-01-27 13:41:30] Production.ERROR: pbx CDR StartTime 2025-01-27 10:41:04 - End Time 2025-01-27 13:41:04 [2025-01-27 13:41:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342029', 'tblTempUsageDetail_20' ) start [2025-01-27 13:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342029', 'tblTempUsageDetail_20' ) end [2025-01-27 13:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342029', 'tblTempVendorCDR_20' ) start [2025-01-27 13:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342029', 'tblTempVendorCDR_20' ) end [2025-01-27 13:41:30] Production.INFO: ProcessCDR(1,14342029,1,1,2) [2025-01-27 13:41:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:41:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:41:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:41:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342029', 'tblTempUsageDetail_20' ) start [2025-01-27 13:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342029', 'tblTempUsageDetail_20' ) end [2025-01-27 13:41:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:41:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:41:35] Production.INFO: ==13173== Releasing lock... [2025-01-27 13:41:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:41:35] Production.INFO: 72.5 MB #Memory Used# [2025-01-27 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:42:05 [end_date_ymd] => 2025-01-27 13:42:05 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:42:05' and `end` < '2025-01-27 13: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-01-27 13:42:27] Production.INFO: count ==5940 [2025-01-27 13:42:30] Production.ERROR: pbx CDR StartTime 2025-01-27 10:42:05 - End Time 2025-01-27 13:42:05 [2025-01-27 13:42:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342034', 'tblTempUsageDetail_20' ) start [2025-01-27 13:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342034', 'tblTempUsageDetail_20' ) end [2025-01-27 13:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342034', 'tblTempVendorCDR_20' ) start [2025-01-27 13:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342034', 'tblTempVendorCDR_20' ) end [2025-01-27 13:42:30] Production.INFO: ProcessCDR(1,14342034,1,1,2) [2025-01-27 13:42:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:42:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:42:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:42:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:42:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342034', 'tblTempUsageDetail_20' ) start [2025-01-27 13:42:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342034', 'tblTempUsageDetail_20' ) end [2025-01-27 13:42:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:42:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:42:35] Production.INFO: ==13312== Releasing lock... [2025-01-27 13:42:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:42:35] Production.INFO: 72.5 MB #Memory Used# [2025-01-27 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:43:05 [end_date_ymd] => 2025-01-27 13:43:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:43:05' and `end` < '2025-01-27 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-01-27 13:43:33] Production.INFO: count ==5914 [2025-01-27 13:43:35] Production.ERROR: pbx CDR StartTime 2025-01-27 10:43:05 - End Time 2025-01-27 13:43:05 [2025-01-27 13:43:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:43:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342039', 'tblTempUsageDetail_20' ) start [2025-01-27 13:43:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342039', 'tblTempUsageDetail_20' ) end [2025-01-27 13:43:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342039', 'tblTempVendorCDR_20' ) start [2025-01-27 13:43:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342039', 'tblTempVendorCDR_20' ) end [2025-01-27 13:43:35] Production.INFO: ProcessCDR(1,14342039,1,1,2) [2025-01-27 13:43:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:43:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:43:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:43:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:43:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342039', 'tblTempUsageDetail_20' ) start [2025-01-27 13:43:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342039', 'tblTempUsageDetail_20' ) end [2025-01-27 13:43:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:43:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:43:40] Production.INFO: ==13444== Releasing lock... [2025-01-27 13:43:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:43:40] Production.INFO: 72.25 MB #Memory Used# [2025-01-27 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:44:05 [end_date_ymd] => 2025-01-27 13:44:05 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:44:05' and `end` < '2025-01-27 13: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-01-27 13:44:32] Production.INFO: count ==5915 [2025-01-27 13:44:34] Production.ERROR: pbx CDR StartTime 2025-01-27 10:44:05 - End Time 2025-01-27 13:44:05 [2025-01-27 13:44:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342044', 'tblTempUsageDetail_20' ) start [2025-01-27 13:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342044', 'tblTempUsageDetail_20' ) end [2025-01-27 13:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342044', 'tblTempVendorCDR_20' ) start [2025-01-27 13:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342044', 'tblTempVendorCDR_20' ) end [2025-01-27 13:44:34] Production.INFO: ProcessCDR(1,14342044,1,1,2) [2025-01-27 13:44:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:44:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:44:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:44:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:44:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342044', 'tblTempUsageDetail_20' ) start [2025-01-27 13:44:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342044', 'tblTempUsageDetail_20' ) end [2025-01-27 13:44:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:44:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:44:39] Production.INFO: ==13569== Releasing lock... [2025-01-27 13:44:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:44:39] Production.INFO: 72.5 MB #Memory Used# [2025-01-27 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:45:06 [end_date_ymd] => 2025-01-27 13:45:06 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:45:06' and `end` < '2025-01-27 13: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-01-27 13:45:33] Production.INFO: count ==5906 [2025-01-27 13:45:35] Production.ERROR: pbx CDR StartTime 2025-01-27 10:45:06 - End Time 2025-01-27 13:45:06 [2025-01-27 13:45:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342049', 'tblTempUsageDetail_20' ) start [2025-01-27 13:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342049', 'tblTempUsageDetail_20' ) end [2025-01-27 13:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342049', 'tblTempVendorCDR_20' ) start [2025-01-27 13:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342049', 'tblTempVendorCDR_20' ) end [2025-01-27 13:45:35] Production.INFO: ProcessCDR(1,14342049,1,1,2) [2025-01-27 13:45:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:45:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:45:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:45:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:45:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342049', 'tblTempUsageDetail_20' ) start [2025-01-27 13:45:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342049', 'tblTempUsageDetail_20' ) end [2025-01-27 13:45:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:45:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:45:41] Production.INFO: ==13693== Releasing lock... [2025-01-27 13:45:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:45:41] Production.INFO: 72.25 MB #Memory Used# [2025-01-27 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:46:05 [end_date_ymd] => 2025-01-27 13:46:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:46:05' and `end` < '2025-01-27 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-01-27 13:46:32] Production.INFO: count ==5902 [2025-01-27 13:46:35] Production.ERROR: pbx CDR StartTime 2025-01-27 10:46:05 - End Time 2025-01-27 13:46:05 [2025-01-27 13:46:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:46:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342054', 'tblTempUsageDetail_20' ) start [2025-01-27 13:46:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342054', 'tblTempUsageDetail_20' ) end [2025-01-27 13:46:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342054', 'tblTempVendorCDR_20' ) start [2025-01-27 13:46:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342054', 'tblTempVendorCDR_20' ) end [2025-01-27 13:46:35] Production.INFO: ProcessCDR(1,14342054,1,1,2) [2025-01-27 13:46:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:46:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:46:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:46:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:46:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342054', 'tblTempUsageDetail_20' ) start [2025-01-27 13:46:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342054', 'tblTempUsageDetail_20' ) end [2025-01-27 13:46:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:46:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:46:40] Production.INFO: ==13819== Releasing lock... [2025-01-27 13:46:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:46:40] Production.INFO: 72.25 MB #Memory Used# [2025-01-27 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:47:05 [end_date_ymd] => 2025-01-27 13:47:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:47:05' and `end` < '2025-01-27 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-01-27 13:47:32] Production.INFO: count ==5906 [2025-01-27 13:47:34] Production.ERROR: pbx CDR StartTime 2025-01-27 10:47:05 - End Time 2025-01-27 13:47:05 [2025-01-27 13:47:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:47:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342059', 'tblTempUsageDetail_20' ) start [2025-01-27 13:47:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342059', 'tblTempUsageDetail_20' ) end [2025-01-27 13:47:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342059', 'tblTempVendorCDR_20' ) start [2025-01-27 13:47:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342059', 'tblTempVendorCDR_20' ) end [2025-01-27 13:47:35] Production.INFO: ProcessCDR(1,14342059,1,1,2) [2025-01-27 13:47:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:47:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:47:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:47:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:47:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342059', 'tblTempUsageDetail_20' ) start [2025-01-27 13:47:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342059', 'tblTempUsageDetail_20' ) end [2025-01-27 13:47:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:47:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:47:40] Production.INFO: ==13949== Releasing lock... [2025-01-27 13:47:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:47:40] Production.INFO: 72.25 MB #Memory Used# [2025-01-27 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:48:05 [end_date_ymd] => 2025-01-27 13:48:05 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:48:05' and `end` < '2025-01-27 13: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-01-27 13:48:27] Production.INFO: count ==5903 [2025-01-27 13:48:30] Production.ERROR: pbx CDR StartTime 2025-01-27 10:48:05 - End Time 2025-01-27 13:48:05 [2025-01-27 13:48:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342064', 'tblTempUsageDetail_20' ) start [2025-01-27 13:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342064', 'tblTempUsageDetail_20' ) end [2025-01-27 13:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342064', 'tblTempVendorCDR_20' ) start [2025-01-27 13:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342064', 'tblTempVendorCDR_20' ) end [2025-01-27 13:48:30] Production.INFO: ProcessCDR(1,14342064,1,1,2) [2025-01-27 13:48:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:48:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:48:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:48:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342064', 'tblTempUsageDetail_20' ) start [2025-01-27 13:48:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342064', 'tblTempUsageDetail_20' ) end [2025-01-27 13:48:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:48:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:48:36] Production.INFO: ==14081== Releasing lock... [2025-01-27 13:48:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:48:36] Production.INFO: 72.25 MB #Memory Used# [2025-01-27 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:49:06 [end_date_ymd] => 2025-01-27 13:49:06 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:49:06' and `end` < '2025-01-27 13: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-01-27 13:49:28] Production.INFO: count ==5892 [2025-01-27 13:49:31] Production.ERROR: pbx CDR StartTime 2025-01-27 10:49:06 - End Time 2025-01-27 13:49:06 [2025-01-27 13:49:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342069', 'tblTempUsageDetail_20' ) start [2025-01-27 13:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342069', 'tblTempUsageDetail_20' ) end [2025-01-27 13:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342069', 'tblTempVendorCDR_20' ) start [2025-01-27 13:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342069', 'tblTempVendorCDR_20' ) end [2025-01-27 13:49:31] Production.INFO: ProcessCDR(1,14342069,1,1,2) [2025-01-27 13:49:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:49:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:49:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:49:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:49:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342069', 'tblTempUsageDetail_20' ) start [2025-01-27 13:49:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342069', 'tblTempUsageDetail_20' ) end [2025-01-27 13:49:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:49:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:49:36] Production.INFO: ==14217== Releasing lock... [2025-01-27 13:49:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:49:36] Production.INFO: 72.25 MB #Memory Used# [2025-01-27 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:50:06 [end_date_ymd] => 2025-01-27 13:50:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:50:06' and `end` < '2025-01-27 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-01-27 13:50:32] Production.INFO: count ==5891 [2025-01-27 13:50:34] Production.ERROR: pbx CDR StartTime 2025-01-27 10:50:06 - End Time 2025-01-27 13:50:06 [2025-01-27 13:50:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342075', 'tblTempUsageDetail_20' ) start [2025-01-27 13:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342075', 'tblTempUsageDetail_20' ) end [2025-01-27 13:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342075', 'tblTempVendorCDR_20' ) start [2025-01-27 13:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342075', 'tblTempVendorCDR_20' ) end [2025-01-27 13:50:35] Production.INFO: ProcessCDR(1,14342075,1,1,2) [2025-01-27 13:50:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:50:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:50:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:50:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342075', 'tblTempUsageDetail_20' ) start [2025-01-27 13:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342075', 'tblTempUsageDetail_20' ) end [2025-01-27 13:50:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:50:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:50:40] Production.INFO: ==14349== Releasing lock... [2025-01-27 13:50:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:50:40] Production.INFO: 72.25 MB #Memory Used# [2025-01-27 13:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:51:06 [end_date_ymd] => 2025-01-27 13:51:06 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:51:06' and `end` < '2025-01-27 13: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-01-27 13:51:29] Production.INFO: count ==5830 [2025-01-27 13:51:32] Production.ERROR: pbx CDR StartTime 2025-01-27 10:51:06 - End Time 2025-01-27 13:51:06 [2025-01-27 13:51:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342080', 'tblTempUsageDetail_20' ) start [2025-01-27 13:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342080', 'tblTempUsageDetail_20' ) end [2025-01-27 13:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342080', 'tblTempVendorCDR_20' ) start [2025-01-27 13:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342080', 'tblTempVendorCDR_20' ) end [2025-01-27 13:51:32] Production.INFO: ProcessCDR(1,14342080,1,1,2) [2025-01-27 13:51:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:51:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:51:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:51:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:51:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342080', 'tblTempUsageDetail_20' ) start [2025-01-27 13:51:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342080', 'tblTempUsageDetail_20' ) end [2025-01-27 13:51:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:51:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:51:38] Production.INFO: ==14478== Releasing lock... [2025-01-27 13:51:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:51:38] Production.INFO: 71.75 MB #Memory Used# [2025-01-27 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:52:05 [end_date_ymd] => 2025-01-27 13:52:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:52:05' and `end` < '2025-01-27 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-01-27 13:52:27] Production.INFO: count ==5825 [2025-01-27 13:52:29] Production.ERROR: pbx CDR StartTime 2025-01-27 10:52:05 - End Time 2025-01-27 13:52:05 [2025-01-27 13:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342085', 'tblTempUsageDetail_20' ) start [2025-01-27 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342085', 'tblTempUsageDetail_20' ) end [2025-01-27 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342085', 'tblTempVendorCDR_20' ) start [2025-01-27 13:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342085', 'tblTempVendorCDR_20' ) end [2025-01-27 13:52:30] Production.INFO: ProcessCDR(1,14342085,1,1,2) [2025-01-27 13:52:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:52:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342085', 'tblTempUsageDetail_20' ) start [2025-01-27 13:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342085', 'tblTempUsageDetail_20' ) end [2025-01-27 13:52:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:52:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:52:35] Production.INFO: ==14604== Releasing lock... [2025-01-27 13:52:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:52:35] Production.INFO: 71.75 MB #Memory Used# [2025-01-27 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:53:06 [end_date_ymd] => 2025-01-27 13:53:06 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:53:06' and `end` < '2025-01-27 13: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-01-27 13:53:25] Production.INFO: count ==5829 [2025-01-27 13:53:27] Production.ERROR: pbx CDR StartTime 2025-01-27 10:53:06 - End Time 2025-01-27 13:53:06 [2025-01-27 13:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342090', 'tblTempUsageDetail_20' ) start [2025-01-27 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342090', 'tblTempUsageDetail_20' ) end [2025-01-27 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342090', 'tblTempVendorCDR_20' ) start [2025-01-27 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342090', 'tblTempVendorCDR_20' ) end [2025-01-27 13:53:27] Production.INFO: ProcessCDR(1,14342090,1,1,2) [2025-01-27 13:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:53:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:53:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342090', 'tblTempUsageDetail_20' ) start [2025-01-27 13:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342090', 'tblTempUsageDetail_20' ) end [2025-01-27 13:53:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:53:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:53:32] Production.INFO: ==14735== Releasing lock... [2025-01-27 13:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:53:32] Production.INFO: 71.75 MB #Memory Used# [2025-01-27 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:54:05 [end_date_ymd] => 2025-01-27 13:54:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 10:54:05' and `end` < '2025-01-27 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-01-27 13:54:19] Production.INFO: count ==5810 [2025-01-27 13:54:22] Production.ERROR: pbx CDR StartTime 2025-01-27 10:54:05 - End Time 2025-01-27 13:54:05 [2025-01-27 13:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342095', 'tblTempUsageDetail_20' ) start [2025-01-27 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342095', 'tblTempUsageDetail_20' ) end [2025-01-27 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342095', 'tblTempVendorCDR_20' ) start [2025-01-27 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342095', 'tblTempVendorCDR_20' ) end [2025-01-27 13:54:22] Production.INFO: ProcessCDR(1,14342095,1,1,2) [2025-01-27 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342095', 'tblTempUsageDetail_20' ) start [2025-01-27 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342095', 'tblTempUsageDetail_20' ) end [2025-01-27 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:54:27] Production.INFO: ==14865== Releasing lock... [2025-01-27 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:54:27] Production.INFO: 71.5 MB #Memory Used# [2025-01-27 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:55:06 [end_date_ymd] => 2025-01-27 13:55:06 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:55:06' and `end` < '2025-01-27 13: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-01-27 13:55:22] Production.INFO: count ==5789 [2025-01-27 13:55:24] Production.ERROR: pbx CDR StartTime 2025-01-27 10:55:06 - End Time 2025-01-27 13:55:06 [2025-01-27 13:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342100', 'tblTempUsageDetail_20' ) start [2025-01-27 13:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342100', 'tblTempUsageDetail_20' ) end [2025-01-27 13:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342100', 'tblTempVendorCDR_20' ) start [2025-01-27 13:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342100', 'tblTempVendorCDR_20' ) end [2025-01-27 13:55:24] Production.INFO: ProcessCDR(1,14342100,1,1,2) [2025-01-27 13:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342100', 'tblTempUsageDetail_20' ) start [2025-01-27 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342100', 'tblTempUsageDetail_20' ) end [2025-01-27 13:55:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:55:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:55:28] Production.INFO: ==15001== Releasing lock... [2025-01-27 13:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:55:28] Production.INFO: 71.5 MB #Memory Used# [2025-01-27 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:56:05 [end_date_ymd] => 2025-01-27 13:56:05 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:56:05' and `end` < '2025-01-27 13: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-01-27 13:56:19] Production.INFO: count ==5786 [2025-01-27 13:56:22] Production.ERROR: pbx CDR StartTime 2025-01-27 10:56:05 - End Time 2025-01-27 13:56:05 [2025-01-27 13:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342105', 'tblTempUsageDetail_20' ) start [2025-01-27 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342105', 'tblTempUsageDetail_20' ) end [2025-01-27 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342105', 'tblTempVendorCDR_20' ) start [2025-01-27 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342105', 'tblTempVendorCDR_20' ) end [2025-01-27 13:56:22] Production.INFO: ProcessCDR(1,14342105,1,1,2) [2025-01-27 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342105', 'tblTempUsageDetail_20' ) start [2025-01-27 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342105', 'tblTempUsageDetail_20' ) end [2025-01-27 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:56:27] Production.INFO: ==15176== Releasing lock... [2025-01-27 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:56:27] Production.INFO: 71.5 MB #Memory Used# [2025-01-27 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:57:06 [end_date_ymd] => 2025-01-27 13:57:06 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:57:06' and `end` < '2025-01-27 13: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-01-27 13:57:22] Production.INFO: count ==5771 [2025-01-27 13:57:25] Production.ERROR: pbx CDR StartTime 2025-01-27 10:57:06 - End Time 2025-01-27 13:57:06 [2025-01-27 13:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342110', 'tblTempUsageDetail_20' ) start [2025-01-27 13:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342110', 'tblTempUsageDetail_20' ) end [2025-01-27 13:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342110', 'tblTempVendorCDR_20' ) start [2025-01-27 13:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342110', 'tblTempVendorCDR_20' ) end [2025-01-27 13:57:25] Production.INFO: ProcessCDR(1,14342110,1,1,2) [2025-01-27 13:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342110', 'tblTempUsageDetail_20' ) start [2025-01-27 13:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342110', 'tblTempUsageDetail_20' ) end [2025-01-27 13:57:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:57:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:57:30] Production.INFO: ==15304== Releasing lock... [2025-01-27 13:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:57:30] Production.INFO: 71.25 MB #Memory Used# [2025-01-27 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:58:06 [end_date_ymd] => 2025-01-27 13:58:06 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:58:06' and `end` < '2025-01-27 13: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-01-27 13:58:25] Production.INFO: count ==5767 [2025-01-27 13:58:27] Production.ERROR: pbx CDR StartTime 2025-01-27 10:58:06 - End Time 2025-01-27 13:58:06 [2025-01-27 13:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342115', 'tblTempUsageDetail_20' ) start [2025-01-27 13:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342115', 'tblTempUsageDetail_20' ) end [2025-01-27 13:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342115', 'tblTempVendorCDR_20' ) start [2025-01-27 13:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342115', 'tblTempVendorCDR_20' ) end [2025-01-27 13:58:28] Production.INFO: ProcessCDR(1,14342115,1,1,2) [2025-01-27 13:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:58:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342115', 'tblTempUsageDetail_20' ) start [2025-01-27 13:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342115', 'tblTempUsageDetail_20' ) end [2025-01-27 13:58:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:58:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:58:33] Production.INFO: ==15427== Releasing lock... [2025-01-27 13:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:58:33] Production.INFO: 71.25 MB #Memory Used# [2025-01-27 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 10:59:06 [end_date_ymd] => 2025-01-27 13:59:06 [RateCDR] => 1 ) [2025-01-27 13: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-01-27 10:59:06' and `end` < '2025-01-27 13: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-01-27 13:59:35] Production.INFO: count ==5747 [2025-01-27 13:59:37] Production.ERROR: pbx CDR StartTime 2025-01-27 10:59:06 - End Time 2025-01-27 13:59:06 [2025-01-27 13:59:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 13:59:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342120', 'tblTempUsageDetail_20' ) start [2025-01-27 13:59:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342120', 'tblTempUsageDetail_20' ) end [2025-01-27 13:59:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342120', 'tblTempVendorCDR_20' ) start [2025-01-27 13:59:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342120', 'tblTempVendorCDR_20' ) end [2025-01-27 13:59:37] Production.INFO: ProcessCDR(1,14342120,1,1,2) [2025-01-27 13:59:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:59:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 13:59:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:59:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 13:59:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342120', 'tblTempUsageDetail_20' ) start [2025-01-27 13:59:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342120', 'tblTempUsageDetail_20' ) end [2025-01-27 13:59:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 13:59:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 13:59:43] Production.INFO: ==15551== Releasing lock... [2025-01-27 13:59:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 13:59:43] Production.INFO: 71.25 MB #Memory Used# [2025-01-27 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:00:06 [end_date_ymd] => 2025-01-27 14:00:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:00:06' and `end` < '2025-01-27 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-01-27 14:00:35] Production.INFO: count ==5748 [2025-01-27 14:00:38] Production.ERROR: pbx CDR StartTime 2025-01-27 11:00:06 - End Time 2025-01-27 14:00:06 [2025-01-27 14:00:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:00:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342125', 'tblTempUsageDetail_20' ) start [2025-01-27 14:00:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342125', 'tblTempUsageDetail_20' ) end [2025-01-27 14:00:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342125', 'tblTempVendorCDR_20' ) start [2025-01-27 14:00:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342125', 'tblTempVendorCDR_20' ) end [2025-01-27 14:00:38] Production.INFO: ProcessCDR(1,14342125,1,1,2) [2025-01-27 14:00:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:00:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:00:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:00:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:00:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342125', 'tblTempUsageDetail_20' ) start [2025-01-27 14:00:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342125', 'tblTempUsageDetail_20' ) end [2025-01-27 14:00:44] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:00:44] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:00:44] Production.INFO: ==15682== Releasing lock... [2025-01-27 14:00:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:00:44] Production.INFO: 71.25 MB #Memory Used# [2025-01-27 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:01:06 [end_date_ymd] => 2025-01-27 14:01:06 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:01:06' and `end` < '2025-01-27 14: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-01-27 14:01:34] Production.INFO: count ==5728 [2025-01-27 14:01:37] Production.ERROR: pbx CDR StartTime 2025-01-27 11:01:06 - End Time 2025-01-27 14:01:06 [2025-01-27 14:01:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342131', 'tblTempUsageDetail_20' ) start [2025-01-27 14:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342131', 'tblTempUsageDetail_20' ) end [2025-01-27 14:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342131', 'tblTempVendorCDR_20' ) start [2025-01-27 14:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342131', 'tblTempVendorCDR_20' ) end [2025-01-27 14:01:37] Production.INFO: ProcessCDR(1,14342131,1,1,2) [2025-01-27 14:01:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:01:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:01:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:01:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:01:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342131', 'tblTempUsageDetail_20' ) start [2025-01-27 14:01:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342131', 'tblTempUsageDetail_20' ) end [2025-01-27 14:01:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:01:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:01:42] Production.INFO: ==15830== Releasing lock... [2025-01-27 14:01:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:01:42] Production.INFO: 71.25 MB #Memory Used# [2025-01-27 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:02:06 [end_date_ymd] => 2025-01-27 14:02:06 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:02:06' and `end` < '2025-01-27 14: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-01-27 14:02:30] Production.INFO: count ==5726 [2025-01-27 14:02:33] Production.ERROR: pbx CDR StartTime 2025-01-27 11:02:06 - End Time 2025-01-27 14:02:06 [2025-01-27 14:02:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:02:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342136', 'tblTempUsageDetail_20' ) start [2025-01-27 14:02:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342136', 'tblTempUsageDetail_20' ) end [2025-01-27 14:02:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342136', 'tblTempVendorCDR_20' ) start [2025-01-27 14:02:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342136', 'tblTempVendorCDR_20' ) end [2025-01-27 14:02:33] Production.INFO: ProcessCDR(1,14342136,1,1,2) [2025-01-27 14:02:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:02:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:02:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:02:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342136', 'tblTempUsageDetail_20' ) start [2025-01-27 14:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342136', 'tblTempUsageDetail_20' ) end [2025-01-27 14:02:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:02:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:02:38] Production.INFO: ==15963== Releasing lock... [2025-01-27 14:02:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:02:38] Production.INFO: 71 MB #Memory Used# [2025-01-27 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:03:06 [end_date_ymd] => 2025-01-27 14:03:06 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:03:06' and `end` < '2025-01-27 14: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-01-27 14:03:30] Production.INFO: count ==5740 [2025-01-27 14:03:32] Production.ERROR: pbx CDR StartTime 2025-01-27 11:03:06 - End Time 2025-01-27 14:03:06 [2025-01-27 14:03:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342141', 'tblTempUsageDetail_20' ) start [2025-01-27 14:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342141', 'tblTempUsageDetail_20' ) end [2025-01-27 14:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342141', 'tblTempVendorCDR_20' ) start [2025-01-27 14:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342141', 'tblTempVendorCDR_20' ) end [2025-01-27 14:03:33] Production.INFO: ProcessCDR(1,14342141,1,1,2) [2025-01-27 14:03:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:03:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:03:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:03:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:03:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342141', 'tblTempUsageDetail_20' ) start [2025-01-27 14:03:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342141', 'tblTempUsageDetail_20' ) end [2025-01-27 14:03:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:03:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:03:38] Production.INFO: ==16093== Releasing lock... [2025-01-27 14:03:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:03:38] Production.INFO: 71 MB #Memory Used# [2025-01-27 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:04:06 [end_date_ymd] => 2025-01-27 14:04:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:04:06' and `end` < '2025-01-27 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-01-27 14:04:26] Production.INFO: count ==5734 [2025-01-27 14:04:28] Production.ERROR: pbx CDR StartTime 2025-01-27 11:04:06 - End Time 2025-01-27 14:04:06 [2025-01-27 14:04:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342146', 'tblTempUsageDetail_20' ) start [2025-01-27 14:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342146', 'tblTempUsageDetail_20' ) end [2025-01-27 14:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342146', 'tblTempVendorCDR_20' ) start [2025-01-27 14:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342146', 'tblTempVendorCDR_20' ) end [2025-01-27 14:04:29] Production.INFO: ProcessCDR(1,14342146,1,1,2) [2025-01-27 14:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:04:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:04:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:04:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342146', 'tblTempUsageDetail_20' ) start [2025-01-27 14:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342146', 'tblTempUsageDetail_20' ) end [2025-01-27 14:04:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:04:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:04:34] Production.INFO: ==16220== Releasing lock... [2025-01-27 14:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:04:34] Production.INFO: 71 MB #Memory Used# [2025-01-27 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:05:05 [end_date_ymd] => 2025-01-27 14:05:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:05:05' and `end` < '2025-01-27 14: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-01-27 14:05:25] Production.INFO: count ==5719 [2025-01-27 14:05:27] Production.ERROR: pbx CDR StartTime 2025-01-27 11:05:05 - End Time 2025-01-27 14:05:05 [2025-01-27 14:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342151', 'tblTempUsageDetail_20' ) start [2025-01-27 14:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342151', 'tblTempUsageDetail_20' ) end [2025-01-27 14:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342151', 'tblTempVendorCDR_20' ) start [2025-01-27 14:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342151', 'tblTempVendorCDR_20' ) end [2025-01-27 14:05:28] Production.INFO: ProcessCDR(1,14342151,1,1,2) [2025-01-27 14:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342151', 'tblTempUsageDetail_20' ) start [2025-01-27 14:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342151', 'tblTempUsageDetail_20' ) end [2025-01-27 14:05:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:05:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:05:31] Production.INFO: ==16353== Releasing lock... [2025-01-27 14:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:05:31] Production.INFO: 71 MB #Memory Used# [2025-01-27 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:06:06 [end_date_ymd] => 2025-01-27 14:06:06 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:06:06' and `end` < '2025-01-27 14: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-01-27 14:06:22] Production.INFO: count ==5714 [2025-01-27 14:06:24] Production.ERROR: pbx CDR StartTime 2025-01-27 11:06:06 - End Time 2025-01-27 14:06:06 [2025-01-27 14:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342156', 'tblTempUsageDetail_20' ) start [2025-01-27 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342156', 'tblTempUsageDetail_20' ) end [2025-01-27 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342156', 'tblTempVendorCDR_20' ) start [2025-01-27 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342156', 'tblTempVendorCDR_20' ) end [2025-01-27 14:06:24] Production.INFO: ProcessCDR(1,14342156,1,1,2) [2025-01-27 14:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342156', 'tblTempUsageDetail_20' ) start [2025-01-27 14:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342156', 'tblTempUsageDetail_20' ) end [2025-01-27 14:06:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:06:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:06:30] Production.INFO: ==16485== Releasing lock... [2025-01-27 14:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:06:30] Production.INFO: 71 MB #Memory Used# [2025-01-27 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:07:05 [end_date_ymd] => 2025-01-27 14:07:05 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:07:05' and `end` < '2025-01-27 14: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-01-27 14:07:35] Production.INFO: count ==5716 [2025-01-27 14:07:38] Production.ERROR: pbx CDR StartTime 2025-01-27 11:07:05 - End Time 2025-01-27 14:07:05 [2025-01-27 14:07:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:07:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342161', 'tblTempUsageDetail_20' ) start [2025-01-27 14:07:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342161', 'tblTempUsageDetail_20' ) end [2025-01-27 14:07:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342161', 'tblTempVendorCDR_20' ) start [2025-01-27 14:07:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342161', 'tblTempVendorCDR_20' ) end [2025-01-27 14:07:38] Production.INFO: ProcessCDR(1,14342161,1,1,2) [2025-01-27 14:07:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:07:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:07:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:07:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:07:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342161', 'tblTempUsageDetail_20' ) start [2025-01-27 14:07:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342161', 'tblTempUsageDetail_20' ) end [2025-01-27 14:07:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:07:44] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:07:44] Production.INFO: ==16620== Releasing lock... [2025-01-27 14:07:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:07:44] Production.INFO: 71 MB #Memory Used# [2025-01-27 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:08:06 [end_date_ymd] => 2025-01-27 14:08:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:08:06' and `end` < '2025-01-27 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-01-27 14:08:36] Production.INFO: count ==5726 [2025-01-27 14:08:39] Production.ERROR: pbx CDR StartTime 2025-01-27 11:08:06 - End Time 2025-01-27 14:08:06 [2025-01-27 14:08:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:08:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342166', 'tblTempUsageDetail_20' ) start [2025-01-27 14:08:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342166', 'tblTempUsageDetail_20' ) end [2025-01-27 14:08:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342166', 'tblTempVendorCDR_20' ) start [2025-01-27 14:08:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342166', 'tblTempVendorCDR_20' ) end [2025-01-27 14:08:39] Production.INFO: ProcessCDR(1,14342166,1,1,2) [2025-01-27 14:08:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:08:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:08:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:08:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:08:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342166', 'tblTempUsageDetail_20' ) start [2025-01-27 14:08:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342166', 'tblTempUsageDetail_20' ) end [2025-01-27 14:08:44] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:08:44] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:08:44] Production.INFO: ==16756== Releasing lock... [2025-01-27 14:08:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:08:44] Production.INFO: 71 MB #Memory Used# [2025-01-27 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:09:06 [end_date_ymd] => 2025-01-27 14:09:06 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:09:06' and `end` < '2025-01-27 14: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-01-27 14:09:36] Production.INFO: count ==5725 [2025-01-27 14:09:39] Production.ERROR: pbx CDR StartTime 2025-01-27 11:09:06 - End Time 2025-01-27 14:09:06 [2025-01-27 14:09:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:09:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342171', 'tblTempUsageDetail_20' ) start [2025-01-27 14:09:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342171', 'tblTempUsageDetail_20' ) end [2025-01-27 14:09:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342171', 'tblTempVendorCDR_20' ) start [2025-01-27 14:09:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342171', 'tblTempVendorCDR_20' ) end [2025-01-27 14:09:39] Production.INFO: ProcessCDR(1,14342171,1,1,2) [2025-01-27 14:09:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:09:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:09:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:09:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:09:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342171', 'tblTempUsageDetail_20' ) start [2025-01-27 14:09:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342171', 'tblTempUsageDetail_20' ) end [2025-01-27 14:09:45] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:09:45] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:09:45] Production.INFO: ==16890== Releasing lock... [2025-01-27 14:09:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:09:45] Production.INFO: 71 MB #Memory Used# [2025-01-27 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:10:06 [end_date_ymd] => 2025-01-27 14:10:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:10:06' and `end` < '2025-01-27 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-01-27 14:10:28] Production.INFO: count ==5712 [2025-01-27 14:10:30] Production.ERROR: pbx CDR StartTime 2025-01-27 11:10:06 - End Time 2025-01-27 14:10:06 [2025-01-27 14:10:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342177', 'tblTempUsageDetail_20' ) start [2025-01-27 14:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342177', 'tblTempUsageDetail_20' ) end [2025-01-27 14:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342177', 'tblTempVendorCDR_20' ) start [2025-01-27 14:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342177', 'tblTempVendorCDR_20' ) end [2025-01-27 14:10:30] Production.INFO: ProcessCDR(1,14342177,1,1,2) [2025-01-27 14:10:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:10:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:10:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:10:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342177', 'tblTempUsageDetail_20' ) start [2025-01-27 14:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342177', 'tblTempUsageDetail_20' ) end [2025-01-27 14:10:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:10:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:10:35] Production.INFO: ==17022== Releasing lock... [2025-01-27 14:10:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:10:35] Production.INFO: 70.75 MB #Memory Used# [2025-01-27 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:11:05 [end_date_ymd] => 2025-01-27 14:11:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:11:05' and `end` < '2025-01-27 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-01-27 14:11:25] Production.INFO: count ==5736 [2025-01-27 14:11:27] Production.ERROR: pbx CDR StartTime 2025-01-27 11:11:05 - End Time 2025-01-27 14:11:05 [2025-01-27 14:11:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342182', 'tblTempUsageDetail_20' ) start [2025-01-27 14:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342182', 'tblTempUsageDetail_20' ) end [2025-01-27 14:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342182', 'tblTempVendorCDR_20' ) start [2025-01-27 14:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342182', 'tblTempVendorCDR_20' ) end [2025-01-27 14:11:27] Production.INFO: ProcessCDR(1,14342182,1,1,2) [2025-01-27 14:11:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:11:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:11:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342182', 'tblTempUsageDetail_20' ) start [2025-01-27 14:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342182', 'tblTempUsageDetail_20' ) end [2025-01-27 14:11:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:11:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:11:32] Production.INFO: ==17193== Releasing lock... [2025-01-27 14:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:11:32] Production.INFO: 71 MB #Memory Used# [2025-01-27 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:12:05 [end_date_ymd] => 2025-01-27 14:12:05 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:12:05' and `end` < '2025-01-27 14: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-01-27 14:12:32] Production.INFO: count ==5725 [2025-01-27 14:12:34] Production.ERROR: pbx CDR StartTime 2025-01-27 11:12:05 - End Time 2025-01-27 14:12:05 [2025-01-27 14:12:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:12:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342187', 'tblTempUsageDetail_20' ) start [2025-01-27 14:12:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342187', 'tblTempUsageDetail_20' ) end [2025-01-27 14:12:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342187', 'tblTempVendorCDR_20' ) start [2025-01-27 14:12:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342187', 'tblTempVendorCDR_20' ) end [2025-01-27 14:12:34] Production.INFO: ProcessCDR(1,14342187,1,1,2) [2025-01-27 14:12:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:12:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:12:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:12:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:12:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342187', 'tblTempUsageDetail_20' ) start [2025-01-27 14:12:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342187', 'tblTempUsageDetail_20' ) end [2025-01-27 14:12:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:12:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:12:38] Production.INFO: ==17325== Releasing lock... [2025-01-27 14:12:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:12:38] Production.INFO: 71 MB #Memory Used# [2025-01-27 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:13:05 [end_date_ymd] => 2025-01-27 14:13:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:13:05' and `end` < '2025-01-27 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-01-27 14:13:28] Production.INFO: count ==5721 [2025-01-27 14:13:30] Production.ERROR: pbx CDR StartTime 2025-01-27 11:13:05 - End Time 2025-01-27 14:13:05 [2025-01-27 14:13:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342192', 'tblTempUsageDetail_20' ) start [2025-01-27 14:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342192', 'tblTempUsageDetail_20' ) end [2025-01-27 14:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342192', 'tblTempVendorCDR_20' ) start [2025-01-27 14:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342192', 'tblTempVendorCDR_20' ) end [2025-01-27 14:13:30] Production.INFO: ProcessCDR(1,14342192,1,1,2) [2025-01-27 14:13:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:13:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:13:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:13:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:13:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342192', 'tblTempUsageDetail_20' ) start [2025-01-27 14:13:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342192', 'tblTempUsageDetail_20' ) end [2025-01-27 14:13:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:13:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:13:36] Production.INFO: ==17450== Releasing lock... [2025-01-27 14:13:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:13:36] Production.INFO: 71 MB #Memory Used# [2025-01-27 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:14:06 [end_date_ymd] => 2025-01-27 14:14:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:14:06' and `end` < '2025-01-27 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-01-27 14:14:35] Production.INFO: count ==5725 [2025-01-27 14:14:37] Production.ERROR: pbx CDR StartTime 2025-01-27 11:14:06 - End Time 2025-01-27 14:14:06 [2025-01-27 14:14:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:14:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342197', 'tblTempUsageDetail_20' ) start [2025-01-27 14:14:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342197', 'tblTempUsageDetail_20' ) end [2025-01-27 14:14:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342197', 'tblTempVendorCDR_20' ) start [2025-01-27 14:14:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342197', 'tblTempVendorCDR_20' ) end [2025-01-27 14:14:37] Production.INFO: ProcessCDR(1,14342197,1,1,2) [2025-01-27 14:14:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:14:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:14:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:14:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:14:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342197', 'tblTempUsageDetail_20' ) start [2025-01-27 14:14:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342197', 'tblTempUsageDetail_20' ) end [2025-01-27 14:14:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:14:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:14:43] Production.INFO: ==17587== Releasing lock... [2025-01-27 14:14:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:14:43] Production.INFO: 71 MB #Memory Used# [2025-01-27 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:15:05 [end_date_ymd] => 2025-01-27 14:15:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:15:05' and `end` < '2025-01-27 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-01-27 14:15:27] Production.INFO: count ==5736 [2025-01-27 14:15:29] Production.ERROR: pbx CDR StartTime 2025-01-27 11:15:05 - End Time 2025-01-27 14:15:05 [2025-01-27 14:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342202', 'tblTempUsageDetail_20' ) start [2025-01-27 14:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342202', 'tblTempUsageDetail_20' ) end [2025-01-27 14:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342202', 'tblTempVendorCDR_20' ) start [2025-01-27 14:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342202', 'tblTempVendorCDR_20' ) end [2025-01-27 14:15:29] Production.INFO: ProcessCDR(1,14342202,1,1,2) [2025-01-27 14:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342202', 'tblTempUsageDetail_20' ) start [2025-01-27 14:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342202', 'tblTempUsageDetail_20' ) end [2025-01-27 14:15:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:15:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:15:34] Production.INFO: ==17720== Releasing lock... [2025-01-27 14:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:15:34] Production.INFO: 71 MB #Memory Used# [2025-01-27 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:16:06 [end_date_ymd] => 2025-01-27 14:16:06 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:16:06' and `end` < '2025-01-27 14: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-01-27 14:16:25] Production.INFO: count ==5720 [2025-01-27 14:16:27] Production.ERROR: pbx CDR StartTime 2025-01-27 11:16:06 - End Time 2025-01-27 14:16:06 [2025-01-27 14:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342207', 'tblTempUsageDetail_20' ) start [2025-01-27 14:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342207', 'tblTempUsageDetail_20' ) end [2025-01-27 14:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342207', 'tblTempVendorCDR_20' ) start [2025-01-27 14:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342207', 'tblTempVendorCDR_20' ) end [2025-01-27 14:16:28] Production.INFO: ProcessCDR(1,14342207,1,1,2) [2025-01-27 14:16:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:16:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:16:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:16:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342207', 'tblTempUsageDetail_20' ) start [2025-01-27 14:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342207', 'tblTempUsageDetail_20' ) end [2025-01-27 14:16:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:16:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:16:33] Production.INFO: ==17848== Releasing lock... [2025-01-27 14:16:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:16:33] Production.INFO: 71 MB #Memory Used# [2025-01-27 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:17:06 [end_date_ymd] => 2025-01-27 14:17:06 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:17:06' and `end` < '2025-01-27 14: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-01-27 14:17:30] Production.INFO: count ==5710 [2025-01-27 14:17:32] Production.ERROR: pbx CDR StartTime 2025-01-27 11:17:06 - End Time 2025-01-27 14:17:06 [2025-01-27 14:17:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342212', 'tblTempUsageDetail_20' ) start [2025-01-27 14:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342212', 'tblTempUsageDetail_20' ) end [2025-01-27 14:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342212', 'tblTempVendorCDR_20' ) start [2025-01-27 14:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342212', 'tblTempVendorCDR_20' ) end [2025-01-27 14:17:32] Production.INFO: ProcessCDR(1,14342212,1,1,2) [2025-01-27 14:17:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:17:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:17:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:17:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:17:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342212', 'tblTempUsageDetail_20' ) start [2025-01-27 14:17:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342212', 'tblTempUsageDetail_20' ) end [2025-01-27 14:17:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:17:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:17:37] Production.INFO: ==17977== Releasing lock... [2025-01-27 14:17:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:17:37] Production.INFO: 70.75 MB #Memory Used# [2025-01-27 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:18:05 [end_date_ymd] => 2025-01-27 14:18:05 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:18:05' and `end` < '2025-01-27 14: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-01-27 14:18:30] Production.INFO: count ==5713 [2025-01-27 14:18:32] Production.ERROR: pbx CDR StartTime 2025-01-27 11:18:05 - End Time 2025-01-27 14:18:05 [2025-01-27 14:18:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342217', 'tblTempUsageDetail_20' ) start [2025-01-27 14:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342217', 'tblTempUsageDetail_20' ) end [2025-01-27 14:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342217', 'tblTempVendorCDR_20' ) start [2025-01-27 14:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342217', 'tblTempVendorCDR_20' ) end [2025-01-27 14:18:32] Production.INFO: ProcessCDR(1,14342217,1,1,2) [2025-01-27 14:18:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:18:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:18:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:18:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:18:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342217', 'tblTempUsageDetail_20' ) start [2025-01-27 14:18:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342217', 'tblTempUsageDetail_20' ) end [2025-01-27 14:18:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:18:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:18:37] Production.INFO: ==18101== Releasing lock... [2025-01-27 14:18:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:18:37] Production.INFO: 70.75 MB #Memory Used# [2025-01-27 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:19:05 [end_date_ymd] => 2025-01-27 14:19:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:19:05' and `end` < '2025-01-27 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-01-27 14:19:32] Production.INFO: count ==5699 [2025-01-27 14:19:34] Production.ERROR: pbx CDR StartTime 2025-01-27 11:19:05 - End Time 2025-01-27 14:19:05 [2025-01-27 14:19:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:19:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342222', 'tblTempUsageDetail_20' ) start [2025-01-27 14:19:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342222', 'tblTempUsageDetail_20' ) end [2025-01-27 14:19:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342222', 'tblTempVendorCDR_20' ) start [2025-01-27 14:19:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342222', 'tblTempVendorCDR_20' ) end [2025-01-27 14:19:35] Production.INFO: ProcessCDR(1,14342222,1,1,2) [2025-01-27 14:19:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:19:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:19:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:19:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:19:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342222', 'tblTempUsageDetail_20' ) start [2025-01-27 14:19:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342222', 'tblTempUsageDetail_20' ) end [2025-01-27 14:19:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:19:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:19:40] Production.INFO: ==18237== Releasing lock... [2025-01-27 14:19:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:19:40] Production.INFO: 70.75 MB #Memory Used# [2025-01-27 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:20:06 [end_date_ymd] => 2025-01-27 14:20:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:20:06' and `end` < '2025-01-27 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-01-27 14:20:34] Production.INFO: count ==5695 [2025-01-27 14:20:36] Production.ERROR: pbx CDR StartTime 2025-01-27 11:20:06 - End Time 2025-01-27 14:20:06 [2025-01-27 14:20:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342227', 'tblTempUsageDetail_20' ) start [2025-01-27 14:20:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342227', 'tblTempUsageDetail_20' ) end [2025-01-27 14:20:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342227', 'tblTempVendorCDR_20' ) start [2025-01-27 14:20:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342227', 'tblTempVendorCDR_20' ) end [2025-01-27 14:20:37] Production.INFO: ProcessCDR(1,14342227,1,1,2) [2025-01-27 14:20:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:20:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:20:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:20:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:20:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342227', 'tblTempUsageDetail_20' ) start [2025-01-27 14:20:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342227', 'tblTempUsageDetail_20' ) end [2025-01-27 14:20:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:20:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:20:42] Production.INFO: ==18382== Releasing lock... [2025-01-27 14:20:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:20:42] Production.INFO: 70.75 MB #Memory Used# [2025-01-27 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:21:05 [end_date_ymd] => 2025-01-27 14:21:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:21:05' and `end` < '2025-01-27 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-01-27 14:21:28] Production.INFO: count ==5639 [2025-01-27 14:21:30] Production.ERROR: pbx CDR StartTime 2025-01-27 11:21:05 - End Time 2025-01-27 14:21:05 [2025-01-27 14:21:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342233', 'tblTempUsageDetail_20' ) start [2025-01-27 14:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342233', 'tblTempUsageDetail_20' ) end [2025-01-27 14:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342233', 'tblTempVendorCDR_20' ) start [2025-01-27 14:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342233', 'tblTempVendorCDR_20' ) end [2025-01-27 14:21:31] Production.INFO: ProcessCDR(1,14342233,1,1,2) [2025-01-27 14:21:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:21:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:21:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:21:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:21:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342233', 'tblTempUsageDetail_20' ) start [2025-01-27 14:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342233', 'tblTempUsageDetail_20' ) end [2025-01-27 14:21:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:21:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:21:36] Production.INFO: ==18521== Releasing lock... [2025-01-27 14:21:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:21:36] Production.INFO: 70.25 MB #Memory Used# [2025-01-27 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:22:05 [end_date_ymd] => 2025-01-27 14:22:05 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:22:05' and `end` < '2025-01-27 14: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-01-27 14:22:27] Production.INFO: count ==5631 [2025-01-27 14:22:29] Production.ERROR: pbx CDR StartTime 2025-01-27 11:22:05 - End Time 2025-01-27 14:22:05 [2025-01-27 14:22:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342238', 'tblTempUsageDetail_20' ) start [2025-01-27 14:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342238', 'tblTempUsageDetail_20' ) end [2025-01-27 14:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342238', 'tblTempVendorCDR_20' ) start [2025-01-27 14:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342238', 'tblTempVendorCDR_20' ) end [2025-01-27 14:22:29] Production.INFO: ProcessCDR(1,14342238,1,1,2) [2025-01-27 14:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:22:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:22:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:22:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342238', 'tblTempUsageDetail_20' ) start [2025-01-27 14:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342238', 'tblTempUsageDetail_20' ) end [2025-01-27 14:22:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:22:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:22:34] Production.INFO: ==18659== Releasing lock... [2025-01-27 14:22:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:22:34] Production.INFO: 70.25 MB #Memory Used# [2025-01-27 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:23:05 [end_date_ymd] => 2025-01-27 14:23:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:23:05' and `end` < '2025-01-27 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-01-27 14:23:25] Production.INFO: count ==5606 [2025-01-27 14:23:27] Production.ERROR: pbx CDR StartTime 2025-01-27 11:23:05 - End Time 2025-01-27 14:23:05 [2025-01-27 14:23:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342243', 'tblTempUsageDetail_20' ) start [2025-01-27 14:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342243', 'tblTempUsageDetail_20' ) end [2025-01-27 14:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342243', 'tblTempVendorCDR_20' ) start [2025-01-27 14:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342243', 'tblTempVendorCDR_20' ) end [2025-01-27 14:23:27] Production.INFO: ProcessCDR(1,14342243,1,1,2) [2025-01-27 14:23:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342243', 'tblTempUsageDetail_20' ) start [2025-01-27 14:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342243', 'tblTempUsageDetail_20' ) end [2025-01-27 14:23:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:23:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:23:33] Production.INFO: ==18800== Releasing lock... [2025-01-27 14:23:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:23:33] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:24:06 [end_date_ymd] => 2025-01-27 14:24:06 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:24:06' and `end` < '2025-01-27 14: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-01-27 14:24:28] Production.INFO: count ==5592 [2025-01-27 14:24:30] Production.ERROR: pbx CDR StartTime 2025-01-27 11:24:06 - End Time 2025-01-27 14:24:06 [2025-01-27 14:24:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342248', 'tblTempUsageDetail_20' ) start [2025-01-27 14:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342248', 'tblTempUsageDetail_20' ) end [2025-01-27 14:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342248', 'tblTempVendorCDR_20' ) start [2025-01-27 14:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342248', 'tblTempVendorCDR_20' ) end [2025-01-27 14:24:30] Production.INFO: ProcessCDR(1,14342248,1,1,2) [2025-01-27 14:24:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:24:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:24:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:24:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342248', 'tblTempUsageDetail_20' ) start [2025-01-27 14:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342248', 'tblTempUsageDetail_20' ) end [2025-01-27 14:24:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:24:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:24:35] Production.INFO: ==18933== Releasing lock... [2025-01-27 14:24:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:24:35] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:25:05 [end_date_ymd] => 2025-01-27 14:25:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:25:05' and `end` < '2025-01-27 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-01-27 14:25:28] Production.INFO: count ==5590 [2025-01-27 14:25:31] Production.ERROR: pbx CDR StartTime 2025-01-27 11:25:05 - End Time 2025-01-27 14:25:05 [2025-01-27 14:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342253', 'tblTempUsageDetail_20' ) start [2025-01-27 14:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342253', 'tblTempUsageDetail_20' ) end [2025-01-27 14:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342253', 'tblTempVendorCDR_20' ) start [2025-01-27 14:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342253', 'tblTempVendorCDR_20' ) end [2025-01-27 14:25:31] Production.INFO: ProcessCDR(1,14342253,1,1,2) [2025-01-27 14:25:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342253', 'tblTempUsageDetail_20' ) start [2025-01-27 14:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342253', 'tblTempUsageDetail_20' ) end [2025-01-27 14:25:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:25:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:25:35] Production.INFO: ==19078== Releasing lock... [2025-01-27 14:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:25:35] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:26:05 [end_date_ymd] => 2025-01-27 14:26:05 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:26:05' and `end` < '2025-01-27 14: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-01-27 14:26:26] Production.INFO: count ==5587 [2025-01-27 14:26:29] Production.ERROR: pbx CDR StartTime 2025-01-27 11:26:05 - End Time 2025-01-27 14:26:05 [2025-01-27 14:26:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342258', 'tblTempUsageDetail_20' ) start [2025-01-27 14:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342258', 'tblTempUsageDetail_20' ) end [2025-01-27 14:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342258', 'tblTempVendorCDR_20' ) start [2025-01-27 14:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342258', 'tblTempVendorCDR_20' ) end [2025-01-27 14:26:29] Production.INFO: ProcessCDR(1,14342258,1,1,2) [2025-01-27 14:26:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:26:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:26:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:26:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342258', 'tblTempUsageDetail_20' ) start [2025-01-27 14:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342258', 'tblTempUsageDetail_20' ) end [2025-01-27 14:26:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:26:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:26:34] Production.INFO: ==19219== Releasing lock... [2025-01-27 14:26:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:26:34] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:27:05 [end_date_ymd] => 2025-01-27 14:27:05 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:27:05' and `end` < '2025-01-27 14: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-01-27 14:27:28] Production.INFO: count ==5582 [2025-01-27 14:27:30] Production.ERROR: pbx CDR StartTime 2025-01-27 11:27:05 - End Time 2025-01-27 14:27:05 [2025-01-27 14:27:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342263', 'tblTempUsageDetail_20' ) start [2025-01-27 14:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342263', 'tblTempUsageDetail_20' ) end [2025-01-27 14:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342263', 'tblTempVendorCDR_20' ) start [2025-01-27 14:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342263', 'tblTempVendorCDR_20' ) end [2025-01-27 14:27:30] Production.INFO: ProcessCDR(1,14342263,1,1,2) [2025-01-27 14:27:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:27:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:27:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:27:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:27:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342263', 'tblTempUsageDetail_20' ) start [2025-01-27 14:27:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342263', 'tblTempUsageDetail_20' ) end [2025-01-27 14:27:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:27:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:27:35] Production.INFO: ==19396== Releasing lock... [2025-01-27 14:27:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:27:35] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:28:05 [end_date_ymd] => 2025-01-27 14:28:05 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:28:05' and `end` < '2025-01-27 14: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-01-27 14:28:25] Production.INFO: count ==5572 [2025-01-27 14:28:27] Production.ERROR: pbx CDR StartTime 2025-01-27 11:28:05 - End Time 2025-01-27 14:28:05 [2025-01-27 14:28:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342268', 'tblTempUsageDetail_20' ) start [2025-01-27 14:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342268', 'tblTempUsageDetail_20' ) end [2025-01-27 14:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342268', 'tblTempVendorCDR_20' ) start [2025-01-27 14:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342268', 'tblTempVendorCDR_20' ) end [2025-01-27 14:28:28] Production.INFO: ProcessCDR(1,14342268,1,1,2) [2025-01-27 14:28:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:28:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:28:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:28:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342268', 'tblTempUsageDetail_20' ) start [2025-01-27 14:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342268', 'tblTempUsageDetail_20' ) end [2025-01-27 14:28:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:28:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:28:33] Production.INFO: ==19535== Releasing lock... [2025-01-27 14:28:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:28:33] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:29:05 [end_date_ymd] => 2025-01-27 14:29:05 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:29:05' and `end` < '2025-01-27 14: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-01-27 14:29:24] Production.INFO: count ==5582 [2025-01-27 14:29:26] Production.ERROR: pbx CDR StartTime 2025-01-27 11:29:05 - End Time 2025-01-27 14:29:05 [2025-01-27 14:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342273', 'tblTempUsageDetail_20' ) start [2025-01-27 14:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342273', 'tblTempUsageDetail_20' ) end [2025-01-27 14:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342273', 'tblTempVendorCDR_20' ) start [2025-01-27 14:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342273', 'tblTempVendorCDR_20' ) end [2025-01-27 14:29:26] Production.INFO: ProcessCDR(1,14342273,1,1,2) [2025-01-27 14:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342273', 'tblTempUsageDetail_20' ) start [2025-01-27 14:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342273', 'tblTempUsageDetail_20' ) end [2025-01-27 14:29:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:29:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:29:31] Production.INFO: ==19667== Releasing lock... [2025-01-27 14:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:29:31] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:30:06 [end_date_ymd] => 2025-01-27 14:30:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:30:06' and `end` < '2025-01-27 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-01-27 14:30:27] Production.INFO: count ==5601 [2025-01-27 14:30:29] Production.ERROR: pbx CDR StartTime 2025-01-27 11:30:06 - End Time 2025-01-27 14:30:06 [2025-01-27 14:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342278', 'tblTempUsageDetail_20' ) start [2025-01-27 14:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342278', 'tblTempUsageDetail_20' ) end [2025-01-27 14:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342278', 'tblTempVendorCDR_20' ) start [2025-01-27 14:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342278', 'tblTempVendorCDR_20' ) end [2025-01-27 14:30:29] Production.INFO: ProcessCDR(1,14342278,1,1,2) [2025-01-27 14:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:30:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:30:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:30:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342278', 'tblTempUsageDetail_20' ) start [2025-01-27 14:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342278', 'tblTempUsageDetail_20' ) end [2025-01-27 14:30:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:30:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:30:35] Production.INFO: ==19799== Releasing lock... [2025-01-27 14:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:30:35] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:31:05 [end_date_ymd] => 2025-01-27 14:31:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:31:05' and `end` < '2025-01-27 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-01-27 14:31:30] Production.INFO: count ==5654 [2025-01-27 14:31:32] Production.ERROR: pbx CDR StartTime 2025-01-27 11:31:05 - End Time 2025-01-27 14:31:05 [2025-01-27 14:31:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342284', 'tblTempUsageDetail_20' ) start [2025-01-27 14:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342284', 'tblTempUsageDetail_20' ) end [2025-01-27 14:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342284', 'tblTempVendorCDR_20' ) start [2025-01-27 14:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342284', 'tblTempVendorCDR_20' ) end [2025-01-27 14:31:32] Production.INFO: ProcessCDR(1,14342284,1,1,2) [2025-01-27 14:31:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:31:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:31:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:31:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342284', 'tblTempUsageDetail_20' ) start [2025-01-27 14:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342284', 'tblTempUsageDetail_20' ) end [2025-01-27 14:31:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:31:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:31:38] Production.INFO: ==19936== Releasing lock... [2025-01-27 14:31:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:31:38] Production.INFO: 70.5 MB #Memory Used# [2025-01-27 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:32:05 [end_date_ymd] => 2025-01-27 14:32:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:32:05' and `end` < '2025-01-27 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-01-27 14:32:31] Production.INFO: count ==5664 [2025-01-27 14:32:33] Production.ERROR: pbx CDR StartTime 2025-01-27 11:32:05 - End Time 2025-01-27 14:32:05 [2025-01-27 14:32:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:32:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342289', 'tblTempUsageDetail_20' ) start [2025-01-27 14:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342289', 'tblTempUsageDetail_20' ) end [2025-01-27 14:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342289', 'tblTempVendorCDR_20' ) start [2025-01-27 14:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342289', 'tblTempVendorCDR_20' ) end [2025-01-27 14:32:34] Production.INFO: ProcessCDR(1,14342289,1,1,2) [2025-01-27 14:32:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:32:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:32:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:32:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:32:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342289', 'tblTempUsageDetail_20' ) start [2025-01-27 14:32:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342289', 'tblTempUsageDetail_20' ) end [2025-01-27 14:32:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:32:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:32:38] Production.INFO: ==20076== Releasing lock... [2025-01-27 14:32:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:32:38] Production.INFO: 70.5 MB #Memory Used# [2025-01-27 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:33:05 [end_date_ymd] => 2025-01-27 14:33:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:33:05' and `end` < '2025-01-27 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-01-27 14:33:36] Production.INFO: count ==5647 [2025-01-27 14:33:38] Production.ERROR: pbx CDR StartTime 2025-01-27 11:33:05 - End Time 2025-01-27 14:33:05 [2025-01-27 14:33:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:33:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342294', 'tblTempUsageDetail_20' ) start [2025-01-27 14:33:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342294', 'tblTempUsageDetail_20' ) end [2025-01-27 14:33:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342294', 'tblTempVendorCDR_20' ) start [2025-01-27 14:33:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342294', 'tblTempVendorCDR_20' ) end [2025-01-27 14:33:38] Production.INFO: ProcessCDR(1,14342294,1,1,2) [2025-01-27 14:33:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:33:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:33:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:33:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:33:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342294', 'tblTempUsageDetail_20' ) start [2025-01-27 14:33:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342294', 'tblTempUsageDetail_20' ) end [2025-01-27 14:33:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:33:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:33:43] Production.INFO: ==20216== Releasing lock... [2025-01-27 14:33:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:33:43] Production.INFO: 70.25 MB #Memory Used# [2025-01-27 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:34:05 [end_date_ymd] => 2025-01-27 14:34:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:34:05' and `end` < '2025-01-27 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-01-27 14:34:28] Production.INFO: count ==5630 [2025-01-27 14:34:30] Production.ERROR: pbx CDR StartTime 2025-01-27 11:34:05 - End Time 2025-01-27 14:34:05 [2025-01-27 14:34:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342299', 'tblTempUsageDetail_20' ) start [2025-01-27 14:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342299', 'tblTempUsageDetail_20' ) end [2025-01-27 14:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342299', 'tblTempVendorCDR_20' ) start [2025-01-27 14:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342299', 'tblTempVendorCDR_20' ) end [2025-01-27 14:34:30] Production.INFO: ProcessCDR(1,14342299,1,1,2) [2025-01-27 14:34:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:34:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:34:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:34:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:34:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342299', 'tblTempUsageDetail_20' ) start [2025-01-27 14:34:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342299', 'tblTempUsageDetail_20' ) end [2025-01-27 14:34:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:34:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:34:35] Production.INFO: ==20358== Releasing lock... [2025-01-27 14:34:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:34:35] Production.INFO: 70.25 MB #Memory Used# [2025-01-27 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:35:05 [end_date_ymd] => 2025-01-27 14:35:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:35:05' and `end` < '2025-01-27 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-01-27 14:35:27] Production.INFO: count ==5616 [2025-01-27 14:35:29] Production.ERROR: pbx CDR StartTime 2025-01-27 11:35:05 - End Time 2025-01-27 14:35:05 [2025-01-27 14:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342304', 'tblTempUsageDetail_20' ) start [2025-01-27 14:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342304', 'tblTempUsageDetail_20' ) end [2025-01-27 14:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342304', 'tblTempVendorCDR_20' ) start [2025-01-27 14:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342304', 'tblTempVendorCDR_20' ) end [2025-01-27 14:35:29] Production.INFO: ProcessCDR(1,14342304,1,1,2) [2025-01-27 14:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342304', 'tblTempUsageDetail_20' ) start [2025-01-27 14:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342304', 'tblTempUsageDetail_20' ) end [2025-01-27 14:35:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:35:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:35:35] Production.INFO: ==20505== Releasing lock... [2025-01-27 14:35:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:35:35] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:36:06 [end_date_ymd] => 2025-01-27 14:36:06 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:36:06' and `end` < '2025-01-27 14: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-01-27 14:36:26] Production.INFO: count ==5612 [2025-01-27 14:36:28] Production.ERROR: pbx CDR StartTime 2025-01-27 11:36:06 - End Time 2025-01-27 14:36:06 [2025-01-27 14:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342309', 'tblTempUsageDetail_20' ) start [2025-01-27 14:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342309', 'tblTempUsageDetail_20' ) end [2025-01-27 14:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342309', 'tblTempVendorCDR_20' ) start [2025-01-27 14:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342309', 'tblTempVendorCDR_20' ) end [2025-01-27 14:36:28] Production.INFO: ProcessCDR(1,14342309,1,1,2) [2025-01-27 14:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:36:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:36:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342309', 'tblTempUsageDetail_20' ) start [2025-01-27 14:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342309', 'tblTempUsageDetail_20' ) end [2025-01-27 14:36:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:36:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:36:33] Production.INFO: ==20638== Releasing lock... [2025-01-27 14:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:36:33] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:37:06 [end_date_ymd] => 2025-01-27 14:37:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:37:06' and `end` < '2025-01-27 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-01-27 14:37:32] Production.INFO: count ==5600 [2025-01-27 14:37:34] Production.ERROR: pbx CDR StartTime 2025-01-27 11:37:06 - End Time 2025-01-27 14:37:06 [2025-01-27 14:37:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342314', 'tblTempUsageDetail_20' ) start [2025-01-27 14:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342314', 'tblTempUsageDetail_20' ) end [2025-01-27 14:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342314', 'tblTempVendorCDR_20' ) start [2025-01-27 14:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342314', 'tblTempVendorCDR_20' ) end [2025-01-27 14:37:34] Production.INFO: ProcessCDR(1,14342314,1,1,2) [2025-01-27 14:37:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:37:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:37:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:37:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:37:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342314', 'tblTempUsageDetail_20' ) start [2025-01-27 14:37:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342314', 'tblTempUsageDetail_20' ) end [2025-01-27 14:37:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:37:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:37:40] Production.INFO: ==20769== Releasing lock... [2025-01-27 14:37:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:37:40] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:38:06 [end_date_ymd] => 2025-01-27 14:38:06 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:38:06' and `end` < '2025-01-27 14: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-01-27 14:38:26] Production.INFO: count ==5584 [2025-01-27 14:38:29] Production.ERROR: pbx CDR StartTime 2025-01-27 11:38:06 - End Time 2025-01-27 14:38:06 [2025-01-27 14:38:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342319', 'tblTempUsageDetail_20' ) start [2025-01-27 14:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342319', 'tblTempUsageDetail_20' ) end [2025-01-27 14:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342319', 'tblTempVendorCDR_20' ) start [2025-01-27 14:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342319', 'tblTempVendorCDR_20' ) end [2025-01-27 14:38:29] Production.INFO: ProcessCDR(1,14342319,1,1,2) [2025-01-27 14:38:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:38:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:38:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:38:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342319', 'tblTempUsageDetail_20' ) start [2025-01-27 14:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342319', 'tblTempUsageDetail_20' ) end [2025-01-27 14:38:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:38:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:38:35] Production.INFO: ==20911== Releasing lock... [2025-01-27 14:38:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:38:35] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:39:05 [end_date_ymd] => 2025-01-27 14:39:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:39:05' and `end` < '2025-01-27 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-01-27 14:39:36] Production.INFO: count ==5599 [2025-01-27 14:39:38] Production.ERROR: pbx CDR StartTime 2025-01-27 11:39:05 - End Time 2025-01-27 14:39:05 [2025-01-27 14:39:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:39:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342324', 'tblTempUsageDetail_20' ) start [2025-01-27 14:39:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342324', 'tblTempUsageDetail_20' ) end [2025-01-27 14:39:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342324', 'tblTempVendorCDR_20' ) start [2025-01-27 14:39:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342324', 'tblTempVendorCDR_20' ) end [2025-01-27 14:39:38] Production.INFO: ProcessCDR(1,14342324,1,1,2) [2025-01-27 14:39:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:39:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:39:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:39:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:39:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342324', 'tblTempUsageDetail_20' ) start [2025-01-27 14:39:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342324', 'tblTempUsageDetail_20' ) end [2025-01-27 14:39:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:39:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:39:43] Production.INFO: ==21048== Releasing lock... [2025-01-27 14:39:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:39:43] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:40:06 [end_date_ymd] => 2025-01-27 14:40:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:40:06' and `end` < '2025-01-27 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-01-27 14:40:36] Production.INFO: count ==5605 [2025-01-27 14:40:38] Production.ERROR: pbx CDR StartTime 2025-01-27 11:40:06 - End Time 2025-01-27 14:40:06 [2025-01-27 14:40:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:40:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342329', 'tblTempUsageDetail_20' ) start [2025-01-27 14:40:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342329', 'tblTempUsageDetail_20' ) end [2025-01-27 14:40:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342329', 'tblTempVendorCDR_20' ) start [2025-01-27 14:40:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342329', 'tblTempVendorCDR_20' ) end [2025-01-27 14:40:38] Production.INFO: ProcessCDR(1,14342329,1,1,2) [2025-01-27 14:40:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:40:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:40:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:40:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:40:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342329', 'tblTempUsageDetail_20' ) start [2025-01-27 14:40:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342329', 'tblTempUsageDetail_20' ) end [2025-01-27 14:40:44] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:40:44] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:40:44] Production.INFO: ==21189== Releasing lock... [2025-01-27 14:40:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:40:44] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:41:05 [end_date_ymd] => 2025-01-27 14:41:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:41:05' and `end` < '2025-01-27 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-01-27 14:41:30] Production.INFO: count ==5589 [2025-01-27 14:41:32] Production.ERROR: pbx CDR StartTime 2025-01-27 11:41:05 - End Time 2025-01-27 14:41:05 [2025-01-27 14:41:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342335', 'tblTempUsageDetail_20' ) start [2025-01-27 14:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342335', 'tblTempUsageDetail_20' ) end [2025-01-27 14:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342335', 'tblTempVendorCDR_20' ) start [2025-01-27 14:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342335', 'tblTempVendorCDR_20' ) end [2025-01-27 14:41:32] Production.INFO: ProcessCDR(1,14342335,1,1,2) [2025-01-27 14:41:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:41:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:41:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:41:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:41:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342335', 'tblTempUsageDetail_20' ) start [2025-01-27 14:41:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342335', 'tblTempUsageDetail_20' ) end [2025-01-27 14:41:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:41:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:41:38] Production.INFO: ==21326== Releasing lock... [2025-01-27 14:41:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:41:38] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:42:06 [end_date_ymd] => 2025-01-27 14:42:06 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:42:06' and `end` < '2025-01-27 14: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-01-27 14:42:34] Production.INFO: count ==5583 [2025-01-27 14:42:37] Production.ERROR: pbx CDR StartTime 2025-01-27 11:42:06 - End Time 2025-01-27 14:42:06 [2025-01-27 14:42:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:42:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342340', 'tblTempUsageDetail_20' ) start [2025-01-27 14:42:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342340', 'tblTempUsageDetail_20' ) end [2025-01-27 14:42:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342340', 'tblTempVendorCDR_20' ) start [2025-01-27 14:42:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342340', 'tblTempVendorCDR_20' ) end [2025-01-27 14:42:37] Production.INFO: ProcessCDR(1,14342340,1,1,2) [2025-01-27 14:42:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:42:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:42:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:42:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:42:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342340', 'tblTempUsageDetail_20' ) start [2025-01-27 14:42:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342340', 'tblTempUsageDetail_20' ) end [2025-01-27 14:42:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:42:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:42:42] Production.INFO: ==21501== Releasing lock... [2025-01-27 14:42:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:42:42] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 14:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:43:05 [end_date_ymd] => 2025-01-27 14:43:05 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:43:05' and `end` < '2025-01-27 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-01-27 14:43:28] Production.INFO: count ==5563 [2025-01-27 14:43:30] Production.ERROR: pbx CDR StartTime 2025-01-27 11:43:05 - End Time 2025-01-27 14:43:05 [2025-01-27 14:43:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342345', 'tblTempUsageDetail_20' ) start [2025-01-27 14:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342345', 'tblTempUsageDetail_20' ) end [2025-01-27 14:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342345', 'tblTempVendorCDR_20' ) start [2025-01-27 14:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342345', 'tblTempVendorCDR_20' ) end [2025-01-27 14:43:30] Production.INFO: ProcessCDR(1,14342345,1,1,2) [2025-01-27 14:43:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:43:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:43:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:43:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:43:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342345', 'tblTempUsageDetail_20' ) start [2025-01-27 14:43:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342345', 'tblTempUsageDetail_20' ) end [2025-01-27 14:43:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:43:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:43:35] Production.INFO: ==21630== Releasing lock... [2025-01-27 14:43:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:43:35] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:44:06 [end_date_ymd] => 2025-01-27 14:44:06 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:44:06' and `end` < '2025-01-27 14: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-01-27 14:44:31] Production.INFO: count ==5586 [2025-01-27 14:44:33] Production.ERROR: pbx CDR StartTime 2025-01-27 11:44:06 - End Time 2025-01-27 14:44:06 [2025-01-27 14:44:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342350', 'tblTempUsageDetail_20' ) start [2025-01-27 14:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342350', 'tblTempUsageDetail_20' ) end [2025-01-27 14:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342350', 'tblTempVendorCDR_20' ) start [2025-01-27 14:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342350', 'tblTempVendorCDR_20' ) end [2025-01-27 14:44:34] Production.INFO: ProcessCDR(1,14342350,1,1,2) [2025-01-27 14:44:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:44:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:44:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:44:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:44:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342350', 'tblTempUsageDetail_20' ) start [2025-01-27 14:44:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342350', 'tblTempUsageDetail_20' ) end [2025-01-27 14:44:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:44:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:44:39] Production.INFO: ==21772== Releasing lock... [2025-01-27 14:44:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:44:39] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:45:05 [end_date_ymd] => 2025-01-27 14:45:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:45:05' and `end` < '2025-01-27 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-01-27 14:45:33] Production.INFO: count ==5578 [2025-01-27 14:45:36] Production.ERROR: pbx CDR StartTime 2025-01-27 11:45:05 - End Time 2025-01-27 14:45:05 [2025-01-27 14:45:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342355', 'tblTempUsageDetail_20' ) start [2025-01-27 14:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342355', 'tblTempUsageDetail_20' ) end [2025-01-27 14:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342355', 'tblTempVendorCDR_20' ) start [2025-01-27 14:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342355', 'tblTempVendorCDR_20' ) end [2025-01-27 14:45:36] Production.INFO: ProcessCDR(1,14342355,1,1,2) [2025-01-27 14:45:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:45:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:45:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:45:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:45:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342355', 'tblTempUsageDetail_20' ) start [2025-01-27 14:45:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342355', 'tblTempUsageDetail_20' ) end [2025-01-27 14:45:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:45:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:45:41] Production.INFO: ==21918== Releasing lock... [2025-01-27 14:45:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:45:41] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:46:06 [end_date_ymd] => 2025-01-27 14:46:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:46:06' and `end` < '2025-01-27 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-01-27 14:46:26] Production.INFO: count ==5589 [2025-01-27 14:46:29] Production.ERROR: pbx CDR StartTime 2025-01-27 11:46:06 - End Time 2025-01-27 14:46:06 [2025-01-27 14:46:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342360', 'tblTempUsageDetail_20' ) start [2025-01-27 14:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342360', 'tblTempUsageDetail_20' ) end [2025-01-27 14:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342360', 'tblTempVendorCDR_20' ) start [2025-01-27 14:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342360', 'tblTempVendorCDR_20' ) end [2025-01-27 14:46:29] Production.INFO: ProcessCDR(1,14342360,1,1,2) [2025-01-27 14:46:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:46:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:46:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:46:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342360', 'tblTempUsageDetail_20' ) start [2025-01-27 14:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342360', 'tblTempUsageDetail_20' ) end [2025-01-27 14:46:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:46:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:46:34] Production.INFO: ==22064== Releasing lock... [2025-01-27 14:46:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:46:34] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:47:05 [end_date_ymd] => 2025-01-27 14:47:05 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:47:05' and `end` < '2025-01-27 14: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-01-27 14:47:28] Production.INFO: count ==5606 [2025-01-27 14:47:31] Production.ERROR: pbx CDR StartTime 2025-01-27 11:47:05 - End Time 2025-01-27 14:47:05 [2025-01-27 14:47:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342365', 'tblTempUsageDetail_20' ) start [2025-01-27 14:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342365', 'tblTempUsageDetail_20' ) end [2025-01-27 14:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342365', 'tblTempVendorCDR_20' ) start [2025-01-27 14:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342365', 'tblTempVendorCDR_20' ) end [2025-01-27 14:47:31] Production.INFO: ProcessCDR(1,14342365,1,1,2) [2025-01-27 14:47:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:47:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:47:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:47:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:47:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342365', 'tblTempUsageDetail_20' ) start [2025-01-27 14:47:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342365', 'tblTempUsageDetail_20' ) end [2025-01-27 14:47:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:47:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:47:37] Production.INFO: ==22199== Releasing lock... [2025-01-27 14:47:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:47:37] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:48:06 [end_date_ymd] => 2025-01-27 14:48:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:48:06' and `end` < '2025-01-27 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-01-27 14:48:35] Production.INFO: count ==5609 [2025-01-27 14:48:37] Production.ERROR: pbx CDR StartTime 2025-01-27 11:48:06 - End Time 2025-01-27 14:48:06 [2025-01-27 14:48:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:48:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342370', 'tblTempUsageDetail_20' ) start [2025-01-27 14:48:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342370', 'tblTempUsageDetail_20' ) end [2025-01-27 14:48:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342370', 'tblTempVendorCDR_20' ) start [2025-01-27 14:48:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342370', 'tblTempVendorCDR_20' ) end [2025-01-27 14:48:37] Production.INFO: ProcessCDR(1,14342370,1,1,2) [2025-01-27 14:48:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:48:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:48:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:48:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:48:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342370', 'tblTempUsageDetail_20' ) start [2025-01-27 14:48:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342370', 'tblTempUsageDetail_20' ) end [2025-01-27 14:48:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:48:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:48:43] Production.INFO: ==22334== Releasing lock... [2025-01-27 14:48:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:48:43] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:49:05 [end_date_ymd] => 2025-01-27 14:49:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:49:05' and `end` < '2025-01-27 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-01-27 14:49:33] Production.INFO: count ==5608 [2025-01-27 14:49:36] Production.ERROR: pbx CDR StartTime 2025-01-27 11:49:05 - End Time 2025-01-27 14:49:05 [2025-01-27 14:49:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342375', 'tblTempUsageDetail_20' ) start [2025-01-27 14:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342375', 'tblTempUsageDetail_20' ) end [2025-01-27 14:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342375', 'tblTempVendorCDR_20' ) start [2025-01-27 14:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342375', 'tblTempVendorCDR_20' ) end [2025-01-27 14:49:36] Production.INFO: ProcessCDR(1,14342375,1,1,2) [2025-01-27 14:49:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:49:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:49:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:49:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:49:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342375', 'tblTempUsageDetail_20' ) start [2025-01-27 14:49:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342375', 'tblTempUsageDetail_20' ) end [2025-01-27 14:49:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:49:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:49:42] Production.INFO: ==22466== Releasing lock... [2025-01-27 14:49:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:49:42] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:50:06 [end_date_ymd] => 2025-01-27 14:50:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:50:06' and `end` < '2025-01-27 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-01-27 14:50:30] Production.INFO: count ==5595 [2025-01-27 14:50:32] Production.ERROR: pbx CDR StartTime 2025-01-27 11:50:06 - End Time 2025-01-27 14:50:06 [2025-01-27 14:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342381', 'tblTempUsageDetail_20' ) start [2025-01-27 14:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342381', 'tblTempUsageDetail_20' ) end [2025-01-27 14:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342381', 'tblTempVendorCDR_20' ) start [2025-01-27 14:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342381', 'tblTempVendorCDR_20' ) end [2025-01-27 14:50:32] Production.INFO: ProcessCDR(1,14342381,1,1,2) [2025-01-27 14:50:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:50:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:50:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:50:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342381', 'tblTempUsageDetail_20' ) start [2025-01-27 14:50:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342381', 'tblTempUsageDetail_20' ) end [2025-01-27 14:50:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:50:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:50:38] Production.INFO: ==22599== Releasing lock... [2025-01-27 14:50:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:50:38] Production.INFO: 70 MB #Memory Used# [2025-01-27 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:51:05 [end_date_ymd] => 2025-01-27 14:51:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:51:05' and `end` < '2025-01-27 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-01-27 14:51:25] Production.INFO: count ==5566 [2025-01-27 14:51:28] Production.ERROR: pbx CDR StartTime 2025-01-27 11:51:05 - End Time 2025-01-27 14:51:05 [2025-01-27 14:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342386', 'tblTempUsageDetail_20' ) start [2025-01-27 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342386', 'tblTempUsageDetail_20' ) end [2025-01-27 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342386', 'tblTempVendorCDR_20' ) start [2025-01-27 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342386', 'tblTempVendorCDR_20' ) end [2025-01-27 14:51:28] Production.INFO: ProcessCDR(1,14342386,1,1,2) [2025-01-27 14:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:51:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:51:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342386', 'tblTempUsageDetail_20' ) start [2025-01-27 14:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342386', 'tblTempUsageDetail_20' ) end [2025-01-27 14:51:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:51:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:51:33] Production.INFO: ==22740== Releasing lock... [2025-01-27 14:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:51:33] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:52:06 [end_date_ymd] => 2025-01-27 14:52:06 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:52:06' and `end` < '2025-01-27 14: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-01-27 14:52:25] Production.INFO: count ==5580 [2025-01-27 14:52:27] Production.ERROR: pbx CDR StartTime 2025-01-27 11:52:06 - End Time 2025-01-27 14:52:06 [2025-01-27 14:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342391', 'tblTempUsageDetail_20' ) start [2025-01-27 14:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342391', 'tblTempUsageDetail_20' ) end [2025-01-27 14:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342391', 'tblTempVendorCDR_20' ) start [2025-01-27 14:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342391', 'tblTempVendorCDR_20' ) end [2025-01-27 14:52:27] Production.INFO: ProcessCDR(1,14342391,1,1,2) [2025-01-27 14:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342391', 'tblTempUsageDetail_20' ) start [2025-01-27 14:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342391', 'tblTempUsageDetail_20' ) end [2025-01-27 14:52:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:52:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:52:33] Production.INFO: ==22876== Releasing lock... [2025-01-27 14:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:52:33] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:53:05 [end_date_ymd] => 2025-01-27 14:53:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:53:05' and `end` < '2025-01-27 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-01-27 14:53:25] Production.INFO: count ==5571 [2025-01-27 14:53:28] Production.ERROR: pbx CDR StartTime 2025-01-27 11:53:05 - End Time 2025-01-27 14:53:05 [2025-01-27 14:53:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342396', 'tblTempUsageDetail_20' ) start [2025-01-27 14:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342396', 'tblTempUsageDetail_20' ) end [2025-01-27 14:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342396', 'tblTempVendorCDR_20' ) start [2025-01-27 14:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342396', 'tblTempVendorCDR_20' ) end [2025-01-27 14:53:28] Production.INFO: ProcessCDR(1,14342396,1,1,2) [2025-01-27 14:53:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:53:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:53:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:53:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342396', 'tblTempUsageDetail_20' ) start [2025-01-27 14:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342396', 'tblTempUsageDetail_20' ) end [2025-01-27 14:53:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:53:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:53:33] Production.INFO: ==23018== Releasing lock... [2025-01-27 14:53:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:53:33] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:54:06 [end_date_ymd] => 2025-01-27 14:54:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:54:06' and `end` < '2025-01-27 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-01-27 14:54:31] Production.INFO: count ==5576 [2025-01-27 14:54:34] Production.ERROR: pbx CDR StartTime 2025-01-27 11:54:06 - End Time 2025-01-27 14:54:06 [2025-01-27 14:54:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342401', 'tblTempUsageDetail_20' ) start [2025-01-27 14:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342401', 'tblTempUsageDetail_20' ) end [2025-01-27 14:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342401', 'tblTempVendorCDR_20' ) start [2025-01-27 14:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342401', 'tblTempVendorCDR_20' ) end [2025-01-27 14:54:34] Production.INFO: ProcessCDR(1,14342401,1,1,2) [2025-01-27 14:54:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:54:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:54:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:54:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:54:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342401', 'tblTempUsageDetail_20' ) start [2025-01-27 14:54:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342401', 'tblTempUsageDetail_20' ) end [2025-01-27 14:54:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:54:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:54:39] Production.INFO: ==23153== Releasing lock... [2025-01-27 14:54:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:54:39] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:55:06 [end_date_ymd] => 2025-01-27 14:55:06 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:55:06' and `end` < '2025-01-27 14: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-01-27 14:55:36] Production.INFO: count ==5568 [2025-01-27 14:55:38] Production.ERROR: pbx CDR StartTime 2025-01-27 11:55:06 - End Time 2025-01-27 14:55:06 [2025-01-27 14:55:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:55:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342406', 'tblTempUsageDetail_20' ) start [2025-01-27 14:55:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342406', 'tblTempUsageDetail_20' ) end [2025-01-27 14:55:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342406', 'tblTempVendorCDR_20' ) start [2025-01-27 14:55:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342406', 'tblTempVendorCDR_20' ) end [2025-01-27 14:55:38] Production.INFO: ProcessCDR(1,14342406,1,1,2) [2025-01-27 14:55:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:55:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:55:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:55:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:55:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342406', 'tblTempUsageDetail_20' ) start [2025-01-27 14:55:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342406', 'tblTempUsageDetail_20' ) end [2025-01-27 14:55:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:55:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:55:43] Production.INFO: ==23282== Releasing lock... [2025-01-27 14:55:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:55:43] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:56:06 [end_date_ymd] => 2025-01-27 14:56:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:56:06' and `end` < '2025-01-27 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-01-27 14:56:30] Production.INFO: count ==5568 [2025-01-27 14:56:32] Production.ERROR: pbx CDR StartTime 2025-01-27 11:56:06 - End Time 2025-01-27 14:56:06 [2025-01-27 14:56:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342411', 'tblTempUsageDetail_20' ) start [2025-01-27 14:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342411', 'tblTempUsageDetail_20' ) end [2025-01-27 14:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342411', 'tblTempVendorCDR_20' ) start [2025-01-27 14:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342411', 'tblTempVendorCDR_20' ) end [2025-01-27 14:56:33] Production.INFO: ProcessCDR(1,14342411,1,1,2) [2025-01-27 14:56:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:56:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:56:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:56:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342411', 'tblTempUsageDetail_20' ) start [2025-01-27 14:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342411', 'tblTempUsageDetail_20' ) end [2025-01-27 14:56:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:56:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:56:38] Production.INFO: ==23411== Releasing lock... [2025-01-27 14:56:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:56:38] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:57:05 [end_date_ymd] => 2025-01-27 14:57:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:57:05' and `end` < '2025-01-27 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-01-27 14:57:35] Production.INFO: count ==5553 [2025-01-27 14:57:37] Production.ERROR: pbx CDR StartTime 2025-01-27 11:57:05 - End Time 2025-01-27 14:57:05 [2025-01-27 14:57:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:57:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342416', 'tblTempUsageDetail_20' ) start [2025-01-27 14:57:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342416', 'tblTempUsageDetail_20' ) end [2025-01-27 14:57:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342416', 'tblTempVendorCDR_20' ) start [2025-01-27 14:57:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342416', 'tblTempVendorCDR_20' ) end [2025-01-27 14:57:37] Production.INFO: ProcessCDR(1,14342416,1,1,2) [2025-01-27 14:57:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:57:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:57:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:57:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:57:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342416', 'tblTempUsageDetail_20' ) start [2025-01-27 14:57:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342416', 'tblTempUsageDetail_20' ) end [2025-01-27 14:57:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:57:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:57:43] Production.INFO: ==23546== Releasing lock... [2025-01-27 14:57:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:57:43] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:58:06 [end_date_ymd] => 2025-01-27 14:58:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 11:58:06' and `end` < '2025-01-27 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-01-27 14:58:27] Production.INFO: count ==5562 [2025-01-27 14:58:30] Production.ERROR: pbx CDR StartTime 2025-01-27 11:58:06 - End Time 2025-01-27 14:58:06 [2025-01-27 14:58:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342421', 'tblTempUsageDetail_20' ) start [2025-01-27 14:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342421', 'tblTempUsageDetail_20' ) end [2025-01-27 14:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342421', 'tblTempVendorCDR_20' ) start [2025-01-27 14:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342421', 'tblTempVendorCDR_20' ) end [2025-01-27 14:58:30] Production.INFO: ProcessCDR(1,14342421,1,1,2) [2025-01-27 14:58:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:58:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:58:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:58:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:58:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342421', 'tblTempUsageDetail_20' ) start [2025-01-27 14:58:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342421', 'tblTempUsageDetail_20' ) end [2025-01-27 14:58:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:58:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:58:36] Production.INFO: ==23722== Releasing lock... [2025-01-27 14:58:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:58:36] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 14:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 11:59:06 [end_date_ymd] => 2025-01-27 14:59:06 [RateCDR] => 1 ) [2025-01-27 14: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-01-27 11:59:06' and `end` < '2025-01-27 14: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-01-27 14:59:27] Production.INFO: count ==5535 [2025-01-27 14:59:30] Production.ERROR: pbx CDR StartTime 2025-01-27 11:59:06 - End Time 2025-01-27 14:59:06 [2025-01-27 14:59:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 14:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342426', 'tblTempUsageDetail_20' ) start [2025-01-27 14:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342426', 'tblTempUsageDetail_20' ) end [2025-01-27 14:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342426', 'tblTempVendorCDR_20' ) start [2025-01-27 14:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342426', 'tblTempVendorCDR_20' ) end [2025-01-27 14:59:30] Production.INFO: ProcessCDR(1,14342426,1,1,2) [2025-01-27 14:59:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:59:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 14:59:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:59:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 14:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342426', 'tblTempUsageDetail_20' ) start [2025-01-27 14:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342426', 'tblTempUsageDetail_20' ) end [2025-01-27 14:59:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 14:59:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 14:59:35] Production.INFO: ==23859== Releasing lock... [2025-01-27 14:59:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 14:59:35] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:00:07 [end_date_ymd] => 2025-01-27 15:00:07 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:00:07' and `end` < '2025-01-27 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-01-27 15:00:31] Production.INFO: count ==5545 [2025-01-27 15:00:33] Production.ERROR: pbx CDR StartTime 2025-01-27 12:00:07 - End Time 2025-01-27 15:00:07 [2025-01-27 15:00:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342432', 'tblTempUsageDetail_20' ) start [2025-01-27 15:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342432', 'tblTempUsageDetail_20' ) end [2025-01-27 15:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342432', 'tblTempVendorCDR_20' ) start [2025-01-27 15:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342432', 'tblTempVendorCDR_20' ) end [2025-01-27 15:00:33] Production.INFO: ProcessCDR(1,14342432,1,1,2) [2025-01-27 15:00:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:00:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:00:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:00:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342432', 'tblTempUsageDetail_20' ) start [2025-01-27 15:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342432', 'tblTempUsageDetail_20' ) end [2025-01-27 15:00:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:00:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:00:38] Production.INFO: ==23996== Releasing lock... [2025-01-27 15:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:00:38] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:01:05 [end_date_ymd] => 2025-01-27 15:01:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:01:05' and `end` < '2025-01-27 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-01-27 15:01:26] Production.INFO: count ==5550 [2025-01-27 15:01:29] Production.ERROR: pbx CDR StartTime 2025-01-27 12:01:05 - End Time 2025-01-27 15:01:05 [2025-01-27 15:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342437', 'tblTempUsageDetail_20' ) start [2025-01-27 15:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342437', 'tblTempUsageDetail_20' ) end [2025-01-27 15:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342437', 'tblTempVendorCDR_20' ) start [2025-01-27 15:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342437', 'tblTempVendorCDR_20' ) end [2025-01-27 15:01:29] Production.INFO: ProcessCDR(1,14342437,1,1,2) [2025-01-27 15:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:01:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342437', 'tblTempUsageDetail_20' ) start [2025-01-27 15:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342437', 'tblTempUsageDetail_20' ) end [2025-01-27 15:01:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:01:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:01:34] Production.INFO: ==24218== Releasing lock... [2025-01-27 15:01:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:01:34] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:02:06 [end_date_ymd] => 2025-01-27 15:02:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:02:06' and `end` < '2025-01-27 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-01-27 15:02:31] Production.INFO: count ==5546 [2025-01-27 15:02:34] Production.ERROR: pbx CDR StartTime 2025-01-27 12:02:06 - End Time 2025-01-27 15:02:06 [2025-01-27 15:02:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342442', 'tblTempUsageDetail_20' ) start [2025-01-27 15:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342442', 'tblTempUsageDetail_20' ) end [2025-01-27 15:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342442', 'tblTempVendorCDR_20' ) start [2025-01-27 15:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342442', 'tblTempVendorCDR_20' ) end [2025-01-27 15:02:34] Production.INFO: ProcessCDR(1,14342442,1,1,2) [2025-01-27 15:02:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:02:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:02:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:02:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342442', 'tblTempUsageDetail_20' ) start [2025-01-27 15:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342442', 'tblTempUsageDetail_20' ) end [2025-01-27 15:02:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:02:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:02:39] Production.INFO: ==24348== Releasing lock... [2025-01-27 15:02:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:02:39] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:03:06 [end_date_ymd] => 2025-01-27 15:03:06 [RateCDR] => 1 ) [2025-01-27 15: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-01-27 12:03:06' and `end` < '2025-01-27 15: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-01-27 15:03:29] Production.INFO: count ==5536 [2025-01-27 15:03:31] Production.ERROR: pbx CDR StartTime 2025-01-27 12:03:06 - End Time 2025-01-27 15:03:06 [2025-01-27 15:03:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342447', 'tblTempUsageDetail_20' ) start [2025-01-27 15:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342447', 'tblTempUsageDetail_20' ) end [2025-01-27 15:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342447', 'tblTempVendorCDR_20' ) start [2025-01-27 15:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342447', 'tblTempVendorCDR_20' ) end [2025-01-27 15:03:31] Production.INFO: ProcessCDR(1,14342447,1,1,2) [2025-01-27 15:03:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:03:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:03:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:03:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:03:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342447', 'tblTempUsageDetail_20' ) start [2025-01-27 15:03:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342447', 'tblTempUsageDetail_20' ) end [2025-01-27 15:03:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:03:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:03:36] Production.INFO: ==24484== Releasing lock... [2025-01-27 15:03:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:03:36] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:04:06 [end_date_ymd] => 2025-01-27 15:04:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:04:06' and `end` < '2025-01-27 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-01-27 15:04:26] Production.INFO: count ==5527 [2025-01-27 15:04:29] Production.ERROR: pbx CDR StartTime 2025-01-27 12:04:06 - End Time 2025-01-27 15:04:06 [2025-01-27 15:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342452', 'tblTempUsageDetail_20' ) start [2025-01-27 15:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342452', 'tblTempUsageDetail_20' ) end [2025-01-27 15:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342452', 'tblTempVendorCDR_20' ) start [2025-01-27 15:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342452', 'tblTempVendorCDR_20' ) end [2025-01-27 15:04:29] Production.INFO: ProcessCDR(1,14342452,1,1,2) [2025-01-27 15:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342452', 'tblTempUsageDetail_20' ) start [2025-01-27 15:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342452', 'tblTempUsageDetail_20' ) end [2025-01-27 15:04:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:04:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:04:35] Production.INFO: ==24617== Releasing lock... [2025-01-27 15:04:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:04:35] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:05:05 [end_date_ymd] => 2025-01-27 15:05:05 [RateCDR] => 1 ) [2025-01-27 15: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-01-27 12:05:05' and `end` < '2025-01-27 15: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-01-27 15:05:29] Production.INFO: count ==5518 [2025-01-27 15:05:31] Production.ERROR: pbx CDR StartTime 2025-01-27 12:05:05 - End Time 2025-01-27 15:05:05 [2025-01-27 15:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342457', 'tblTempUsageDetail_20' ) start [2025-01-27 15:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342457', 'tblTempUsageDetail_20' ) end [2025-01-27 15:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342457', 'tblTempVendorCDR_20' ) start [2025-01-27 15:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342457', 'tblTempVendorCDR_20' ) end [2025-01-27 15:05:32] Production.INFO: ProcessCDR(1,14342457,1,1,2) [2025-01-27 15:05:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342457', 'tblTempUsageDetail_20' ) start [2025-01-27 15:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342457', 'tblTempUsageDetail_20' ) end [2025-01-27 15:05:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:05:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:05:37] Production.INFO: ==24833== Releasing lock... [2025-01-27 15:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:05:37] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:06:05 [end_date_ymd] => 2025-01-27 15:06:05 [RateCDR] => 1 ) [2025-01-27 15: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-01-27 12:06:05' and `end` < '2025-01-27 15: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-01-27 15:06:30] Production.INFO: count ==5519 [2025-01-27 15:06:32] Production.ERROR: pbx CDR StartTime 2025-01-27 12:06:05 - End Time 2025-01-27 15:06:05 [2025-01-27 15:06:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342462', 'tblTempUsageDetail_20' ) start [2025-01-27 15:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342462', 'tblTempUsageDetail_20' ) end [2025-01-27 15:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342462', 'tblTempVendorCDR_20' ) start [2025-01-27 15:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342462', 'tblTempVendorCDR_20' ) end [2025-01-27 15:06:32] Production.INFO: ProcessCDR(1,14342462,1,1,2) [2025-01-27 15:06:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:06:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:06:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:06:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342462', 'tblTempUsageDetail_20' ) start [2025-01-27 15:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342462', 'tblTempUsageDetail_20' ) end [2025-01-27 15:06:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:06:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:06:38] Production.INFO: ==24969== Releasing lock... [2025-01-27 15:06:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:06:38] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:07:06 [end_date_ymd] => 2025-01-27 15:07:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:07:06' and `end` < '2025-01-27 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-01-27 15:07:31] Production.INFO: count ==5520 [2025-01-27 15:07:33] Production.ERROR: pbx CDR StartTime 2025-01-27 12:07:06 - End Time 2025-01-27 15:07:06 [2025-01-27 15:07:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342467', 'tblTempUsageDetail_20' ) start [2025-01-27 15:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342467', 'tblTempUsageDetail_20' ) end [2025-01-27 15:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342467', 'tblTempVendorCDR_20' ) start [2025-01-27 15:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342467', 'tblTempVendorCDR_20' ) end [2025-01-27 15:07:33] Production.INFO: ProcessCDR(1,14342467,1,1,2) [2025-01-27 15:07:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:07:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:07:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:07:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:07:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342467', 'tblTempUsageDetail_20' ) start [2025-01-27 15:07:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342467', 'tblTempUsageDetail_20' ) end [2025-01-27 15:07:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:07:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:07:39] Production.INFO: ==25107== Releasing lock... [2025-01-27 15:07:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:07:39] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:08:06 [end_date_ymd] => 2025-01-27 15:08:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:08:06' and `end` < '2025-01-27 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-01-27 15:08:30] Production.INFO: count ==5507 [2025-01-27 15:08:33] Production.ERROR: pbx CDR StartTime 2025-01-27 12:08:06 - End Time 2025-01-27 15:08:06 [2025-01-27 15:08:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:08:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342472', 'tblTempUsageDetail_20' ) start [2025-01-27 15:08:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342472', 'tblTempUsageDetail_20' ) end [2025-01-27 15:08:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342472', 'tblTempVendorCDR_20' ) start [2025-01-27 15:08:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342472', 'tblTempVendorCDR_20' ) end [2025-01-27 15:08:33] Production.INFO: ProcessCDR(1,14342472,1,1,2) [2025-01-27 15:08:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:08:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:08:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:08:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:08:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342472', 'tblTempUsageDetail_20' ) start [2025-01-27 15:08:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342472', 'tblTempUsageDetail_20' ) end [2025-01-27 15:08:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:08:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:08:38] Production.INFO: ==25312== Releasing lock... [2025-01-27 15:08:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:08:38] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:09:06 [end_date_ymd] => 2025-01-27 15:09:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:09:06' and `end` < '2025-01-27 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-01-27 15:09:33] Production.INFO: count ==5501 [2025-01-27 15:09:35] Production.ERROR: pbx CDR StartTime 2025-01-27 12:09:06 - End Time 2025-01-27 15:09:06 [2025-01-27 15:09:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:09:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342477', 'tblTempUsageDetail_20' ) start [2025-01-27 15:09:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342477', 'tblTempUsageDetail_20' ) end [2025-01-27 15:09:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342477', 'tblTempVendorCDR_20' ) start [2025-01-27 15:09:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342477', 'tblTempVendorCDR_20' ) end [2025-01-27 15:09:36] Production.INFO: ProcessCDR(1,14342477,1,1,2) [2025-01-27 15:09:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:09:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:09:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:09:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:09:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342477', 'tblTempUsageDetail_20' ) start [2025-01-27 15:09:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342477', 'tblTempUsageDetail_20' ) end [2025-01-27 15:09:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:09:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:09:41] Production.INFO: ==25447== Releasing lock... [2025-01-27 15:09:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:09:41] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 15:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:10:07 [end_date_ymd] => 2025-01-27 15:10:07 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:10:07' and `end` < '2025-01-27 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-01-27 15:10:36] Production.INFO: count ==5492 [2025-01-27 15:10:38] Production.ERROR: pbx CDR StartTime 2025-01-27 12:10:07 - End Time 2025-01-27 15:10:07 [2025-01-27 15:10:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:10:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342483', 'tblTempUsageDetail_20' ) start [2025-01-27 15:10:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342483', 'tblTempUsageDetail_20' ) end [2025-01-27 15:10:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342483', 'tblTempVendorCDR_20' ) start [2025-01-27 15:10:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342483', 'tblTempVendorCDR_20' ) end [2025-01-27 15:10:38] Production.INFO: ProcessCDR(1,14342483,1,1,2) [2025-01-27 15:10:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:10:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:10:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:10:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:10:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342483', 'tblTempUsageDetail_20' ) start [2025-01-27 15:10:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342483', 'tblTempUsageDetail_20' ) end [2025-01-27 15:10:44] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:10:44] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:10:44] Production.INFO: ==25588== Releasing lock... [2025-01-27 15:10:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:10:44] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:11:05 [end_date_ymd] => 2025-01-27 15:11:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:11:05' and `end` < '2025-01-27 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-01-27 15:11:31] Production.INFO: count ==5517 [2025-01-27 15:11:33] Production.ERROR: pbx CDR StartTime 2025-01-27 12:11:05 - End Time 2025-01-27 15:11:05 [2025-01-27 15:11:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342488', 'tblTempUsageDetail_20' ) start [2025-01-27 15:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342488', 'tblTempUsageDetail_20' ) end [2025-01-27 15:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342488', 'tblTempVendorCDR_20' ) start [2025-01-27 15:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342488', 'tblTempVendorCDR_20' ) end [2025-01-27 15:11:33] Production.INFO: ProcessCDR(1,14342488,1,1,2) [2025-01-27 15:11:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:11:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:11:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:11:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:11:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342488', 'tblTempUsageDetail_20' ) start [2025-01-27 15:11:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342488', 'tblTempUsageDetail_20' ) end [2025-01-27 15:11:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:11:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:11:39] Production.INFO: ==25725== Releasing lock... [2025-01-27 15:11:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:11:39] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:12:06 [end_date_ymd] => 2025-01-27 15:12:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:12:06' and `end` < '2025-01-27 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-01-27 15:12:34] Production.INFO: count ==5514 [2025-01-27 15:12:36] Production.ERROR: pbx CDR StartTime 2025-01-27 12:12:06 - End Time 2025-01-27 15:12:06 [2025-01-27 15:12:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:12:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342493', 'tblTempUsageDetail_20' ) start [2025-01-27 15:12:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342493', 'tblTempUsageDetail_20' ) end [2025-01-27 15:12:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342493', 'tblTempVendorCDR_20' ) start [2025-01-27 15:12:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342493', 'tblTempVendorCDR_20' ) end [2025-01-27 15:12:36] Production.INFO: ProcessCDR(1,14342493,1,1,2) [2025-01-27 15:12:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:12:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:12:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:12:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:12:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342493', 'tblTempUsageDetail_20' ) start [2025-01-27 15:12:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342493', 'tblTempUsageDetail_20' ) end [2025-01-27 15:12:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:12:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:12:42] Production.INFO: ==25938== Releasing lock... [2025-01-27 15:12:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:12:42] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:13:06 [end_date_ymd] => 2025-01-27 15:13:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:13:06' and `end` < '2025-01-27 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-01-27 15:13:37] Production.INFO: count ==5495 [2025-01-27 15:13:40] Production.ERROR: pbx CDR StartTime 2025-01-27 12:13:06 - End Time 2025-01-27 15:13:06 [2025-01-27 15:13:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:13:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342498', 'tblTempUsageDetail_20' ) start [2025-01-27 15:13:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342498', 'tblTempUsageDetail_20' ) end [2025-01-27 15:13:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342498', 'tblTempVendorCDR_20' ) start [2025-01-27 15:13:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342498', 'tblTempVendorCDR_20' ) end [2025-01-27 15:13:40] Production.INFO: ProcessCDR(1,14342498,1,1,2) [2025-01-27 15:13:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:13:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:13:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:13:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:13:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342498', 'tblTempUsageDetail_20' ) start [2025-01-27 15:13:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342498', 'tblTempUsageDetail_20' ) end [2025-01-27 15:13:45] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:13:45] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:13:45] Production.INFO: ==26114== Releasing lock... [2025-01-27 15:13:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:13:45] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:14:06 [end_date_ymd] => 2025-01-27 15:14:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:14:06' and `end` < '2025-01-27 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-01-27 15:14:31] Production.INFO: count ==5492 [2025-01-27 15:14:33] Production.ERROR: pbx CDR StartTime 2025-01-27 12:14:06 - End Time 2025-01-27 15:14:06 [2025-01-27 15:14:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:14:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342503', 'tblTempUsageDetail_20' ) start [2025-01-27 15:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342503', 'tblTempUsageDetail_20' ) end [2025-01-27 15:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342503', 'tblTempVendorCDR_20' ) start [2025-01-27 15:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342503', 'tblTempVendorCDR_20' ) end [2025-01-27 15:14:34] Production.INFO: ProcessCDR(1,14342503,1,1,2) [2025-01-27 15:14:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:14:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:14:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:14:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:14:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342503', 'tblTempUsageDetail_20' ) start [2025-01-27 15:14:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342503', 'tblTempUsageDetail_20' ) end [2025-01-27 15:14:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:14:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:14:40] Production.INFO: ==26243== Releasing lock... [2025-01-27 15:14:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:14:40] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:15:05 [end_date_ymd] => 2025-01-27 15:15:05 [RateCDR] => 1 ) [2025-01-27 15: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-01-27 12:15:05' and `end` < '2025-01-27 15: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-01-27 15:15:31] Production.INFO: count ==5476 [2025-01-27 15:15:33] Production.ERROR: pbx CDR StartTime 2025-01-27 12:15:05 - End Time 2025-01-27 15:15:05 [2025-01-27 15:15:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342507', 'tblTempUsageDetail_20' ) start [2025-01-27 15:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342507', 'tblTempUsageDetail_20' ) end [2025-01-27 15:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342507', 'tblTempVendorCDR_20' ) start [2025-01-27 15:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342507', 'tblTempVendorCDR_20' ) end [2025-01-27 15:15:33] Production.INFO: ProcessCDR(1,14342507,1,1,2) [2025-01-27 15:15:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:15:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:15:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:15:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:15:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342507', 'tblTempUsageDetail_20' ) start [2025-01-27 15:15:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342507', 'tblTempUsageDetail_20' ) end [2025-01-27 15:15:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:15:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:15:39] Production.INFO: ==26456== Releasing lock... [2025-01-27 15:15:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:15:39] Production.INFO: 69 MB #Memory Used# [2025-01-27 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:16:06 [end_date_ymd] => 2025-01-27 15:16:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:16:06' and `end` < '2025-01-27 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-01-27 15:16:28] Production.INFO: count ==5477 [2025-01-27 15:16:30] Production.ERROR: pbx CDR StartTime 2025-01-27 12:16:06 - End Time 2025-01-27 15:16:06 [2025-01-27 15:16:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342513', 'tblTempUsageDetail_20' ) start [2025-01-27 15:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342513', 'tblTempUsageDetail_20' ) end [2025-01-27 15:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342513', 'tblTempVendorCDR_20' ) start [2025-01-27 15:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342513', 'tblTempVendorCDR_20' ) end [2025-01-27 15:16:30] Production.INFO: ProcessCDR(1,14342513,1,1,2) [2025-01-27 15:16:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:16:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:16:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:16:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:16:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342513', 'tblTempUsageDetail_20' ) start [2025-01-27 15:16:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342513', 'tblTempUsageDetail_20' ) end [2025-01-27 15:16:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:16:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:16:36] Production.INFO: ==26585== Releasing lock... [2025-01-27 15:16:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:16:36] Production.INFO: 69 MB #Memory Used# [2025-01-27 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:17:05 [end_date_ymd] => 2025-01-27 15:17:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:17:05' and `end` < '2025-01-27 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-01-27 15:17:29] Production.INFO: count ==5490 [2025-01-27 15:17:32] Production.ERROR: pbx CDR StartTime 2025-01-27 12:17:05 - End Time 2025-01-27 15:17:05 [2025-01-27 15:17:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342518', 'tblTempUsageDetail_20' ) start [2025-01-27 15:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342518', 'tblTempUsageDetail_20' ) end [2025-01-27 15:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342518', 'tblTempVendorCDR_20' ) start [2025-01-27 15:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342518', 'tblTempVendorCDR_20' ) end [2025-01-27 15:17:32] Production.INFO: ProcessCDR(1,14342518,1,1,2) [2025-01-27 15:17:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:17:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:17:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:17:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:17:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342518', 'tblTempUsageDetail_20' ) start [2025-01-27 15:17:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342518', 'tblTempUsageDetail_20' ) end [2025-01-27 15:17:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:17:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:17:37] Production.INFO: ==26720== Releasing lock... [2025-01-27 15:17:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:17:37] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:18:06 [end_date_ymd] => 2025-01-27 15:18:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:18:06' and `end` < '2025-01-27 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-01-27 15:18:30] Production.INFO: count ==5486 [2025-01-27 15:18:32] Production.ERROR: pbx CDR StartTime 2025-01-27 12:18:06 - End Time 2025-01-27 15:18:06 [2025-01-27 15:18:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342523', 'tblTempUsageDetail_20' ) start [2025-01-27 15:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342523', 'tblTempUsageDetail_20' ) end [2025-01-27 15:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342523', 'tblTempVendorCDR_20' ) start [2025-01-27 15:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342523', 'tblTempVendorCDR_20' ) end [2025-01-27 15:18:33] Production.INFO: ProcessCDR(1,14342523,1,1,2) [2025-01-27 15:18:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:18:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:18:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:18:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:18:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342523', 'tblTempUsageDetail_20' ) start [2025-01-27 15:18:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342523', 'tblTempUsageDetail_20' ) end [2025-01-27 15:18:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:18:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:18:38] Production.INFO: ==26856== Releasing lock... [2025-01-27 15:18:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:18:38] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 15:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:19:06 [end_date_ymd] => 2025-01-27 15:19:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:19:06' and `end` < '2025-01-27 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-01-27 15:19:27] Production.INFO: count ==5507 [2025-01-27 15:19:29] Production.ERROR: pbx CDR StartTime 2025-01-27 12:19:06 - End Time 2025-01-27 15:19:06 [2025-01-27 15:19:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342528', 'tblTempUsageDetail_20' ) start [2025-01-27 15:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342528', 'tblTempUsageDetail_20' ) end [2025-01-27 15:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342528', 'tblTempVendorCDR_20' ) start [2025-01-27 15:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342528', 'tblTempVendorCDR_20' ) end [2025-01-27 15:19:29] Production.INFO: ProcessCDR(1,14342528,1,1,2) [2025-01-27 15:19:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:19:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:19:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:19:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342528', 'tblTempUsageDetail_20' ) start [2025-01-27 15:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342528', 'tblTempUsageDetail_20' ) end [2025-01-27 15:19:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:19:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:19:35] Production.INFO: ==26989== Releasing lock... [2025-01-27 15:19:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:19:35] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 15:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:20:07 [end_date_ymd] => 2025-01-27 15:20:07 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:20:07' and `end` < '2025-01-27 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-01-27 15:20:27] Production.INFO: count ==5496 [2025-01-27 15:20:29] Production.ERROR: pbx CDR StartTime 2025-01-27 12:20:07 - End Time 2025-01-27 15:20:07 [2025-01-27 15:20:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342534', 'tblTempUsageDetail_20' ) start [2025-01-27 15:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342534', 'tblTempUsageDetail_20' ) end [2025-01-27 15:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342534', 'tblTempVendorCDR_20' ) start [2025-01-27 15:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342534', 'tblTempVendorCDR_20' ) end [2025-01-27 15:20:29] Production.INFO: ProcessCDR(1,14342534,1,1,2) [2025-01-27 15:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:20:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:20:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:20:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342534', 'tblTempUsageDetail_20' ) start [2025-01-27 15:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342534', 'tblTempUsageDetail_20' ) end [2025-01-27 15:20:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:20:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:20:34] Production.INFO: ==27123== Releasing lock... [2025-01-27 15:20:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:20:34] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:21:05 [end_date_ymd] => 2025-01-27 15:21:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:21:05' and `end` < '2025-01-27 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-01-27 15:21:23] Production.INFO: count ==5510 [2025-01-27 15:21:25] Production.ERROR: pbx CDR StartTime 2025-01-27 12:21:05 - End Time 2025-01-27 15:21:05 [2025-01-27 15:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342539', 'tblTempUsageDetail_20' ) start [2025-01-27 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342539', 'tblTempUsageDetail_20' ) end [2025-01-27 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342539', 'tblTempVendorCDR_20' ) start [2025-01-27 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342539', 'tblTempVendorCDR_20' ) end [2025-01-27 15:21:25] Production.INFO: ProcessCDR(1,14342539,1,1,2) [2025-01-27 15:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342539', 'tblTempUsageDetail_20' ) start [2025-01-27 15:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342539', 'tblTempUsageDetail_20' ) end [2025-01-27 15:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:21:30] Production.INFO: ==27261== Releasing lock... [2025-01-27 15:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:21:30] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 15:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:22:04 [end_date_ymd] => 2025-01-27 15:22:04 [RateCDR] => 1 ) [2025-01-27 15:22: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-01-27 12:22:04' and `end` < '2025-01-27 15:22: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-01-27 15:22:28] Production.INFO: count ==5531 [2025-01-27 15:22:30] Production.ERROR: pbx CDR StartTime 2025-01-27 12:22:04 - End Time 2025-01-27 15:22:04 [2025-01-27 15:22:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342544', 'tblTempUsageDetail_20' ) start [2025-01-27 15:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342544', 'tblTempUsageDetail_20' ) end [2025-01-27 15:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342544', 'tblTempVendorCDR_20' ) start [2025-01-27 15:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342544', 'tblTempVendorCDR_20' ) end [2025-01-27 15:22:30] Production.INFO: ProcessCDR(1,14342544,1,1,2) [2025-01-27 15:22:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:22:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:22:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:22:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342544', 'tblTempUsageDetail_20' ) start [2025-01-27 15:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342544', 'tblTempUsageDetail_20' ) end [2025-01-27 15:22:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:22:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:22:35] Production.INFO: ==27394== Releasing lock... [2025-01-27 15:22:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:22:35] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:23:05 [end_date_ymd] => 2025-01-27 15:23:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:23:05' and `end` < '2025-01-27 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-01-27 15:23:28] Production.INFO: count ==5539 [2025-01-27 15:23:30] Production.ERROR: pbx CDR StartTime 2025-01-27 12:23:05 - End Time 2025-01-27 15:23:05 [2025-01-27 15:23:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342549', 'tblTempUsageDetail_20' ) start [2025-01-27 15:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342549', 'tblTempUsageDetail_20' ) end [2025-01-27 15:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342549', 'tblTempVendorCDR_20' ) start [2025-01-27 15:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342549', 'tblTempVendorCDR_20' ) end [2025-01-27 15:23:30] Production.INFO: ProcessCDR(1,14342549,1,1,2) [2025-01-27 15:23:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:23:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:23:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:23:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:23:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342549', 'tblTempUsageDetail_20' ) start [2025-01-27 15:23:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342549', 'tblTempUsageDetail_20' ) end [2025-01-27 15:23:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:23:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:23:36] Production.INFO: ==27535== Releasing lock... [2025-01-27 15:23:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:23:36] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:24:06 [end_date_ymd] => 2025-01-27 15:24:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:24:06' and `end` < '2025-01-27 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-01-27 15:24:29] Production.INFO: count ==5539 [2025-01-27 15:24:31] Production.ERROR: pbx CDR StartTime 2025-01-27 12:24:06 - End Time 2025-01-27 15:24:06 [2025-01-27 15:24:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342554', 'tblTempUsageDetail_20' ) start [2025-01-27 15:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342554', 'tblTempUsageDetail_20' ) end [2025-01-27 15:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342554', 'tblTempVendorCDR_20' ) start [2025-01-27 15:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342554', 'tblTempVendorCDR_20' ) end [2025-01-27 15:24:32] Production.INFO: ProcessCDR(1,14342554,1,1,2) [2025-01-27 15:24:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:24:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:24:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:24:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:24:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342554', 'tblTempUsageDetail_20' ) start [2025-01-27 15:24:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342554', 'tblTempUsageDetail_20' ) end [2025-01-27 15:24:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:24:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:24:37] Production.INFO: ==27666== Releasing lock... [2025-01-27 15:24:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:24:37] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:25:05 [end_date_ymd] => 2025-01-27 15:25:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:25:05' and `end` < '2025-01-27 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-01-27 15:25:21] Production.INFO: count ==5538 [2025-01-27 15:25:23] Production.ERROR: pbx CDR StartTime 2025-01-27 12:25:05 - End Time 2025-01-27 15:25:05 [2025-01-27 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342559', 'tblTempUsageDetail_20' ) start [2025-01-27 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342559', 'tblTempUsageDetail_20' ) end [2025-01-27 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342559', 'tblTempVendorCDR_20' ) start [2025-01-27 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342559', 'tblTempVendorCDR_20' ) end [2025-01-27 15:25:23] Production.INFO: ProcessCDR(1,14342559,1,1,2) [2025-01-27 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342559', 'tblTempUsageDetail_20' ) start [2025-01-27 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342559', 'tblTempUsageDetail_20' ) end [2025-01-27 15:25:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:25:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:25:28] Production.INFO: ==27806== Releasing lock... [2025-01-27 15:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:25:28] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:26:06 [end_date_ymd] => 2025-01-27 15:26:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:26:06' and `end` < '2025-01-27 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-01-27 15:26:34] Production.INFO: count ==5543 [2025-01-27 15:26:36] Production.ERROR: pbx CDR StartTime 2025-01-27 12:26:06 - End Time 2025-01-27 15:26:06 [2025-01-27 15:26:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342564', 'tblTempUsageDetail_20' ) start [2025-01-27 15:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342564', 'tblTempUsageDetail_20' ) end [2025-01-27 15:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342564', 'tblTempVendorCDR_20' ) start [2025-01-27 15:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342564', 'tblTempVendorCDR_20' ) end [2025-01-27 15:26:36] Production.INFO: ProcessCDR(1,14342564,1,1,2) [2025-01-27 15:26:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:26:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:26:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:26:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:26:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342564', 'tblTempUsageDetail_20' ) start [2025-01-27 15:26:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342564', 'tblTempUsageDetail_20' ) end [2025-01-27 15:26:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:26:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:26:41] Production.INFO: ==27938== Releasing lock... [2025-01-27 15:26:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:26:41] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 15:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:27:04 [end_date_ymd] => 2025-01-27 15:27:04 [RateCDR] => 1 ) [2025-01-27 15:27: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-01-27 12:27:04' and `end` < '2025-01-27 15:27: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-01-27 15:27:29] Production.INFO: count ==5560 [2025-01-27 15:27:31] Production.ERROR: pbx CDR StartTime 2025-01-27 12:27:04 - End Time 2025-01-27 15:27:04 [2025-01-27 15:27:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342568', 'tblTempUsageDetail_20' ) start [2025-01-27 15:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342568', 'tblTempUsageDetail_20' ) end [2025-01-27 15:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342568', 'tblTempVendorCDR_20' ) start [2025-01-27 15:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342568', 'tblTempVendorCDR_20' ) end [2025-01-27 15:27:31] Production.INFO: ProcessCDR(1,14342568,1,1,2) [2025-01-27 15:27:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:27:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:27:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:27:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:27:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342568', 'tblTempUsageDetail_20' ) start [2025-01-27 15:27:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342568', 'tblTempUsageDetail_20' ) end [2025-01-27 15:27:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:27:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:27:37] Production.INFO: ==28065== Releasing lock... [2025-01-27 15:27:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:27:37] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:28:05 [end_date_ymd] => 2025-01-27 15:28:05 [RateCDR] => 1 ) [2025-01-27 15: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-01-27 12:28:05' and `end` < '2025-01-27 15: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-01-27 15:28:26] Production.INFO: count ==5565 [2025-01-27 15:28:28] Production.ERROR: pbx CDR StartTime 2025-01-27 12:28:05 - End Time 2025-01-27 15:28:05 [2025-01-27 15:28:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342574', 'tblTempUsageDetail_20' ) start [2025-01-27 15:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342574', 'tblTempUsageDetail_20' ) end [2025-01-27 15:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342574', 'tblTempVendorCDR_20' ) start [2025-01-27 15:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342574', 'tblTempVendorCDR_20' ) end [2025-01-27 15:28:28] Production.INFO: ProcessCDR(1,14342574,1,1,2) [2025-01-27 15:28:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:28:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:28:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:28:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342574', 'tblTempUsageDetail_20' ) start [2025-01-27 15:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342574', 'tblTempUsageDetail_20' ) end [2025-01-27 15:28:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:28:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:28:33] Production.INFO: ==28194== Releasing lock... [2025-01-27 15:28:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:28:33] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:29:05 [end_date_ymd] => 2025-01-27 15:29:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:29:05' and `end` < '2025-01-27 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-01-27 15:29:31] Production.INFO: count ==5579 [2025-01-27 15:29:33] Production.ERROR: pbx CDR StartTime 2025-01-27 12:29:05 - End Time 2025-01-27 15:29:05 [2025-01-27 15:29:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:29:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342579', 'tblTempUsageDetail_20' ) start [2025-01-27 15:29:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342579', 'tblTempUsageDetail_20' ) end [2025-01-27 15:29:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342579', 'tblTempVendorCDR_20' ) start [2025-01-27 15:29:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342579', 'tblTempVendorCDR_20' ) end [2025-01-27 15:29:33] Production.INFO: ProcessCDR(1,14342579,1,1,2) [2025-01-27 15:29:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:29:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:29:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:29:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:29:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342579', 'tblTempUsageDetail_20' ) start [2025-01-27 15:29:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342579', 'tblTempUsageDetail_20' ) end [2025-01-27 15:29:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:29:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:29:39] Production.INFO: ==28359== Releasing lock... [2025-01-27 15:29:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:29:39] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:30:06 [end_date_ymd] => 2025-01-27 15:30:06 [RateCDR] => 1 ) [2025-01-27 15: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-01-27 12:30:06' and `end` < '2025-01-27 15: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-01-27 15:30:30] Production.INFO: count ==5574 [2025-01-27 15:30:33] Production.ERROR: pbx CDR StartTime 2025-01-27 12:30:06 - End Time 2025-01-27 15:30:06 [2025-01-27 15:30:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342585', 'tblTempUsageDetail_20' ) start [2025-01-27 15:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342585', 'tblTempUsageDetail_20' ) end [2025-01-27 15:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342585', 'tblTempVendorCDR_20' ) start [2025-01-27 15:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342585', 'tblTempVendorCDR_20' ) end [2025-01-27 15:30:33] Production.INFO: ProcessCDR(1,14342585,1,1,2) [2025-01-27 15:30:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:30:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:30:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:30:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:30:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342585', 'tblTempUsageDetail_20' ) start [2025-01-27 15:30:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342585', 'tblTempUsageDetail_20' ) end [2025-01-27 15:30:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:30:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:30:38] Production.INFO: ==28499== Releasing lock... [2025-01-27 15:30:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:30:38] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:31:04 [end_date_ymd] => 2025-01-27 15:31:04 [RateCDR] => 1 ) [2025-01-27 15:31: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-01-27 12:31:04' and `end` < '2025-01-27 15:31: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-01-27 15:31:24] Production.INFO: count ==5554 [2025-01-27 15:31:26] Production.ERROR: pbx CDR StartTime 2025-01-27 12:31:04 - End Time 2025-01-27 15:31:04 [2025-01-27 15:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342590', 'tblTempUsageDetail_20' ) start [2025-01-27 15:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342590', 'tblTempUsageDetail_20' ) end [2025-01-27 15:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342590', 'tblTempVendorCDR_20' ) start [2025-01-27 15:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342590', 'tblTempVendorCDR_20' ) end [2025-01-27 15:31:26] Production.INFO: ProcessCDR(1,14342590,1,1,2) [2025-01-27 15:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342590', 'tblTempUsageDetail_20' ) start [2025-01-27 15:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342590', 'tblTempUsageDetail_20' ) end [2025-01-27 15:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:31:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:31:31] Production.INFO: ==28637== Releasing lock... [2025-01-27 15:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:31:31] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:32:05 [end_date_ymd] => 2025-01-27 15:32:05 [RateCDR] => 1 ) [2025-01-27 15: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-01-27 12:32:05' and `end` < '2025-01-27 15: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-01-27 15:32:35] Production.INFO: count ==5556 [2025-01-27 15:32:38] Production.ERROR: pbx CDR StartTime 2025-01-27 12:32:05 - End Time 2025-01-27 15:32:05 [2025-01-27 15:32:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:32:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342595', 'tblTempUsageDetail_20' ) start [2025-01-27 15:32:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342595', 'tblTempUsageDetail_20' ) end [2025-01-27 15:32:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342595', 'tblTempVendorCDR_20' ) start [2025-01-27 15:32:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342595', 'tblTempVendorCDR_20' ) end [2025-01-27 15:32:38] Production.INFO: ProcessCDR(1,14342595,1,1,2) [2025-01-27 15:32:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:32:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:32:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:32:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:32:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342595', 'tblTempUsageDetail_20' ) start [2025-01-27 15:32:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342595', 'tblTempUsageDetail_20' ) end [2025-01-27 15:32:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:32:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:32:43] Production.INFO: ==28771== Releasing lock... [2025-01-27 15:32:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:32:43] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:33:05 [end_date_ymd] => 2025-01-27 15:33:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:33:05' and `end` < '2025-01-27 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-01-27 15:33:31] Production.INFO: count ==5554 [2025-01-27 15:33:33] Production.ERROR: pbx CDR StartTime 2025-01-27 12:33:05 - End Time 2025-01-27 15:33:05 [2025-01-27 15:33:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:33:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342600', 'tblTempUsageDetail_20' ) start [2025-01-27 15:33:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342600', 'tblTempUsageDetail_20' ) end [2025-01-27 15:33:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342600', 'tblTempVendorCDR_20' ) start [2025-01-27 15:33:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342600', 'tblTempVendorCDR_20' ) end [2025-01-27 15:33:33] Production.INFO: ProcessCDR(1,14342600,1,1,2) [2025-01-27 15:33:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:33:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:33:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:33:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:33:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342600', 'tblTempUsageDetail_20' ) start [2025-01-27 15:33:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342600', 'tblTempUsageDetail_20' ) end [2025-01-27 15:33:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:33:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:33:38] Production.INFO: ==28898== Releasing lock... [2025-01-27 15:33:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:33:38] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:34:05 [end_date_ymd] => 2025-01-27 15:34:05 [RateCDR] => 1 ) [2025-01-27 15: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-01-27 12:34:05' and `end` < '2025-01-27 15: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-01-27 15:34:29] Production.INFO: count ==5549 [2025-01-27 15:34:31] Production.ERROR: pbx CDR StartTime 2025-01-27 12:34:05 - End Time 2025-01-27 15:34:05 [2025-01-27 15:34:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342605', 'tblTempUsageDetail_20' ) start [2025-01-27 15:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342605', 'tblTempUsageDetail_20' ) end [2025-01-27 15:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342605', 'tblTempVendorCDR_20' ) start [2025-01-27 15:34:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342605', 'tblTempVendorCDR_20' ) end [2025-01-27 15:34:32] Production.INFO: ProcessCDR(1,14342605,1,1,2) [2025-01-27 15:34:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:34:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:34:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:34:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:34:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342605', 'tblTempUsageDetail_20' ) start [2025-01-27 15:34:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342605', 'tblTempUsageDetail_20' ) end [2025-01-27 15:34:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:34:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:34:37] Production.INFO: ==29025== Releasing lock... [2025-01-27 15:34:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:34:37] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 15:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:35:06 [end_date_ymd] => 2025-01-27 15:35:06 [RateCDR] => 1 ) [2025-01-27 15: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-01-27 12:35:06' and `end` < '2025-01-27 15: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-01-27 15:35:31] Production.INFO: count ==5544 [2025-01-27 15:35:33] Production.ERROR: pbx CDR StartTime 2025-01-27 12:35:06 - End Time 2025-01-27 15:35:06 [2025-01-27 15:35:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342610', 'tblTempUsageDetail_20' ) start [2025-01-27 15:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342610', 'tblTempUsageDetail_20' ) end [2025-01-27 15:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342610', 'tblTempVendorCDR_20' ) start [2025-01-27 15:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342610', 'tblTempVendorCDR_20' ) end [2025-01-27 15:35:33] Production.INFO: ProcessCDR(1,14342610,1,1,2) [2025-01-27 15:35:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:35:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342610', 'tblTempUsageDetail_20' ) start [2025-01-27 15:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342610', 'tblTempUsageDetail_20' ) end [2025-01-27 15:35:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:35:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:35:38] Production.INFO: ==29163== Releasing lock... [2025-01-27 15:35:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:35:38] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:36:05 [end_date_ymd] => 2025-01-27 15:36:05 [RateCDR] => 1 ) [2025-01-27 15: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-01-27 12:36:05' and `end` < '2025-01-27 15: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-01-27 15:36:23] Production.INFO: count ==5546 [2025-01-27 15:36:25] Production.ERROR: pbx CDR StartTime 2025-01-27 12:36:05 - End Time 2025-01-27 15:36:05 [2025-01-27 15:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342615', 'tblTempUsageDetail_20' ) start [2025-01-27 15:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342615', 'tblTempUsageDetail_20' ) end [2025-01-27 15:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342615', 'tblTempVendorCDR_20' ) start [2025-01-27 15:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342615', 'tblTempVendorCDR_20' ) end [2025-01-27 15:36:25] Production.INFO: ProcessCDR(1,14342615,1,1,2) [2025-01-27 15:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342615', 'tblTempUsageDetail_20' ) start [2025-01-27 15:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342615', 'tblTempUsageDetail_20' ) end [2025-01-27 15:36:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:36:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:36:30] Production.INFO: ==29298== Releasing lock... [2025-01-27 15:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:36:30] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:37:06 [end_date_ymd] => 2025-01-27 15:37:06 [RateCDR] => 1 ) [2025-01-27 15: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-01-27 12:37:06' and `end` < '2025-01-27 15: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-01-27 15:37:31] Production.INFO: count ==5575 [2025-01-27 15:37:33] Production.ERROR: pbx CDR StartTime 2025-01-27 12:37:06 - End Time 2025-01-27 15:37:06 [2025-01-27 15:37:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:37:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342620', 'tblTempUsageDetail_20' ) start [2025-01-27 15:37:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342620', 'tblTempUsageDetail_20' ) end [2025-01-27 15:37:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342620', 'tblTempVendorCDR_20' ) start [2025-01-27 15:37:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342620', 'tblTempVendorCDR_20' ) end [2025-01-27 15:37:33] Production.INFO: ProcessCDR(1,14342620,1,1,2) [2025-01-27 15:37:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:37:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:37:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:37:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:37:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342620', 'tblTempUsageDetail_20' ) start [2025-01-27 15:37:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342620', 'tblTempUsageDetail_20' ) end [2025-01-27 15:37:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:37:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:37:38] Production.INFO: ==29436== Releasing lock... [2025-01-27 15:37:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:37:38] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:38:05 [end_date_ymd] => 2025-01-27 15:38:05 [RateCDR] => 1 ) [2025-01-27 15: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-01-27 12:38:05' and `end` < '2025-01-27 15: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-01-27 15:38:31] Production.INFO: count ==5576 [2025-01-27 15:38:34] Production.ERROR: pbx CDR StartTime 2025-01-27 12:38:05 - End Time 2025-01-27 15:38:05 [2025-01-27 15:38:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342625', 'tblTempUsageDetail_20' ) start [2025-01-27 15:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342625', 'tblTempUsageDetail_20' ) end [2025-01-27 15:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342625', 'tblTempVendorCDR_20' ) start [2025-01-27 15:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342625', 'tblTempVendorCDR_20' ) end [2025-01-27 15:38:34] Production.INFO: ProcessCDR(1,14342625,1,1,2) [2025-01-27 15:38:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:38:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:38:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:38:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:38:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342625', 'tblTempUsageDetail_20' ) start [2025-01-27 15:38:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342625', 'tblTempUsageDetail_20' ) end [2025-01-27 15:38:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:38:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:38:39] Production.INFO: ==29566== Releasing lock... [2025-01-27 15:38:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:38:39] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:39:05 [end_date_ymd] => 2025-01-27 15:39:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:39:05' and `end` < '2025-01-27 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-01-27 15:39:29] Production.INFO: count ==5595 [2025-01-27 15:39:31] Production.ERROR: pbx CDR StartTime 2025-01-27 12:39:05 - End Time 2025-01-27 15:39:05 [2025-01-27 15:39:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342630', 'tblTempUsageDetail_20' ) start [2025-01-27 15:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342630', 'tblTempUsageDetail_20' ) end [2025-01-27 15:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342630', 'tblTempVendorCDR_20' ) start [2025-01-27 15:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342630', 'tblTempVendorCDR_20' ) end [2025-01-27 15:39:31] Production.INFO: ProcessCDR(1,14342630,1,1,2) [2025-01-27 15:39:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:39:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:39:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:39:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:39:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342630', 'tblTempUsageDetail_20' ) start [2025-01-27 15:39:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342630', 'tblTempUsageDetail_20' ) end [2025-01-27 15:39:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:39:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:39:36] Production.INFO: ==29656== Releasing lock... [2025-01-27 15:39:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:39:36] Production.INFO: 70 MB #Memory Used# [2025-01-27 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:40:06 [end_date_ymd] => 2025-01-27 15:40:06 [RateCDR] => 1 ) [2025-01-27 15: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-01-27 12:40:06' and `end` < '2025-01-27 15: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-01-27 15:40:33] Production.INFO: count ==5604 [2025-01-27 15:40:35] Production.ERROR: pbx CDR StartTime 2025-01-27 12:40:06 - End Time 2025-01-27 15:40:06 [2025-01-27 15:40:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:40:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342636', 'tblTempUsageDetail_20' ) start [2025-01-27 15:40:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342636', 'tblTempUsageDetail_20' ) end [2025-01-27 15:40:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342636', 'tblTempVendorCDR_20' ) start [2025-01-27 15:40:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342636', 'tblTempVendorCDR_20' ) end [2025-01-27 15:40:35] Production.INFO: ProcessCDR(1,14342636,1,1,2) [2025-01-27 15:40:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:40:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:40:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:40:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:40:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342636', 'tblTempUsageDetail_20' ) start [2025-01-27 15:40:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342636', 'tblTempUsageDetail_20' ) end [2025-01-27 15:40:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:40:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:40:41] Production.INFO: ==29731== Releasing lock... [2025-01-27 15:40:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:40:41] Production.INFO: 70 MB #Memory Used# [2025-01-27 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:41:05 [end_date_ymd] => 2025-01-27 15:41:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:41:05' and `end` < '2025-01-27 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-01-27 15:41:31] Production.INFO: count ==5617 [2025-01-27 15:41:33] Production.ERROR: pbx CDR StartTime 2025-01-27 12:41:05 - End Time 2025-01-27 15:41:05 [2025-01-27 15:41:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:41:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342641', 'tblTempUsageDetail_20' ) start [2025-01-27 15:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342641', 'tblTempUsageDetail_20' ) end [2025-01-27 15:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342641', 'tblTempVendorCDR_20' ) start [2025-01-27 15:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342641', 'tblTempVendorCDR_20' ) end [2025-01-27 15:41:34] Production.INFO: ProcessCDR(1,14342641,1,1,2) [2025-01-27 15:41:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:41:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:41:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:41:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:41:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342641', 'tblTempUsageDetail_20' ) start [2025-01-27 15:41:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342641', 'tblTempUsageDetail_20' ) end [2025-01-27 15:41:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:41:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:41:40] Production.INFO: ==29807== Releasing lock... [2025-01-27 15:41:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:41:40] Production.INFO: 70.25 MB #Memory Used# [2025-01-27 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:42:06 [end_date_ymd] => 2025-01-27 15:42:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:42:06' and `end` < '2025-01-27 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-01-27 15:42:32] Production.INFO: count ==5589 [2025-01-27 15:42:34] Production.ERROR: pbx CDR StartTime 2025-01-27 12:42:06 - End Time 2025-01-27 15:42:06 [2025-01-27 15:42:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342646', 'tblTempUsageDetail_20' ) start [2025-01-27 15:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342646', 'tblTempUsageDetail_20' ) end [2025-01-27 15:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342646', 'tblTempVendorCDR_20' ) start [2025-01-27 15:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342646', 'tblTempVendorCDR_20' ) end [2025-01-27 15:42:34] Production.INFO: ProcessCDR(1,14342646,1,1,2) [2025-01-27 15:42:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:42:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:42:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:42:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:42:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342646', 'tblTempUsageDetail_20' ) start [2025-01-27 15:42:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342646', 'tblTempUsageDetail_20' ) end [2025-01-27 15:42:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:42:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:42:39] Production.INFO: ==29889== Releasing lock... [2025-01-27 15:42:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:42:39] Production.INFO: 70 MB #Memory Used# [2025-01-27 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:43:05 [end_date_ymd] => 2025-01-27 15:43:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:43:05' and `end` < '2025-01-27 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-01-27 15:43:35] Production.INFO: count ==5585 [2025-01-27 15:43:37] Production.ERROR: pbx CDR StartTime 2025-01-27 12:43:05 - End Time 2025-01-27 15:43:05 [2025-01-27 15:43:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:43:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342651', 'tblTempUsageDetail_20' ) start [2025-01-27 15:43:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342651', 'tblTempUsageDetail_20' ) end [2025-01-27 15:43:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342651', 'tblTempVendorCDR_20' ) start [2025-01-27 15:43:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342651', 'tblTempVendorCDR_20' ) end [2025-01-27 15:43:37] Production.INFO: ProcessCDR(1,14342651,1,1,2) [2025-01-27 15:43:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:43:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:43:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:43:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:43:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342651', 'tblTempUsageDetail_20' ) start [2025-01-27 15:43:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342651', 'tblTempUsageDetail_20' ) end [2025-01-27 15:43:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:43:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:43:42] Production.INFO: ==29963== Releasing lock... [2025-01-27 15:43:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:43:42] Production.INFO: 70 MB #Memory Used# [2025-01-27 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:44:06 [end_date_ymd] => 2025-01-27 15:44:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:44:06' and `end` < '2025-01-27 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-01-27 15:44:27] Production.INFO: count ==5587 [2025-01-27 15:44:30] Production.ERROR: pbx CDR StartTime 2025-01-27 12:44:06 - End Time 2025-01-27 15:44:06 [2025-01-27 15:44:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342656', 'tblTempUsageDetail_20' ) start [2025-01-27 15:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342656', 'tblTempUsageDetail_20' ) end [2025-01-27 15:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342656', 'tblTempVendorCDR_20' ) start [2025-01-27 15:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342656', 'tblTempVendorCDR_20' ) end [2025-01-27 15:44:30] Production.INFO: ProcessCDR(1,14342656,1,1,2) [2025-01-27 15:44:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:44:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:44:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:44:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342656', 'tblTempUsageDetail_20' ) start [2025-01-27 15:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342656', 'tblTempUsageDetail_20' ) end [2025-01-27 15:44:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:44:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:44:35] Production.INFO: ==30076== Releasing lock... [2025-01-27 15:44:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:44:35] Production.INFO: 70 MB #Memory Used# [2025-01-27 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:45:05 [end_date_ymd] => 2025-01-27 15:45:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:45:05' and `end` < '2025-01-27 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-01-27 15:45:25] Production.INFO: count ==5582 [2025-01-27 15:45:27] Production.ERROR: pbx CDR StartTime 2025-01-27 12:45:05 - End Time 2025-01-27 15:45:05 [2025-01-27 15:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342661', 'tblTempUsageDetail_20' ) start [2025-01-27 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342661', 'tblTempUsageDetail_20' ) end [2025-01-27 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342661', 'tblTempVendorCDR_20' ) start [2025-01-27 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342661', 'tblTempVendorCDR_20' ) end [2025-01-27 15:45:27] Production.INFO: ProcessCDR(1,14342661,1,1,2) [2025-01-27 15:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342661', 'tblTempUsageDetail_20' ) start [2025-01-27 15:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342661', 'tblTempUsageDetail_20' ) end [2025-01-27 15:45:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:45:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:45:33] Production.INFO: ==30149== Releasing lock... [2025-01-27 15:45:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:45:33] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:46:06 [end_date_ymd] => 2025-01-27 15:46:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:46:06' and `end` < '2025-01-27 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-01-27 15:46:25] Production.INFO: count ==5579 [2025-01-27 15:46:27] Production.ERROR: pbx CDR StartTime 2025-01-27 12:46:06 - End Time 2025-01-27 15:46:06 [2025-01-27 15:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342666', 'tblTempUsageDetail_20' ) start [2025-01-27 15:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342666', 'tblTempUsageDetail_20' ) end [2025-01-27 15:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342666', 'tblTempVendorCDR_20' ) start [2025-01-27 15:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342666', 'tblTempVendorCDR_20' ) end [2025-01-27 15:46:27] Production.INFO: ProcessCDR(1,14342666,1,1,2) [2025-01-27 15:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342666', 'tblTempUsageDetail_20' ) start [2025-01-27 15:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342666', 'tblTempUsageDetail_20' ) end [2025-01-27 15:46:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:46:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:46:31] Production.INFO: ==30224== Releasing lock... [2025-01-27 15:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:46:31] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:47:05 [end_date_ymd] => 2025-01-27 15:47:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:47:05' and `end` < '2025-01-27 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-01-27 15:47:26] Production.INFO: count ==5568 [2025-01-27 15:47:28] Production.ERROR: pbx CDR StartTime 2025-01-27 12:47:05 - End Time 2025-01-27 15:47:05 [2025-01-27 15:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342671', 'tblTempUsageDetail_20' ) start [2025-01-27 15:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342671', 'tblTempUsageDetail_20' ) end [2025-01-27 15:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342671', 'tblTempVendorCDR_20' ) start [2025-01-27 15:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342671', 'tblTempVendorCDR_20' ) end [2025-01-27 15:47:28] Production.INFO: ProcessCDR(1,14342671,1,1,2) [2025-01-27 15:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:47:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:47:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342671', 'tblTempUsageDetail_20' ) start [2025-01-27 15:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342671', 'tblTempUsageDetail_20' ) end [2025-01-27 15:47:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:47:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:47:34] Production.INFO: ==30299== Releasing lock... [2025-01-27 15:47:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:47:34] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:48:06 [end_date_ymd] => 2025-01-27 15:48:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:48:06' and `end` < '2025-01-27 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-01-27 15:48:23] Production.INFO: count ==5571 [2025-01-27 15:48:25] Production.ERROR: pbx CDR StartTime 2025-01-27 12:48:06 - End Time 2025-01-27 15:48:06 [2025-01-27 15:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342676', 'tblTempUsageDetail_20' ) start [2025-01-27 15:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342676', 'tblTempUsageDetail_20' ) end [2025-01-27 15:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342676', 'tblTempVendorCDR_20' ) start [2025-01-27 15:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342676', 'tblTempVendorCDR_20' ) end [2025-01-27 15:48:25] Production.INFO: ProcessCDR(1,14342676,1,1,2) [2025-01-27 15:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342676', 'tblTempUsageDetail_20' ) start [2025-01-27 15:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342676', 'tblTempUsageDetail_20' ) end [2025-01-27 15:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:48:30] Production.INFO: ==30372== Releasing lock... [2025-01-27 15:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:48:30] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:49:06 [end_date_ymd] => 2025-01-27 15:49:06 [RateCDR] => 1 ) [2025-01-27 15: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-01-27 12:49:06' and `end` < '2025-01-27 15: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-01-27 15:49:35] Production.INFO: count ==5567 [2025-01-27 15:49:37] Production.ERROR: pbx CDR StartTime 2025-01-27 12:49:06 - End Time 2025-01-27 15:49:06 [2025-01-27 15:49:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:49:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342681', 'tblTempUsageDetail_20' ) start [2025-01-27 15:49:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342681', 'tblTempUsageDetail_20' ) end [2025-01-27 15:49:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342681', 'tblTempVendorCDR_20' ) start [2025-01-27 15:49:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342681', 'tblTempVendorCDR_20' ) end [2025-01-27 15:49:37] Production.INFO: ProcessCDR(1,14342681,1,1,2) [2025-01-27 15:49:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:49:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:49:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:49:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:49:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342681', 'tblTempUsageDetail_20' ) start [2025-01-27 15:49:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342681', 'tblTempUsageDetail_20' ) end [2025-01-27 15:49:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:49:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:49:42] Production.INFO: ==30455== Releasing lock... [2025-01-27 15:49:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:49:42] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:50:07 [end_date_ymd] => 2025-01-27 15:50:07 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:50:07' and `end` < '2025-01-27 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-01-27 15:50:31] Production.INFO: count ==5566 [2025-01-27 15:50:34] Production.ERROR: pbx CDR StartTime 2025-01-27 12:50:07 - End Time 2025-01-27 15:50:07 [2025-01-27 15:50:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342687', 'tblTempUsageDetail_20' ) start [2025-01-27 15:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342687', 'tblTempUsageDetail_20' ) end [2025-01-27 15:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342687', 'tblTempVendorCDR_20' ) start [2025-01-27 15:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342687', 'tblTempVendorCDR_20' ) end [2025-01-27 15:50:34] Production.INFO: ProcessCDR(1,14342687,1,1,2) [2025-01-27 15:50:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:50:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:50:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:50:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:50:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342687', 'tblTempUsageDetail_20' ) start [2025-01-27 15:50:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342687', 'tblTempUsageDetail_20' ) end [2025-01-27 15:50:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:50:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:50:39] Production.INFO: ==30534== Releasing lock... [2025-01-27 15:50:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:50:39] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:51:05 [end_date_ymd] => 2025-01-27 15:51:05 [RateCDR] => 1 ) [2025-01-27 15: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-01-27 12:51:05' and `end` < '2025-01-27 15: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-01-27 15:51:34] Production.INFO: count ==5574 [2025-01-27 15:51:37] Production.ERROR: pbx CDR StartTime 2025-01-27 12:51:05 - End Time 2025-01-27 15:51:05 [2025-01-27 15:51:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:51:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342692', 'tblTempUsageDetail_20' ) start [2025-01-27 15:51:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342692', 'tblTempUsageDetail_20' ) end [2025-01-27 15:51:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342692', 'tblTempVendorCDR_20' ) start [2025-01-27 15:51:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342692', 'tblTempVendorCDR_20' ) end [2025-01-27 15:51:37] Production.INFO: ProcessCDR(1,14342692,1,1,2) [2025-01-27 15:51:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:51:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:51:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:51:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:51:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342692', 'tblTempUsageDetail_20' ) start [2025-01-27 15:51:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342692', 'tblTempUsageDetail_20' ) end [2025-01-27 15:51:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:51:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:51:42] Production.INFO: ==30607== Releasing lock... [2025-01-27 15:51:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:51:42] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:52:06 [end_date_ymd] => 2025-01-27 15:52:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:52:06' and `end` < '2025-01-27 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-01-27 15:52:25] Production.INFO: count ==5581 [2025-01-27 15:52:28] Production.ERROR: pbx CDR StartTime 2025-01-27 12:52:06 - End Time 2025-01-27 15:52:06 [2025-01-27 15:52:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342697', 'tblTempUsageDetail_20' ) start [2025-01-27 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342697', 'tblTempUsageDetail_20' ) end [2025-01-27 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342697', 'tblTempVendorCDR_20' ) start [2025-01-27 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342697', 'tblTempVendorCDR_20' ) end [2025-01-27 15:52:28] Production.INFO: ProcessCDR(1,14342697,1,1,2) [2025-01-27 15:52:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342697', 'tblTempUsageDetail_20' ) start [2025-01-27 15:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342697', 'tblTempUsageDetail_20' ) end [2025-01-27 15:52:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:52:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:52:33] Production.INFO: ==30681== Releasing lock... [2025-01-27 15:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:52:33] Production.INFO: 70 MB #Memory Used# [2025-01-27 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:53:05 [end_date_ymd] => 2025-01-27 15:53:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:53:05' and `end` < '2025-01-27 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-01-27 15:53:28] Production.INFO: count ==5575 [2025-01-27 15:53:30] Production.ERROR: pbx CDR StartTime 2025-01-27 12:53:05 - End Time 2025-01-27 15:53:05 [2025-01-27 15:53:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342702', 'tblTempUsageDetail_20' ) start [2025-01-27 15:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342702', 'tblTempUsageDetail_20' ) end [2025-01-27 15:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342702', 'tblTempVendorCDR_20' ) start [2025-01-27 15:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342702', 'tblTempVendorCDR_20' ) end [2025-01-27 15:53:30] Production.INFO: ProcessCDR(1,14342702,1,1,2) [2025-01-27 15:53:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:53:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:53:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:53:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:53:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342702', 'tblTempUsageDetail_20' ) start [2025-01-27 15:53:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342702', 'tblTempUsageDetail_20' ) end [2025-01-27 15:53:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:53:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:53:36] Production.INFO: ==30757== Releasing lock... [2025-01-27 15:53:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:53:36] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:54:06 [end_date_ymd] => 2025-01-27 15:54:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:54:06' and `end` < '2025-01-27 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-01-27 15:54:27] Production.INFO: count ==5560 [2025-01-27 15:54:29] Production.ERROR: pbx CDR StartTime 2025-01-27 12:54:06 - End Time 2025-01-27 15:54:06 [2025-01-27 15:54:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342707', 'tblTempUsageDetail_20' ) start [2025-01-27 15:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342707', 'tblTempUsageDetail_20' ) end [2025-01-27 15:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342707', 'tblTempVendorCDR_20' ) start [2025-01-27 15:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342707', 'tblTempVendorCDR_20' ) end [2025-01-27 15:54:29] Production.INFO: ProcessCDR(1,14342707,1,1,2) [2025-01-27 15:54:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:54:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:54:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:54:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342707', 'tblTempUsageDetail_20' ) start [2025-01-27 15:54:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342707', 'tblTempUsageDetail_20' ) end [2025-01-27 15:54:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:54:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:54:35] Production.INFO: ==30829== Releasing lock... [2025-01-27 15:54:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:54:35] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:55:06 [end_date_ymd] => 2025-01-27 15:55:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 12:55:06' and `end` < '2025-01-27 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-01-27 15:55:20] Production.INFO: count ==5559 [2025-01-27 15:55:22] Production.ERROR: pbx CDR StartTime 2025-01-27 12:55:06 - End Time 2025-01-27 15:55:06 [2025-01-27 15:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342712', 'tblTempUsageDetail_20' ) start [2025-01-27 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342712', 'tblTempUsageDetail_20' ) end [2025-01-27 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342712', 'tblTempVendorCDR_20' ) start [2025-01-27 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342712', 'tblTempVendorCDR_20' ) end [2025-01-27 15:55:23] Production.INFO: ProcessCDR(1,14342712,1,1,2) [2025-01-27 15:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342712', 'tblTempUsageDetail_20' ) start [2025-01-27 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342712', 'tblTempUsageDetail_20' ) end [2025-01-27 15:55:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:55:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:55:28] Production.INFO: ==30901== Releasing lock... [2025-01-27 15:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:55:28] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:56:06 [end_date_ymd] => 2025-01-27 15:56:06 [RateCDR] => 1 ) [2025-01-27 15: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-01-27 12:56:06' and `end` < '2025-01-27 15: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-01-27 15:56:36] Production.INFO: count ==5548 [2025-01-27 15:56:39] Production.ERROR: pbx CDR StartTime 2025-01-27 12:56:06 - End Time 2025-01-27 15:56:06 [2025-01-27 15:56:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:56:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342717', 'tblTempUsageDetail_20' ) start [2025-01-27 15:56:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342717', 'tblTempUsageDetail_20' ) end [2025-01-27 15:56:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342717', 'tblTempVendorCDR_20' ) start [2025-01-27 15:56:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342717', 'tblTempVendorCDR_20' ) end [2025-01-27 15:56:39] Production.INFO: ProcessCDR(1,14342717,1,1,2) [2025-01-27 15:56:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:56:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:56:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:56:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:56:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342717', 'tblTempUsageDetail_20' ) start [2025-01-27 15:56:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342717', 'tblTempUsageDetail_20' ) end [2025-01-27 15:56:45] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:56:45] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:56:45] Production.INFO: ==30976== Releasing lock... [2025-01-27 15:56:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:56:45] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:57:06 [end_date_ymd] => 2025-01-27 15:57:06 [RateCDR] => 1 ) [2025-01-27 15: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-01-27 12:57:06' and `end` < '2025-01-27 15: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-01-27 15:57:34] Production.INFO: count ==5527 [2025-01-27 15:57:37] Production.ERROR: pbx CDR StartTime 2025-01-27 12:57:06 - End Time 2025-01-27 15:57:06 [2025-01-27 15:57:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:57:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342722', 'tblTempUsageDetail_20' ) start [2025-01-27 15:57:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342722', 'tblTempUsageDetail_20' ) end [2025-01-27 15:57:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342722', 'tblTempVendorCDR_20' ) start [2025-01-27 15:57:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342722', 'tblTempVendorCDR_20' ) end [2025-01-27 15:57:37] Production.INFO: ProcessCDR(1,14342722,1,1,2) [2025-01-27 15:57:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:57:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:57:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:57:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:57:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342722', 'tblTempUsageDetail_20' ) start [2025-01-27 15:57:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342722', 'tblTempUsageDetail_20' ) end [2025-01-27 15:57:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:57:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:57:42] Production.INFO: ==31048== Releasing lock... [2025-01-27 15:57:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:57:42] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:58:06 [end_date_ymd] => 2025-01-27 15:58:06 [RateCDR] => 1 ) [2025-01-27 15: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-01-27 12:58:06' and `end` < '2025-01-27 15: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-01-27 15:58:36] Production.INFO: count ==5534 [2025-01-27 15:58:38] Production.ERROR: pbx CDR StartTime 2025-01-27 12:58:06 - End Time 2025-01-27 15:58:06 [2025-01-27 15:58:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:58:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342727', 'tblTempUsageDetail_20' ) start [2025-01-27 15:58:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342727', 'tblTempUsageDetail_20' ) end [2025-01-27 15:58:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342727', 'tblTempVendorCDR_20' ) start [2025-01-27 15:58:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342727', 'tblTempVendorCDR_20' ) end [2025-01-27 15:58:38] Production.INFO: ProcessCDR(1,14342727,1,1,2) [2025-01-27 15:58:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:58:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:58:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:58:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:58:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342727', 'tblTempUsageDetail_20' ) start [2025-01-27 15:58:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342727', 'tblTempUsageDetail_20' ) end [2025-01-27 15:58:44] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:58:44] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:58:44] Production.INFO: ==31124== Releasing lock... [2025-01-27 15:58:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:58:44] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 15:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 12:59:06 [end_date_ymd] => 2025-01-27 15:59:06 [RateCDR] => 1 ) [2025-01-27 15: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-01-27 12:59:06' and `end` < '2025-01-27 15: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-01-27 15:59:34] Production.INFO: count ==5522 [2025-01-27 15:59:36] Production.ERROR: pbx CDR StartTime 2025-01-27 12:59:06 - End Time 2025-01-27 15:59:06 [2025-01-27 15:59:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 15:59:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342732', 'tblTempUsageDetail_20' ) start [2025-01-27 15:59:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342732', 'tblTempUsageDetail_20' ) end [2025-01-27 15:59:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342732', 'tblTempVendorCDR_20' ) start [2025-01-27 15:59:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342732', 'tblTempVendorCDR_20' ) end [2025-01-27 15:59:36] Production.INFO: ProcessCDR(1,14342732,1,1,2) [2025-01-27 15:59:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:59:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 15:59:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:59:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 15:59:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342732', 'tblTempUsageDetail_20' ) start [2025-01-27 15:59:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342732', 'tblTempUsageDetail_20' ) end [2025-01-27 15:59:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 15:59:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 15:59:41] Production.INFO: ==31196== Releasing lock... [2025-01-27 15:59:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 15:59:41] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:00:06 [end_date_ymd] => 2025-01-27 16:00:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:00:06' and `end` < '2025-01-27 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-01-27 16:00:30] Production.INFO: count ==5529 [2025-01-27 16:00:32] Production.ERROR: pbx CDR StartTime 2025-01-27 13:00:06 - End Time 2025-01-27 16:00:06 [2025-01-27 16:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342737', 'tblTempUsageDetail_20' ) start [2025-01-27 16:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342737', 'tblTempUsageDetail_20' ) end [2025-01-27 16:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342737', 'tblTempVendorCDR_20' ) start [2025-01-27 16:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342737', 'tblTempVendorCDR_20' ) end [2025-01-27 16:00:32] Production.INFO: ProcessCDR(1,14342737,1,1,2) [2025-01-27 16:00:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342737', 'tblTempUsageDetail_20' ) start [2025-01-27 16:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342737', 'tblTempUsageDetail_20' ) end [2025-01-27 16:00:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:00:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:00:36] Production.INFO: ==31311== Releasing lock... [2025-01-27 16:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:00:36] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:01:06 [end_date_ymd] => 2025-01-27 16:01:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:01:06' and `end` < '2025-01-27 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-01-27 16:01:31] Production.INFO: count ==5557 [2025-01-27 16:01:33] Production.ERROR: pbx CDR StartTime 2025-01-27 13:01:06 - End Time 2025-01-27 16:01:06 [2025-01-27 16:01:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342743', 'tblTempUsageDetail_20' ) start [2025-01-27 16:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342743', 'tblTempUsageDetail_20' ) end [2025-01-27 16:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342743', 'tblTempVendorCDR_20' ) start [2025-01-27 16:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342743', 'tblTempVendorCDR_20' ) end [2025-01-27 16:01:33] Production.INFO: ProcessCDR(1,14342743,1,1,2) [2025-01-27 16:01:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:01:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:01:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:01:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:01:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342743', 'tblTempUsageDetail_20' ) start [2025-01-27 16:01:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342743', 'tblTempUsageDetail_20' ) end [2025-01-27 16:01:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:01:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:01:39] Production.INFO: ==31399== Releasing lock... [2025-01-27 16:01:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:01:39] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:02:06 [end_date_ymd] => 2025-01-27 16:02:06 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:02:06' and `end` < '2025-01-27 16: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-01-27 16:02:34] Production.INFO: count ==5548 [2025-01-27 16:02:36] Production.ERROR: pbx CDR StartTime 2025-01-27 13:02:06 - End Time 2025-01-27 16:02:06 [2025-01-27 16:02:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342748', 'tblTempUsageDetail_20' ) start [2025-01-27 16:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342748', 'tblTempUsageDetail_20' ) end [2025-01-27 16:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342748', 'tblTempVendorCDR_20' ) start [2025-01-27 16:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342748', 'tblTempVendorCDR_20' ) end [2025-01-27 16:02:36] Production.INFO: ProcessCDR(1,14342748,1,1,2) [2025-01-27 16:02:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:02:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:02:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:02:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:02:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342748', 'tblTempUsageDetail_20' ) start [2025-01-27 16:02:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342748', 'tblTempUsageDetail_20' ) end [2025-01-27 16:02:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:02:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:02:42] Production.INFO: ==31476== Releasing lock... [2025-01-27 16:02:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:02:42] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:03:05 [end_date_ymd] => 2025-01-27 16:03:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:03:05' and `end` < '2025-01-27 16: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-01-27 16:03:30] Production.INFO: count ==5543 [2025-01-27 16:03:32] Production.ERROR: pbx CDR StartTime 2025-01-27 13:03:05 - End Time 2025-01-27 16:03:05 [2025-01-27 16:03:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342753', 'tblTempUsageDetail_20' ) start [2025-01-27 16:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342753', 'tblTempUsageDetail_20' ) end [2025-01-27 16:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342753', 'tblTempVendorCDR_20' ) start [2025-01-27 16:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342753', 'tblTempVendorCDR_20' ) end [2025-01-27 16:03:32] Production.INFO: ProcessCDR(1,14342753,1,1,2) [2025-01-27 16:03:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:03:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:03:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:03:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:03:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342753', 'tblTempUsageDetail_20' ) start [2025-01-27 16:03:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342753', 'tblTempUsageDetail_20' ) end [2025-01-27 16:03:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:03:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:03:37] Production.INFO: ==31551== Releasing lock... [2025-01-27 16:03:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:03:37] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:04:06 [end_date_ymd] => 2025-01-27 16:04:06 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:04:06' and `end` < '2025-01-27 16: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-01-27 16:04:27] Production.INFO: count ==5541 [2025-01-27 16:04:30] Production.ERROR: pbx CDR StartTime 2025-01-27 13:04:06 - End Time 2025-01-27 16:04:06 [2025-01-27 16:04:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342758', 'tblTempUsageDetail_20' ) start [2025-01-27 16:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342758', 'tblTempUsageDetail_20' ) end [2025-01-27 16:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342758', 'tblTempVendorCDR_20' ) start [2025-01-27 16:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342758', 'tblTempVendorCDR_20' ) end [2025-01-27 16:04:30] Production.INFO: ProcessCDR(1,14342758,1,1,2) [2025-01-27 16:04:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:04:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342758', 'tblTempUsageDetail_20' ) start [2025-01-27 16:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342758', 'tblTempUsageDetail_20' ) end [2025-01-27 16:04:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:04:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:04:35] Production.INFO: ==31628== Releasing lock... [2025-01-27 16:04:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:04:35] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:05:05 [end_date_ymd] => 2025-01-27 16:05:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:05:05' and `end` < '2025-01-27 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-01-27 16:05:30] Production.INFO: count ==5519 [2025-01-27 16:05:32] Production.ERROR: pbx CDR StartTime 2025-01-27 13:05:05 - End Time 2025-01-27 16:05:05 [2025-01-27 16:05:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342763', 'tblTempUsageDetail_20' ) start [2025-01-27 16:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342763', 'tblTempUsageDetail_20' ) end [2025-01-27 16:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342763', 'tblTempVendorCDR_20' ) start [2025-01-27 16:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342763', 'tblTempVendorCDR_20' ) end [2025-01-27 16:05:32] Production.INFO: ProcessCDR(1,14342763,1,1,2) [2025-01-27 16:05:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:05:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:05:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342763', 'tblTempUsageDetail_20' ) start [2025-01-27 16:05:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342763', 'tblTempUsageDetail_20' ) end [2025-01-27 16:05:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:05:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:05:38] Production.INFO: ==31702== Releasing lock... [2025-01-27 16:05:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:05:38] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:06:06 [end_date_ymd] => 2025-01-27 16:06:06 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:06:06' and `end` < '2025-01-27 16: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-01-27 16:06:32] Production.INFO: count ==5515 [2025-01-27 16:06:34] Production.ERROR: pbx CDR StartTime 2025-01-27 13:06:06 - End Time 2025-01-27 16:06:06 [2025-01-27 16:06:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342768', 'tblTempUsageDetail_20' ) start [2025-01-27 16:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342768', 'tblTempUsageDetail_20' ) end [2025-01-27 16:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342768', 'tblTempVendorCDR_20' ) start [2025-01-27 16:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342768', 'tblTempVendorCDR_20' ) end [2025-01-27 16:06:34] Production.INFO: ProcessCDR(1,14342768,1,1,2) [2025-01-27 16:06:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:06:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:06:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:06:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342768', 'tblTempUsageDetail_20' ) start [2025-01-27 16:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342768', 'tblTempUsageDetail_20' ) end [2025-01-27 16:06:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:06:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:06:39] Production.INFO: ==31773== Releasing lock... [2025-01-27 16:06:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:06:39] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:07:05 [end_date_ymd] => 2025-01-27 16:07:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:07:05' and `end` < '2025-01-27 16: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-01-27 16:07:29] Production.INFO: count ==5500 [2025-01-27 16:07:31] Production.ERROR: pbx CDR StartTime 2025-01-27 13:07:05 - End Time 2025-01-27 16:07:05 [2025-01-27 16:07:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342773', 'tblTempUsageDetail_20' ) start [2025-01-27 16:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342773', 'tblTempUsageDetail_20' ) end [2025-01-27 16:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342773', 'tblTempVendorCDR_20' ) start [2025-01-27 16:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342773', 'tblTempVendorCDR_20' ) end [2025-01-27 16:07:31] Production.INFO: ProcessCDR(1,14342773,1,1,2) [2025-01-27 16:07:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:07:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:07:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:07:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:07:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342773', 'tblTempUsageDetail_20' ) start [2025-01-27 16:07:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342773', 'tblTempUsageDetail_20' ) end [2025-01-27 16:07:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:07:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:07:37] Production.INFO: ==31844== Releasing lock... [2025-01-27 16:07:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:07:37] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:08:05 [end_date_ymd] => 2025-01-27 16:08:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:08:05' and `end` < '2025-01-27 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-01-27 16:08:36] Production.INFO: count ==5497 [2025-01-27 16:08:38] Production.ERROR: pbx CDR StartTime 2025-01-27 13:08:05 - End Time 2025-01-27 16:08:05 [2025-01-27 16:08:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:08:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342778', 'tblTempUsageDetail_20' ) start [2025-01-27 16:08:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342778', 'tblTempUsageDetail_20' ) end [2025-01-27 16:08:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342778', 'tblTempVendorCDR_20' ) start [2025-01-27 16:08:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342778', 'tblTempVendorCDR_20' ) end [2025-01-27 16:08:38] Production.INFO: ProcessCDR(1,14342778,1,1,2) [2025-01-27 16:08:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:08:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:08:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:08:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:08:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342778', 'tblTempUsageDetail_20' ) start [2025-01-27 16:08:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342778', 'tblTempUsageDetail_20' ) end [2025-01-27 16:08:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:08:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:08:44] Production.INFO: ==31917== Releasing lock... [2025-01-27 16:08:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:08:44] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:09:05 [end_date_ymd] => 2025-01-27 16:09:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:09:05' and `end` < '2025-01-27 16: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-01-27 16:09:27] Production.INFO: count ==5491 [2025-01-27 16:09:29] Production.ERROR: pbx CDR StartTime 2025-01-27 13:09:05 - End Time 2025-01-27 16:09:05 [2025-01-27 16:09:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342783', 'tblTempUsageDetail_20' ) start [2025-01-27 16:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342783', 'tblTempUsageDetail_20' ) end [2025-01-27 16:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342783', 'tblTempVendorCDR_20' ) start [2025-01-27 16:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342783', 'tblTempVendorCDR_20' ) end [2025-01-27 16:09:29] Production.INFO: ProcessCDR(1,14342783,1,1,2) [2025-01-27 16:09:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:09:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:09:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:09:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342783', 'tblTempUsageDetail_20' ) start [2025-01-27 16:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342783', 'tblTempUsageDetail_20' ) end [2025-01-27 16:09:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:09:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:09:34] Production.INFO: ==31987== Releasing lock... [2025-01-27 16:09:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:09:34] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:10:06 [end_date_ymd] => 2025-01-27 16:10:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:10:06' and `end` < '2025-01-27 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-01-27 16:10:29] Production.INFO: count ==5483 [2025-01-27 16:10:31] Production.ERROR: pbx CDR StartTime 2025-01-27 13:10:06 - End Time 2025-01-27 16:10:06 [2025-01-27 16:10:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342788', 'tblTempUsageDetail_20' ) start [2025-01-27 16:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342788', 'tblTempUsageDetail_20' ) end [2025-01-27 16:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342788', 'tblTempVendorCDR_20' ) start [2025-01-27 16:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342788', 'tblTempVendorCDR_20' ) end [2025-01-27 16:10:31] Production.INFO: ProcessCDR(1,14342788,1,1,2) [2025-01-27 16:10:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:10:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:10:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:10:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342788', 'tblTempUsageDetail_20' ) start [2025-01-27 16:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342788', 'tblTempUsageDetail_20' ) end [2025-01-27 16:10:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:10:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:10:35] Production.INFO: ==32061== Releasing lock... [2025-01-27 16:10:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:10:35] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:11:05 [end_date_ymd] => 2025-01-27 16:11:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:11:05' and `end` < '2025-01-27 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-01-27 16:11:25] Production.INFO: count ==5504 [2025-01-27 16:11:27] Production.ERROR: pbx CDR StartTime 2025-01-27 13:11:05 - End Time 2025-01-27 16:11:05 [2025-01-27 16:11:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342794', 'tblTempUsageDetail_20' ) start [2025-01-27 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342794', 'tblTempUsageDetail_20' ) end [2025-01-27 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342794', 'tblTempVendorCDR_20' ) start [2025-01-27 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342794', 'tblTempVendorCDR_20' ) end [2025-01-27 16:11:28] Production.INFO: ProcessCDR(1,14342794,1,1,2) [2025-01-27 16:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:11:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:11:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342794', 'tblTempUsageDetail_20' ) start [2025-01-27 16:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342794', 'tblTempUsageDetail_20' ) end [2025-01-27 16:11:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:11:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:11:33] Production.INFO: ==32135== Releasing lock... [2025-01-27 16:11:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:11:33] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:12:05 [end_date_ymd] => 2025-01-27 16:12:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:12:05' and `end` < '2025-01-27 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-01-27 16:12:26] Production.INFO: count ==5514 [2025-01-27 16:12:28] Production.ERROR: pbx CDR StartTime 2025-01-27 13:12:05 - End Time 2025-01-27 16:12:05 [2025-01-27 16:12:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342799', 'tblTempUsageDetail_20' ) start [2025-01-27 16:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342799', 'tblTempUsageDetail_20' ) end [2025-01-27 16:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342799', 'tblTempVendorCDR_20' ) start [2025-01-27 16:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342799', 'tblTempVendorCDR_20' ) end [2025-01-27 16:12:29] Production.INFO: ProcessCDR(1,14342799,1,1,2) [2025-01-27 16:12:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:12:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:12:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342799', 'tblTempUsageDetail_20' ) start [2025-01-27 16:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342799', 'tblTempUsageDetail_20' ) end [2025-01-27 16:12:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:12:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:12:34] Production.INFO: ==32208== Releasing lock... [2025-01-27 16:12:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:12:34] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:13:05 [end_date_ymd] => 2025-01-27 16:13:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:13:05' and `end` < '2025-01-27 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-01-27 16:13:30] Production.INFO: count ==5515 [2025-01-27 16:13:32] Production.ERROR: pbx CDR StartTime 2025-01-27 13:13:05 - End Time 2025-01-27 16:13:05 [2025-01-27 16:13:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342804', 'tblTempUsageDetail_20' ) start [2025-01-27 16:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342804', 'tblTempUsageDetail_20' ) end [2025-01-27 16:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342804', 'tblTempVendorCDR_20' ) start [2025-01-27 16:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342804', 'tblTempVendorCDR_20' ) end [2025-01-27 16:13:32] Production.INFO: ProcessCDR(1,14342804,1,1,2) [2025-01-27 16:13:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:13:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:13:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:13:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:13:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342804', 'tblTempUsageDetail_20' ) start [2025-01-27 16:13:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342804', 'tblTempUsageDetail_20' ) end [2025-01-27 16:13:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:13:37] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:13:37] Production.INFO: ==32279== Releasing lock... [2025-01-27 16:13:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:13:37] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:14:06 [end_date_ymd] => 2025-01-27 16:14:06 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:14:06' and `end` < '2025-01-27 16: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-01-27 16:14:27] Production.INFO: count ==5506 [2025-01-27 16:14:29] Production.ERROR: pbx CDR StartTime 2025-01-27 13:14:06 - End Time 2025-01-27 16:14:06 [2025-01-27 16:14:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342809', 'tblTempUsageDetail_20' ) start [2025-01-27 16:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342809', 'tblTempUsageDetail_20' ) end [2025-01-27 16:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342809', 'tblTempVendorCDR_20' ) start [2025-01-27 16:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342809', 'tblTempVendorCDR_20' ) end [2025-01-27 16:14:30] Production.INFO: ProcessCDR(1,14342809,1,1,2) [2025-01-27 16:14:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:14:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:14:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:14:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342809', 'tblTempUsageDetail_20' ) start [2025-01-27 16:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342809', 'tblTempUsageDetail_20' ) end [2025-01-27 16:14:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:14:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:14:34] Production.INFO: ==32350== Releasing lock... [2025-01-27 16:14:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:14:34] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:15:05 [end_date_ymd] => 2025-01-27 16:15:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:15:05' and `end` < '2025-01-27 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-01-27 16:15:27] Production.INFO: count ==5511 [2025-01-27 16:15:29] Production.ERROR: pbx CDR StartTime 2025-01-27 13:15:05 - End Time 2025-01-27 16:15:05 [2025-01-27 16:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342814', 'tblTempUsageDetail_20' ) start [2025-01-27 16:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342814', 'tblTempUsageDetail_20' ) end [2025-01-27 16:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342814', 'tblTempVendorCDR_20' ) start [2025-01-27 16:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342814', 'tblTempVendorCDR_20' ) end [2025-01-27 16:15:29] Production.INFO: ProcessCDR(1,14342814,1,1,2) [2025-01-27 16:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342814', 'tblTempUsageDetail_20' ) start [2025-01-27 16:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342814', 'tblTempUsageDetail_20' ) end [2025-01-27 16:15:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:15:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:15:34] Production.INFO: ==32460== Releasing lock... [2025-01-27 16:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:15:34] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:16:06 [end_date_ymd] => 2025-01-27 16:16:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:16:06' and `end` < '2025-01-27 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-01-27 16:16:29] Production.INFO: count ==5492 [2025-01-27 16:16:31] Production.ERROR: pbx CDR StartTime 2025-01-27 13:16:06 - End Time 2025-01-27 16:16:06 [2025-01-27 16:16:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342819', 'tblTempUsageDetail_20' ) start [2025-01-27 16:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342819', 'tblTempUsageDetail_20' ) end [2025-01-27 16:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342819', 'tblTempVendorCDR_20' ) start [2025-01-27 16:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342819', 'tblTempVendorCDR_20' ) end [2025-01-27 16:16:31] Production.INFO: ProcessCDR(1,14342819,1,1,2) [2025-01-27 16:16:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:16:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:16:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:16:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:16:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342819', 'tblTempUsageDetail_20' ) start [2025-01-27 16:16:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342819', 'tblTempUsageDetail_20' ) end [2025-01-27 16:16:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:16:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:16:36] Production.INFO: ==32531== Releasing lock... [2025-01-27 16:16:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:16:36] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:17:04 [end_date_ymd] => 2025-01-27 16:17:04 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:17:04' and `end` < '2025-01-27 16: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-01-27 16:17:28] Production.INFO: count ==5498 [2025-01-27 16:17:30] Production.ERROR: pbx CDR StartTime 2025-01-27 13:17:04 - End Time 2025-01-27 16:17:04 [2025-01-27 16:17:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342824', 'tblTempUsageDetail_20' ) start [2025-01-27 16:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342824', 'tblTempUsageDetail_20' ) end [2025-01-27 16:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342824', 'tblTempVendorCDR_20' ) start [2025-01-27 16:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342824', 'tblTempVendorCDR_20' ) end [2025-01-27 16:17:30] Production.INFO: ProcessCDR(1,14342824,1,1,2) [2025-01-27 16:17:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:17:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:17:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:17:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:17:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342824', 'tblTempUsageDetail_20' ) start [2025-01-27 16:17:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342824', 'tblTempUsageDetail_20' ) end [2025-01-27 16:17:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:17:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:17:35] Production.INFO: ==32606== Releasing lock... [2025-01-27 16:17:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:17:35] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:18:05 [end_date_ymd] => 2025-01-27 16:18:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:18:05' and `end` < '2025-01-27 16: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-01-27 16:18:29] Production.INFO: count ==5507 [2025-01-27 16:18:31] Production.ERROR: pbx CDR StartTime 2025-01-27 13:18:05 - End Time 2025-01-27 16:18:05 [2025-01-27 16:18:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:18:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342829', 'tblTempUsageDetail_20' ) start [2025-01-27 16:18:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342829', 'tblTempUsageDetail_20' ) end [2025-01-27 16:18:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342829', 'tblTempVendorCDR_20' ) start [2025-01-27 16:18:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342829', 'tblTempVendorCDR_20' ) end [2025-01-27 16:18:31] Production.INFO: ProcessCDR(1,14342829,1,1,2) [2025-01-27 16:18:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:18:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:18:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:18:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:18:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342829', 'tblTempUsageDetail_20' ) start [2025-01-27 16:18:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342829', 'tblTempUsageDetail_20' ) end [2025-01-27 16:18:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:18:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:18:36] Production.INFO: ==32691== Releasing lock... [2025-01-27 16:18:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:18:36] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:19:04 [end_date_ymd] => 2025-01-27 16:19:04 [RateCDR] => 1 ) [2025-01-27 16:19: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-01-27 13:19:04' and `end` < '2025-01-27 16:19: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-01-27 16:19:36] Production.INFO: count ==5508 [2025-01-27 16:19:38] Production.ERROR: pbx CDR StartTime 2025-01-27 13:19:04 - End Time 2025-01-27 16:19:04 [2025-01-27 16:19:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:19:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342834', 'tblTempUsageDetail_20' ) start [2025-01-27 16:19:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342834', 'tblTempUsageDetail_20' ) end [2025-01-27 16:19:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342834', 'tblTempVendorCDR_20' ) start [2025-01-27 16:19:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342834', 'tblTempVendorCDR_20' ) end [2025-01-27 16:19:38] Production.INFO: ProcessCDR(1,14342834,1,1,2) [2025-01-27 16:19:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:19:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:19:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:19:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:19:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342834', 'tblTempUsageDetail_20' ) start [2025-01-27 16:19:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342834', 'tblTempUsageDetail_20' ) end [2025-01-27 16:19:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:19:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:19:43] Production.INFO: ==32761== Releasing lock... [2025-01-27 16:19:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:19:43] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:20:06 [end_date_ymd] => 2025-01-27 16:20:06 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:20:06' and `end` < '2025-01-27 16: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-01-27 16:20:36] Production.INFO: count ==5498 [2025-01-27 16:20:39] Production.ERROR: pbx CDR StartTime 2025-01-27 13:20:06 - End Time 2025-01-27 16:20:06 [2025-01-27 16:20:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:20:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342839', 'tblTempUsageDetail_20' ) start [2025-01-27 16:20:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342839', 'tblTempUsageDetail_20' ) end [2025-01-27 16:20:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342839', 'tblTempVendorCDR_20' ) start [2025-01-27 16:20:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342839', 'tblTempVendorCDR_20' ) end [2025-01-27 16:20:39] Production.INFO: ProcessCDR(1,14342839,1,1,2) [2025-01-27 16:20:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:20:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:20:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:20:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:20:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342839', 'tblTempUsageDetail_20' ) start [2025-01-27 16:20:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342839', 'tblTempUsageDetail_20' ) end [2025-01-27 16:20:44] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:20:44] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:20:44] Production.INFO: ==393== Releasing lock... [2025-01-27 16:20:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:20:44] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:21:06 [end_date_ymd] => 2025-01-27 16:21:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:21:06' and `end` < '2025-01-27 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-01-27 16:21:37] Production.INFO: count ==5526 [2025-01-27 16:21:39] Production.ERROR: pbx CDR StartTime 2025-01-27 13:21:06 - End Time 2025-01-27 16:21:06 [2025-01-27 16:21:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:21:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342845', 'tblTempUsageDetail_20' ) start [2025-01-27 16:21:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342845', 'tblTempUsageDetail_20' ) end [2025-01-27 16:21:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342845', 'tblTempVendorCDR_20' ) start [2025-01-27 16:21:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342845', 'tblTempVendorCDR_20' ) end [2025-01-27 16:21:39] Production.INFO: ProcessCDR(1,14342845,1,1,2) [2025-01-27 16:21:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:21:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:21:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:21:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:21:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342845', 'tblTempUsageDetail_20' ) start [2025-01-27 16:21:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342845', 'tblTempUsageDetail_20' ) end [2025-01-27 16:21:44] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:21:44] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:21:44] Production.INFO: ==475== Releasing lock... [2025-01-27 16:21:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:21:44] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:22:05 [end_date_ymd] => 2025-01-27 16:22:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:22:05' and `end` < '2025-01-27 16: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-01-27 16:22:37] Production.INFO: count ==5512 [2025-01-27 16:22:39] Production.ERROR: pbx CDR StartTime 2025-01-27 13:22:05 - End Time 2025-01-27 16:22:05 [2025-01-27 16:22:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:22:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342850', 'tblTempUsageDetail_20' ) start [2025-01-27 16:22:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342850', 'tblTempUsageDetail_20' ) end [2025-01-27 16:22:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342850', 'tblTempVendorCDR_20' ) start [2025-01-27 16:22:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342850', 'tblTempVendorCDR_20' ) end [2025-01-27 16:22:39] Production.INFO: ProcessCDR(1,14342850,1,1,2) [2025-01-27 16:22:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:22:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:22:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:22:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:22:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342850', 'tblTempUsageDetail_20' ) start [2025-01-27 16:22:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342850', 'tblTempUsageDetail_20' ) end [2025-01-27 16:22:44] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:22:44] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:22:44] Production.INFO: ==548== Releasing lock... [2025-01-27 16:22:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:22:44] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:23:05 [end_date_ymd] => 2025-01-27 16:23:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:23:05' and `end` < '2025-01-27 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-01-27 16:23:33] Production.INFO: count ==5524 [2025-01-27 16:23:35] Production.ERROR: pbx CDR StartTime 2025-01-27 13:23:05 - End Time 2025-01-27 16:23:05 [2025-01-27 16:23:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342855', 'tblTempUsageDetail_20' ) start [2025-01-27 16:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342855', 'tblTempUsageDetail_20' ) end [2025-01-27 16:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342855', 'tblTempVendorCDR_20' ) start [2025-01-27 16:23:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342855', 'tblTempVendorCDR_20' ) end [2025-01-27 16:23:36] Production.INFO: ProcessCDR(1,14342855,1,1,2) [2025-01-27 16:23:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:23:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:23:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:23:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:23:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342855', 'tblTempUsageDetail_20' ) start [2025-01-27 16:23:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342855', 'tblTempUsageDetail_20' ) end [2025-01-27 16:23:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:23:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:23:41] Production.INFO: ==628== Releasing lock... [2025-01-27 16:23:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:23:41] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:24:05 [end_date_ymd] => 2025-01-27 16:24:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:24:05' and `end` < '2025-01-27 16: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-01-27 16:24:31] Production.INFO: count ==5504 [2025-01-27 16:24:33] Production.ERROR: pbx CDR StartTime 2025-01-27 13:24:05 - End Time 2025-01-27 16:24:05 [2025-01-27 16:24:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342860', 'tblTempUsageDetail_20' ) start [2025-01-27 16:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342860', 'tblTempUsageDetail_20' ) end [2025-01-27 16:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342860', 'tblTempVendorCDR_20' ) start [2025-01-27 16:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342860', 'tblTempVendorCDR_20' ) end [2025-01-27 16:24:33] Production.INFO: ProcessCDR(1,14342860,1,1,2) [2025-01-27 16:24:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:24:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:24:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:24:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:24:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342860', 'tblTempUsageDetail_20' ) start [2025-01-27 16:24:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342860', 'tblTempUsageDetail_20' ) end [2025-01-27 16:24:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:24:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:24:38] Production.INFO: ==732== Releasing lock... [2025-01-27 16:24:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:24:38] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:25:05 [end_date_ymd] => 2025-01-27 16:25:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:25:05' and `end` < '2025-01-27 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-01-27 16:25:29] Production.INFO: count ==5521 [2025-01-27 16:25:31] Production.ERROR: pbx CDR StartTime 2025-01-27 13:25:05 - End Time 2025-01-27 16:25:05 [2025-01-27 16:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342865', 'tblTempUsageDetail_20' ) start [2025-01-27 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342865', 'tblTempUsageDetail_20' ) end [2025-01-27 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342865', 'tblTempVendorCDR_20' ) start [2025-01-27 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342865', 'tblTempVendorCDR_20' ) end [2025-01-27 16:25:31] Production.INFO: ProcessCDR(1,14342865,1,1,2) [2025-01-27 16:25:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342865', 'tblTempUsageDetail_20' ) start [2025-01-27 16:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342865', 'tblTempUsageDetail_20' ) end [2025-01-27 16:25:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:25:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:25:36] Production.INFO: ==809== Releasing lock... [2025-01-27 16:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:25:36] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:26:05 [end_date_ymd] => 2025-01-27 16:26:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:26:05' and `end` < '2025-01-27 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-01-27 16:26:28] Production.INFO: count ==5509 [2025-01-27 16:26:31] Production.ERROR: pbx CDR StartTime 2025-01-27 13:26:05 - End Time 2025-01-27 16:26:05 [2025-01-27 16:26:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342870', 'tblTempUsageDetail_20' ) start [2025-01-27 16:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342870', 'tblTempUsageDetail_20' ) end [2025-01-27 16:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342870', 'tblTempVendorCDR_20' ) start [2025-01-27 16:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342870', 'tblTempVendorCDR_20' ) end [2025-01-27 16:26:31] Production.INFO: ProcessCDR(1,14342870,1,1,2) [2025-01-27 16:26:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:26:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:26:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:26:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342870', 'tblTempUsageDetail_20' ) start [2025-01-27 16:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342870', 'tblTempUsageDetail_20' ) end [2025-01-27 16:26:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:26:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:26:35] Production.INFO: ==888== Releasing lock... [2025-01-27 16:26:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:26:35] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:27:06 [end_date_ymd] => 2025-01-27 16:27:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:27:06' and `end` < '2025-01-27 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-01-27 16:27:35] Production.INFO: count ==5511 [2025-01-27 16:27:37] Production.ERROR: pbx CDR StartTime 2025-01-27 13:27:06 - End Time 2025-01-27 16:27:06 [2025-01-27 16:27:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342875', 'tblTempUsageDetail_20' ) start [2025-01-27 16:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342875', 'tblTempUsageDetail_20' ) end [2025-01-27 16:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342875', 'tblTempVendorCDR_20' ) start [2025-01-27 16:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342875', 'tblTempVendorCDR_20' ) end [2025-01-27 16:27:37] Production.INFO: ProcessCDR(1,14342875,1,1,2) [2025-01-27 16:27:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:27:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:27:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:27:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:27:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342875', 'tblTempUsageDetail_20' ) start [2025-01-27 16:27:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342875', 'tblTempUsageDetail_20' ) end [2025-01-27 16:27:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:27:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:27:42] Production.INFO: ==970== Releasing lock... [2025-01-27 16:27:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:27:42] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:28:05 [end_date_ymd] => 2025-01-27 16:28:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:28:05' and `end` < '2025-01-27 16: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-01-27 16:28:32] Production.INFO: count ==5514 [2025-01-27 16:28:34] Production.ERROR: pbx CDR StartTime 2025-01-27 13:28:05 - End Time 2025-01-27 16:28:05 [2025-01-27 16:28:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:28:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342880', 'tblTempUsageDetail_20' ) start [2025-01-27 16:28:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342880', 'tblTempUsageDetail_20' ) end [2025-01-27 16:28:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342880', 'tblTempVendorCDR_20' ) start [2025-01-27 16:28:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342880', 'tblTempVendorCDR_20' ) end [2025-01-27 16:28:34] Production.INFO: ProcessCDR(1,14342880,1,1,2) [2025-01-27 16:28:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:28:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:28:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:28:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:28:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342880', 'tblTempUsageDetail_20' ) start [2025-01-27 16:28:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342880', 'tblTempUsageDetail_20' ) end [2025-01-27 16:28:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:28:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:28:39] Production.INFO: ==1044== Releasing lock... [2025-01-27 16:28:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:28:39] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:29:05 [end_date_ymd] => 2025-01-27 16:29:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:29:05' and `end` < '2025-01-27 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-01-27 16:29:32] Production.INFO: count ==5515 [2025-01-27 16:29:34] Production.ERROR: pbx CDR StartTime 2025-01-27 13:29:05 - End Time 2025-01-27 16:29:05 [2025-01-27 16:29:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342885', 'tblTempUsageDetail_20' ) start [2025-01-27 16:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342885', 'tblTempUsageDetail_20' ) end [2025-01-27 16:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342885', 'tblTempVendorCDR_20' ) start [2025-01-27 16:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342885', 'tblTempVendorCDR_20' ) end [2025-01-27 16:29:34] Production.INFO: ProcessCDR(1,14342885,1,1,2) [2025-01-27 16:29:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:29:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:29:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:29:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:29:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342885', 'tblTempUsageDetail_20' ) start [2025-01-27 16:29:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342885', 'tblTempUsageDetail_20' ) end [2025-01-27 16:29:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:29:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:29:39] Production.INFO: ==1122== Releasing lock... [2025-01-27 16:29:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:29:39] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:30:05 [end_date_ymd] => 2025-01-27 16:30:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:30:05' and `end` < '2025-01-27 16: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-01-27 16:30:29] Production.INFO: count ==5509 [2025-01-27 16:30:31] Production.ERROR: pbx CDR StartTime 2025-01-27 13:30:05 - End Time 2025-01-27 16:30:05 [2025-01-27 16:30:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342890', 'tblTempUsageDetail_20' ) start [2025-01-27 16:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342890', 'tblTempUsageDetail_20' ) end [2025-01-27 16:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342890', 'tblTempVendorCDR_20' ) start [2025-01-27 16:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342890', 'tblTempVendorCDR_20' ) end [2025-01-27 16:30:31] Production.INFO: ProcessCDR(1,14342890,1,1,2) [2025-01-27 16:30:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:30:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:30:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:30:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342890', 'tblTempUsageDetail_20' ) start [2025-01-27 16:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342890', 'tblTempUsageDetail_20' ) end [2025-01-27 16:30:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:30:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:30:36] Production.INFO: ==1261== Releasing lock... [2025-01-27 16:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:30:36] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:31:06 [end_date_ymd] => 2025-01-27 16:31:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:31:06' and `end` < '2025-01-27 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-01-27 16:31:33] Production.INFO: count ==5497 [2025-01-27 16:31:35] Production.ERROR: pbx CDR StartTime 2025-01-27 13:31:06 - End Time 2025-01-27 16:31:06 [2025-01-27 16:31:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342896', 'tblTempUsageDetail_20' ) start [2025-01-27 16:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342896', 'tblTempUsageDetail_20' ) end [2025-01-27 16:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342896', 'tblTempVendorCDR_20' ) start [2025-01-27 16:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342896', 'tblTempVendorCDR_20' ) end [2025-01-27 16:31:35] Production.INFO: ProcessCDR(1,14342896,1,1,2) [2025-01-27 16:31:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:31:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:31:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:31:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:31:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342896', 'tblTempUsageDetail_20' ) start [2025-01-27 16:31:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342896', 'tblTempUsageDetail_20' ) end [2025-01-27 16:31:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:31:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:31:40] Production.INFO: ==1340== Releasing lock... [2025-01-27 16:31:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:31:40] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:32:05 [end_date_ymd] => 2025-01-27 16:32:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:32:05' and `end` < '2025-01-27 16: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-01-27 16:32:25] Production.INFO: count ==5489 [2025-01-27 16:32:27] Production.ERROR: pbx CDR StartTime 2025-01-27 13:32:05 - End Time 2025-01-27 16:32:05 [2025-01-27 16:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342901', 'tblTempUsageDetail_20' ) start [2025-01-27 16:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342901', 'tblTempUsageDetail_20' ) end [2025-01-27 16:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342901', 'tblTempVendorCDR_20' ) start [2025-01-27 16:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342901', 'tblTempVendorCDR_20' ) end [2025-01-27 16:32:27] Production.INFO: ProcessCDR(1,14342901,1,1,2) [2025-01-27 16:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342901', 'tblTempUsageDetail_20' ) start [2025-01-27 16:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342901', 'tblTempUsageDetail_20' ) end [2025-01-27 16:32:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:32:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:32:32] Production.INFO: ==1422== Releasing lock... [2025-01-27 16:32:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:32:32] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:33:05 [end_date_ymd] => 2025-01-27 16:33:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:33:05' and `end` < '2025-01-27 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-01-27 16:33:25] Production.INFO: count ==5482 [2025-01-27 16:33:27] Production.ERROR: pbx CDR StartTime 2025-01-27 13:33:05 - End Time 2025-01-27 16:33:05 [2025-01-27 16:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342906', 'tblTempUsageDetail_20' ) start [2025-01-27 16:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342906', 'tblTempUsageDetail_20' ) end [2025-01-27 16:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342906', 'tblTempVendorCDR_20' ) start [2025-01-27 16:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342906', 'tblTempVendorCDR_20' ) end [2025-01-27 16:33:27] Production.INFO: ProcessCDR(1,14342906,1,1,2) [2025-01-27 16:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342906', 'tblTempUsageDetail_20' ) start [2025-01-27 16:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342906', 'tblTempUsageDetail_20' ) end [2025-01-27 16:33:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:33:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:33:32] Production.INFO: ==1499== Releasing lock... [2025-01-27 16:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:33:32] Production.INFO: 69 MB #Memory Used# [2025-01-27 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:34:05 [end_date_ymd] => 2025-01-27 16:34:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:34:05' and `end` < '2025-01-27 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-01-27 16:34:24] Production.INFO: count ==5480 [2025-01-27 16:34:26] Production.ERROR: pbx CDR StartTime 2025-01-27 13:34:05 - End Time 2025-01-27 16:34:05 [2025-01-27 16:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342911', 'tblTempUsageDetail_20' ) start [2025-01-27 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342911', 'tblTempUsageDetail_20' ) end [2025-01-27 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342911', 'tblTempVendorCDR_20' ) start [2025-01-27 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342911', 'tblTempVendorCDR_20' ) end [2025-01-27 16:34:27] Production.INFO: ProcessCDR(1,14342911,1,1,2) [2025-01-27 16:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342911', 'tblTempUsageDetail_20' ) start [2025-01-27 16:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342911', 'tblTempUsageDetail_20' ) end [2025-01-27 16:34:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:34:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:34:32] Production.INFO: ==1620== Releasing lock... [2025-01-27 16:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:34:32] Production.INFO: 69 MB #Memory Used# [2025-01-27 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:35:05 [end_date_ymd] => 2025-01-27 16:35:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:35:05' and `end` < '2025-01-27 16: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-01-27 16:35:22] Production.INFO: count ==5477 [2025-01-27 16:35:24] Production.ERROR: pbx CDR StartTime 2025-01-27 13:35:05 - End Time 2025-01-27 16:35:05 [2025-01-27 16:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342916', 'tblTempUsageDetail_20' ) start [2025-01-27 16:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342916', 'tblTempUsageDetail_20' ) end [2025-01-27 16:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342916', 'tblTempVendorCDR_20' ) start [2025-01-27 16:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342916', 'tblTempVendorCDR_20' ) end [2025-01-27 16:35:24] Production.INFO: ProcessCDR(1,14342916,1,1,2) [2025-01-27 16:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342916', 'tblTempUsageDetail_20' ) start [2025-01-27 16:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342916', 'tblTempUsageDetail_20' ) end [2025-01-27 16:35:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:35:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:35:29] Production.INFO: ==1707== Releasing lock... [2025-01-27 16:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:35:29] Production.INFO: 69 MB #Memory Used# [2025-01-27 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:36:05 [end_date_ymd] => 2025-01-27 16:36:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:36:05' and `end` < '2025-01-27 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-01-27 16:36:24] Production.INFO: count ==5471 [2025-01-27 16:36:26] Production.ERROR: pbx CDR StartTime 2025-01-27 13:36:05 - End Time 2025-01-27 16:36:05 [2025-01-27 16:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342921', 'tblTempUsageDetail_20' ) start [2025-01-27 16:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342921', 'tblTempUsageDetail_20' ) end [2025-01-27 16:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342921', 'tblTempVendorCDR_20' ) start [2025-01-27 16:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342921', 'tblTempVendorCDR_20' ) end [2025-01-27 16:36:26] Production.INFO: ProcessCDR(1,14342921,1,1,2) [2025-01-27 16:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342921', 'tblTempUsageDetail_20' ) start [2025-01-27 16:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342921', 'tblTempUsageDetail_20' ) end [2025-01-27 16:36:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:36:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:36:31] Production.INFO: ==1785== Releasing lock... [2025-01-27 16:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:36:31] Production.INFO: 69 MB #Memory Used# [2025-01-27 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:37:05 [end_date_ymd] => 2025-01-27 16:37:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:37:05' and `end` < '2025-01-27 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-01-27 16:37:26] Production.INFO: count ==5469 [2025-01-27 16:37:28] Production.ERROR: pbx CDR StartTime 2025-01-27 13:37:05 - End Time 2025-01-27 16:37:05 [2025-01-27 16:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342926', 'tblTempUsageDetail_20' ) start [2025-01-27 16:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342926', 'tblTempUsageDetail_20' ) end [2025-01-27 16:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342926', 'tblTempVendorCDR_20' ) start [2025-01-27 16:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342926', 'tblTempVendorCDR_20' ) end [2025-01-27 16:37:28] Production.INFO: ProcessCDR(1,14342926,1,1,2) [2025-01-27 16:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:37:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:37:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342926', 'tblTempUsageDetail_20' ) start [2025-01-27 16:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342926', 'tblTempUsageDetail_20' ) end [2025-01-27 16:37:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:37:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:37:33] Production.INFO: ==1870== Releasing lock... [2025-01-27 16:37:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:37:33] Production.INFO: 69 MB #Memory Used# [2025-01-27 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:38:06 [end_date_ymd] => 2025-01-27 16:38:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:38:06' and `end` < '2025-01-27 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-01-27 16:38:33] Production.INFO: count ==5471 [2025-01-27 16:38:36] Production.ERROR: pbx CDR StartTime 2025-01-27 13:38:06 - End Time 2025-01-27 16:38:06 [2025-01-27 16:38:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:38:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342931', 'tblTempUsageDetail_20' ) start [2025-01-27 16:38:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342931', 'tblTempUsageDetail_20' ) end [2025-01-27 16:38:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342931', 'tblTempVendorCDR_20' ) start [2025-01-27 16:38:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342931', 'tblTempVendorCDR_20' ) end [2025-01-27 16:38:36] Production.INFO: ProcessCDR(1,14342931,1,1,2) [2025-01-27 16:38:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:38:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:38:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:38:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:38:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342931', 'tblTempUsageDetail_20' ) start [2025-01-27 16:38:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342931', 'tblTempUsageDetail_20' ) end [2025-01-27 16:38:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:38:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:38:41] Production.INFO: ==1946== Releasing lock... [2025-01-27 16:38:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:38:41] Production.INFO: 69 MB #Memory Used# [2025-01-27 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:39:05 [end_date_ymd] => 2025-01-27 16:39:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:39:05' and `end` < '2025-01-27 16: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-01-27 16:39:33] Production.INFO: count ==5477 [2025-01-27 16:39:35] Production.ERROR: pbx CDR StartTime 2025-01-27 13:39:05 - End Time 2025-01-27 16:39:05 [2025-01-27 16:39:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:39:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342936', 'tblTempUsageDetail_20' ) start [2025-01-27 16:39:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342936', 'tblTempUsageDetail_20' ) end [2025-01-27 16:39:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342936', 'tblTempVendorCDR_20' ) start [2025-01-27 16:39:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342936', 'tblTempVendorCDR_20' ) end [2025-01-27 16:39:36] Production.INFO: ProcessCDR(1,14342936,1,1,2) [2025-01-27 16:39:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:39:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:39:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:39:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:39:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342936', 'tblTempUsageDetail_20' ) start [2025-01-27 16:39:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342936', 'tblTempUsageDetail_20' ) end [2025-01-27 16:39:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:39:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:39:41] Production.INFO: ==2029== Releasing lock... [2025-01-27 16:39:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:39:41] Production.INFO: 69 MB #Memory Used# [2025-01-27 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:40:06 [end_date_ymd] => 2025-01-27 16:40:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:40:06' and `end` < '2025-01-27 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-01-27 16:40:40] Production.INFO: count ==5490 [2025-01-27 16:40:42] Production.ERROR: pbx CDR StartTime 2025-01-27 13:40:06 - End Time 2025-01-27 16:40:06 [2025-01-27 16:40:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:40:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342942', 'tblTempUsageDetail_20' ) start [2025-01-27 16:40:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342942', 'tblTempUsageDetail_20' ) end [2025-01-27 16:40:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342942', 'tblTempVendorCDR_20' ) start [2025-01-27 16:40:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342942', 'tblTempVendorCDR_20' ) end [2025-01-27 16:40:42] Production.INFO: ProcessCDR(1,14342942,1,1,2) [2025-01-27 16:40:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:40:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:40:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:40:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:40:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342942', 'tblTempUsageDetail_20' ) start [2025-01-27 16:40:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342942', 'tblTempUsageDetail_20' ) end [2025-01-27 16:40:47] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:40:48] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:40:48] Production.INFO: ==2132== Releasing lock... [2025-01-27 16:40:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:40:48] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:41:05 [end_date_ymd] => 2025-01-27 16:41:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:41:05' and `end` < '2025-01-27 16: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-01-27 16:41:31] Production.INFO: count ==5482 [2025-01-27 16:41:34] Production.ERROR: pbx CDR StartTime 2025-01-27 13:41:05 - End Time 2025-01-27 16:41:05 [2025-01-27 16:41:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342947', 'tblTempUsageDetail_20' ) start [2025-01-27 16:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342947', 'tblTempUsageDetail_20' ) end [2025-01-27 16:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342947', 'tblTempVendorCDR_20' ) start [2025-01-27 16:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342947', 'tblTempVendorCDR_20' ) end [2025-01-27 16:41:34] Production.INFO: ProcessCDR(1,14342947,1,1,2) [2025-01-27 16:41:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:41:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:41:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:41:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:41:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342947', 'tblTempUsageDetail_20' ) start [2025-01-27 16:41:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342947', 'tblTempUsageDetail_20' ) end [2025-01-27 16:41:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:41:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:41:39] Production.INFO: ==2247== Releasing lock... [2025-01-27 16:41:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:41:39] Production.INFO: 69 MB #Memory Used# [2025-01-27 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:42:05 [end_date_ymd] => 2025-01-27 16:42:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:42:05' and `end` < '2025-01-27 16: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-01-27 16:42:34] Production.INFO: count ==5478 [2025-01-27 16:42:36] Production.ERROR: pbx CDR StartTime 2025-01-27 13:42:05 - End Time 2025-01-27 16:42:05 [2025-01-27 16:42:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:42:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342952', 'tblTempUsageDetail_20' ) start [2025-01-27 16:42:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342952', 'tblTempUsageDetail_20' ) end [2025-01-27 16:42:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342952', 'tblTempVendorCDR_20' ) start [2025-01-27 16:42:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342952', 'tblTempVendorCDR_20' ) end [2025-01-27 16:42:36] Production.INFO: ProcessCDR(1,14342952,1,1,2) [2025-01-27 16:42:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:42:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:42:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:42:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:42:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342952', 'tblTempUsageDetail_20' ) start [2025-01-27 16:42:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342952', 'tblTempUsageDetail_20' ) end [2025-01-27 16:42:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:42:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:42:41] Production.INFO: ==2354== Releasing lock... [2025-01-27 16:42:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:42:41] Production.INFO: 69 MB #Memory Used# [2025-01-27 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:43:05 [end_date_ymd] => 2025-01-27 16:43:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:43:05' and `end` < '2025-01-27 16: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-01-27 16:43:35] Production.INFO: count ==5475 [2025-01-27 16:43:37] Production.ERROR: pbx CDR StartTime 2025-01-27 13:43:05 - End Time 2025-01-27 16:43:05 [2025-01-27 16:43:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:43:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342957', 'tblTempUsageDetail_20' ) start [2025-01-27 16:43:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342957', 'tblTempUsageDetail_20' ) end [2025-01-27 16:43:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342957', 'tblTempVendorCDR_20' ) start [2025-01-27 16:43:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342957', 'tblTempVendorCDR_20' ) end [2025-01-27 16:43:37] Production.INFO: ProcessCDR(1,14342957,1,1,2) [2025-01-27 16:43:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:43:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:43:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:43:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:43:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342957', 'tblTempUsageDetail_20' ) start [2025-01-27 16:43:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342957', 'tblTempUsageDetail_20' ) end [2025-01-27 16:43:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:43:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:43:43] Production.INFO: ==2463== Releasing lock... [2025-01-27 16:43:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:43:43] Production.INFO: 69 MB #Memory Used# [2025-01-27 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:44:05 [end_date_ymd] => 2025-01-27 16:44:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:44:05' and `end` < '2025-01-27 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-01-27 16:44:31] Production.INFO: count ==5470 [2025-01-27 16:44:33] Production.ERROR: pbx CDR StartTime 2025-01-27 13:44:05 - End Time 2025-01-27 16:44:05 [2025-01-27 16:44:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342962', 'tblTempUsageDetail_20' ) start [2025-01-27 16:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342962', 'tblTempUsageDetail_20' ) end [2025-01-27 16:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342962', 'tblTempVendorCDR_20' ) start [2025-01-27 16:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342962', 'tblTempVendorCDR_20' ) end [2025-01-27 16:44:33] Production.INFO: ProcessCDR(1,14342962,1,1,2) [2025-01-27 16:44:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:44:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:44:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:44:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:44:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342962', 'tblTempUsageDetail_20' ) start [2025-01-27 16:44:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342962', 'tblTempUsageDetail_20' ) end [2025-01-27 16:44:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:44:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:44:38] Production.INFO: ==2573== Releasing lock... [2025-01-27 16:44:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:44:38] Production.INFO: 69 MB #Memory Used# [2025-01-27 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:45:05 [end_date_ymd] => 2025-01-27 16:45:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:45:05' and `end` < '2025-01-27 16: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-01-27 16:45:27] Production.INFO: count ==5476 [2025-01-27 16:45:29] Production.ERROR: pbx CDR StartTime 2025-01-27 13:45:05 - End Time 2025-01-27 16:45:05 [2025-01-27 16:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342967', 'tblTempUsageDetail_20' ) start [2025-01-27 16:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342967', 'tblTempUsageDetail_20' ) end [2025-01-27 16:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342967', 'tblTempVendorCDR_20' ) start [2025-01-27 16:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342967', 'tblTempVendorCDR_20' ) end [2025-01-27 16:45:29] Production.INFO: ProcessCDR(1,14342967,1,1,2) [2025-01-27 16:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:45:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:45:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:45:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342967', 'tblTempUsageDetail_20' ) start [2025-01-27 16:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342967', 'tblTempUsageDetail_20' ) end [2025-01-27 16:45:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:45:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:45:34] Production.INFO: ==2688== Releasing lock... [2025-01-27 16:45:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:45:34] Production.INFO: 69 MB #Memory Used# [2025-01-27 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:46:05 [end_date_ymd] => 2025-01-27 16:46:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:46:05' and `end` < '2025-01-27 16: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-01-27 16:46:20] Production.INFO: count ==5470 [2025-01-27 16:46:22] Production.ERROR: pbx CDR StartTime 2025-01-27 13:46:05 - End Time 2025-01-27 16:46:05 [2025-01-27 16:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342972', 'tblTempUsageDetail_20' ) start [2025-01-27 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342972', 'tblTempUsageDetail_20' ) end [2025-01-27 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342972', 'tblTempVendorCDR_20' ) start [2025-01-27 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342972', 'tblTempVendorCDR_20' ) end [2025-01-27 16:46:22] Production.INFO: ProcessCDR(1,14342972,1,1,2) [2025-01-27 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342972', 'tblTempUsageDetail_20' ) start [2025-01-27 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342972', 'tblTempUsageDetail_20' ) end [2025-01-27 16:46:27] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:46:27] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:46:27] Production.INFO: ==2845== Releasing lock... [2025-01-27 16:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:46:27] Production.INFO: 69 MB #Memory Used# [2025-01-27 16:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:47:06 [end_date_ymd] => 2025-01-27 16:47:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:47:06' and `end` < '2025-01-27 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-01-27 16:47:22] Production.INFO: count ==5466 [2025-01-27 16:47:24] Production.ERROR: pbx CDR StartTime 2025-01-27 13:47:06 - End Time 2025-01-27 16:47:06 [2025-01-27 16:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342977', 'tblTempUsageDetail_20' ) start [2025-01-27 16:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342977', 'tblTempUsageDetail_20' ) end [2025-01-27 16:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342977', 'tblTempVendorCDR_20' ) start [2025-01-27 16:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342977', 'tblTempVendorCDR_20' ) end [2025-01-27 16:47:24] Production.INFO: ProcessCDR(1,14342977,1,1,2) [2025-01-27 16:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342977', 'tblTempUsageDetail_20' ) start [2025-01-27 16:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342977', 'tblTempUsageDetail_20' ) end [2025-01-27 16:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:47:29] Production.INFO: ==2964== Releasing lock... [2025-01-27 16:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:47:29] Production.INFO: 69 MB #Memory Used# [2025-01-27 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:48:05 [end_date_ymd] => 2025-01-27 16:48:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:48:05' and `end` < '2025-01-27 16: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-01-27 16:48:30] Production.INFO: count ==5457 [2025-01-27 16:48:32] Production.ERROR: pbx CDR StartTime 2025-01-27 13:48:05 - End Time 2025-01-27 16:48:05 [2025-01-27 16:48:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342982', 'tblTempUsageDetail_20' ) start [2025-01-27 16:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342982', 'tblTempUsageDetail_20' ) end [2025-01-27 16:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342982', 'tblTempVendorCDR_20' ) start [2025-01-27 16:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342982', 'tblTempVendorCDR_20' ) end [2025-01-27 16:48:32] Production.INFO: ProcessCDR(1,14342982,1,1,2) [2025-01-27 16:48:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:48:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:48:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:48:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342982', 'tblTempUsageDetail_20' ) start [2025-01-27 16:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342982', 'tblTempUsageDetail_20' ) end [2025-01-27 16:48:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:48:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:48:35] Production.INFO: ==3067== Releasing lock... [2025-01-27 16:48:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:48:35] Production.INFO: 69 MB #Memory Used# [2025-01-27 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:49:05 [end_date_ymd] => 2025-01-27 16:49:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:49:05' and `end` < '2025-01-27 16: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-01-27 16:49:27] Production.INFO: count ==5456 [2025-01-27 16:49:29] Production.ERROR: pbx CDR StartTime 2025-01-27 13:49:05 - End Time 2025-01-27 16:49:05 [2025-01-27 16:49:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342987', 'tblTempUsageDetail_20' ) start [2025-01-27 16:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342987', 'tblTempUsageDetail_20' ) end [2025-01-27 16:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342987', 'tblTempVendorCDR_20' ) start [2025-01-27 16:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342987', 'tblTempVendorCDR_20' ) end [2025-01-27 16:49:29] Production.INFO: ProcessCDR(1,14342987,1,1,2) [2025-01-27 16:49:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:49:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:49:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:49:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342987', 'tblTempUsageDetail_20' ) start [2025-01-27 16:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342987', 'tblTempUsageDetail_20' ) end [2025-01-27 16:49:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:49:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:49:34] Production.INFO: ==3174== Releasing lock... [2025-01-27 16:49:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:49:34] Production.INFO: 69 MB #Memory Used# [2025-01-27 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:50:06 [end_date_ymd] => 2025-01-27 16:50:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:50:06' and `end` < '2025-01-27 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-01-27 16:50:30] Production.INFO: count ==5455 [2025-01-27 16:50:32] Production.ERROR: pbx CDR StartTime 2025-01-27 13:50:06 - End Time 2025-01-27 16:50:06 [2025-01-27 16:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342993', 'tblTempUsageDetail_20' ) start [2025-01-27 16:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342993', 'tblTempUsageDetail_20' ) end [2025-01-27 16:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342993', 'tblTempVendorCDR_20' ) start [2025-01-27 16:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342993', 'tblTempVendorCDR_20' ) end [2025-01-27 16:50:33] Production.INFO: ProcessCDR(1,14342993,1,1,2) [2025-01-27 16:50:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:50:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:50:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:50:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342993', 'tblTempUsageDetail_20' ) start [2025-01-27 16:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342993', 'tblTempUsageDetail_20' ) end [2025-01-27 16:50:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:50:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:50:38] Production.INFO: ==3279== Releasing lock... [2025-01-27 16:50:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:50:38] Production.INFO: 69 MB #Memory Used# [2025-01-27 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:51:05 [end_date_ymd] => 2025-01-27 16:51:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:51:05' and `end` < '2025-01-27 16: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-01-27 16:51:33] Production.INFO: count ==5543 [2025-01-27 16:51:35] Production.ERROR: pbx CDR StartTime 2025-01-27 13:51:05 - End Time 2025-01-27 16:51:05 [2025-01-27 16:51:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:51:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342998', 'tblTempUsageDetail_20' ) start [2025-01-27 16:51:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14342998', 'tblTempUsageDetail_20' ) end [2025-01-27 16:51:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342998', 'tblTempVendorCDR_20' ) start [2025-01-27 16:51:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14342998', 'tblTempVendorCDR_20' ) end [2025-01-27 16:51:36] Production.INFO: ProcessCDR(1,14342998,1,1,2) [2025-01-27 16:51:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14342998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:51:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14342998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:51:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14342998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:51:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14342998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:51:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342998', 'tblTempUsageDetail_20' ) start [2025-01-27 16:51:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14342998', 'tblTempUsageDetail_20' ) end [2025-01-27 16:51:41] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:51:41] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:51:41] Production.INFO: ==3391== Releasing lock... [2025-01-27 16:51:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:51:41] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:52:05 [end_date_ymd] => 2025-01-27 16:52:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:52:05' and `end` < '2025-01-27 16: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-01-27 16:52:29] Production.INFO: count ==5558 [2025-01-27 16:52:31] Production.ERROR: pbx CDR StartTime 2025-01-27 13:52:05 - End Time 2025-01-27 16:52:05 [2025-01-27 16:52:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343003', 'tblTempUsageDetail_20' ) start [2025-01-27 16:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343003', 'tblTempUsageDetail_20' ) end [2025-01-27 16:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343003', 'tblTempVendorCDR_20' ) start [2025-01-27 16:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343003', 'tblTempVendorCDR_20' ) end [2025-01-27 16:52:31] Production.INFO: ProcessCDR(1,14343003,1,1,2) [2025-01-27 16:52:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:52:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:52:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:52:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:52:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343003', 'tblTempUsageDetail_20' ) start [2025-01-27 16:52:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343003', 'tblTempUsageDetail_20' ) end [2025-01-27 16:52:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:52:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:52:36] Production.INFO: ==3500== Releasing lock... [2025-01-27 16:52:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:52:36] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:53:05 [end_date_ymd] => 2025-01-27 16:53:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:53:05' and `end` < '2025-01-27 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-01-27 16:53:29] Production.INFO: count ==5551 [2025-01-27 16:53:31] Production.ERROR: pbx CDR StartTime 2025-01-27 13:53:05 - End Time 2025-01-27 16:53:05 [2025-01-27 16:53:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343008', 'tblTempUsageDetail_20' ) start [2025-01-27 16:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343008', 'tblTempUsageDetail_20' ) end [2025-01-27 16:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343008', 'tblTempVendorCDR_20' ) start [2025-01-27 16:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343008', 'tblTempVendorCDR_20' ) end [2025-01-27 16:53:32] Production.INFO: ProcessCDR(1,14343008,1,1,2) [2025-01-27 16:53:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:53:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:53:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:53:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343008', 'tblTempUsageDetail_20' ) start [2025-01-27 16:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343008', 'tblTempUsageDetail_20' ) end [2025-01-27 16:53:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:53:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:53:36] Production.INFO: ==3618== Releasing lock... [2025-01-27 16:53:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:53:36] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:54:05 [end_date_ymd] => 2025-01-27 16:54:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:54:05' and `end` < '2025-01-27 16: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-01-27 16:54:26] Production.INFO: count ==5563 [2025-01-27 16:54:28] Production.ERROR: pbx CDR StartTime 2025-01-27 13:54:05 - End Time 2025-01-27 16:54:05 [2025-01-27 16:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343013', 'tblTempUsageDetail_20' ) start [2025-01-27 16:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343013', 'tblTempUsageDetail_20' ) end [2025-01-27 16:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343013', 'tblTempVendorCDR_20' ) start [2025-01-27 16:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343013', 'tblTempVendorCDR_20' ) end [2025-01-27 16:54:28] Production.INFO: ProcessCDR(1,14343013,1,1,2) [2025-01-27 16:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343013', 'tblTempUsageDetail_20' ) start [2025-01-27 16:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343013', 'tblTempUsageDetail_20' ) end [2025-01-27 16:54:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:54:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:54:33] Production.INFO: ==3728== Releasing lock... [2025-01-27 16:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:54:33] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:55:05 [end_date_ymd] => 2025-01-27 16:55:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:55:05' and `end` < '2025-01-27 16: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-01-27 16:55:24] Production.INFO: count ==5557 [2025-01-27 16:55:27] Production.ERROR: pbx CDR StartTime 2025-01-27 13:55:05 - End Time 2025-01-27 16:55:05 [2025-01-27 16:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343018', 'tblTempUsageDetail_20' ) start [2025-01-27 16:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343018', 'tblTempUsageDetail_20' ) end [2025-01-27 16:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343018', 'tblTempVendorCDR_20' ) start [2025-01-27 16:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343018', 'tblTempVendorCDR_20' ) end [2025-01-27 16:55:27] Production.INFO: ProcessCDR(1,14343018,1,1,2) [2025-01-27 16:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343018', 'tblTempUsageDetail_20' ) start [2025-01-27 16:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343018', 'tblTempUsageDetail_20' ) end [2025-01-27 16:55:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:55:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:55:30] Production.INFO: ==3813== Releasing lock... [2025-01-27 16:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:55:30] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:56:05 [end_date_ymd] => 2025-01-27 16:56:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:56:05' and `end` < '2025-01-27 16: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-01-27 16:56:32] Production.INFO: count ==5560 [2025-01-27 16:56:34] Production.ERROR: pbx CDR StartTime 2025-01-27 13:56:05 - End Time 2025-01-27 16:56:05 [2025-01-27 16:56:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343023', 'tblTempUsageDetail_20' ) start [2025-01-27 16:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343023', 'tblTempUsageDetail_20' ) end [2025-01-27 16:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343023', 'tblTempVendorCDR_20' ) start [2025-01-27 16:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343023', 'tblTempVendorCDR_20' ) end [2025-01-27 16:56:34] Production.INFO: ProcessCDR(1,14343023,1,1,2) [2025-01-27 16:56:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:56:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:56:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:56:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343023', 'tblTempUsageDetail_20' ) start [2025-01-27 16:56:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343023', 'tblTempUsageDetail_20' ) end [2025-01-27 16:56:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:56:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:56:39] Production.INFO: ==3898== Releasing lock... [2025-01-27 16:56:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:56:39] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:57:05 [end_date_ymd] => 2025-01-27 16:57:05 [RateCDR] => 1 ) [2025-01-27 16: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-01-27 13:57:05' and `end` < '2025-01-27 16: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-01-27 16:57:36] Production.INFO: count ==5565 [2025-01-27 16:57:38] Production.ERROR: pbx CDR StartTime 2025-01-27 13:57:05 - End Time 2025-01-27 16:57:05 [2025-01-27 16:57:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:57:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343028', 'tblTempUsageDetail_20' ) start [2025-01-27 16:57:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343028', 'tblTempUsageDetail_20' ) end [2025-01-27 16:57:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343028', 'tblTempVendorCDR_20' ) start [2025-01-27 16:57:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343028', 'tblTempVendorCDR_20' ) end [2025-01-27 16:57:38] Production.INFO: ProcessCDR(1,14343028,1,1,2) [2025-01-27 16:57:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:57:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:57:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:57:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:57:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343028', 'tblTempUsageDetail_20' ) start [2025-01-27 16:57:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343028', 'tblTempUsageDetail_20' ) end [2025-01-27 16:57:43] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:57:43] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:57:43] Production.INFO: ==3976== Releasing lock... [2025-01-27 16:57:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:57:43] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:58:05 [end_date_ymd] => 2025-01-27 16:58:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:58:05' and `end` < '2025-01-27 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-01-27 16:58:36] Production.INFO: count ==5566 [2025-01-27 16:58:38] Production.ERROR: pbx CDR StartTime 2025-01-27 13:58:05 - End Time 2025-01-27 16:58:05 [2025-01-27 16:58:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:58:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343033', 'tblTempUsageDetail_20' ) start [2025-01-27 16:58:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343033', 'tblTempUsageDetail_20' ) end [2025-01-27 16:58:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343033', 'tblTempVendorCDR_20' ) start [2025-01-27 16:58:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343033', 'tblTempVendorCDR_20' ) end [2025-01-27 16:58:38] Production.INFO: ProcessCDR(1,14343033,1,1,2) [2025-01-27 16:58:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:58:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:58:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:58:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:58:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343033', 'tblTempUsageDetail_20' ) start [2025-01-27 16:58:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343033', 'tblTempUsageDetail_20' ) end [2025-01-27 16:58:42] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:58:42] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:58:42] Production.INFO: ==4061== Releasing lock... [2025-01-27 16:58:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:58:42] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 13:59:05 [end_date_ymd] => 2025-01-27 16:59:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 13:59:05' and `end` < '2025-01-27 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-01-27 16:59:33] Production.INFO: count ==5561 [2025-01-27 16:59:35] Production.ERROR: pbx CDR StartTime 2025-01-27 13:59:05 - End Time 2025-01-27 16:59:05 [2025-01-27 16:59:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 16:59:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343038', 'tblTempUsageDetail_20' ) start [2025-01-27 16:59:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343038', 'tblTempUsageDetail_20' ) end [2025-01-27 16:59:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343038', 'tblTempVendorCDR_20' ) start [2025-01-27 16:59:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343038', 'tblTempVendorCDR_20' ) end [2025-01-27 16:59:35] Production.INFO: ProcessCDR(1,14343038,1,1,2) [2025-01-27 16:59:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:59:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 16:59:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:59:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 16:59:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343038', 'tblTempUsageDetail_20' ) start [2025-01-27 16:59:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343038', 'tblTempUsageDetail_20' ) end [2025-01-27 16:59:40] Production.ERROR: pbx prc_insertCDR start [2025-01-27 16:59:40] Production.ERROR: pbx prc_insertCDR end [2025-01-27 16:59:40] Production.INFO: ==4155== Releasing lock... [2025-01-27 16:59:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 16:59:40] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:00:06 [end_date_ymd] => 2025-01-27 17:00:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:00:06' and `end` < '2025-01-27 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-01-27 17:00:26] Production.INFO: count ==5562 [2025-01-27 17:00:29] Production.ERROR: pbx CDR StartTime 2025-01-27 14:00:06 - End Time 2025-01-27 17:00:06 [2025-01-27 17:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343044', 'tblTempUsageDetail_20' ) start [2025-01-27 17:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343044', 'tblTempUsageDetail_20' ) end [2025-01-27 17:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343044', 'tblTempVendorCDR_20' ) start [2025-01-27 17:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343044', 'tblTempVendorCDR_20' ) end [2025-01-27 17:00:29] Production.INFO: ProcessCDR(1,14343044,1,1,2) [2025-01-27 17:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343044', 'tblTempUsageDetail_20' ) start [2025-01-27 17:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343044', 'tblTempUsageDetail_20' ) end [2025-01-27 17:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:00:34] Production.INFO: ==4246== Releasing lock... [2025-01-27 17:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:00:34] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:01:05 [end_date_ymd] => 2025-01-27 17:01:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:01:05' and `end` < '2025-01-27 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-01-27 17:01:24] Production.INFO: count ==5589 [2025-01-27 17:01:26] Production.ERROR: pbx CDR StartTime 2025-01-27 14:01:05 - End Time 2025-01-27 17:01:05 [2025-01-27 17:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343049', 'tblTempUsageDetail_20' ) start [2025-01-27 17:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343049', 'tblTempUsageDetail_20' ) end [2025-01-27 17:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343049', 'tblTempVendorCDR_20' ) start [2025-01-27 17:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343049', 'tblTempVendorCDR_20' ) end [2025-01-27 17:01:26] Production.INFO: ProcessCDR(1,14343049,1,1,2) [2025-01-27 17:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343049', 'tblTempUsageDetail_20' ) start [2025-01-27 17:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343049', 'tblTempUsageDetail_20' ) end [2025-01-27 17:01:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:01:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:01:29] Production.INFO: ==4394== Releasing lock... [2025-01-27 17:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:01:29] Production.INFO: 70 MB #Memory Used# [2025-01-27 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:02:05 [end_date_ymd] => 2025-01-27 17:02:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:02:05' and `end` < '2025-01-27 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-01-27 17:02:22] Production.INFO: count ==5577 [2025-01-27 17:02:24] Production.ERROR: pbx CDR StartTime 2025-01-27 14:02:05 - End Time 2025-01-27 17:02:05 [2025-01-27 17:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343054', 'tblTempUsageDetail_20' ) start [2025-01-27 17:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343054', 'tblTempUsageDetail_20' ) end [2025-01-27 17:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343054', 'tblTempVendorCDR_20' ) start [2025-01-27 17:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343054', 'tblTempVendorCDR_20' ) end [2025-01-27 17:02:24] Production.INFO: ProcessCDR(1,14343054,1,1,2) [2025-01-27 17:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343054', 'tblTempUsageDetail_20' ) start [2025-01-27 17:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343054', 'tblTempUsageDetail_20' ) end [2025-01-27 17:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:02:29] Production.INFO: ==4490== Releasing lock... [2025-01-27 17:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:02:29] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 17:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:03:04 [end_date_ymd] => 2025-01-27 17:03:04 [RateCDR] => 1 ) [2025-01-27 17:03: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-01-27 14:03:04' and `end` < '2025-01-27 17:03: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-01-27 17:03:19] Production.INFO: count ==5560 [2025-01-27 17:03:22] Production.ERROR: pbx CDR StartTime 2025-01-27 14:03:04 - End Time 2025-01-27 17:03:04 [2025-01-27 17:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343059', 'tblTempUsageDetail_20' ) start [2025-01-27 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343059', 'tblTempUsageDetail_20' ) end [2025-01-27 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343059', 'tblTempVendorCDR_20' ) start [2025-01-27 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343059', 'tblTempVendorCDR_20' ) end [2025-01-27 17:03:22] Production.INFO: ProcessCDR(1,14343059,1,1,2) [2025-01-27 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343059', 'tblTempUsageDetail_20' ) start [2025-01-27 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343059', 'tblTempUsageDetail_20' ) end [2025-01-27 17:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:03:25] Production.INFO: ==4569== Releasing lock... [2025-01-27 17:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:03:25] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:04:05 [end_date_ymd] => 2025-01-27 17:04:05 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:04:05' and `end` < '2025-01-27 17: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-01-27 17:04:27] Production.INFO: count ==5567 [2025-01-27 17:04:29] Production.ERROR: pbx CDR StartTime 2025-01-27 14:04:05 - End Time 2025-01-27 17:04:05 [2025-01-27 17:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343064', 'tblTempUsageDetail_20' ) start [2025-01-27 17:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343064', 'tblTempUsageDetail_20' ) end [2025-01-27 17:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343064', 'tblTempVendorCDR_20' ) start [2025-01-27 17:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343064', 'tblTempVendorCDR_20' ) end [2025-01-27 17:04:29] Production.INFO: ProcessCDR(1,14343064,1,1,2) [2025-01-27 17:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343064', 'tblTempUsageDetail_20' ) start [2025-01-27 17:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343064', 'tblTempUsageDetail_20' ) end [2025-01-27 17:04:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:04:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:04:34] Production.INFO: ==4655== Releasing lock... [2025-01-27 17:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:04:34] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 17:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:05:04 [end_date_ymd] => 2025-01-27 17:05:04 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:05:04' and `end` < '2025-01-27 17: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-01-27 17:05:31] Production.INFO: count ==5576 [2025-01-27 17:05:34] Production.ERROR: pbx CDR StartTime 2025-01-27 14:05:04 - End Time 2025-01-27 17:05:04 [2025-01-27 17:05:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343069', 'tblTempUsageDetail_20' ) start [2025-01-27 17:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343069', 'tblTempUsageDetail_20' ) end [2025-01-27 17:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343069', 'tblTempVendorCDR_20' ) start [2025-01-27 17:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343069', 'tblTempVendorCDR_20' ) end [2025-01-27 17:05:34] Production.INFO: ProcessCDR(1,14343069,1,1,2) [2025-01-27 17:05:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:05:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:05:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:05:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:05:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343069', 'tblTempUsageDetail_20' ) start [2025-01-27 17:05:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343069', 'tblTempUsageDetail_20' ) end [2025-01-27 17:05:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:05:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:05:39] Production.INFO: ==4732== Releasing lock... [2025-01-27 17:05:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:05:39] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:06:05 [end_date_ymd] => 2025-01-27 17:06:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:06:05' and `end` < '2025-01-27 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-01-27 17:06:32] Production.INFO: count ==5566 [2025-01-27 17:06:34] Production.ERROR: pbx CDR StartTime 2025-01-27 14:06:05 - End Time 2025-01-27 17:06:05 [2025-01-27 17:06:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343074', 'tblTempUsageDetail_20' ) start [2025-01-27 17:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343074', 'tblTempUsageDetail_20' ) end [2025-01-27 17:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343074', 'tblTempVendorCDR_20' ) start [2025-01-27 17:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343074', 'tblTempVendorCDR_20' ) end [2025-01-27 17:06:34] Production.INFO: ProcessCDR(1,14343074,1,1,2) [2025-01-27 17:06:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:06:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:06:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:06:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343074', 'tblTempUsageDetail_20' ) start [2025-01-27 17:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343074', 'tblTempUsageDetail_20' ) end [2025-01-27 17:06:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:06:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:06:39] Production.INFO: ==4820== Releasing lock... [2025-01-27 17:06:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:06:39] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:07:06 [end_date_ymd] => 2025-01-27 17:07:06 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:07:06' and `end` < '2025-01-27 17: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-01-27 17:07:29] Production.INFO: count ==5552 [2025-01-27 17:07:31] Production.ERROR: pbx CDR StartTime 2025-01-27 14:07:06 - End Time 2025-01-27 17:07:06 [2025-01-27 17:07:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343079', 'tblTempUsageDetail_20' ) start [2025-01-27 17:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343079', 'tblTempUsageDetail_20' ) end [2025-01-27 17:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343079', 'tblTempVendorCDR_20' ) start [2025-01-27 17:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343079', 'tblTempVendorCDR_20' ) end [2025-01-27 17:07:31] Production.INFO: ProcessCDR(1,14343079,1,1,2) [2025-01-27 17:07:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:07:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:07:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:07:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:07:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343079', 'tblTempUsageDetail_20' ) start [2025-01-27 17:07:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343079', 'tblTempUsageDetail_20' ) end [2025-01-27 17:07:36] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:07:36] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:07:36] Production.INFO: ==4897== Releasing lock... [2025-01-27 17:07:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:07:36] Production.INFO: 69.75 MB #Memory Used# [2025-01-27 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:08:05 [end_date_ymd] => 2025-01-27 17:08:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:08:05' and `end` < '2025-01-27 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-01-27 17:08:24] Production.INFO: count ==5548 [2025-01-27 17:08:27] Production.ERROR: pbx CDR StartTime 2025-01-27 14:08:05 - End Time 2025-01-27 17:08:05 [2025-01-27 17:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343084', 'tblTempUsageDetail_20' ) start [2025-01-27 17:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343084', 'tblTempUsageDetail_20' ) end [2025-01-27 17:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343084', 'tblTempVendorCDR_20' ) start [2025-01-27 17:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343084', 'tblTempVendorCDR_20' ) end [2025-01-27 17:08:27] Production.INFO: ProcessCDR(1,14343084,1,1,2) [2025-01-27 17:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343084', 'tblTempUsageDetail_20' ) start [2025-01-27 17:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343084', 'tblTempUsageDetail_20' ) end [2025-01-27 17:08:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:08:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:08:32] Production.INFO: ==4980== Releasing lock... [2025-01-27 17:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:08:32] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:09:05 [end_date_ymd] => 2025-01-27 17:09:05 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:09:05' and `end` < '2025-01-27 17: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-01-27 17:09:24] Production.INFO: count ==5539 [2025-01-27 17:09:26] Production.ERROR: pbx CDR StartTime 2025-01-27 14:09:05 - End Time 2025-01-27 17:09:05 [2025-01-27 17:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343089', 'tblTempUsageDetail_20' ) start [2025-01-27 17:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343089', 'tblTempUsageDetail_20' ) end [2025-01-27 17:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343089', 'tblTempVendorCDR_20' ) start [2025-01-27 17:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343089', 'tblTempVendorCDR_20' ) end [2025-01-27 17:09:26] Production.INFO: ProcessCDR(1,14343089,1,1,2) [2025-01-27 17:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343089', 'tblTempUsageDetail_20' ) start [2025-01-27 17:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343089', 'tblTempUsageDetail_20' ) end [2025-01-27 17:09:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:09:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:09:31] Production.INFO: ==5068== Releasing lock... [2025-01-27 17:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:09:31] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:10:06 [end_date_ymd] => 2025-01-27 17:10:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:10:06' and `end` < '2025-01-27 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-01-27 17:10:32] Production.INFO: count ==5530 [2025-01-27 17:10:34] Production.ERROR: pbx CDR StartTime 2025-01-27 14:10:06 - End Time 2025-01-27 17:10:06 [2025-01-27 17:10:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343095', 'tblTempUsageDetail_20' ) start [2025-01-27 17:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343095', 'tblTempUsageDetail_20' ) end [2025-01-27 17:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343095', 'tblTempVendorCDR_20' ) start [2025-01-27 17:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343095', 'tblTempVendorCDR_20' ) end [2025-01-27 17:10:34] Production.INFO: ProcessCDR(1,14343095,1,1,2) [2025-01-27 17:10:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:10:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:10:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:10:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343095', 'tblTempUsageDetail_20' ) start [2025-01-27 17:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343095', 'tblTempUsageDetail_20' ) end [2025-01-27 17:10:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:10:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:10:39] Production.INFO: ==5146== Releasing lock... [2025-01-27 17:10:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:10:39] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:11:05 [end_date_ymd] => 2025-01-27 17:11:05 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:11:05' and `end` < '2025-01-27 17: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-01-27 17:11:25] Production.INFO: count ==5514 [2025-01-27 17:11:27] Production.ERROR: pbx CDR StartTime 2025-01-27 14:11:05 - End Time 2025-01-27 17:11:05 [2025-01-27 17:11:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343100', 'tblTempUsageDetail_20' ) start [2025-01-27 17:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343100', 'tblTempUsageDetail_20' ) end [2025-01-27 17:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343100', 'tblTempVendorCDR_20' ) start [2025-01-27 17:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343100', 'tblTempVendorCDR_20' ) end [2025-01-27 17:11:27] Production.INFO: ProcessCDR(1,14343100,1,1,2) [2025-01-27 17:11:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:11:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:11:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343100', 'tblTempUsageDetail_20' ) start [2025-01-27 17:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343100', 'tblTempUsageDetail_20' ) end [2025-01-27 17:11:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:11:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:11:32] Production.INFO: ==5233== Releasing lock... [2025-01-27 17:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:11:32] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:12:05 [end_date_ymd] => 2025-01-27 17:12:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:12:05' and `end` < '2025-01-27 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-01-27 17:12:27] Production.INFO: count ==5525 [2025-01-27 17:12:29] Production.ERROR: pbx CDR StartTime 2025-01-27 14:12:05 - End Time 2025-01-27 17:12:05 [2025-01-27 17:12:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343105', 'tblTempUsageDetail_20' ) start [2025-01-27 17:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343105', 'tblTempUsageDetail_20' ) end [2025-01-27 17:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343105', 'tblTempVendorCDR_20' ) start [2025-01-27 17:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343105', 'tblTempVendorCDR_20' ) end [2025-01-27 17:12:30] Production.INFO: ProcessCDR(1,14343105,1,1,2) [2025-01-27 17:12:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:12:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:12:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:12:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343105', 'tblTempUsageDetail_20' ) start [2025-01-27 17:12:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343105', 'tblTempUsageDetail_20' ) end [2025-01-27 17:12:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:12:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:12:35] Production.INFO: ==5310== Releasing lock... [2025-01-27 17:12:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:12:35] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:13:05 [end_date_ymd] => 2025-01-27 17:13:05 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:13:05' and `end` < '2025-01-27 17: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-01-27 17:13:23] Production.INFO: count ==5527 [2025-01-27 17:13:25] Production.ERROR: pbx CDR StartTime 2025-01-27 14:13:05 - End Time 2025-01-27 17:13:05 [2025-01-27 17:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343110', 'tblTempUsageDetail_20' ) start [2025-01-27 17:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343110', 'tblTempUsageDetail_20' ) end [2025-01-27 17:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343110', 'tblTempVendorCDR_20' ) start [2025-01-27 17:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343110', 'tblTempVendorCDR_20' ) end [2025-01-27 17:13:26] Production.INFO: ProcessCDR(1,14343110,1,1,2) [2025-01-27 17:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343110', 'tblTempUsageDetail_20' ) start [2025-01-27 17:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343110', 'tblTempUsageDetail_20' ) end [2025-01-27 17:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:13:30] Production.INFO: ==5395== Releasing lock... [2025-01-27 17:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:13:30] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:14:05 [end_date_ymd] => 2025-01-27 17:14:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:14:05' and `end` < '2025-01-27 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-01-27 17:14:21] Production.INFO: count ==5504 [2025-01-27 17:14:23] Production.ERROR: pbx CDR StartTime 2025-01-27 14:14:05 - End Time 2025-01-27 17:14:05 [2025-01-27 17:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343115', 'tblTempUsageDetail_20' ) start [2025-01-27 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343115', 'tblTempUsageDetail_20' ) end [2025-01-27 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343115', 'tblTempVendorCDR_20' ) start [2025-01-27 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343115', 'tblTempVendorCDR_20' ) end [2025-01-27 17:14:24] Production.INFO: ProcessCDR(1,14343115,1,1,2) [2025-01-27 17:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343115', 'tblTempUsageDetail_20' ) start [2025-01-27 17:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343115', 'tblTempUsageDetail_20' ) end [2025-01-27 17:14:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:14:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:14:28] Production.INFO: ==5484== Releasing lock... [2025-01-27 17:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:14:28] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:15:05 [end_date_ymd] => 2025-01-27 17:15:05 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:15:05' and `end` < '2025-01-27 17: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-01-27 17:15:19] Production.INFO: count ==5493 [2025-01-27 17:15:21] Production.ERROR: pbx CDR StartTime 2025-01-27 14:15:05 - End Time 2025-01-27 17:15:05 [2025-01-27 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343120', 'tblTempUsageDetail_20' ) start [2025-01-27 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343120', 'tblTempUsageDetail_20' ) end [2025-01-27 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343120', 'tblTempVendorCDR_20' ) start [2025-01-27 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343120', 'tblTempVendorCDR_20' ) end [2025-01-27 17:15:21] Production.INFO: ProcessCDR(1,14343120,1,1,2) [2025-01-27 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343120', 'tblTempUsageDetail_20' ) start [2025-01-27 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343120', 'tblTempUsageDetail_20' ) end [2025-01-27 17:15:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:15:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:15:26] Production.INFO: ==5565== Releasing lock... [2025-01-27 17:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:15:26] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:16:05 [end_date_ymd] => 2025-01-27 17:16:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:16:05' and `end` < '2025-01-27 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-01-27 17:16:19] Production.INFO: count ==5521 [2025-01-27 17:16:21] Production.ERROR: pbx CDR StartTime 2025-01-27 14:16:05 - End Time 2025-01-27 17:16:05 [2025-01-27 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343125', 'tblTempUsageDetail_20' ) start [2025-01-27 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343125', 'tblTempUsageDetail_20' ) end [2025-01-27 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343125', 'tblTempVendorCDR_20' ) start [2025-01-27 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343125', 'tblTempVendorCDR_20' ) end [2025-01-27 17:16:21] Production.INFO: ProcessCDR(1,14343125,1,1,2) [2025-01-27 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343125', 'tblTempUsageDetail_20' ) start [2025-01-27 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343125', 'tblTempUsageDetail_20' ) end [2025-01-27 17:16:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:16:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:16:26] Production.INFO: ==5642== Releasing lock... [2025-01-27 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:16:26] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:17:05 [end_date_ymd] => 2025-01-27 17:17:05 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:17:05' and `end` < '2025-01-27 17: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-01-27 17:17:27] Production.INFO: count ==5503 [2025-01-27 17:17:29] Production.ERROR: pbx CDR StartTime 2025-01-27 14:17:05 - End Time 2025-01-27 17:17:05 [2025-01-27 17:17:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343130', 'tblTempUsageDetail_20' ) start [2025-01-27 17:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343130', 'tblTempUsageDetail_20' ) end [2025-01-27 17:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343130', 'tblTempVendorCDR_20' ) start [2025-01-27 17:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343130', 'tblTempVendorCDR_20' ) end [2025-01-27 17:17:29] Production.INFO: ProcessCDR(1,14343130,1,1,2) [2025-01-27 17:17:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:17:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:17:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:17:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343130', 'tblTempUsageDetail_20' ) start [2025-01-27 17:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343130', 'tblTempUsageDetail_20' ) end [2025-01-27 17:17:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:17:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:17:34] Production.INFO: ==5761== Releasing lock... [2025-01-27 17:17:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:17:34] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:18:05 [end_date_ymd] => 2025-01-27 17:18:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:18:05' and `end` < '2025-01-27 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-01-27 17:18:25] Production.INFO: count ==5489 [2025-01-27 17:18:27] Production.ERROR: pbx CDR StartTime 2025-01-27 14:18:05 - End Time 2025-01-27 17:18:05 [2025-01-27 17:18:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343135', 'tblTempUsageDetail_20' ) start [2025-01-27 17:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343135', 'tblTempUsageDetail_20' ) end [2025-01-27 17:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343135', 'tblTempVendorCDR_20' ) start [2025-01-27 17:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343135', 'tblTempVendorCDR_20' ) end [2025-01-27 17:18:27] Production.INFO: ProcessCDR(1,14343135,1,1,2) [2025-01-27 17:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:18:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:18:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:18:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343135', 'tblTempUsageDetail_20' ) start [2025-01-27 17:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343135', 'tblTempUsageDetail_20' ) end [2025-01-27 17:18:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:18:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:18:32] Production.INFO: ==5836== Releasing lock... [2025-01-27 17:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:18:32] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:19:05 [end_date_ymd] => 2025-01-27 17:19:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:19:05' and `end` < '2025-01-27 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-01-27 17:19:24] Production.INFO: count ==5488 [2025-01-27 17:19:26] Production.ERROR: pbx CDR StartTime 2025-01-27 14:19:05 - End Time 2025-01-27 17:19:05 [2025-01-27 17:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343140', 'tblTempUsageDetail_20' ) start [2025-01-27 17:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343140', 'tblTempUsageDetail_20' ) end [2025-01-27 17:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343140', 'tblTempVendorCDR_20' ) start [2025-01-27 17:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343140', 'tblTempVendorCDR_20' ) end [2025-01-27 17:19:26] Production.INFO: ProcessCDR(1,14343140,1,1,2) [2025-01-27 17:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343140', 'tblTempUsageDetail_20' ) start [2025-01-27 17:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343140', 'tblTempUsageDetail_20' ) end [2025-01-27 17:19:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:19:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:19:31] Production.INFO: ==5923== Releasing lock... [2025-01-27 17:19:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:19:31] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:20:06 [end_date_ymd] => 2025-01-27 17:20:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:20:06' and `end` < '2025-01-27 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-01-27 17:20:28] Production.INFO: count ==5474 [2025-01-27 17:20:30] Production.ERROR: pbx CDR StartTime 2025-01-27 14:20:06 - End Time 2025-01-27 17:20:06 [2025-01-27 17:20:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343146', 'tblTempUsageDetail_20' ) start [2025-01-27 17:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343146', 'tblTempUsageDetail_20' ) end [2025-01-27 17:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343146', 'tblTempVendorCDR_20' ) start [2025-01-27 17:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343146', 'tblTempVendorCDR_20' ) end [2025-01-27 17:20:30] Production.INFO: ProcessCDR(1,14343146,1,1,2) [2025-01-27 17:20:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:20:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:20:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:20:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343146', 'tblTempUsageDetail_20' ) start [2025-01-27 17:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343146', 'tblTempUsageDetail_20' ) end [2025-01-27 17:20:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:20:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:20:35] Production.INFO: ==6005== Releasing lock... [2025-01-27 17:20:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:20:35] Production.INFO: 69 MB #Memory Used# [2025-01-27 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:21:05 [end_date_ymd] => 2025-01-27 17:21:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:21:05' and `end` < '2025-01-27 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-01-27 17:21:30] Production.INFO: count ==5498 [2025-01-27 17:21:32] Production.ERROR: pbx CDR StartTime 2025-01-27 14:21:05 - End Time 2025-01-27 17:21:05 [2025-01-27 17:21:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343151', 'tblTempUsageDetail_20' ) start [2025-01-27 17:21:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343151', 'tblTempUsageDetail_20' ) end [2025-01-27 17:21:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343151', 'tblTempVendorCDR_20' ) start [2025-01-27 17:21:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343151', 'tblTempVendorCDR_20' ) end [2025-01-27 17:21:33] Production.INFO: ProcessCDR(1,14343151,1,1,2) [2025-01-27 17:21:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:21:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:21:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:21:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:21:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343151', 'tblTempUsageDetail_20' ) start [2025-01-27 17:21:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343151', 'tblTempUsageDetail_20' ) end [2025-01-27 17:21:37] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:21:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:21:38] Production.INFO: ==6083== Releasing lock... [2025-01-27 17:21:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:21:38] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:22:05 [end_date_ymd] => 2025-01-27 17:22:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:22:05' and `end` < '2025-01-27 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-01-27 17:22:28] Production.INFO: count ==5504 [2025-01-27 17:22:30] Production.ERROR: pbx CDR StartTime 2025-01-27 14:22:05 - End Time 2025-01-27 17:22:05 [2025-01-27 17:22:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343156', 'tblTempUsageDetail_20' ) start [2025-01-27 17:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343156', 'tblTempUsageDetail_20' ) end [2025-01-27 17:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343156', 'tblTempVendorCDR_20' ) start [2025-01-27 17:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343156', 'tblTempVendorCDR_20' ) end [2025-01-27 17:22:30] Production.INFO: ProcessCDR(1,14343156,1,1,2) [2025-01-27 17:22:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:22:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:22:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:22:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343156', 'tblTempUsageDetail_20' ) start [2025-01-27 17:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343156', 'tblTempUsageDetail_20' ) end [2025-01-27 17:22:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:22:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:22:35] Production.INFO: ==6158== Releasing lock... [2025-01-27 17:22:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:22:35] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 17:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:23:06 [end_date_ymd] => 2025-01-27 17:23:06 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:23:06' and `end` < '2025-01-27 17: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-01-27 17:23:32] Production.INFO: count ==5503 [2025-01-27 17:23:34] Production.ERROR: pbx CDR StartTime 2025-01-27 14:23:06 - End Time 2025-01-27 17:23:06 [2025-01-27 17:23:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:23:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343161', 'tblTempUsageDetail_20' ) start [2025-01-27 17:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343161', 'tblTempUsageDetail_20' ) end [2025-01-27 17:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343161', 'tblTempVendorCDR_20' ) start [2025-01-27 17:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343161', 'tblTempVendorCDR_20' ) end [2025-01-27 17:23:35] Production.INFO: ProcessCDR(1,14343161,1,1,2) [2025-01-27 17:23:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:23:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:23:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:23:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:23:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343161', 'tblTempUsageDetail_20' ) start [2025-01-27 17:23:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343161', 'tblTempUsageDetail_20' ) end [2025-01-27 17:23:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:23:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:23:39] Production.INFO: ==6239== Releasing lock... [2025-01-27 17:23:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:23:39] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:24:05 [end_date_ymd] => 2025-01-27 17:24:05 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:24:05' and `end` < '2025-01-27 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-01-27 17:24:26] Production.INFO: count ==5497 [2025-01-27 17:24:28] Production.ERROR: pbx CDR StartTime 2025-01-27 14:24:05 - End Time 2025-01-27 17:24:05 [2025-01-27 17:24:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343166', 'tblTempUsageDetail_20' ) start [2025-01-27 17:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343166', 'tblTempUsageDetail_20' ) end [2025-01-27 17:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343166', 'tblTempVendorCDR_20' ) start [2025-01-27 17:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343166', 'tblTempVendorCDR_20' ) end [2025-01-27 17:24:28] Production.INFO: ProcessCDR(1,14343166,1,1,2) [2025-01-27 17:24:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:24:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:24:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:24:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343166', 'tblTempUsageDetail_20' ) start [2025-01-27 17:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343166', 'tblTempUsageDetail_20' ) end [2025-01-27 17:24:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:24:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:24:33] Production.INFO: ==6314== Releasing lock... [2025-01-27 17:24:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:24:33] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:25:06 [end_date_ymd] => 2025-01-27 17:25:06 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:25:06' and `end` < '2025-01-27 17: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-01-27 17:25:28] Production.INFO: count ==5489 [2025-01-27 17:25:30] Production.ERROR: pbx CDR StartTime 2025-01-27 14:25:06 - End Time 2025-01-27 17:25:06 [2025-01-27 17:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343171', 'tblTempUsageDetail_20' ) start [2025-01-27 17:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343171', 'tblTempUsageDetail_20' ) end [2025-01-27 17:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343171', 'tblTempVendorCDR_20' ) start [2025-01-27 17:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343171', 'tblTempVendorCDR_20' ) end [2025-01-27 17:25:31] Production.INFO: ProcessCDR(1,14343171,1,1,2) [2025-01-27 17:25:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:25:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:25:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343171', 'tblTempUsageDetail_20' ) start [2025-01-27 17:25:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343171', 'tblTempUsageDetail_20' ) end [2025-01-27 17:25:53] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:25:54] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:25:54] Production.INFO: ==6394== Releasing lock... [2025-01-27 17:25:54] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:25:54] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 17:26:23] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:26:23 [end_date_ymd] => 2025-01-27 17:26:23 [RateCDR] => 1 ) [2025-01-27 17:26:23] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 14:26:23' and `end` < '2025-01-27 17:26:23' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-27 17:26:43] Production.INFO: count ==5497 [2025-01-27 17:28:14] Production.ERROR: pbx CDR StartTime 2025-01-27 14:26:23 - End Time 2025-01-27 17:26:23 [2025-01-27 17:28:14] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:28:14] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343176', 'tblTempUsageDetail_20' ) start [2025-01-27 17:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343176', 'tblTempUsageDetail_20' ) end [2025-01-27 17:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343176', 'tblTempVendorCDR_20' ) start [2025-01-27 17:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343176', 'tblTempVendorCDR_20' ) end [2025-01-27 17:28:23] Production.INFO: ProcessCDR(1,14343176,1,1,2) [2025-01-27 17:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:28:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:28:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:29:17] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:29:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343176', 'tblTempUsageDetail_20' ) start [2025-01-27 17:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343176', 'tblTempUsageDetail_20' ) end [2025-01-27 17:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:29:32] Production.INFO: ==6475== Releasing lock... [2025-01-27 17:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:29:32] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 17:30:33] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:30:33 [end_date_ymd] => 2025-01-27 17:30:33 [RateCDR] => 1 ) [2025-01-27 17:30:33] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 14:30:33' and `end` < '2025-01-27 17:30:33' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-27 17:30:55] Production.INFO: count ==5471 [2025-01-27 17:31:53] Production.ERROR: pbx CDR StartTime 2025-01-27 14:30:33 - End Time 2025-01-27 17:30:33 [2025-01-27 17:31:53] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:31:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343191', 'tblTempUsageDetail_20' ) start [2025-01-27 17:32:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343191', 'tblTempUsageDetail_20' ) end [2025-01-27 17:32:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343191', 'tblTempVendorCDR_20' ) start [2025-01-27 17:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343191', 'tblTempVendorCDR_20' ) end [2025-01-27 17:32:16] Production.INFO: ProcessCDR(1,14343191,1,1,2) [2025-01-27 17:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343191', 'tblTempUsageDetail_20' ) start [2025-01-27 17:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343191', 'tblTempUsageDetail_20' ) end [2025-01-27 17:33:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:33:33] Production.INFO: ==6773== Releasing lock... [2025-01-27 17:33:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:33:33] Production.INFO: 69 MB #Memory Used# [2025-01-27 17:34:28] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:34:28 [end_date_ymd] => 2025-01-27 17:34:28 [RateCDR] => 1 ) [2025-01-27 17:34:28] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 14:34:28' and `end` < '2025-01-27 17:34:28' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-27 17:34:48] Production.INFO: count ==5505 [2025-01-27 17:34:52] Production.ERROR: pbx CDR StartTime 2025-01-27 14:34:28 - End Time 2025-01-27 17:34:28 [2025-01-27 17:34:52] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:34:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343205', 'tblTempUsageDetail_20' ) start [2025-01-27 17:34:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343205', 'tblTempUsageDetail_20' ) end [2025-01-27 17:34:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343205', 'tblTempVendorCDR_20' ) start [2025-01-27 17:34:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343205', 'tblTempVendorCDR_20' ) end [2025-01-27 17:34:52] Production.INFO: ProcessCDR(1,14343205,1,1,2) [2025-01-27 17:34:52] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:34:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:34:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:34:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:34:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343205', 'tblTempUsageDetail_20' ) start [2025-01-27 17:35:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343205', 'tblTempUsageDetail_20' ) end [2025-01-27 17:35:00] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:35:00] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:35:00] Production.INFO: ==7107== Releasing lock... [2025-01-27 17:35:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:35:00] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:35:05 [end_date_ymd] => 2025-01-27 17:35:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:35:05' and `end` < '2025-01-27 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-01-27 17:35:28] Production.INFO: count ==5508 [2025-01-27 17:35:30] Production.ERROR: pbx CDR StartTime 2025-01-27 14:35:05 - End Time 2025-01-27 17:35:05 [2025-01-27 17:35:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343210', 'tblTempUsageDetail_20' ) start [2025-01-27 17:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343210', 'tblTempUsageDetail_20' ) end [2025-01-27 17:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343210', 'tblTempVendorCDR_20' ) start [2025-01-27 17:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343210', 'tblTempVendorCDR_20' ) end [2025-01-27 17:35:30] Production.INFO: ProcessCDR(1,14343210,1,1,2) [2025-01-27 17:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:35:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:35:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:35:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343210', 'tblTempUsageDetail_20' ) start [2025-01-27 17:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343210', 'tblTempUsageDetail_20' ) end [2025-01-27 17:35:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:35:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:35:35] Production.INFO: ==7190== Releasing lock... [2025-01-27 17:35:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:35:35] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:36:05 [end_date_ymd] => 2025-01-27 17:36:05 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:36:05' and `end` < '2025-01-27 17: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-01-27 17:36:25] Production.INFO: count ==5538 [2025-01-27 17:36:27] Production.ERROR: pbx CDR StartTime 2025-01-27 14:36:05 - End Time 2025-01-27 17:36:05 [2025-01-27 17:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343215', 'tblTempUsageDetail_20' ) start [2025-01-27 17:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343215', 'tblTempUsageDetail_20' ) end [2025-01-27 17:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343215', 'tblTempVendorCDR_20' ) start [2025-01-27 17:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343215', 'tblTempVendorCDR_20' ) end [2025-01-27 17:36:27] Production.INFO: ProcessCDR(1,14343215,1,1,2) [2025-01-27 17:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343215', 'tblTempUsageDetail_20' ) start [2025-01-27 17:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343215', 'tblTempUsageDetail_20' ) end [2025-01-27 17:36:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:36:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:36:31] Production.INFO: ==7265== Releasing lock... [2025-01-27 17:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:36:31] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:37:05 [end_date_ymd] => 2025-01-27 17:37:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:37:05' and `end` < '2025-01-27 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-01-27 17:37:19] Production.INFO: count ==5535 [2025-01-27 17:37:21] Production.ERROR: pbx CDR StartTime 2025-01-27 14:37:05 - End Time 2025-01-27 17:37:05 [2025-01-27 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343220', 'tblTempUsageDetail_20' ) start [2025-01-27 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343220', 'tblTempUsageDetail_20' ) end [2025-01-27 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343220', 'tblTempVendorCDR_20' ) start [2025-01-27 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343220', 'tblTempVendorCDR_20' ) end [2025-01-27 17:37:21] Production.INFO: ProcessCDR(1,14343220,1,1,2) [2025-01-27 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343220', 'tblTempUsageDetail_20' ) start [2025-01-27 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343220', 'tblTempUsageDetail_20' ) end [2025-01-27 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:37:26] Production.INFO: ==7341== Releasing lock... [2025-01-27 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:37:26] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:38:05 [end_date_ymd] => 2025-01-27 17:38:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:38:05' and `end` < '2025-01-27 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-01-27 17:38:18] Production.INFO: count ==5545 [2025-01-27 17:38:20] Production.ERROR: pbx CDR StartTime 2025-01-27 14:38:05 - End Time 2025-01-27 17:38:05 [2025-01-27 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343225', 'tblTempUsageDetail_20' ) start [2025-01-27 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343225', 'tblTempUsageDetail_20' ) end [2025-01-27 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343225', 'tblTempVendorCDR_20' ) start [2025-01-27 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343225', 'tblTempVendorCDR_20' ) end [2025-01-27 17:38:20] Production.INFO: ProcessCDR(1,14343225,1,1,2) [2025-01-27 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343225', 'tblTempUsageDetail_20' ) start [2025-01-27 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343225', 'tblTempUsageDetail_20' ) end [2025-01-27 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:38:25] Production.INFO: ==7423== Releasing lock... [2025-01-27 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:38:25] Production.INFO: 69.5 MB #Memory Used# [2025-01-27 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:39:05 [end_date_ymd] => 2025-01-27 17:39:05 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:39:05' and `end` < '2025-01-27 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-01-27 17:39:19] Production.INFO: count ==5518 [2025-01-27 17:39:21] Production.ERROR: pbx CDR StartTime 2025-01-27 14:39:05 - End Time 2025-01-27 17:39:05 [2025-01-27 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343230', 'tblTempUsageDetail_20' ) start [2025-01-27 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343230', 'tblTempUsageDetail_20' ) end [2025-01-27 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343230', 'tblTempVendorCDR_20' ) start [2025-01-27 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343230', 'tblTempVendorCDR_20' ) end [2025-01-27 17:39:21] Production.INFO: ProcessCDR(1,14343230,1,1,2) [2025-01-27 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343230', 'tblTempUsageDetail_20' ) start [2025-01-27 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343230', 'tblTempUsageDetail_20' ) end [2025-01-27 17:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:39:26] Production.INFO: ==7501== Releasing lock... [2025-01-27 17:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:39:26] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:40:06 [end_date_ymd] => 2025-01-27 17:40:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:40:06' and `end` < '2025-01-27 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-01-27 17:40:21] Production.INFO: count ==5510 [2025-01-27 17:40:23] Production.ERROR: pbx CDR StartTime 2025-01-27 14:40:06 - End Time 2025-01-27 17:40:06 [2025-01-27 17:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343236', 'tblTempUsageDetail_20' ) start [2025-01-27 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343236', 'tblTempUsageDetail_20' ) end [2025-01-27 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343236', 'tblTempVendorCDR_20' ) start [2025-01-27 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343236', 'tblTempVendorCDR_20' ) end [2025-01-27 17:40:23] Production.INFO: ProcessCDR(1,14343236,1,1,2) [2025-01-27 17:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343236', 'tblTempUsageDetail_20' ) start [2025-01-27 17:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343236', 'tblTempUsageDetail_20' ) end [2025-01-27 17:40:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:40:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:40:28] Production.INFO: ==7577== Releasing lock... [2025-01-27 17:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:40:28] Production.INFO: 69.25 MB #Memory Used# [2025-01-27 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:41:05 [end_date_ymd] => 2025-01-27 17:41:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:41:05' and `end` < '2025-01-27 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-01-27 17:41:27] Production.INFO: count ==5470 [2025-01-27 17:41:29] Production.ERROR: pbx CDR StartTime 2025-01-27 14:41:05 - End Time 2025-01-27 17:41:05 [2025-01-27 17:41:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343241', 'tblTempUsageDetail_20' ) start [2025-01-27 17:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343241', 'tblTempUsageDetail_20' ) end [2025-01-27 17:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343241', 'tblTempVendorCDR_20' ) start [2025-01-27 17:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343241', 'tblTempVendorCDR_20' ) end [2025-01-27 17:41:29] Production.INFO: ProcessCDR(1,14343241,1,1,2) [2025-01-27 17:41:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:41:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:41:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:41:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343241', 'tblTempUsageDetail_20' ) start [2025-01-27 17:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343241', 'tblTempUsageDetail_20' ) end [2025-01-27 17:41:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:41:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:41:34] Production.INFO: ==7657== Releasing lock... [2025-01-27 17:41:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:41:34] Production.INFO: 69 MB #Memory Used# [2025-01-27 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:42:05 [end_date_ymd] => 2025-01-27 17:42:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:42:05' and `end` < '2025-01-27 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-01-27 17:42:25] Production.INFO: count ==5470 [2025-01-27 17:42:27] Production.ERROR: pbx CDR StartTime 2025-01-27 14:42:05 - End Time 2025-01-27 17:42:05 [2025-01-27 17:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343246', 'tblTempUsageDetail_20' ) start [2025-01-27 17:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343246', 'tblTempUsageDetail_20' ) end [2025-01-27 17:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343246', 'tblTempVendorCDR_20' ) start [2025-01-27 17:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343246', 'tblTempVendorCDR_20' ) end [2025-01-27 17:42:27] Production.INFO: ProcessCDR(1,14343246,1,1,2) [2025-01-27 17:42:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343246', 'tblTempUsageDetail_20' ) start [2025-01-27 17:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343246', 'tblTempUsageDetail_20' ) end [2025-01-27 17:42:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:42:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:42:32] Production.INFO: ==7730== Releasing lock... [2025-01-27 17:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:42:32] Production.INFO: 69 MB #Memory Used# [2025-01-27 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:43:05 [end_date_ymd] => 2025-01-27 17:43:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:43:05' and `end` < '2025-01-27 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-01-27 17:43:29] Production.INFO: count ==5451 [2025-01-27 17:43:31] Production.ERROR: pbx CDR StartTime 2025-01-27 14:43:05 - End Time 2025-01-27 17:43:05 [2025-01-27 17:43:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343251', 'tblTempUsageDetail_20' ) start [2025-01-27 17:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343251', 'tblTempUsageDetail_20' ) end [2025-01-27 17:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343251', 'tblTempVendorCDR_20' ) start [2025-01-27 17:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343251', 'tblTempVendorCDR_20' ) end [2025-01-27 17:43:31] Production.INFO: ProcessCDR(1,14343251,1,1,2) [2025-01-27 17:43:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:43:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:43:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:43:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:43:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343251', 'tblTempUsageDetail_20' ) start [2025-01-27 17:43:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343251', 'tblTempUsageDetail_20' ) end [2025-01-27 17:43:35] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:43:35] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:43:35] Production.INFO: ==7806== Releasing lock... [2025-01-27 17:43:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:43:35] Production.INFO: 68.75 MB #Memory Used# [2025-01-27 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:44:05 [end_date_ymd] => 2025-01-27 17:44:05 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:44:05' and `end` < '2025-01-27 17: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-01-27 17:44:19] Production.INFO: count ==5426 [2025-01-27 17:44:21] Production.ERROR: pbx CDR StartTime 2025-01-27 14:44:05 - End Time 2025-01-27 17:44:05 [2025-01-27 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343256', 'tblTempUsageDetail_20' ) start [2025-01-27 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343256', 'tblTempUsageDetail_20' ) end [2025-01-27 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343256', 'tblTempVendorCDR_20' ) start [2025-01-27 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343256', 'tblTempVendorCDR_20' ) end [2025-01-27 17:44:21] Production.INFO: ProcessCDR(1,14343256,1,1,2) [2025-01-27 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343256', 'tblTempUsageDetail_20' ) start [2025-01-27 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343256', 'tblTempUsageDetail_20' ) end [2025-01-27 17:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:44:24] Production.INFO: ==7882== Releasing lock... [2025-01-27 17:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:44:24] Production.INFO: 68.75 MB #Memory Used# [2025-01-27 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:45:05 [end_date_ymd] => 2025-01-27 17:45:05 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:45:05' and `end` < '2025-01-27 17: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-01-27 17:45:24] Production.INFO: count ==5422 [2025-01-27 17:45:27] Production.ERROR: pbx CDR StartTime 2025-01-27 14:45:05 - End Time 2025-01-27 17:45:05 [2025-01-27 17:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343261', 'tblTempUsageDetail_20' ) start [2025-01-27 17:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343261', 'tblTempUsageDetail_20' ) end [2025-01-27 17:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343261', 'tblTempVendorCDR_20' ) start [2025-01-27 17:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343261', 'tblTempVendorCDR_20' ) end [2025-01-27 17:45:27] Production.INFO: ProcessCDR(1,14343261,1,1,2) [2025-01-27 17:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343261', 'tblTempUsageDetail_20' ) start [2025-01-27 17:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343261', 'tblTempUsageDetail_20' ) end [2025-01-27 17:45:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:45:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:45:32] Production.INFO: ==7959== Releasing lock... [2025-01-27 17:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:45:32] Production.INFO: 68.75 MB #Memory Used# [2025-01-27 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:46:05 [end_date_ymd] => 2025-01-27 17:46:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:46:05' and `end` < '2025-01-27 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-01-27 17:46:19] Production.INFO: count ==5420 [2025-01-27 17:46:21] Production.ERROR: pbx CDR StartTime 2025-01-27 14:46:05 - End Time 2025-01-27 17:46:05 [2025-01-27 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343266', 'tblTempUsageDetail_20' ) start [2025-01-27 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343266', 'tblTempUsageDetail_20' ) end [2025-01-27 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343266', 'tblTempVendorCDR_20' ) start [2025-01-27 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343266', 'tblTempVendorCDR_20' ) end [2025-01-27 17:46:21] Production.INFO: ProcessCDR(1,14343266,1,1,2) [2025-01-27 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343266', 'tblTempUsageDetail_20' ) start [2025-01-27 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343266', 'tblTempUsageDetail_20' ) end [2025-01-27 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:46:24] Production.INFO: ==8033== Releasing lock... [2025-01-27 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:46:24] Production.INFO: 68.75 MB #Memory Used# [2025-01-27 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:47:05 [end_date_ymd] => 2025-01-27 17:47:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:47:05' and `end` < '2025-01-27 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-01-27 17:47:21] Production.INFO: count ==5404 [2025-01-27 17:47:23] Production.ERROR: pbx CDR StartTime 2025-01-27 14:47:05 - End Time 2025-01-27 17:47:05 [2025-01-27 17:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343271', 'tblTempUsageDetail_20' ) start [2025-01-27 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343271', 'tblTempUsageDetail_20' ) end [2025-01-27 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343271', 'tblTempVendorCDR_20' ) start [2025-01-27 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343271', 'tblTempVendorCDR_20' ) end [2025-01-27 17:47:23] Production.INFO: ProcessCDR(1,14343271,1,1,2) [2025-01-27 17:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343271', 'tblTempUsageDetail_20' ) start [2025-01-27 17:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343271', 'tblTempUsageDetail_20' ) end [2025-01-27 17:47:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:47:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:47:28] Production.INFO: ==8112== Releasing lock... [2025-01-27 17:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:47:28] Production.INFO: 68.5 MB #Memory Used# [2025-01-27 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:48:05 [end_date_ymd] => 2025-01-27 17:48:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:48:05' and `end` < '2025-01-27 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-01-27 17:48:23] Production.INFO: count ==5408 [2025-01-27 17:48:25] Production.ERROR: pbx CDR StartTime 2025-01-27 14:48:05 - End Time 2025-01-27 17:48:05 [2025-01-27 17:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343276', 'tblTempUsageDetail_20' ) start [2025-01-27 17:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343276', 'tblTempUsageDetail_20' ) end [2025-01-27 17:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343276', 'tblTempVendorCDR_20' ) start [2025-01-27 17:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343276', 'tblTempVendorCDR_20' ) end [2025-01-27 17:48:25] Production.INFO: ProcessCDR(1,14343276,1,1,2) [2025-01-27 17:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343276', 'tblTempUsageDetail_20' ) start [2025-01-27 17:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343276', 'tblTempUsageDetail_20' ) end [2025-01-27 17:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:48:30] Production.INFO: ==8227== Releasing lock... [2025-01-27 17:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:48:30] Production.INFO: 68.5 MB #Memory Used# [2025-01-27 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:49:05 [end_date_ymd] => 2025-01-27 17:49:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:49:05' and `end` < '2025-01-27 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-01-27 17:49:19] Production.INFO: count ==5407 [2025-01-27 17:49:21] Production.ERROR: pbx CDR StartTime 2025-01-27 14:49:05 - End Time 2025-01-27 17:49:05 [2025-01-27 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343278', 'tblTempUsageDetail_20' ) start [2025-01-27 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343278', 'tblTempUsageDetail_20' ) end [2025-01-27 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343278', 'tblTempVendorCDR_20' ) start [2025-01-27 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343278', 'tblTempVendorCDR_20' ) end [2025-01-27 17:49:21] Production.INFO: ProcessCDR(1,14343278,1,1,2) [2025-01-27 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343278', 'tblTempUsageDetail_20' ) start [2025-01-27 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343278', 'tblTempUsageDetail_20' ) end [2025-01-27 17:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:49:26] Production.INFO: ==8300== Releasing lock... [2025-01-27 17:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:49:26] Production.INFO: 68.5 MB #Memory Used# [2025-01-27 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:50:06 [end_date_ymd] => 2025-01-27 17:50:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:50:06' and `end` < '2025-01-27 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-01-27 17:50:22] Production.INFO: count ==5402 [2025-01-27 17:50:24] Production.ERROR: pbx CDR StartTime 2025-01-27 14:50:06 - End Time 2025-01-27 17:50:06 [2025-01-27 17:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343286', 'tblTempUsageDetail_20' ) start [2025-01-27 17:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343286', 'tblTempUsageDetail_20' ) end [2025-01-27 17:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343286', 'tblTempVendorCDR_20' ) start [2025-01-27 17:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343286', 'tblTempVendorCDR_20' ) end [2025-01-27 17:50:24] Production.INFO: ProcessCDR(1,14343286,1,1,2) [2025-01-27 17:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343286', 'tblTempUsageDetail_20' ) start [2025-01-27 17:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343286', 'tblTempUsageDetail_20' ) end [2025-01-27 17:50:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:50:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:50:29] Production.INFO: ==8376== Releasing lock... [2025-01-27 17:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:50:29] Production.INFO: 68.5 MB #Memory Used# [2025-01-27 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:51:05 [end_date_ymd] => 2025-01-27 17:51:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:51:05' and `end` < '2025-01-27 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-01-27 17:51:23] Production.INFO: count ==5396 [2025-01-27 17:51:25] Production.ERROR: pbx CDR StartTime 2025-01-27 14:51:05 - End Time 2025-01-27 17:51:05 [2025-01-27 17:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343292', 'tblTempUsageDetail_20' ) start [2025-01-27 17:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343292', 'tblTempUsageDetail_20' ) end [2025-01-27 17:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343292', 'tblTempVendorCDR_20' ) start [2025-01-27 17:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343292', 'tblTempVendorCDR_20' ) end [2025-01-27 17:51:25] Production.INFO: ProcessCDR(1,14343292,1,1,2) [2025-01-27 17:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343292', 'tblTempUsageDetail_20' ) start [2025-01-27 17:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343292', 'tblTempUsageDetail_20' ) end [2025-01-27 17:51:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:51:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:51:31] Production.INFO: ==8449== Releasing lock... [2025-01-27 17:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:51:31] Production.INFO: 68.5 MB #Memory Used# [2025-01-27 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:52:05 [end_date_ymd] => 2025-01-27 17:52:05 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:52:05' and `end` < '2025-01-27 17: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-01-27 17:52:20] Production.INFO: count ==5381 [2025-01-27 17:52:23] Production.ERROR: pbx CDR StartTime 2025-01-27 14:52:05 - End Time 2025-01-27 17:52:05 [2025-01-27 17:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343297', 'tblTempUsageDetail_20' ) start [2025-01-27 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343297', 'tblTempUsageDetail_20' ) end [2025-01-27 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343297', 'tblTempVendorCDR_20' ) start [2025-01-27 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343297', 'tblTempVendorCDR_20' ) end [2025-01-27 17:52:23] Production.INFO: ProcessCDR(1,14343297,1,1,2) [2025-01-27 17:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343297', 'tblTempUsageDetail_20' ) start [2025-01-27 17:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343297', 'tblTempUsageDetail_20' ) end [2025-01-27 17:52:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:52:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:52:28] Production.INFO: ==8520== Releasing lock... [2025-01-27 17:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:52:28] Production.INFO: 68.25 MB #Memory Used# [2025-01-27 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:53:05 [end_date_ymd] => 2025-01-27 17:53:05 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:53:05' and `end` < '2025-01-27 17: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-01-27 17:53:22] Production.INFO: count ==5367 [2025-01-27 17:53:24] Production.ERROR: pbx CDR StartTime 2025-01-27 14:53:05 - End Time 2025-01-27 17:53:05 [2025-01-27 17:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343302', 'tblTempUsageDetail_20' ) start [2025-01-27 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343302', 'tblTempUsageDetail_20' ) end [2025-01-27 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343302', 'tblTempVendorCDR_20' ) start [2025-01-27 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343302', 'tblTempVendorCDR_20' ) end [2025-01-27 17:53:24] Production.INFO: ProcessCDR(1,14343302,1,1,2) [2025-01-27 17:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343302', 'tblTempUsageDetail_20' ) start [2025-01-27 17:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343302', 'tblTempUsageDetail_20' ) end [2025-01-27 17:53:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:53:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:53:28] Production.INFO: ==8592== Releasing lock... [2025-01-27 17:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:53:28] Production.INFO: 68.25 MB #Memory Used# [2025-01-27 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:54:05 [end_date_ymd] => 2025-01-27 17:54:05 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:54:05' and `end` < '2025-01-27 17: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-01-27 17:54:19] Production.INFO: count ==5339 [2025-01-27 17:54:21] Production.ERROR: pbx CDR StartTime 2025-01-27 14:54:05 - End Time 2025-01-27 17:54:05 [2025-01-27 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343307', 'tblTempUsageDetail_20' ) start [2025-01-27 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343307', 'tblTempUsageDetail_20' ) end [2025-01-27 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343307', 'tblTempVendorCDR_20' ) start [2025-01-27 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343307', 'tblTempVendorCDR_20' ) end [2025-01-27 17:54:21] Production.INFO: ProcessCDR(1,14343307,1,1,2) [2025-01-27 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343307', 'tblTempUsageDetail_20' ) start [2025-01-27 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343307', 'tblTempUsageDetail_20' ) end [2025-01-27 17:54:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:54:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:54:26] Production.INFO: ==8663== Releasing lock... [2025-01-27 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:54:26] Production.INFO: 68 MB #Memory Used# [2025-01-27 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:55:05 [end_date_ymd] => 2025-01-27 17:55:05 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:55:05' and `end` < '2025-01-27 17: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-01-27 17:55:23] Production.INFO: count ==5332 [2025-01-27 17:55:25] Production.ERROR: pbx CDR StartTime 2025-01-27 14:55:05 - End Time 2025-01-27 17:55:05 [2025-01-27 17:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343312', 'tblTempUsageDetail_20' ) start [2025-01-27 17:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343312', 'tblTempUsageDetail_20' ) end [2025-01-27 17:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343312', 'tblTempVendorCDR_20' ) start [2025-01-27 17:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343312', 'tblTempVendorCDR_20' ) end [2025-01-27 17:55:25] Production.INFO: ProcessCDR(1,14343312,1,1,2) [2025-01-27 17:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343312', 'tblTempUsageDetail_20' ) start [2025-01-27 17:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343312', 'tblTempUsageDetail_20' ) end [2025-01-27 17:55:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:55:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:55:30] Production.INFO: ==8732== Releasing lock... [2025-01-27 17:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:55:30] Production.INFO: 68 MB #Memory Used# [2025-01-27 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:56:05 [end_date_ymd] => 2025-01-27 17:56:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:56:05' and `end` < '2025-01-27 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-01-27 17:56:24] Production.INFO: count ==5321 [2025-01-27 17:56:26] Production.ERROR: pbx CDR StartTime 2025-01-27 14:56:05 - End Time 2025-01-27 17:56:05 [2025-01-27 17:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343317', 'tblTempUsageDetail_20' ) start [2025-01-27 17:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343317', 'tblTempUsageDetail_20' ) end [2025-01-27 17:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343317', 'tblTempVendorCDR_20' ) start [2025-01-27 17:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343317', 'tblTempVendorCDR_20' ) end [2025-01-27 17:56:26] Production.INFO: ProcessCDR(1,14343317,1,1,2) [2025-01-27 17:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343317', 'tblTempUsageDetail_20' ) start [2025-01-27 17:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343317', 'tblTempUsageDetail_20' ) end [2025-01-27 17:56:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:56:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:56:31] Production.INFO: ==8808== Releasing lock... [2025-01-27 17:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:56:31] Production.INFO: 68 MB #Memory Used# [2025-01-27 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:57:05 [end_date_ymd] => 2025-01-27 17:57:05 [RateCDR] => 1 ) [2025-01-27 17: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-01-27 14:57:05' and `end` < '2025-01-27 17: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-01-27 17:57:30] Production.INFO: count ==5318 [2025-01-27 17:57:32] Production.ERROR: pbx CDR StartTime 2025-01-27 14:57:05 - End Time 2025-01-27 17:57:05 [2025-01-27 17:57:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343322', 'tblTempUsageDetail_20' ) start [2025-01-27 17:57:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343322', 'tblTempUsageDetail_20' ) end [2025-01-27 17:57:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343322', 'tblTempVendorCDR_20' ) start [2025-01-27 17:57:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343322', 'tblTempVendorCDR_20' ) end [2025-01-27 17:57:33] Production.INFO: ProcessCDR(1,14343322,1,1,2) [2025-01-27 17:57:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:57:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:57:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:57:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:57:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343322', 'tblTempUsageDetail_20' ) start [2025-01-27 17:57:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343322', 'tblTempUsageDetail_20' ) end [2025-01-27 17:57:38] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:57:38] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:57:38] Production.INFO: ==8881== Releasing lock... [2025-01-27 17:57:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:57:38] Production.INFO: 67.75 MB #Memory Used# [2025-01-27 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:58:05 [end_date_ymd] => 2025-01-27 17:58:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:58:05' and `end` < '2025-01-27 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-01-27 17:58:24] Production.INFO: count ==5298 [2025-01-27 17:58:26] Production.ERROR: pbx CDR StartTime 2025-01-27 14:58:05 - End Time 2025-01-27 17:58:05 [2025-01-27 17:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343327', 'tblTempUsageDetail_20' ) start [2025-01-27 17:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343327', 'tblTempUsageDetail_20' ) end [2025-01-27 17:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343327', 'tblTempVendorCDR_20' ) start [2025-01-27 17:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343327', 'tblTempVendorCDR_20' ) end [2025-01-27 17:58:26] Production.INFO: ProcessCDR(1,14343327,1,1,2) [2025-01-27 17:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343327', 'tblTempUsageDetail_20' ) start [2025-01-27 17:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343327', 'tblTempUsageDetail_20' ) end [2025-01-27 17:58:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:58:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:58:31] Production.INFO: ==8957== Releasing lock... [2025-01-27 17:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:58:31] Production.INFO: 67.75 MB #Memory Used# [2025-01-27 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 14:59:05 [end_date_ymd] => 2025-01-27 17:59:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 14:59:05' and `end` < '2025-01-27 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-01-27 17:59:18] Production.INFO: count ==5289 [2025-01-27 17:59:20] Production.ERROR: pbx CDR StartTime 2025-01-27 14:59:05 - End Time 2025-01-27 17:59:05 [2025-01-27 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343332', 'tblTempUsageDetail_20' ) start [2025-01-27 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343332', 'tblTempUsageDetail_20' ) end [2025-01-27 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343332', 'tblTempVendorCDR_20' ) start [2025-01-27 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343332', 'tblTempVendorCDR_20' ) end [2025-01-27 17:59:20] Production.INFO: ProcessCDR(1,14343332,1,1,2) [2025-01-27 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343332', 'tblTempUsageDetail_20' ) start [2025-01-27 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343332', 'tblTempUsageDetail_20' ) end [2025-01-27 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 17:59:25] Production.INFO: ==9028== Releasing lock... [2025-01-27 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 17:59:25] Production.INFO: 67.75 MB #Memory Used# [2025-01-27 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:00:06 [end_date_ymd] => 2025-01-27 18:00:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:00:06' and `end` < '2025-01-27 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-01-27 18:00:21] Production.INFO: count ==5288 [2025-01-27 18:00:23] Production.ERROR: pbx CDR StartTime 2025-01-27 15:00:06 - End Time 2025-01-27 18:00:06 [2025-01-27 18:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343337', 'tblTempUsageDetail_20' ) start [2025-01-27 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343337', 'tblTempUsageDetail_20' ) end [2025-01-27 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343337', 'tblTempVendorCDR_20' ) start [2025-01-27 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343337', 'tblTempVendorCDR_20' ) end [2025-01-27 18:00:23] Production.INFO: ProcessCDR(1,14343337,1,1,2) [2025-01-27 18:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343337', 'tblTempUsageDetail_20' ) start [2025-01-27 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343337', 'tblTempUsageDetail_20' ) end [2025-01-27 18:00:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:00:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:00:28] Production.INFO: ==9104== Releasing lock... [2025-01-27 18:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:00:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-27 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:01:06 [end_date_ymd] => 2025-01-27 18:01:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:01:06' and `end` < '2025-01-27 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-01-27 18:01:27] Production.INFO: count ==5224 [2025-01-27 18:01:28] Production.ERROR: pbx CDR StartTime 2025-01-27 15:01:06 - End Time 2025-01-27 18:01:06 [2025-01-27 18:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343343', 'tblTempUsageDetail_20' ) start [2025-01-27 18:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343343', 'tblTempUsageDetail_20' ) end [2025-01-27 18:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343343', 'tblTempVendorCDR_20' ) start [2025-01-27 18:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343343', 'tblTempVendorCDR_20' ) end [2025-01-27 18:01:29] Production.INFO: ProcessCDR(1,14343343,1,1,2) [2025-01-27 18:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343343', 'tblTempUsageDetail_20' ) start [2025-01-27 18:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343343', 'tblTempUsageDetail_20' ) end [2025-01-27 18:01:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:01:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:01:34] Production.INFO: ==9189== Releasing lock... [2025-01-27 18:01:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:01:34] Production.INFO: 67.25 MB #Memory Used# [2025-01-27 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:02:05 [end_date_ymd] => 2025-01-27 18:02:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:02:05' and `end` < '2025-01-27 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-01-27 18:02:26] Production.INFO: count ==5223 [2025-01-27 18:02:28] Production.ERROR: pbx CDR StartTime 2025-01-27 15:02:05 - End Time 2025-01-27 18:02:05 [2025-01-27 18:02:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343348', 'tblTempUsageDetail_20' ) start [2025-01-27 18:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343348', 'tblTempUsageDetail_20' ) end [2025-01-27 18:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343348', 'tblTempVendorCDR_20' ) start [2025-01-27 18:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343348', 'tblTempVendorCDR_20' ) end [2025-01-27 18:02:28] Production.INFO: ProcessCDR(1,14343348,1,1,2) [2025-01-27 18:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:02:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:02:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:02:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343348', 'tblTempUsageDetail_20' ) start [2025-01-27 18:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343348', 'tblTempUsageDetail_20' ) end [2025-01-27 18:02:33] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:02:33] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:02:33] Production.INFO: ==9262== Releasing lock... [2025-01-27 18:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:02:33] Production.INFO: 67.25 MB #Memory Used# [2025-01-27 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:03:05 [end_date_ymd] => 2025-01-27 18:03:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:03:05' and `end` < '2025-01-27 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-01-27 18:03:25] Production.INFO: count ==5216 [2025-01-27 18:03:27] Production.ERROR: pbx CDR StartTime 2025-01-27 15:03:05 - End Time 2025-01-27 18:03:05 [2025-01-27 18:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343353', 'tblTempUsageDetail_20' ) start [2025-01-27 18:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343353', 'tblTempUsageDetail_20' ) end [2025-01-27 18:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343353', 'tblTempVendorCDR_20' ) start [2025-01-27 18:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343353', 'tblTempVendorCDR_20' ) end [2025-01-27 18:03:27] Production.INFO: ProcessCDR(1,14343353,1,1,2) [2025-01-27 18:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343353', 'tblTempUsageDetail_20' ) start [2025-01-27 18:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343353', 'tblTempUsageDetail_20' ) end [2025-01-27 18:03:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:03:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:03:31] Production.INFO: ==9371== Releasing lock... [2025-01-27 18:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:03:31] Production.INFO: 67 MB #Memory Used# [2025-01-27 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:04:05 [end_date_ymd] => 2025-01-27 18:04:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:04:05' and `end` < '2025-01-27 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-01-27 18:04:19] Production.INFO: count ==5201 [2025-01-27 18:04:21] Production.ERROR: pbx CDR StartTime 2025-01-27 15:04:05 - End Time 2025-01-27 18:04:05 [2025-01-27 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343358', 'tblTempUsageDetail_20' ) start [2025-01-27 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343358', 'tblTempUsageDetail_20' ) end [2025-01-27 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343358', 'tblTempVendorCDR_20' ) start [2025-01-27 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343358', 'tblTempVendorCDR_20' ) end [2025-01-27 18:04:21] Production.INFO: ProcessCDR(1,14343358,1,1,2) [2025-01-27 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343358', 'tblTempUsageDetail_20' ) start [2025-01-27 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343358', 'tblTempUsageDetail_20' ) end [2025-01-27 18:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:04:24] Production.INFO: ==9445== Releasing lock... [2025-01-27 18:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:04:24] Production.INFO: 67 MB #Memory Used# [2025-01-27 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:05:05 [end_date_ymd] => 2025-01-27 18:05:05 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:05:05' and `end` < '2025-01-27 18: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-01-27 18:05:18] Production.INFO: count ==5186 [2025-01-27 18:05:20] Production.ERROR: pbx CDR StartTime 2025-01-27 15:05:05 - End Time 2025-01-27 18:05:05 [2025-01-27 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343363', 'tblTempUsageDetail_20' ) start [2025-01-27 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343363', 'tblTempUsageDetail_20' ) end [2025-01-27 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343363', 'tblTempVendorCDR_20' ) start [2025-01-27 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343363', 'tblTempVendorCDR_20' ) end [2025-01-27 18:05:20] Production.INFO: ProcessCDR(1,14343363,1,1,2) [2025-01-27 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343363', 'tblTempUsageDetail_20' ) start [2025-01-27 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343363', 'tblTempUsageDetail_20' ) end [2025-01-27 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:05:23] Production.INFO: ==9515== Releasing lock... [2025-01-27 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:05:23] Production.INFO: 66.75 MB #Memory Used# [2025-01-27 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:06:05 [end_date_ymd] => 2025-01-27 18:06:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:06:05' and `end` < '2025-01-27 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-01-27 18:06:19] Production.INFO: count ==5177 [2025-01-27 18:06:20] Production.ERROR: pbx CDR StartTime 2025-01-27 15:06:05 - End Time 2025-01-27 18:06:05 [2025-01-27 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343368', 'tblTempUsageDetail_20' ) start [2025-01-27 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343368', 'tblTempUsageDetail_20' ) end [2025-01-27 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343368', 'tblTempVendorCDR_20' ) start [2025-01-27 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343368', 'tblTempVendorCDR_20' ) end [2025-01-27 18:06:21] Production.INFO: ProcessCDR(1,14343368,1,1,2) [2025-01-27 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343368', 'tblTempUsageDetail_20' ) start [2025-01-27 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343368', 'tblTempUsageDetail_20' ) end [2025-01-27 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:06:24] Production.INFO: ==9586== Releasing lock... [2025-01-27 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:06:24] Production.INFO: 66.75 MB #Memory Used# [2025-01-27 18:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:07:04 [end_date_ymd] => 2025-01-27 18:07:04 [RateCDR] => 1 ) [2025-01-27 18:07: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-01-27 15:07:04' and `end` < '2025-01-27 18:07: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-01-27 18:07:19] Production.INFO: count ==5155 [2025-01-27 18:07:21] Production.ERROR: pbx CDR StartTime 2025-01-27 15:07:04 - End Time 2025-01-27 18:07:04 [2025-01-27 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343373', 'tblTempUsageDetail_20' ) start [2025-01-27 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343373', 'tblTempUsageDetail_20' ) end [2025-01-27 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343373', 'tblTempVendorCDR_20' ) start [2025-01-27 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343373', 'tblTempVendorCDR_20' ) end [2025-01-27 18:07:21] Production.INFO: ProcessCDR(1,14343373,1,1,2) [2025-01-27 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343373', 'tblTempUsageDetail_20' ) start [2025-01-27 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343373', 'tblTempUsageDetail_20' ) end [2025-01-27 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:07:24] Production.INFO: ==9656== Releasing lock... [2025-01-27 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:07:24] Production.INFO: 66.75 MB #Memory Used# [2025-01-27 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:08:05 [end_date_ymd] => 2025-01-27 18:08:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:08:05' and `end` < '2025-01-27 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-01-27 18:08:18] Production.INFO: count ==5136 [2025-01-27 18:08:20] Production.ERROR: pbx CDR StartTime 2025-01-27 15:08:05 - End Time 2025-01-27 18:08:05 [2025-01-27 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343378', 'tblTempUsageDetail_20' ) start [2025-01-27 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343378', 'tblTempUsageDetail_20' ) end [2025-01-27 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343378', 'tblTempVendorCDR_20' ) start [2025-01-27 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343378', 'tblTempVendorCDR_20' ) end [2025-01-27 18:08:20] Production.INFO: ProcessCDR(1,14343378,1,1,2) [2025-01-27 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343378', 'tblTempUsageDetail_20' ) start [2025-01-27 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343378', 'tblTempUsageDetail_20' ) end [2025-01-27 18:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:08:23] Production.INFO: ==9730== Releasing lock... [2025-01-27 18:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:08:23] Production.INFO: 66.5 MB #Memory Used# [2025-01-27 18:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:09:04 [end_date_ymd] => 2025-01-27 18:09:04 [RateCDR] => 1 ) [2025-01-27 18:09: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-01-27 15:09:04' and `end` < '2025-01-27 18:09: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-01-27 18:09:18] Production.INFO: count ==5110 [2025-01-27 18:09:19] Production.ERROR: pbx CDR StartTime 2025-01-27 15:09:04 - End Time 2025-01-27 18:09:04 [2025-01-27 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343383', 'tblTempUsageDetail_20' ) start [2025-01-27 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343383', 'tblTempUsageDetail_20' ) end [2025-01-27 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343383', 'tblTempVendorCDR_20' ) start [2025-01-27 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343383', 'tblTempVendorCDR_20' ) end [2025-01-27 18:09:20] Production.INFO: ProcessCDR(1,14343383,1,1,2) [2025-01-27 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343383', 'tblTempUsageDetail_20' ) start [2025-01-27 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343383', 'tblTempUsageDetail_20' ) end [2025-01-27 18:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:09:23] Production.INFO: ==9803== Releasing lock... [2025-01-27 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:09:23] Production.INFO: 66.25 MB #Memory Used# [2025-01-27 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:10:05 [end_date_ymd] => 2025-01-27 18:10:05 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:10:05' and `end` < '2025-01-27 18: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-01-27 18:10:24] Production.INFO: count ==5094 [2025-01-27 18:10:26] Production.ERROR: pbx CDR StartTime 2025-01-27 15:10:05 - End Time 2025-01-27 18:10:05 [2025-01-27 18:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343388', 'tblTempUsageDetail_20' ) start [2025-01-27 18:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343388', 'tblTempUsageDetail_20' ) end [2025-01-27 18:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343388', 'tblTempVendorCDR_20' ) start [2025-01-27 18:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343388', 'tblTempVendorCDR_20' ) end [2025-01-27 18:10:26] Production.INFO: ProcessCDR(1,14343388,1,1,2) [2025-01-27 18:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343388', 'tblTempUsageDetail_20' ) start [2025-01-27 18:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343388', 'tblTempUsageDetail_20' ) end [2025-01-27 18:10:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:10:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:10:30] Production.INFO: ==9882== Releasing lock... [2025-01-27 18:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:10:30] Production.INFO: 66.25 MB #Memory Used# [2025-01-27 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:11:05 [end_date_ymd] => 2025-01-27 18:11:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:11:05' and `end` < '2025-01-27 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-01-27 18:11:19] Production.INFO: count ==5014 [2025-01-27 18:11:20] Production.ERROR: pbx CDR StartTime 2025-01-27 15:11:05 - End Time 2025-01-27 18:11:05 [2025-01-27 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343394', 'tblTempUsageDetail_20' ) start [2025-01-27 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343394', 'tblTempUsageDetail_20' ) end [2025-01-27 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343394', 'tblTempVendorCDR_20' ) start [2025-01-27 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343394', 'tblTempVendorCDR_20' ) end [2025-01-27 18:11:20] Production.INFO: ProcessCDR(1,14343394,1,1,2) [2025-01-27 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343394', 'tblTempUsageDetail_20' ) start [2025-01-27 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343394', 'tblTempUsageDetail_20' ) end [2025-01-27 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:11:25] Production.INFO: ==9965== Releasing lock... [2025-01-27 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:11:25] Production.INFO: 65.5 MB #Memory Used# [2025-01-27 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:12:05 [end_date_ymd] => 2025-01-27 18:12:05 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:12:05' and `end` < '2025-01-27 18: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-01-27 18:12:20] Production.INFO: count ==5015 [2025-01-27 18:12:22] Production.ERROR: pbx CDR StartTime 2025-01-27 15:12:05 - End Time 2025-01-27 18:12:05 [2025-01-27 18:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343399', 'tblTempUsageDetail_20' ) start [2025-01-27 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343399', 'tblTempUsageDetail_20' ) end [2025-01-27 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343399', 'tblTempVendorCDR_20' ) start [2025-01-27 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343399', 'tblTempVendorCDR_20' ) end [2025-01-27 18:12:22] Production.INFO: ProcessCDR(1,14343399,1,1,2) [2025-01-27 18:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343399', 'tblTempUsageDetail_20' ) start [2025-01-27 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343399', 'tblTempUsageDetail_20' ) end [2025-01-27 18:12:27] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:12:27] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:12:27] Production.INFO: ==10037== Releasing lock... [2025-01-27 18:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:12:27] Production.INFO: 65.5 MB #Memory Used# [2025-01-27 18:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:13:05 [end_date_ymd] => 2025-01-27 18:13:05 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:13:05' and `end` < '2025-01-27 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-01-27 18:13:21] Production.INFO: count ==5007 [2025-01-27 18:13:23] Production.ERROR: pbx CDR StartTime 2025-01-27 15:13:05 - End Time 2025-01-27 18:13:05 [2025-01-27 18:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343404', 'tblTempUsageDetail_20' ) start [2025-01-27 18:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343404', 'tblTempUsageDetail_20' ) end [2025-01-27 18:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343404', 'tblTempVendorCDR_20' ) start [2025-01-27 18:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343404', 'tblTempVendorCDR_20' ) end [2025-01-27 18:13:23] Production.INFO: ProcessCDR(1,14343404,1,1,2) [2025-01-27 18:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343404', 'tblTempUsageDetail_20' ) start [2025-01-27 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343404', 'tblTempUsageDetail_20' ) end [2025-01-27 18:13:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:13:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:13:26] Production.INFO: ==10108== Releasing lock... [2025-01-27 18:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:13:26] Production.INFO: 65.5 MB #Memory Used# [2025-01-27 18:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:14:04 [end_date_ymd] => 2025-01-27 18:14:04 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:14:04' and `end` < '2025-01-27 18: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-01-27 18:14:19] Production.INFO: count ==4990 [2025-01-27 18:14:21] Production.ERROR: pbx CDR StartTime 2025-01-27 15:14:04 - End Time 2025-01-27 18:14:04 [2025-01-27 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343409', 'tblTempUsageDetail_20' ) start [2025-01-27 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343409', 'tblTempUsageDetail_20' ) end [2025-01-27 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343409', 'tblTempVendorCDR_20' ) start [2025-01-27 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343409', 'tblTempVendorCDR_20' ) end [2025-01-27 18:14:21] Production.INFO: ProcessCDR(1,14343409,1,1,2) [2025-01-27 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343409', 'tblTempUsageDetail_20' ) start [2025-01-27 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343409', 'tblTempUsageDetail_20' ) end [2025-01-27 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:14:24] Production.INFO: ==10180== Releasing lock... [2025-01-27 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:14:24] Production.INFO: 65.5 MB #Memory Used# [2025-01-27 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:15:05 [end_date_ymd] => 2025-01-27 18:15:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:15:05' and `end` < '2025-01-27 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-01-27 18:15:26] Production.INFO: count ==4989 [2025-01-27 18:15:28] Production.ERROR: pbx CDR StartTime 2025-01-27 15:15:05 - End Time 2025-01-27 18:15:05 [2025-01-27 18:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343414', 'tblTempUsageDetail_20' ) start [2025-01-27 18:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343414', 'tblTempUsageDetail_20' ) end [2025-01-27 18:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343414', 'tblTempVendorCDR_20' ) start [2025-01-27 18:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343414', 'tblTempVendorCDR_20' ) end [2025-01-27 18:15:28] Production.INFO: ProcessCDR(1,14343414,1,1,2) [2025-01-27 18:15:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343414', 'tblTempUsageDetail_20' ) start [2025-01-27 18:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343414', 'tblTempUsageDetail_20' ) end [2025-01-27 18:15:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:15:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:15:31] Production.INFO: ==10253== Releasing lock... [2025-01-27 18:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:15:31] Production.INFO: 65.25 MB #Memory Used# [2025-01-27 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:16:05 [end_date_ymd] => 2025-01-27 18:16:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:16:05' and `end` < '2025-01-27 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-01-27 18:16:25] Production.INFO: count ==4977 [2025-01-27 18:16:27] Production.ERROR: pbx CDR StartTime 2025-01-27 15:16:05 - End Time 2025-01-27 18:16:05 [2025-01-27 18:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343419', 'tblTempUsageDetail_20' ) start [2025-01-27 18:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343419', 'tblTempUsageDetail_20' ) end [2025-01-27 18:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343419', 'tblTempVendorCDR_20' ) start [2025-01-27 18:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343419', 'tblTempVendorCDR_20' ) end [2025-01-27 18:16:27] Production.INFO: ProcessCDR(1,14343419,1,1,2) [2025-01-27 18:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343419', 'tblTempUsageDetail_20' ) start [2025-01-27 18:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343419', 'tblTempUsageDetail_20' ) end [2025-01-27 18:16:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:16:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:16:32] Production.INFO: ==10323== Releasing lock... [2025-01-27 18:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:16:32] Production.INFO: 65.25 MB #Memory Used# [2025-01-27 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:17:05 [end_date_ymd] => 2025-01-27 18:17:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:17:05' and `end` < '2025-01-27 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-01-27 18:17:19] Production.INFO: count ==4964 [2025-01-27 18:17:20] Production.ERROR: pbx CDR StartTime 2025-01-27 15:17:05 - End Time 2025-01-27 18:17:05 [2025-01-27 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343424', 'tblTempUsageDetail_20' ) start [2025-01-27 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343424', 'tblTempUsageDetail_20' ) end [2025-01-27 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343424', 'tblTempVendorCDR_20' ) start [2025-01-27 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343424', 'tblTempVendorCDR_20' ) end [2025-01-27 18:17:21] Production.INFO: ProcessCDR(1,14343424,1,1,2) [2025-01-27 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343424', 'tblTempUsageDetail_20' ) start [2025-01-27 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343424', 'tblTempUsageDetail_20' ) end [2025-01-27 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:17:25] Production.INFO: ==10399== Releasing lock... [2025-01-27 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:17:25] Production.INFO: 65.25 MB #Memory Used# [2025-01-27 18:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:18:04 [end_date_ymd] => 2025-01-27 18:18:04 [RateCDR] => 1 ) [2025-01-27 18:18: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-01-27 15:18:04' and `end` < '2025-01-27 18:18: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-01-27 18:18:19] Production.INFO: count ==4940 [2025-01-27 18:18:21] Production.ERROR: pbx CDR StartTime 2025-01-27 15:18:04 - End Time 2025-01-27 18:18:04 [2025-01-27 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343429', 'tblTempUsageDetail_20' ) start [2025-01-27 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343429', 'tblTempUsageDetail_20' ) end [2025-01-27 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343429', 'tblTempVendorCDR_20' ) start [2025-01-27 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343429', 'tblTempVendorCDR_20' ) end [2025-01-27 18:18:21] Production.INFO: ProcessCDR(1,14343429,1,1,2) [2025-01-27 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343429', 'tblTempUsageDetail_20' ) start [2025-01-27 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343429', 'tblTempUsageDetail_20' ) end [2025-01-27 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:18:25] Production.INFO: ==10470== Releasing lock... [2025-01-27 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:18:25] Production.INFO: 65 MB #Memory Used# [2025-01-27 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:19:05 [end_date_ymd] => 2025-01-27 18:19:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:19:05' and `end` < '2025-01-27 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-01-27 18:19:26] Production.INFO: count ==4917 [2025-01-27 18:19:27] Production.ERROR: pbx CDR StartTime 2025-01-27 15:19:05 - End Time 2025-01-27 18:19:05 [2025-01-27 18:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343434', 'tblTempUsageDetail_20' ) start [2025-01-27 18:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343434', 'tblTempUsageDetail_20' ) end [2025-01-27 18:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343434', 'tblTempVendorCDR_20' ) start [2025-01-27 18:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343434', 'tblTempVendorCDR_20' ) end [2025-01-27 18:19:28] Production.INFO: ProcessCDR(1,14343434,1,1,2) [2025-01-27 18:19:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:19:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:19:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343434', 'tblTempUsageDetail_20' ) start [2025-01-27 18:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343434', 'tblTempUsageDetail_20' ) end [2025-01-27 18:19:32] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:19:32] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:19:32] Production.INFO: ==10581== Releasing lock... [2025-01-27 18:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:19:32] Production.INFO: 64.75 MB #Memory Used# [2025-01-27 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:20:06 [end_date_ymd] => 2025-01-27 18:20:06 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:20:06' and `end` < '2025-01-27 18: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-01-27 18:20:20] Production.INFO: count ==4907 [2025-01-27 18:20:22] Production.ERROR: pbx CDR StartTime 2025-01-27 15:20:06 - End Time 2025-01-27 18:20:06 [2025-01-27 18:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343440', 'tblTempUsageDetail_20' ) start [2025-01-27 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343440', 'tblTempUsageDetail_20' ) end [2025-01-27 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343440', 'tblTempVendorCDR_20' ) start [2025-01-27 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343440', 'tblTempVendorCDR_20' ) end [2025-01-27 18:20:22] Production.INFO: ProcessCDR(1,14343440,1,1,2) [2025-01-27 18:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343440', 'tblTempUsageDetail_20' ) start [2025-01-27 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343440', 'tblTempUsageDetail_20' ) end [2025-01-27 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:20:26] Production.INFO: ==10655== Releasing lock... [2025-01-27 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:20:26] Production.INFO: 64.75 MB #Memory Used# [2025-01-27 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:21:05 [end_date_ymd] => 2025-01-27 18:21:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:21:05' and `end` < '2025-01-27 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-01-27 18:21:20] Production.INFO: count ==4839 [2025-01-27 18:21:21] Production.ERROR: pbx CDR StartTime 2025-01-27 15:21:05 - End Time 2025-01-27 18:21:05 [2025-01-27 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343445', 'tblTempUsageDetail_20' ) start [2025-01-27 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343445', 'tblTempUsageDetail_20' ) end [2025-01-27 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343445', 'tblTempVendorCDR_20' ) start [2025-01-27 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343445', 'tblTempVendorCDR_20' ) end [2025-01-27 18:21:21] Production.INFO: ProcessCDR(1,14343445,1,1,2) [2025-01-27 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343445', 'tblTempUsageDetail_20' ) start [2025-01-27 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343445', 'tblTempUsageDetail_20' ) end [2025-01-27 18:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:21:26] Production.INFO: ==10730== Releasing lock... [2025-01-27 18:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:21:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-27 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:22:05 [end_date_ymd] => 2025-01-27 18:22:05 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:22:05' and `end` < '2025-01-27 18: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-01-27 18:22:20] Production.INFO: count ==4821 [2025-01-27 18:22:22] Production.ERROR: pbx CDR StartTime 2025-01-27 15:22:05 - End Time 2025-01-27 18:22:05 [2025-01-27 18:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343450', 'tblTempUsageDetail_20' ) start [2025-01-27 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343450', 'tblTempUsageDetail_20' ) end [2025-01-27 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343450', 'tblTempVendorCDR_20' ) start [2025-01-27 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343450', 'tblTempVendorCDR_20' ) end [2025-01-27 18:22:22] Production.INFO: ProcessCDR(1,14343450,1,1,2) [2025-01-27 18:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343450', 'tblTempUsageDetail_20' ) start [2025-01-27 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343450', 'tblTempUsageDetail_20' ) end [2025-01-27 18:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:22:26] Production.INFO: ==10801== Releasing lock... [2025-01-27 18:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:22:26] Production.INFO: 64 MB #Memory Used# [2025-01-27 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:23:05 [end_date_ymd] => 2025-01-27 18:23:05 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:23:05' and `end` < '2025-01-27 18: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-01-27 18:23:19] Production.INFO: count ==4815 [2025-01-27 18:23:20] Production.ERROR: pbx CDR StartTime 2025-01-27 15:23:05 - End Time 2025-01-27 18:23:05 [2025-01-27 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343455', 'tblTempUsageDetail_20' ) start [2025-01-27 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343455', 'tblTempUsageDetail_20' ) end [2025-01-27 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343455', 'tblTempVendorCDR_20' ) start [2025-01-27 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343455', 'tblTempVendorCDR_20' ) end [2025-01-27 18:23:20] Production.INFO: ProcessCDR(1,14343455,1,1,2) [2025-01-27 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343455', 'tblTempUsageDetail_20' ) start [2025-01-27 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343455', 'tblTempUsageDetail_20' ) end [2025-01-27 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:23:25] Production.INFO: ==10872== Releasing lock... [2025-01-27 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:23:25] Production.INFO: 64 MB #Memory Used# [2025-01-27 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:24:06 [end_date_ymd] => 2025-01-27 18:24:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:24:06' and `end` < '2025-01-27 18: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-01-27 18:24:20] Production.INFO: count ==4798 [2025-01-27 18:24:22] Production.ERROR: pbx CDR StartTime 2025-01-27 15:24:06 - End Time 2025-01-27 18:24:06 [2025-01-27 18:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343460', 'tblTempUsageDetail_20' ) start [2025-01-27 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343460', 'tblTempUsageDetail_20' ) end [2025-01-27 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343460', 'tblTempVendorCDR_20' ) start [2025-01-27 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343460', 'tblTempVendorCDR_20' ) end [2025-01-27 18:24:22] Production.INFO: ProcessCDR(1,14343460,1,1,2) [2025-01-27 18:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343460', 'tblTempUsageDetail_20' ) start [2025-01-27 18:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343460', 'tblTempUsageDetail_20' ) end [2025-01-27 18:24:27] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:24:27] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:24:27] Production.INFO: ==10945== Releasing lock... [2025-01-27 18:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:24:27] Production.INFO: 64 MB #Memory Used# [2025-01-27 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:25:05 [end_date_ymd] => 2025-01-27 18:25:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:25:05' and `end` < '2025-01-27 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-01-27 18:25:18] Production.INFO: count ==4782 [2025-01-27 18:25:20] Production.ERROR: pbx CDR StartTime 2025-01-27 15:25:05 - End Time 2025-01-27 18:25:05 [2025-01-27 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343465', 'tblTempUsageDetail_20' ) start [2025-01-27 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343465', 'tblTempUsageDetail_20' ) end [2025-01-27 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343465', 'tblTempVendorCDR_20' ) start [2025-01-27 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343465', 'tblTempVendorCDR_20' ) end [2025-01-27 18:25:20] Production.INFO: ProcessCDR(1,14343465,1,1,2) [2025-01-27 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343465', 'tblTempUsageDetail_20' ) start [2025-01-27 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343465', 'tblTempUsageDetail_20' ) end [2025-01-27 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:25:24] Production.INFO: ==11019== Releasing lock... [2025-01-27 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:25:24] Production.INFO: 63.75 MB #Memory Used# [2025-01-27 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:26:05 [end_date_ymd] => 2025-01-27 18:26:05 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:26:05' and `end` < '2025-01-27 18: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-01-27 18:26:24] Production.INFO: count ==4775 [2025-01-27 18:26:25] Production.ERROR: pbx CDR StartTime 2025-01-27 15:26:05 - End Time 2025-01-27 18:26:05 [2025-01-27 18:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343470', 'tblTempUsageDetail_20' ) start [2025-01-27 18:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343470', 'tblTempUsageDetail_20' ) end [2025-01-27 18:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343470', 'tblTempVendorCDR_20' ) start [2025-01-27 18:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343470', 'tblTempVendorCDR_20' ) end [2025-01-27 18:26:25] Production.INFO: ProcessCDR(1,14343470,1,1,2) [2025-01-27 18:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343470', 'tblTempUsageDetail_20' ) start [2025-01-27 18:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343470', 'tblTempUsageDetail_20' ) end [2025-01-27 18:26:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:26:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:26:30] Production.INFO: ==11094== Releasing lock... [2025-01-27 18:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:26:30] Production.INFO: 63.75 MB #Memory Used# [2025-01-27 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:27:05 [end_date_ymd] => 2025-01-27 18:27:05 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:27:05' and `end` < '2025-01-27 18: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-01-27 18:27:19] Production.INFO: count ==4746 [2025-01-27 18:27:21] Production.ERROR: pbx CDR StartTime 2025-01-27 15:27:05 - End Time 2025-01-27 18:27:05 [2025-01-27 18:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343475', 'tblTempUsageDetail_20' ) start [2025-01-27 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343475', 'tblTempUsageDetail_20' ) end [2025-01-27 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343475', 'tblTempVendorCDR_20' ) start [2025-01-27 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343475', 'tblTempVendorCDR_20' ) end [2025-01-27 18:27:21] Production.INFO: ProcessCDR(1,14343475,1,1,2) [2025-01-27 18:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343475', 'tblTempUsageDetail_20' ) start [2025-01-27 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343475', 'tblTempUsageDetail_20' ) end [2025-01-27 18:27:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:27:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:27:25] Production.INFO: ==11166== Releasing lock... [2025-01-27 18:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:27:25] Production.INFO: 63.5 MB #Memory Used# [2025-01-27 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:28:05 [end_date_ymd] => 2025-01-27 18:28:05 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:28:05' and `end` < '2025-01-27 18: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-01-27 18:28:24] Production.INFO: count ==4729 [2025-01-27 18:28:26] Production.ERROR: pbx CDR StartTime 2025-01-27 15:28:05 - End Time 2025-01-27 18:28:05 [2025-01-27 18:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343480', 'tblTempUsageDetail_20' ) start [2025-01-27 18:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343480', 'tblTempUsageDetail_20' ) end [2025-01-27 18:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343480', 'tblTempVendorCDR_20' ) start [2025-01-27 18:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343480', 'tblTempVendorCDR_20' ) end [2025-01-27 18:28:26] Production.INFO: ProcessCDR(1,14343480,1,1,2) [2025-01-27 18:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343480', 'tblTempUsageDetail_20' ) start [2025-01-27 18:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343480', 'tblTempUsageDetail_20' ) end [2025-01-27 18:28:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:28:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:28:31] Production.INFO: ==11236== Releasing lock... [2025-01-27 18:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:28:31] Production.INFO: 63.5 MB #Memory Used# [2025-01-27 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:29:05 [end_date_ymd] => 2025-01-27 18:29:05 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:29:05' and `end` < '2025-01-27 18: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-01-27 18:29:20] Production.INFO: count ==4702 [2025-01-27 18:29:21] Production.ERROR: pbx CDR StartTime 2025-01-27 15:29:05 - End Time 2025-01-27 18:29:05 [2025-01-27 18:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343485', 'tblTempUsageDetail_20' ) start [2025-01-27 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343485', 'tblTempUsageDetail_20' ) end [2025-01-27 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343485', 'tblTempVendorCDR_20' ) start [2025-01-27 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343485', 'tblTempVendorCDR_20' ) end [2025-01-27 18:29:21] Production.INFO: ProcessCDR(1,14343485,1,1,2) [2025-01-27 18:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343485', 'tblTempUsageDetail_20' ) start [2025-01-27 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343485', 'tblTempUsageDetail_20' ) end [2025-01-27 18:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:29:26] Production.INFO: ==11305== Releasing lock... [2025-01-27 18:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:29:26] Production.INFO: 63.25 MB #Memory Used# [2025-01-27 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:30:06 [end_date_ymd] => 2025-01-27 18:30:06 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:30:06' and `end` < '2025-01-27 18: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-01-27 18:30:19] Production.INFO: count ==4703 [2025-01-27 18:30:20] Production.ERROR: pbx CDR StartTime 2025-01-27 15:30:06 - End Time 2025-01-27 18:30:06 [2025-01-27 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343491', 'tblTempUsageDetail_20' ) start [2025-01-27 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343491', 'tblTempUsageDetail_20' ) end [2025-01-27 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343491', 'tblTempVendorCDR_20' ) start [2025-01-27 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343491', 'tblTempVendorCDR_20' ) end [2025-01-27 18:30:21] Production.INFO: ProcessCDR(1,14343491,1,1,2) [2025-01-27 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343491', 'tblTempUsageDetail_20' ) start [2025-01-27 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343491', 'tblTempUsageDetail_20' ) end [2025-01-27 18:30:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:30:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:30:26] Production.INFO: ==11380== Releasing lock... [2025-01-27 18:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:30:26] Production.INFO: 63.25 MB #Memory Used# [2025-01-27 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:31:05 [end_date_ymd] => 2025-01-27 18:31:05 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:31:05' and `end` < '2025-01-27 18: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-01-27 18:31:28] Production.INFO: count ==4656 [2025-01-27 18:31:29] Production.ERROR: pbx CDR StartTime 2025-01-27 15:31:05 - End Time 2025-01-27 18:31:05 [2025-01-27 18:31:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343496', 'tblTempUsageDetail_20' ) start [2025-01-27 18:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343496', 'tblTempUsageDetail_20' ) end [2025-01-27 18:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343496', 'tblTempVendorCDR_20' ) start [2025-01-27 18:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343496', 'tblTempVendorCDR_20' ) end [2025-01-27 18:31:29] Production.INFO: ProcessCDR(1,14343496,1,1,2) [2025-01-27 18:31:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:31:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:31:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:31:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343496', 'tblTempUsageDetail_20' ) start [2025-01-27 18:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343496', 'tblTempUsageDetail_20' ) end [2025-01-27 18:31:34] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:31:34] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:31:34] Production.INFO: ==11452== Releasing lock... [2025-01-27 18:31:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:31:34] Production.INFO: 62.75 MB #Memory Used# [2025-01-27 18:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:32:06 [end_date_ymd] => 2025-01-27 18:32:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:32:06' and `end` < '2025-01-27 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-01-27 18:32:26] Production.INFO: count ==4639 [2025-01-27 18:32:27] Production.ERROR: pbx CDR StartTime 2025-01-27 15:32:06 - End Time 2025-01-27 18:32:06 [2025-01-27 18:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343501', 'tblTempUsageDetail_20' ) start [2025-01-27 18:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343501', 'tblTempUsageDetail_20' ) end [2025-01-27 18:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343501', 'tblTempVendorCDR_20' ) start [2025-01-27 18:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343501', 'tblTempVendorCDR_20' ) end [2025-01-27 18:32:28] Production.INFO: ProcessCDR(1,14343501,1,1,2) [2025-01-27 18:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343501', 'tblTempUsageDetail_20' ) start [2025-01-27 18:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343501', 'tblTempUsageDetail_20' ) end [2025-01-27 18:32:31] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:32:31] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:32:31] Production.INFO: ==11525== Releasing lock... [2025-01-27 18:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:32:31] Production.INFO: 62.75 MB #Memory Used# [2025-01-27 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:33:05 [end_date_ymd] => 2025-01-27 18:33:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:33:05' and `end` < '2025-01-27 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-01-27 18:33:24] Production.INFO: count ==4621 [2025-01-27 18:33:26] Production.ERROR: pbx CDR StartTime 2025-01-27 15:33:05 - End Time 2025-01-27 18:33:05 [2025-01-27 18:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343506', 'tblTempUsageDetail_20' ) start [2025-01-27 18:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343506', 'tblTempUsageDetail_20' ) end [2025-01-27 18:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343506', 'tblTempVendorCDR_20' ) start [2025-01-27 18:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343506', 'tblTempVendorCDR_20' ) end [2025-01-27 18:33:26] Production.INFO: ProcessCDR(1,14343506,1,1,2) [2025-01-27 18:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343506', 'tblTempUsageDetail_20' ) start [2025-01-27 18:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343506', 'tblTempUsageDetail_20' ) end [2025-01-27 18:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:33:29] Production.INFO: ==11595== Releasing lock... [2025-01-27 18:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:33:29] Production.INFO: 62.5 MB #Memory Used# [2025-01-27 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:34:05 [end_date_ymd] => 2025-01-27 18:34:05 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:34:05' and `end` < '2025-01-27 18: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-01-27 18:34:22] Production.INFO: count ==4618 [2025-01-27 18:34:23] Production.ERROR: pbx CDR StartTime 2025-01-27 15:34:05 - End Time 2025-01-27 18:34:05 [2025-01-27 18:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343511', 'tblTempUsageDetail_20' ) start [2025-01-27 18:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343511', 'tblTempUsageDetail_20' ) end [2025-01-27 18:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343511', 'tblTempVendorCDR_20' ) start [2025-01-27 18:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343511', 'tblTempVendorCDR_20' ) end [2025-01-27 18:34:23] Production.INFO: ProcessCDR(1,14343511,1,1,2) [2025-01-27 18:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343511', 'tblTempUsageDetail_20' ) start [2025-01-27 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343511', 'tblTempUsageDetail_20' ) end [2025-01-27 18:34:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:34:26] Production.INFO: ==11707== Releasing lock... [2025-01-27 18:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:34:26] Production.INFO: 62.5 MB #Memory Used# [2025-01-27 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:35:06 [end_date_ymd] => 2025-01-27 18:35:06 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:35:06' and `end` < '2025-01-27 18: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-01-27 18:35:19] Production.INFO: count ==4608 [2025-01-27 18:35:20] Production.ERROR: pbx CDR StartTime 2025-01-27 15:35:06 - End Time 2025-01-27 18:35:06 [2025-01-27 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343516', 'tblTempUsageDetail_20' ) start [2025-01-27 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343516', 'tblTempUsageDetail_20' ) end [2025-01-27 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343516', 'tblTempVendorCDR_20' ) start [2025-01-27 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343516', 'tblTempVendorCDR_20' ) end [2025-01-27 18:35:20] Production.INFO: ProcessCDR(1,14343516,1,1,2) [2025-01-27 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343516', 'tblTempUsageDetail_20' ) start [2025-01-27 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343516', 'tblTempUsageDetail_20' ) end [2025-01-27 18:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:35:24] Production.INFO: ==11785== Releasing lock... [2025-01-27 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:35:24] Production.INFO: 62.5 MB #Memory Used# [2025-01-27 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:36:05 [end_date_ymd] => 2025-01-27 18:36:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:36:05' and `end` < '2025-01-27 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-01-27 18:36:22] Production.INFO: count ==4609 [2025-01-27 18:36:24] Production.ERROR: pbx CDR StartTime 2025-01-27 15:36:05 - End Time 2025-01-27 18:36:05 [2025-01-27 18:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343521', 'tblTempUsageDetail_20' ) start [2025-01-27 18:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343521', 'tblTempUsageDetail_20' ) end [2025-01-27 18:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343521', 'tblTempVendorCDR_20' ) start [2025-01-27 18:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343521', 'tblTempVendorCDR_20' ) end [2025-01-27 18:36:24] Production.INFO: ProcessCDR(1,14343521,1,1,2) [2025-01-27 18:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343521', 'tblTempUsageDetail_20' ) start [2025-01-27 18:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343521', 'tblTempUsageDetail_20' ) end [2025-01-27 18:36:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:36:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:36:28] Production.INFO: ==11861== Releasing lock... [2025-01-27 18:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:36:28] Production.INFO: 62.5 MB #Memory Used# [2025-01-27 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:37:05 [end_date_ymd] => 2025-01-27 18:37:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:37:05' and `end` < '2025-01-27 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-01-27 18:37:18] Production.INFO: count ==4595 [2025-01-27 18:37:20] Production.ERROR: pbx CDR StartTime 2025-01-27 15:37:05 - End Time 2025-01-27 18:37:05 [2025-01-27 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343526', 'tblTempUsageDetail_20' ) start [2025-01-27 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343526', 'tblTempUsageDetail_20' ) end [2025-01-27 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343526', 'tblTempVendorCDR_20' ) start [2025-01-27 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343526', 'tblTempVendorCDR_20' ) end [2025-01-27 18:37:20] Production.INFO: ProcessCDR(1,14343526,1,1,2) [2025-01-27 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343526', 'tblTempUsageDetail_20' ) start [2025-01-27 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343526', 'tblTempUsageDetail_20' ) end [2025-01-27 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:37:24] Production.INFO: ==11936== Releasing lock... [2025-01-27 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:37:24] Production.INFO: 62.5 MB #Memory Used# [2025-01-27 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:38:05 [end_date_ymd] => 2025-01-27 18:38:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:38:05' and `end` < '2025-01-27 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-01-27 18:38:23] Production.INFO: count ==4565 [2025-01-27 18:38:25] Production.ERROR: pbx CDR StartTime 2025-01-27 15:38:05 - End Time 2025-01-27 18:38:05 [2025-01-27 18:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343531', 'tblTempUsageDetail_20' ) start [2025-01-27 18:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343531', 'tblTempUsageDetail_20' ) end [2025-01-27 18:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343531', 'tblTempVendorCDR_20' ) start [2025-01-27 18:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343531', 'tblTempVendorCDR_20' ) end [2025-01-27 18:38:25] Production.INFO: ProcessCDR(1,14343531,1,1,2) [2025-01-27 18:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343531', 'tblTempUsageDetail_20' ) start [2025-01-27 18:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343531', 'tblTempUsageDetail_20' ) end [2025-01-27 18:38:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:38:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:38:29] Production.INFO: ==12011== Releasing lock... [2025-01-27 18:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:38:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-27 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:39:05 [end_date_ymd] => 2025-01-27 18:39:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:39:05' and `end` < '2025-01-27 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-01-27 18:39:19] Production.INFO: count ==4553 [2025-01-27 18:39:20] Production.ERROR: pbx CDR StartTime 2025-01-27 15:39:05 - End Time 2025-01-27 18:39:05 [2025-01-27 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343536', 'tblTempUsageDetail_20' ) start [2025-01-27 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343536', 'tblTempUsageDetail_20' ) end [2025-01-27 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343536', 'tblTempVendorCDR_20' ) start [2025-01-27 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343536', 'tblTempVendorCDR_20' ) end [2025-01-27 18:39:20] Production.INFO: ProcessCDR(1,14343536,1,1,2) [2025-01-27 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343536', 'tblTempUsageDetail_20' ) start [2025-01-27 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343536', 'tblTempUsageDetail_20' ) end [2025-01-27 18:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:39:25] Production.INFO: ==12092== Releasing lock... [2025-01-27 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:39:25] Production.INFO: 62 MB #Memory Used# [2025-01-27 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:40:06 [end_date_ymd] => 2025-01-27 18:40:06 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:40:06' and `end` < '2025-01-27 18: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-01-27 18:40:21] Production.INFO: count ==4534 [2025-01-27 18:40:22] Production.ERROR: pbx CDR StartTime 2025-01-27 15:40:06 - End Time 2025-01-27 18:40:06 [2025-01-27 18:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343541', 'tblTempUsageDetail_20' ) start [2025-01-27 18:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343541', 'tblTempUsageDetail_20' ) end [2025-01-27 18:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343541', 'tblTempVendorCDR_20' ) start [2025-01-27 18:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343541', 'tblTempVendorCDR_20' ) end [2025-01-27 18:40:23] Production.INFO: ProcessCDR(1,14343541,1,1,2) [2025-01-27 18:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343541', 'tblTempUsageDetail_20' ) start [2025-01-27 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343541', 'tblTempUsageDetail_20' ) end [2025-01-27 18:40:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:40:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:40:26] Production.INFO: ==12170== Releasing lock... [2025-01-27 18:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:40:26] Production.INFO: 62 MB #Memory Used# [2025-01-27 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:41:05 [end_date_ymd] => 2025-01-27 18:41:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:41:05' and `end` < '2025-01-27 18: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-01-27 18:41:21] Production.INFO: count ==4442 [2025-01-27 18:41:23] Production.ERROR: pbx CDR StartTime 2025-01-27 15:41:05 - End Time 2025-01-27 18:41:05 [2025-01-27 18:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343547', 'tblTempUsageDetail_20' ) start [2025-01-27 18:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343547', 'tblTempUsageDetail_20' ) end [2025-01-27 18:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343547', 'tblTempVendorCDR_20' ) start [2025-01-27 18:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343547', 'tblTempVendorCDR_20' ) end [2025-01-27 18:41:23] Production.INFO: ProcessCDR(1,14343547,1,1,2) [2025-01-27 18:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343547', 'tblTempUsageDetail_20' ) start [2025-01-27 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343547', 'tblTempUsageDetail_20' ) end [2025-01-27 18:41:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:41:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:41:26] Production.INFO: ==12247== Releasing lock... [2025-01-27 18:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:41:26] Production.INFO: 61.25 MB #Memory Used# [2025-01-27 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:42:05 [end_date_ymd] => 2025-01-27 18:42:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:42:05' and `end` < '2025-01-27 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-01-27 18:42:19] Production.INFO: count ==4430 [2025-01-27 18:42:20] Production.ERROR: pbx CDR StartTime 2025-01-27 15:42:05 - End Time 2025-01-27 18:42:05 [2025-01-27 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343552', 'tblTempUsageDetail_20' ) start [2025-01-27 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343552', 'tblTempUsageDetail_20' ) end [2025-01-27 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343552', 'tblTempVendorCDR_20' ) start [2025-01-27 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343552', 'tblTempVendorCDR_20' ) end [2025-01-27 18:42:21] Production.INFO: ProcessCDR(1,14343552,1,1,2) [2025-01-27 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343552', 'tblTempUsageDetail_20' ) start [2025-01-27 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343552', 'tblTempUsageDetail_20' ) end [2025-01-27 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:42:24] Production.INFO: ==12321== Releasing lock... [2025-01-27 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:42:24] Production.INFO: 61.25 MB #Memory Used# [2025-01-27 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:43:05 [end_date_ymd] => 2025-01-27 18:43:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:43:05' and `end` < '2025-01-27 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-01-27 18:43:19] Production.INFO: count ==4422 [2025-01-27 18:43:20] Production.ERROR: pbx CDR StartTime 2025-01-27 15:43:05 - End Time 2025-01-27 18:43:05 [2025-01-27 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343557', 'tblTempUsageDetail_20' ) start [2025-01-27 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343557', 'tblTempUsageDetail_20' ) end [2025-01-27 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343557', 'tblTempVendorCDR_20' ) start [2025-01-27 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343557', 'tblTempVendorCDR_20' ) end [2025-01-27 18:43:20] Production.INFO: ProcessCDR(1,14343557,1,1,2) [2025-01-27 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343557', 'tblTempUsageDetail_20' ) start [2025-01-27 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343557', 'tblTempUsageDetail_20' ) end [2025-01-27 18:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:43:25] Production.INFO: ==12397== Releasing lock... [2025-01-27 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:43:25] Production.INFO: 61 MB #Memory Used# [2025-01-27 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:44:05 [end_date_ymd] => 2025-01-27 18:44:05 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:44:05' and `end` < '2025-01-27 18: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-01-27 18:44:23] Production.INFO: count ==4416 [2025-01-27 18:44:24] Production.ERROR: pbx CDR StartTime 2025-01-27 15:44:05 - End Time 2025-01-27 18:44:05 [2025-01-27 18:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343562', 'tblTempUsageDetail_20' ) start [2025-01-27 18:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343562', 'tblTempUsageDetail_20' ) end [2025-01-27 18:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343562', 'tblTempVendorCDR_20' ) start [2025-01-27 18:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343562', 'tblTempVendorCDR_20' ) end [2025-01-27 18:44:24] Production.INFO: ProcessCDR(1,14343562,1,1,2) [2025-01-27 18:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343562', 'tblTempUsageDetail_20' ) start [2025-01-27 18:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343562', 'tblTempUsageDetail_20' ) end [2025-01-27 18:44:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:44:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:44:28] Production.INFO: ==12471== Releasing lock... [2025-01-27 18:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:44:28] Production.INFO: 61 MB #Memory Used# [2025-01-27 18:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:45:06 [end_date_ymd] => 2025-01-27 18:45:06 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:45:06' and `end` < '2025-01-27 18: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-01-27 18:45:19] Production.INFO: count ==4406 [2025-01-27 18:45:20] Production.ERROR: pbx CDR StartTime 2025-01-27 15:45:06 - End Time 2025-01-27 18:45:06 [2025-01-27 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343567', 'tblTempUsageDetail_20' ) start [2025-01-27 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343567', 'tblTempUsageDetail_20' ) end [2025-01-27 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343567', 'tblTempVendorCDR_20' ) start [2025-01-27 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343567', 'tblTempVendorCDR_20' ) end [2025-01-27 18:45:20] Production.INFO: ProcessCDR(1,14343567,1,1,2) [2025-01-27 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343567', 'tblTempUsageDetail_20' ) start [2025-01-27 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343567', 'tblTempUsageDetail_20' ) end [2025-01-27 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:45:23] Production.INFO: ==12545== Releasing lock... [2025-01-27 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:45:23] Production.INFO: 61 MB #Memory Used# [2025-01-27 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:46:05 [end_date_ymd] => 2025-01-27 18:46:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:46:05' and `end` < '2025-01-27 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-01-27 18:46:21] Production.INFO: count ==4402 [2025-01-27 18:46:22] Production.ERROR: pbx CDR StartTime 2025-01-27 15:46:05 - End Time 2025-01-27 18:46:05 [2025-01-27 18:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343572', 'tblTempUsageDetail_20' ) start [2025-01-27 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343572', 'tblTempUsageDetail_20' ) end [2025-01-27 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343572', 'tblTempVendorCDR_20' ) start [2025-01-27 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343572', 'tblTempVendorCDR_20' ) end [2025-01-27 18:46:22] Production.INFO: ProcessCDR(1,14343572,1,1,2) [2025-01-27 18:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343572', 'tblTempUsageDetail_20' ) start [2025-01-27 18:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343572', 'tblTempUsageDetail_20' ) end [2025-01-27 18:46:27] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:46:27] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:46:27] Production.INFO: ==12618== Releasing lock... [2025-01-27 18:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:46:27] Production.INFO: 61 MB #Memory Used# [2025-01-27 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:47:05 [end_date_ymd] => 2025-01-27 18:47:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:47:05' and `end` < '2025-01-27 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-01-27 18:47:21] Production.INFO: count ==4381 [2025-01-27 18:47:22] Production.ERROR: pbx CDR StartTime 2025-01-27 15:47:05 - End Time 2025-01-27 18:47:05 [2025-01-27 18:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343577', 'tblTempUsageDetail_20' ) start [2025-01-27 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343577', 'tblTempUsageDetail_20' ) end [2025-01-27 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343577', 'tblTempVendorCDR_20' ) start [2025-01-27 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343577', 'tblTempVendorCDR_20' ) end [2025-01-27 18:47:22] Production.INFO: ProcessCDR(1,14343577,1,1,2) [2025-01-27 18:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343577', 'tblTempUsageDetail_20' ) start [2025-01-27 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343577', 'tblTempUsageDetail_20' ) end [2025-01-27 18:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:47:25] Production.INFO: ==12693== Releasing lock... [2025-01-27 18:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:47:25] Production.INFO: 60.75 MB #Memory Used# [2025-01-27 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:48:05 [end_date_ymd] => 2025-01-27 18:48:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:48:05' and `end` < '2025-01-27 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-01-27 18:48:25] Production.INFO: count ==4373 [2025-01-27 18:48:26] Production.ERROR: pbx CDR StartTime 2025-01-27 15:48:05 - End Time 2025-01-27 18:48:05 [2025-01-27 18:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343582', 'tblTempUsageDetail_20' ) start [2025-01-27 18:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343582', 'tblTempUsageDetail_20' ) end [2025-01-27 18:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343582', 'tblTempVendorCDR_20' ) start [2025-01-27 18:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343582', 'tblTempVendorCDR_20' ) end [2025-01-27 18:48:26] Production.INFO: ProcessCDR(1,14343582,1,1,2) [2025-01-27 18:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343582', 'tblTempUsageDetail_20' ) start [2025-01-27 18:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343582', 'tblTempUsageDetail_20' ) end [2025-01-27 18:48:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:48:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:48:30] Production.INFO: ==12769== Releasing lock... [2025-01-27 18:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:48:30] Production.INFO: 60.75 MB #Memory Used# [2025-01-27 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:49:05 [end_date_ymd] => 2025-01-27 18:49:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:49:05' and `end` < '2025-01-27 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-01-27 18:49:24] Production.INFO: count ==4363 [2025-01-27 18:49:25] Production.ERROR: pbx CDR StartTime 2025-01-27 15:49:05 - End Time 2025-01-27 18:49:05 [2025-01-27 18:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343587', 'tblTempUsageDetail_20' ) start [2025-01-27 18:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343587', 'tblTempUsageDetail_20' ) end [2025-01-27 18:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343587', 'tblTempVendorCDR_20' ) start [2025-01-27 18:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343587', 'tblTempVendorCDR_20' ) end [2025-01-27 18:49:25] Production.INFO: ProcessCDR(1,14343587,1,1,2) [2025-01-27 18:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343587', 'tblTempUsageDetail_20' ) start [2025-01-27 18:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343587', 'tblTempUsageDetail_20' ) end [2025-01-27 18:49:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:49:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:49:30] Production.INFO: ==12889== Releasing lock... [2025-01-27 18:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:49:30] Production.INFO: 60.75 MB #Memory Used# [2025-01-27 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:50:06 [end_date_ymd] => 2025-01-27 18:50:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:50:06' and `end` < '2025-01-27 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-01-27 18:50:21] Production.INFO: count ==4358 [2025-01-27 18:50:22] Production.ERROR: pbx CDR StartTime 2025-01-27 15:50:06 - End Time 2025-01-27 18:50:06 [2025-01-27 18:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343593', 'tblTempUsageDetail_20' ) start [2025-01-27 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343593', 'tblTempUsageDetail_20' ) end [2025-01-27 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343593', 'tblTempVendorCDR_20' ) start [2025-01-27 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343593', 'tblTempVendorCDR_20' ) end [2025-01-27 18:50:22] Production.INFO: ProcessCDR(1,14343593,1,1,2) [2025-01-27 18:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343593', 'tblTempUsageDetail_20' ) start [2025-01-27 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343593', 'tblTempUsageDetail_20' ) end [2025-01-27 18:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:50:26] Production.INFO: ==12969== Releasing lock... [2025-01-27 18:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:50:26] Production.INFO: 60.5 MB #Memory Used# [2025-01-27 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:51:05 [end_date_ymd] => 2025-01-27 18:51:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:51:05' and `end` < '2025-01-27 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-01-27 18:51:18] Production.INFO: count ==4281 [2025-01-27 18:51:20] Production.ERROR: pbx CDR StartTime 2025-01-27 15:51:05 - End Time 2025-01-27 18:51:05 [2025-01-27 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343598', 'tblTempUsageDetail_20' ) start [2025-01-27 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343598', 'tblTempUsageDetail_20' ) end [2025-01-27 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343598', 'tblTempVendorCDR_20' ) start [2025-01-27 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343598', 'tblTempVendorCDR_20' ) end [2025-01-27 18:51:20] Production.INFO: ProcessCDR(1,14343598,1,1,2) [2025-01-27 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343598', 'tblTempUsageDetail_20' ) start [2025-01-27 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343598', 'tblTempUsageDetail_20' ) end [2025-01-27 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:51:24] Production.INFO: ==13047== Releasing lock... [2025-01-27 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:51:24] Production.INFO: 60 MB #Memory Used# [2025-01-27 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:52:05 [end_date_ymd] => 2025-01-27 18:52:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:52:05' and `end` < '2025-01-27 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-01-27 18:52:19] Production.INFO: count ==4261 [2025-01-27 18:52:20] Production.ERROR: pbx CDR StartTime 2025-01-27 15:52:05 - End Time 2025-01-27 18:52:05 [2025-01-27 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343603', 'tblTempUsageDetail_20' ) start [2025-01-27 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343603', 'tblTempUsageDetail_20' ) end [2025-01-27 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343603', 'tblTempVendorCDR_20' ) start [2025-01-27 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343603', 'tblTempVendorCDR_20' ) end [2025-01-27 18:52:20] Production.INFO: ProcessCDR(1,14343603,1,1,2) [2025-01-27 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343603', 'tblTempUsageDetail_20' ) start [2025-01-27 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343603', 'tblTempUsageDetail_20' ) end [2025-01-27 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:52:25] Production.INFO: ==13126== Releasing lock... [2025-01-27 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:52:25] Production.INFO: 60 MB #Memory Used# [2025-01-27 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:53:05 [end_date_ymd] => 2025-01-27 18:53:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:53:05' and `end` < '2025-01-27 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-01-27 18:53:24] Production.INFO: count ==4266 [2025-01-27 18:53:25] Production.ERROR: pbx CDR StartTime 2025-01-27 15:53:05 - End Time 2025-01-27 18:53:05 [2025-01-27 18:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343608', 'tblTempUsageDetail_20' ) start [2025-01-27 18:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343608', 'tblTempUsageDetail_20' ) end [2025-01-27 18:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343608', 'tblTempVendorCDR_20' ) start [2025-01-27 18:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343608', 'tblTempVendorCDR_20' ) end [2025-01-27 18:53:25] Production.INFO: ProcessCDR(1,14343608,1,1,2) [2025-01-27 18:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343608', 'tblTempUsageDetail_20' ) start [2025-01-27 18:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343608', 'tblTempUsageDetail_20' ) end [2025-01-27 18:53:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:53:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:53:29] Production.INFO: ==13210== Releasing lock... [2025-01-27 18:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:53:29] Production.INFO: 60 MB #Memory Used# [2025-01-27 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:54:05 [end_date_ymd] => 2025-01-27 18:54:05 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:54:05' and `end` < '2025-01-27 18: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-01-27 18:54:18] Production.INFO: count ==4267 [2025-01-27 18:54:20] Production.ERROR: pbx CDR StartTime 2025-01-27 15:54:05 - End Time 2025-01-27 18:54:05 [2025-01-27 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343613', 'tblTempUsageDetail_20' ) start [2025-01-27 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343613', 'tblTempUsageDetail_20' ) end [2025-01-27 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343613', 'tblTempVendorCDR_20' ) start [2025-01-27 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343613', 'tblTempVendorCDR_20' ) end [2025-01-27 18:54:20] Production.INFO: ProcessCDR(1,14343613,1,1,2) [2025-01-27 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343613', 'tblTempUsageDetail_20' ) start [2025-01-27 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343613', 'tblTempUsageDetail_20' ) end [2025-01-27 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:54:25] Production.INFO: ==13287== Releasing lock... [2025-01-27 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:54:25] Production.INFO: 60 MB #Memory Used# [2025-01-27 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:55:05 [end_date_ymd] => 2025-01-27 18:55:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:55:05' and `end` < '2025-01-27 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-01-27 18:55:18] Production.INFO: count ==4255 [2025-01-27 18:55:19] Production.ERROR: pbx CDR StartTime 2025-01-27 15:55:05 - End Time 2025-01-27 18:55:05 [2025-01-27 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343618', 'tblTempUsageDetail_20' ) start [2025-01-27 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343618', 'tblTempUsageDetail_20' ) end [2025-01-27 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343618', 'tblTempVendorCDR_20' ) start [2025-01-27 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343618', 'tblTempVendorCDR_20' ) end [2025-01-27 18:55:20] Production.INFO: ProcessCDR(1,14343618,1,1,2) [2025-01-27 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343618', 'tblTempUsageDetail_20' ) start [2025-01-27 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343618', 'tblTempUsageDetail_20' ) end [2025-01-27 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:55:24] Production.INFO: ==13369== Releasing lock... [2025-01-27 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:55:24] Production.INFO: 59.75 MB #Memory Used# [2025-01-27 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:56:05 [end_date_ymd] => 2025-01-27 18:56:05 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:56:05' and `end` < '2025-01-27 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-01-27 18:56:20] Production.INFO: count ==4246 [2025-01-27 18:56:21] Production.ERROR: pbx CDR StartTime 2025-01-27 15:56:05 - End Time 2025-01-27 18:56:05 [2025-01-27 18:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343623', 'tblTempUsageDetail_20' ) start [2025-01-27 18:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343623', 'tblTempUsageDetail_20' ) end [2025-01-27 18:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343623', 'tblTempVendorCDR_20' ) start [2025-01-27 18:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343623', 'tblTempVendorCDR_20' ) end [2025-01-27 18:56:22] Production.INFO: ProcessCDR(1,14343623,1,1,2) [2025-01-27 18:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343623', 'tblTempUsageDetail_20' ) start [2025-01-27 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343623', 'tblTempUsageDetail_20' ) end [2025-01-27 18:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:56:25] Production.INFO: ==13455== Releasing lock... [2025-01-27 18:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:56:25] Production.INFO: 59.75 MB #Memory Used# [2025-01-27 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:57:05 [end_date_ymd] => 2025-01-27 18:57:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 15:57:05' and `end` < '2025-01-27 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-01-27 18:57:18] Production.INFO: count ==4205 [2025-01-27 18:57:20] Production.ERROR: pbx CDR StartTime 2025-01-27 15:57:05 - End Time 2025-01-27 18:57:05 [2025-01-27 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343628', 'tblTempUsageDetail_20' ) start [2025-01-27 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343628', 'tblTempUsageDetail_20' ) end [2025-01-27 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343628', 'tblTempVendorCDR_20' ) start [2025-01-27 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343628', 'tblTempVendorCDR_20' ) end [2025-01-27 18:57:20] Production.INFO: ProcessCDR(1,14343628,1,1,2) [2025-01-27 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343628', 'tblTempUsageDetail_20' ) start [2025-01-27 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343628', 'tblTempUsageDetail_20' ) end [2025-01-27 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:57:23] Production.INFO: ==13530== Releasing lock... [2025-01-27 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:57:23] Production.INFO: 59.5 MB #Memory Used# [2025-01-27 18:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:58:06 [end_date_ymd] => 2025-01-27 18:58:06 [RateCDR] => 1 ) [2025-01-27 18: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-01-27 15:58:06' and `end` < '2025-01-27 18: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-01-27 18:58:22] Production.INFO: count ==4189 [2025-01-27 18:58:24] Production.ERROR: pbx CDR StartTime 2025-01-27 15:58:06 - End Time 2025-01-27 18:58:06 [2025-01-27 18:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343633', 'tblTempUsageDetail_20' ) start [2025-01-27 18:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343633', 'tblTempUsageDetail_20' ) end [2025-01-27 18:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343633', 'tblTempVendorCDR_20' ) start [2025-01-27 18:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343633', 'tblTempVendorCDR_20' ) end [2025-01-27 18:58:24] Production.INFO: ProcessCDR(1,14343633,1,1,2) [2025-01-27 18:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343633', 'tblTempUsageDetail_20' ) start [2025-01-27 18:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343633', 'tblTempUsageDetail_20' ) end [2025-01-27 18:58:27] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:58:27] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:58:27] Production.INFO: ==13610== Releasing lock... [2025-01-27 18:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:58:27] Production.INFO: 59.25 MB #Memory Used# [2025-01-27 18:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 15:59:04 [end_date_ymd] => 2025-01-27 18:59:04 [RateCDR] => 1 ) [2025-01-27 18:59: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-01-27 15:59:04' and `end` < '2025-01-27 18:59: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-01-27 18:59:23] Production.INFO: count ==4177 [2025-01-27 18:59:24] Production.ERROR: pbx CDR StartTime 2025-01-27 15:59:04 - End Time 2025-01-27 18:59:04 [2025-01-27 18:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 18:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343638', 'tblTempUsageDetail_20' ) start [2025-01-27 18:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343638', 'tblTempUsageDetail_20' ) end [2025-01-27 18:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343638', 'tblTempVendorCDR_20' ) start [2025-01-27 18:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343638', 'tblTempVendorCDR_20' ) end [2025-01-27 18:59:25] Production.INFO: ProcessCDR(1,14343638,1,1,2) [2025-01-27 18:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 18:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 18:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343638', 'tblTempUsageDetail_20' ) start [2025-01-27 18:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343638', 'tblTempUsageDetail_20' ) end [2025-01-27 18:59:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 18:59:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 18:59:28] Production.INFO: ==13690== Releasing lock... [2025-01-27 18:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 18:59:28] Production.INFO: 59.25 MB #Memory Used# [2025-01-27 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:00:06 [end_date_ymd] => 2025-01-27 19:00:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:00:06' and `end` < '2025-01-27 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-01-27 19:00:19] Production.INFO: count ==4166 [2025-01-27 19:00:20] Production.ERROR: pbx CDR StartTime 2025-01-27 16:00:06 - End Time 2025-01-27 19:00:06 [2025-01-27 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343643', 'tblTempUsageDetail_20' ) start [2025-01-27 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343643', 'tblTempUsageDetail_20' ) end [2025-01-27 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343643', 'tblTempVendorCDR_20' ) start [2025-01-27 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343643', 'tblTempVendorCDR_20' ) end [2025-01-27 19:00:20] Production.INFO: ProcessCDR(1,14343643,1,1,2) [2025-01-27 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343643', 'tblTempUsageDetail_20' ) start [2025-01-27 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343643', 'tblTempUsageDetail_20' ) end [2025-01-27 19:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:00:24] Production.INFO: ==13776== Releasing lock... [2025-01-27 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:00:24] Production.INFO: 59.25 MB #Memory Used# [2025-01-27 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:01:06 [end_date_ymd] => 2025-01-27 19:01:06 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:01:06' and `end` < '2025-01-27 19: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-01-27 19:01:20] Production.INFO: count ==4061 [2025-01-27 19:01:21] Production.ERROR: pbx CDR StartTime 2025-01-27 16:01:06 - End Time 2025-01-27 19:01:06 [2025-01-27 19:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343649', 'tblTempUsageDetail_20' ) start [2025-01-27 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343649', 'tblTempUsageDetail_20' ) end [2025-01-27 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343649', 'tblTempVendorCDR_20' ) start [2025-01-27 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343649', 'tblTempVendorCDR_20' ) end [2025-01-27 19:01:21] Production.INFO: ProcessCDR(1,14343649,1,1,2) [2025-01-27 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343649', 'tblTempUsageDetail_20' ) start [2025-01-27 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343649', 'tblTempUsageDetail_20' ) end [2025-01-27 19:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:01:26] Production.INFO: ==13906== Releasing lock... [2025-01-27 19:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:01:26] Production.INFO: 58.25 MB #Memory Used# [2025-01-27 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:02:05 [end_date_ymd] => 2025-01-27 19:02:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:02:05' and `end` < '2025-01-27 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-01-27 19:02:20] Production.INFO: count ==4050 [2025-01-27 19:02:21] Production.ERROR: pbx CDR StartTime 2025-01-27 16:02:05 - End Time 2025-01-27 19:02:05 [2025-01-27 19:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343654', 'tblTempUsageDetail_20' ) start [2025-01-27 19:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343654', 'tblTempUsageDetail_20' ) end [2025-01-27 19:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343654', 'tblTempVendorCDR_20' ) start [2025-01-27 19:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343654', 'tblTempVendorCDR_20' ) end [2025-01-27 19:02:22] Production.INFO: ProcessCDR(1,14343654,1,1,2) [2025-01-27 19:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343654', 'tblTempUsageDetail_20' ) start [2025-01-27 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343654', 'tblTempUsageDetail_20' ) end [2025-01-27 19:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:02:25] Production.INFO: ==14023== Releasing lock... [2025-01-27 19:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:02:25] Production.INFO: 58.25 MB #Memory Used# [2025-01-27 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:03:06 [end_date_ymd] => 2025-01-27 19:03:06 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:03:06' and `end` < '2025-01-27 19: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-01-27 19:03:19] Production.INFO: count ==4038 [2025-01-27 19:03:20] Production.ERROR: pbx CDR StartTime 2025-01-27 16:03:06 - End Time 2025-01-27 19:03:06 [2025-01-27 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343659', 'tblTempUsageDetail_20' ) start [2025-01-27 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343659', 'tblTempUsageDetail_20' ) end [2025-01-27 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343659', 'tblTempVendorCDR_20' ) start [2025-01-27 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343659', 'tblTempVendorCDR_20' ) end [2025-01-27 19:03:20] Production.INFO: ProcessCDR(1,14343659,1,1,2) [2025-01-27 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343659', 'tblTempUsageDetail_20' ) start [2025-01-27 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343659', 'tblTempUsageDetail_20' ) end [2025-01-27 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:03:24] Production.INFO: ==14101== Releasing lock... [2025-01-27 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:03:24] Production.INFO: 58.25 MB #Memory Used# [2025-01-27 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:04:06 [end_date_ymd] => 2025-01-27 19:04:06 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:04:06' and `end` < '2025-01-27 19: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-01-27 19:04:20] Production.INFO: count ==4015 [2025-01-27 19:04:22] Production.ERROR: pbx CDR StartTime 2025-01-27 16:04:06 - End Time 2025-01-27 19:04:06 [2025-01-27 19:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343664', 'tblTempUsageDetail_20' ) start [2025-01-27 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343664', 'tblTempUsageDetail_20' ) end [2025-01-27 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343664', 'tblTempVendorCDR_20' ) start [2025-01-27 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343664', 'tblTempVendorCDR_20' ) end [2025-01-27 19:04:22] Production.INFO: ProcessCDR(1,14343664,1,1,2) [2025-01-27 19:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343664', 'tblTempUsageDetail_20' ) start [2025-01-27 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343664', 'tblTempUsageDetail_20' ) end [2025-01-27 19:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:04:25] Production.INFO: ==14177== Releasing lock... [2025-01-27 19:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:04:25] Production.INFO: 58 MB #Memory Used# [2025-01-27 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:05:05 [end_date_ymd] => 2025-01-27 19:05:05 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:05:05' and `end` < '2025-01-27 19: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-01-27 19:05:21] Production.INFO: count ==3995 [2025-01-27 19:05:23] Production.ERROR: pbx CDR StartTime 2025-01-27 16:05:05 - End Time 2025-01-27 19:05:05 [2025-01-27 19:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343669', 'tblTempUsageDetail_20' ) start [2025-01-27 19:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343669', 'tblTempUsageDetail_20' ) end [2025-01-27 19:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343669', 'tblTempVendorCDR_20' ) start [2025-01-27 19:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343669', 'tblTempVendorCDR_20' ) end [2025-01-27 19:05:23] Production.INFO: ProcessCDR(1,14343669,1,1,2) [2025-01-27 19:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343669', 'tblTempUsageDetail_20' ) start [2025-01-27 19:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343669', 'tblTempUsageDetail_20' ) end [2025-01-27 19:05:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:05:26] Production.INFO: ==14363== Releasing lock... [2025-01-27 19:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:05:26] Production.INFO: 57.75 MB #Memory Used# [2025-01-27 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:06:05 [end_date_ymd] => 2025-01-27 19:06:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:06:05' and `end` < '2025-01-27 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-01-27 19:06:25] Production.INFO: count ==3968 [2025-01-27 19:06:26] Production.ERROR: pbx CDR StartTime 2025-01-27 16:06:05 - End Time 2025-01-27 19:06:05 [2025-01-27 19:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343674', 'tblTempUsageDetail_20' ) start [2025-01-27 19:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343674', 'tblTempUsageDetail_20' ) end [2025-01-27 19:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343674', 'tblTempVendorCDR_20' ) start [2025-01-27 19:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343674', 'tblTempVendorCDR_20' ) end [2025-01-27 19:06:26] Production.INFO: ProcessCDR(1,14343674,1,1,2) [2025-01-27 19:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343674', 'tblTempUsageDetail_20' ) start [2025-01-27 19:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343674', 'tblTempUsageDetail_20' ) end [2025-01-27 19:06:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:06:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:06:30] Production.INFO: ==14444== Releasing lock... [2025-01-27 19:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:06:30] Production.INFO: 57.75 MB #Memory Used# [2025-01-27 19:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:07:06 [end_date_ymd] => 2025-01-27 19:07:06 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:07:06' and `end` < '2025-01-27 19: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-01-27 19:07:19] Production.INFO: count ==3957 [2025-01-27 19:07:20] Production.ERROR: pbx CDR StartTime 2025-01-27 16:07:06 - End Time 2025-01-27 19:07:06 [2025-01-27 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343679', 'tblTempUsageDetail_20' ) start [2025-01-27 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343679', 'tblTempUsageDetail_20' ) end [2025-01-27 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343679', 'tblTempVendorCDR_20' ) start [2025-01-27 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343679', 'tblTempVendorCDR_20' ) end [2025-01-27 19:07:20] Production.INFO: ProcessCDR(1,14343679,1,1,2) [2025-01-27 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343679', 'tblTempUsageDetail_20' ) start [2025-01-27 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343679', 'tblTempUsageDetail_20' ) end [2025-01-27 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:07:23] Production.INFO: ==14523== Releasing lock... [2025-01-27 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:07:23] Production.INFO: 57.75 MB #Memory Used# [2025-01-27 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:08:05 [end_date_ymd] => 2025-01-27 19:08:05 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:08:05' and `end` < '2025-01-27 19: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-01-27 19:08:19] Production.INFO: count ==3950 [2025-01-27 19:08:20] Production.ERROR: pbx CDR StartTime 2025-01-27 16:08:05 - End Time 2025-01-27 19:08:05 [2025-01-27 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343684', 'tblTempUsageDetail_20' ) start [2025-01-27 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343684', 'tblTempUsageDetail_20' ) end [2025-01-27 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343684', 'tblTempVendorCDR_20' ) start [2025-01-27 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343684', 'tblTempVendorCDR_20' ) end [2025-01-27 19:08:20] Production.INFO: ProcessCDR(1,14343684,1,1,2) [2025-01-27 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343684', 'tblTempUsageDetail_20' ) start [2025-01-27 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343684', 'tblTempUsageDetail_20' ) end [2025-01-27 19:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:08:25] Production.INFO: ==14676== Releasing lock... [2025-01-27 19:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:08:25] Production.INFO: 57.5 MB #Memory Used# [2025-01-27 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:09:05 [end_date_ymd] => 2025-01-27 19:09:05 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:09:05' and `end` < '2025-01-27 19: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-01-27 19:09:18] Production.INFO: count ==3942 [2025-01-27 19:09:19] Production.ERROR: pbx CDR StartTime 2025-01-27 16:09:05 - End Time 2025-01-27 19:09:05 [2025-01-27 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343689', 'tblTempUsageDetail_20' ) start [2025-01-27 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343689', 'tblTempUsageDetail_20' ) end [2025-01-27 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343689', 'tblTempVendorCDR_20' ) start [2025-01-27 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343689', 'tblTempVendorCDR_20' ) end [2025-01-27 19:09:19] Production.INFO: ProcessCDR(1,14343689,1,1,2) [2025-01-27 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343689', 'tblTempUsageDetail_20' ) start [2025-01-27 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343689', 'tblTempUsageDetail_20' ) end [2025-01-27 19:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:09:23] Production.INFO: ==14756== Releasing lock... [2025-01-27 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:09:23] Production.INFO: 57.5 MB #Memory Used# [2025-01-27 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:10:06 [end_date_ymd] => 2025-01-27 19:10:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:10:06' and `end` < '2025-01-27 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-01-27 19:10:20] Production.INFO: count ==3932 [2025-01-27 19:10:21] Production.ERROR: pbx CDR StartTime 2025-01-27 16:10:06 - End Time 2025-01-27 19:10:06 [2025-01-27 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343695', 'tblTempUsageDetail_20' ) start [2025-01-27 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343695', 'tblTempUsageDetail_20' ) end [2025-01-27 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343695', 'tblTempVendorCDR_20' ) start [2025-01-27 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343695', 'tblTempVendorCDR_20' ) end [2025-01-27 19:10:21] Production.INFO: ProcessCDR(1,14343695,1,1,2) [2025-01-27 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343695', 'tblTempUsageDetail_20' ) start [2025-01-27 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343695', 'tblTempUsageDetail_20' ) end [2025-01-27 19:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:10:25] Production.INFO: ==14834== Releasing lock... [2025-01-27 19:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:10:25] Production.INFO: 57.5 MB #Memory Used# [2025-01-27 19:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:11:06 [end_date_ymd] => 2025-01-27 19:11:06 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:11:06' and `end` < '2025-01-27 19: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-01-27 19:11:24] Production.INFO: count ==3814 [2025-01-27 19:11:25] Production.ERROR: pbx CDR StartTime 2025-01-27 16:11:06 - End Time 2025-01-27 19:11:06 [2025-01-27 19:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343700', 'tblTempUsageDetail_20' ) start [2025-01-27 19:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343700', 'tblTempUsageDetail_20' ) end [2025-01-27 19:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343700', 'tblTempVendorCDR_20' ) start [2025-01-27 19:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343700', 'tblTempVendorCDR_20' ) end [2025-01-27 19:11:25] Production.INFO: ProcessCDR(1,14343700,1,1,2) [2025-01-27 19:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343700', 'tblTempUsageDetail_20' ) start [2025-01-27 19:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343700', 'tblTempUsageDetail_20' ) end [2025-01-27 19:11:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:11:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:11:29] Production.INFO: ==14912== Releasing lock... [2025-01-27 19:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:11:29] Production.INFO: 56.5 MB #Memory Used# [2025-01-27 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:12:05 [end_date_ymd] => 2025-01-27 19:12:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:12:05' and `end` < '2025-01-27 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-01-27 19:12:19] Production.INFO: count ==3788 [2025-01-27 19:12:21] Production.ERROR: pbx CDR StartTime 2025-01-27 16:12:05 - End Time 2025-01-27 19:12:05 [2025-01-27 19:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343705', 'tblTempUsageDetail_20' ) start [2025-01-27 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343705', 'tblTempUsageDetail_20' ) end [2025-01-27 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343705', 'tblTempVendorCDR_20' ) start [2025-01-27 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343705', 'tblTempVendorCDR_20' ) end [2025-01-27 19:12:21] Production.INFO: ProcessCDR(1,14343705,1,1,2) [2025-01-27 19:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343705', 'tblTempUsageDetail_20' ) start [2025-01-27 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343705', 'tblTempUsageDetail_20' ) end [2025-01-27 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:12:24] Production.INFO: ==15065== Releasing lock... [2025-01-27 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:12:24] Production.INFO: 56.25 MB #Memory Used# [2025-01-27 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:13:05 [end_date_ymd] => 2025-01-27 19:13:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:13:05' and `end` < '2025-01-27 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-01-27 19:13:19] Production.INFO: count ==3770 [2025-01-27 19:13:20] Production.ERROR: pbx CDR StartTime 2025-01-27 16:13:05 - End Time 2025-01-27 19:13:05 [2025-01-27 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343710', 'tblTempUsageDetail_20' ) start [2025-01-27 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343710', 'tblTempUsageDetail_20' ) end [2025-01-27 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343710', 'tblTempVendorCDR_20' ) start [2025-01-27 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343710', 'tblTempVendorCDR_20' ) end [2025-01-27 19:13:20] Production.INFO: ProcessCDR(1,14343710,1,1,2) [2025-01-27 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343710', 'tblTempUsageDetail_20' ) start [2025-01-27 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343710', 'tblTempUsageDetail_20' ) end [2025-01-27 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:13:23] Production.INFO: ==15142== Releasing lock... [2025-01-27 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:13:23] Production.INFO: 56.25 MB #Memory Used# [2025-01-27 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:14:05 [end_date_ymd] => 2025-01-27 19:14:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:14:05' and `end` < '2025-01-27 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-01-27 19:14:18] Production.INFO: count ==3764 [2025-01-27 19:14:19] Production.ERROR: pbx CDR StartTime 2025-01-27 16:14:05 - End Time 2025-01-27 19:14:05 [2025-01-27 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343715', 'tblTempUsageDetail_20' ) start [2025-01-27 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343715', 'tblTempUsageDetail_20' ) end [2025-01-27 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343715', 'tblTempVendorCDR_20' ) start [2025-01-27 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343715', 'tblTempVendorCDR_20' ) end [2025-01-27 19:14:19] Production.INFO: ProcessCDR(1,14343715,1,1,2) [2025-01-27 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343715', 'tblTempUsageDetail_20' ) start [2025-01-27 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343715', 'tblTempUsageDetail_20' ) end [2025-01-27 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:14:24] Production.INFO: ==15219== Releasing lock... [2025-01-27 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:14:24] Production.INFO: 56.25 MB #Memory Used# [2025-01-27 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:15:05 [end_date_ymd] => 2025-01-27 19:15:05 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:15:05' and `end` < '2025-01-27 19: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-01-27 19:15:24] Production.INFO: count ==3760 [2025-01-27 19:15:25] Production.ERROR: pbx CDR StartTime 2025-01-27 16:15:05 - End Time 2025-01-27 19:15:05 [2025-01-27 19:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343720', 'tblTempUsageDetail_20' ) start [2025-01-27 19:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343720', 'tblTempUsageDetail_20' ) end [2025-01-27 19:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343720', 'tblTempVendorCDR_20' ) start [2025-01-27 19:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343720', 'tblTempVendorCDR_20' ) end [2025-01-27 19:15:25] Production.INFO: ProcessCDR(1,14343720,1,1,2) [2025-01-27 19:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343720', 'tblTempUsageDetail_20' ) start [2025-01-27 19:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343720', 'tblTempUsageDetail_20' ) end [2025-01-27 19:15:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:15:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:15:28] Production.INFO: ==15377== Releasing lock... [2025-01-27 19:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:15:28] Production.INFO: 56.25 MB #Memory Used# [2025-01-27 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:16:05 [end_date_ymd] => 2025-01-27 19:16:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:16:05' and `end` < '2025-01-27 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-01-27 19:16:18] Production.INFO: count ==3730 [2025-01-27 19:16:19] Production.ERROR: pbx CDR StartTime 2025-01-27 16:16:05 - End Time 2025-01-27 19:16:05 [2025-01-27 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343725', 'tblTempUsageDetail_20' ) start [2025-01-27 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343725', 'tblTempUsageDetail_20' ) end [2025-01-27 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343725', 'tblTempVendorCDR_20' ) start [2025-01-27 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343725', 'tblTempVendorCDR_20' ) end [2025-01-27 19:16:19] Production.INFO: ProcessCDR(1,14343725,1,1,2) [2025-01-27 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343725', 'tblTempUsageDetail_20' ) start [2025-01-27 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343725', 'tblTempUsageDetail_20' ) end [2025-01-27 19:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:16:22] Production.INFO: ==15450== Releasing lock... [2025-01-27 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:16:22] Production.INFO: 55.75 MB #Memory Used# [2025-01-27 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:17:05 [end_date_ymd] => 2025-01-27 19:17:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:17:05' and `end` < '2025-01-27 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-01-27 19:17:18] Production.INFO: count ==3706 [2025-01-27 19:17:19] Production.ERROR: pbx CDR StartTime 2025-01-27 16:17:05 - End Time 2025-01-27 19:17:05 [2025-01-27 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343730', 'tblTempUsageDetail_20' ) start [2025-01-27 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343730', 'tblTempUsageDetail_20' ) end [2025-01-27 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343730', 'tblTempVendorCDR_20' ) start [2025-01-27 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343730', 'tblTempVendorCDR_20' ) end [2025-01-27 19:17:19] Production.INFO: ProcessCDR(1,14343730,1,1,2) [2025-01-27 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343730', 'tblTempUsageDetail_20' ) start [2025-01-27 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343730', 'tblTempUsageDetail_20' ) end [2025-01-27 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:17:22] Production.INFO: ==15530== Releasing lock... [2025-01-27 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:17:22] Production.INFO: 55.75 MB #Memory Used# [2025-01-27 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:18:06 [end_date_ymd] => 2025-01-27 19:18:06 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:18:06' and `end` < '2025-01-27 19: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-01-27 19:18:19] Production.INFO: count ==3683 [2025-01-27 19:18:20] Production.ERROR: pbx CDR StartTime 2025-01-27 16:18:06 - End Time 2025-01-27 19:18:06 [2025-01-27 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343735', 'tblTempUsageDetail_20' ) start [2025-01-27 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343735', 'tblTempUsageDetail_20' ) end [2025-01-27 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343735', 'tblTempVendorCDR_20' ) start [2025-01-27 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343735', 'tblTempVendorCDR_20' ) end [2025-01-27 19:18:20] Production.INFO: ProcessCDR(1,14343735,1,1,2) [2025-01-27 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343735', 'tblTempUsageDetail_20' ) start [2025-01-27 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343735', 'tblTempUsageDetail_20' ) end [2025-01-27 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:18:23] Production.INFO: ==15605== Releasing lock... [2025-01-27 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:18:23] Production.INFO: 55.5 MB #Memory Used# [2025-01-27 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:19:05 [end_date_ymd] => 2025-01-27 19:19:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:19:05' and `end` < '2025-01-27 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-01-27 19:19:18] Production.INFO: count ==3673 [2025-01-27 19:19:19] Production.ERROR: pbx CDR StartTime 2025-01-27 16:19:05 - End Time 2025-01-27 19:19:05 [2025-01-27 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343740', 'tblTempUsageDetail_20' ) start [2025-01-27 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343740', 'tblTempUsageDetail_20' ) end [2025-01-27 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343740', 'tblTempVendorCDR_20' ) start [2025-01-27 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343740', 'tblTempVendorCDR_20' ) end [2025-01-27 19:19:19] Production.INFO: ProcessCDR(1,14343740,1,1,2) [2025-01-27 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343740', 'tblTempUsageDetail_20' ) start [2025-01-27 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343740', 'tblTempUsageDetail_20' ) end [2025-01-27 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:19:23] Production.INFO: ==15682== Releasing lock... [2025-01-27 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:19:23] Production.INFO: 55.5 MB #Memory Used# [2025-01-27 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:20:06 [end_date_ymd] => 2025-01-27 19:20:06 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:20:06' and `end` < '2025-01-27 19: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-01-27 19:20:21] Production.INFO: count ==3671 [2025-01-27 19:20:22] Production.ERROR: pbx CDR StartTime 2025-01-27 16:20:06 - End Time 2025-01-27 19:20:06 [2025-01-27 19:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343746', 'tblTempUsageDetail_20' ) start [2025-01-27 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343746', 'tblTempUsageDetail_20' ) end [2025-01-27 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343746', 'tblTempVendorCDR_20' ) start [2025-01-27 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343746', 'tblTempVendorCDR_20' ) end [2025-01-27 19:20:22] Production.INFO: ProcessCDR(1,14343746,1,1,2) [2025-01-27 19:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343746', 'tblTempUsageDetail_20' ) start [2025-01-27 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343746', 'tblTempUsageDetail_20' ) end [2025-01-27 19:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:20:25] Production.INFO: ==15798== Releasing lock... [2025-01-27 19:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:20:25] Production.INFO: 55.5 MB #Memory Used# [2025-01-27 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:21:04 [end_date_ymd] => 2025-01-27 19:21:04 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:21:04' and `end` < '2025-01-27 19: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-01-27 19:21:17] Production.INFO: count ==3596 [2025-01-27 19:21:19] Production.ERROR: pbx CDR StartTime 2025-01-27 16:21:04 - End Time 2025-01-27 19:21:04 [2025-01-27 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343751', 'tblTempUsageDetail_20' ) start [2025-01-27 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343751', 'tblTempUsageDetail_20' ) end [2025-01-27 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343751', 'tblTempVendorCDR_20' ) start [2025-01-27 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343751', 'tblTempVendorCDR_20' ) end [2025-01-27 19:21:19] Production.INFO: ProcessCDR(1,14343751,1,1,2) [2025-01-27 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343751', 'tblTempUsageDetail_20' ) start [2025-01-27 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343751', 'tblTempUsageDetail_20' ) end [2025-01-27 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:21:22] Production.INFO: ==15880== Releasing lock... [2025-01-27 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:21:22] Production.INFO: 55 MB #Memory Used# [2025-01-27 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:22:06 [end_date_ymd] => 2025-01-27 19:22:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:22:06' and `end` < '2025-01-27 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-01-27 19:22:20] Production.INFO: count ==3583 [2025-01-27 19:22:21] Production.ERROR: pbx CDR StartTime 2025-01-27 16:22:06 - End Time 2025-01-27 19:22:06 [2025-01-27 19:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343756', 'tblTempUsageDetail_20' ) start [2025-01-27 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343756', 'tblTempUsageDetail_20' ) end [2025-01-27 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343756', 'tblTempVendorCDR_20' ) start [2025-01-27 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343756', 'tblTempVendorCDR_20' ) end [2025-01-27 19:22:21] Production.INFO: ProcessCDR(1,14343756,1,1,2) [2025-01-27 19:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343756', 'tblTempUsageDetail_20' ) start [2025-01-27 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343756', 'tblTempUsageDetail_20' ) end [2025-01-27 19:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:22:24] Production.INFO: ==15962== Releasing lock... [2025-01-27 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:22:24] Production.INFO: 54.75 MB #Memory Used# [2025-01-27 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:23:05 [end_date_ymd] => 2025-01-27 19:23:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:23:05' and `end` < '2025-01-27 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-01-27 19:23:23] Production.INFO: count ==3568 [2025-01-27 19:23:24] Production.ERROR: pbx CDR StartTime 2025-01-27 16:23:05 - End Time 2025-01-27 19:23:05 [2025-01-27 19:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343761', 'tblTempUsageDetail_20' ) start [2025-01-27 19:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343761', 'tblTempUsageDetail_20' ) end [2025-01-27 19:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343761', 'tblTempVendorCDR_20' ) start [2025-01-27 19:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343761', 'tblTempVendorCDR_20' ) end [2025-01-27 19:23:24] Production.INFO: ProcessCDR(1,14343761,1,1,2) [2025-01-27 19:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343761', 'tblTempUsageDetail_20' ) start [2025-01-27 19:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343761', 'tblTempUsageDetail_20' ) end [2025-01-27 19:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:23:27] Production.INFO: ==16037== Releasing lock... [2025-01-27 19:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:23:27] Production.INFO: 54.75 MB #Memory Used# [2025-01-27 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:24:06 [end_date_ymd] => 2025-01-27 19:24:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:24:06' and `end` < '2025-01-27 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-01-27 19:24:19] Production.INFO: count ==3559 [2025-01-27 19:24:20] Production.ERROR: pbx CDR StartTime 2025-01-27 16:24:06 - End Time 2025-01-27 19:24:06 [2025-01-27 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343766', 'tblTempUsageDetail_20' ) start [2025-01-27 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343766', 'tblTempUsageDetail_20' ) end [2025-01-27 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343766', 'tblTempVendorCDR_20' ) start [2025-01-27 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343766', 'tblTempVendorCDR_20' ) end [2025-01-27 19:24:20] Production.INFO: ProcessCDR(1,14343766,1,1,2) [2025-01-27 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343766', 'tblTempUsageDetail_20' ) start [2025-01-27 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343766', 'tblTempUsageDetail_20' ) end [2025-01-27 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:24:23] Production.INFO: ==16116== Releasing lock... [2025-01-27 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:24:23] Production.INFO: 54.5 MB #Memory Used# [2025-01-27 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:25:05 [end_date_ymd] => 2025-01-27 19:25:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:25:05' and `end` < '2025-01-27 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-01-27 19:25:19] Production.INFO: count ==3528 [2025-01-27 19:25:19] Production.ERROR: pbx CDR StartTime 2025-01-27 16:25:05 - End Time 2025-01-27 19:25:05 [2025-01-27 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343771', 'tblTempUsageDetail_20' ) start [2025-01-27 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343771', 'tblTempUsageDetail_20' ) end [2025-01-27 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343771', 'tblTempVendorCDR_20' ) start [2025-01-27 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343771', 'tblTempVendorCDR_20' ) end [2025-01-27 19:25:20] Production.INFO: ProcessCDR(1,14343771,1,1,2) [2025-01-27 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343771', 'tblTempUsageDetail_20' ) start [2025-01-27 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343771', 'tblTempUsageDetail_20' ) end [2025-01-27 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:25:23] Production.INFO: ==16189== Releasing lock... [2025-01-27 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:25:23] Production.INFO: 54.5 MB #Memory Used# [2025-01-27 19:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:26:05 [end_date_ymd] => 2025-01-27 19:26:05 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:26:05' and `end` < '2025-01-27 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-01-27 19:26:23] Production.INFO: count ==3513 [2025-01-27 19:26:24] Production.ERROR: pbx CDR StartTime 2025-01-27 16:26:05 - End Time 2025-01-27 19:26:05 [2025-01-27 19:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343776', 'tblTempUsageDetail_20' ) start [2025-01-27 19:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343776', 'tblTempUsageDetail_20' ) end [2025-01-27 19:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343776', 'tblTempVendorCDR_20' ) start [2025-01-27 19:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343776', 'tblTempVendorCDR_20' ) end [2025-01-27 19:26:24] Production.INFO: ProcessCDR(1,14343776,1,1,2) [2025-01-27 19:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343776', 'tblTempUsageDetail_20' ) start [2025-01-27 19:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343776', 'tblTempUsageDetail_20' ) end [2025-01-27 19:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:26:27] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:26:27] Production.INFO: ==16265== Releasing lock... [2025-01-27 19:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:26:27] Production.INFO: 54.5 MB #Memory Used# [2025-01-27 19:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:27:05 [end_date_ymd] => 2025-01-27 19:27:05 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:27:05' and `end` < '2025-01-27 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-01-27 19:27:19] Production.INFO: count ==3502 [2025-01-27 19:27:19] Production.ERROR: pbx CDR StartTime 2025-01-27 16:27:05 - End Time 2025-01-27 19:27:05 [2025-01-27 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343781', 'tblTempUsageDetail_20' ) start [2025-01-27 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343781', 'tblTempUsageDetail_20' ) end [2025-01-27 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343781', 'tblTempVendorCDR_20' ) start [2025-01-27 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343781', 'tblTempVendorCDR_20' ) end [2025-01-27 19:27:20] Production.INFO: ProcessCDR(1,14343781,1,1,2) [2025-01-27 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343781', 'tblTempUsageDetail_20' ) start [2025-01-27 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343781', 'tblTempUsageDetail_20' ) end [2025-01-27 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:27:24] Production.INFO: ==16339== Releasing lock... [2025-01-27 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:27:24] Production.INFO: 54.5 MB #Memory Used# [2025-01-27 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:28:05 [end_date_ymd] => 2025-01-27 19:28:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:28:05' and `end` < '2025-01-27 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-01-27 19:28:24] Production.INFO: count ==3493 [2025-01-27 19:28:25] Production.ERROR: pbx CDR StartTime 2025-01-27 16:28:05 - End Time 2025-01-27 19:28:05 [2025-01-27 19:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343786', 'tblTempUsageDetail_20' ) start [2025-01-27 19:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343786', 'tblTempUsageDetail_20' ) end [2025-01-27 19:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343786', 'tblTempVendorCDR_20' ) start [2025-01-27 19:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343786', 'tblTempVendorCDR_20' ) end [2025-01-27 19:28:25] Production.INFO: ProcessCDR(1,14343786,1,1,2) [2025-01-27 19:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343786', 'tblTempUsageDetail_20' ) start [2025-01-27 19:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343786', 'tblTempUsageDetail_20' ) end [2025-01-27 19:28:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:28:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:28:29] Production.INFO: ==16416== Releasing lock... [2025-01-27 19:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:28:29] Production.INFO: 54.75 MB #Memory Used# [2025-01-27 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:29:05 [end_date_ymd] => 2025-01-27 19:29:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:29:05' and `end` < '2025-01-27 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-01-27 19:29:18] Production.INFO: count ==3485 [2025-01-27 19:29:19] Production.ERROR: pbx CDR StartTime 2025-01-27 16:29:05 - End Time 2025-01-27 19:29:05 [2025-01-27 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343791', 'tblTempUsageDetail_20' ) start [2025-01-27 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343791', 'tblTempUsageDetail_20' ) end [2025-01-27 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343791', 'tblTempVendorCDR_20' ) start [2025-01-27 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343791', 'tblTempVendorCDR_20' ) end [2025-01-27 19:29:19] Production.INFO: ProcessCDR(1,14343791,1,1,2) [2025-01-27 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343791', 'tblTempUsageDetail_20' ) start [2025-01-27 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343791', 'tblTempUsageDetail_20' ) end [2025-01-27 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:29:24] Production.INFO: ==16489== Releasing lock... [2025-01-27 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:29:24] Production.INFO: 54.5 MB #Memory Used# [2025-01-27 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:30:06 [end_date_ymd] => 2025-01-27 19:30:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:30:06' and `end` < '2025-01-27 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-01-27 19:30:19] Production.INFO: count ==3459 [2025-01-27 19:30:20] Production.ERROR: pbx CDR StartTime 2025-01-27 16:30:06 - End Time 2025-01-27 19:30:06 [2025-01-27 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343796', 'tblTempUsageDetail_20' ) start [2025-01-27 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343796', 'tblTempUsageDetail_20' ) end [2025-01-27 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343796', 'tblTempVendorCDR_20' ) start [2025-01-27 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343796', 'tblTempVendorCDR_20' ) end [2025-01-27 19:30:20] Production.INFO: ProcessCDR(1,14343796,1,1,2) [2025-01-27 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343796', 'tblTempUsageDetail_20' ) start [2025-01-27 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343796', 'tblTempUsageDetail_20' ) end [2025-01-27 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:30:23] Production.INFO: ==16568== Releasing lock... [2025-01-27 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:30:23] Production.INFO: 53.75 MB #Memory Used# [2025-01-27 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:31:05 [end_date_ymd] => 2025-01-27 19:31:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:31:05' and `end` < '2025-01-27 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-01-27 19:31:20] Production.INFO: count ==3428 [2025-01-27 19:31:21] Production.ERROR: pbx CDR StartTime 2025-01-27 16:31:05 - End Time 2025-01-27 19:31:05 [2025-01-27 19:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343802', 'tblTempUsageDetail_20' ) start [2025-01-27 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343802', 'tblTempUsageDetail_20' ) end [2025-01-27 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343802', 'tblTempVendorCDR_20' ) start [2025-01-27 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343802', 'tblTempVendorCDR_20' ) end [2025-01-27 19:31:21] Production.INFO: ProcessCDR(1,14343802,1,1,2) [2025-01-27 19:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343802', 'tblTempUsageDetail_20' ) start [2025-01-27 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343802', 'tblTempUsageDetail_20' ) end [2025-01-27 19:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:31:24] Production.INFO: ==16647== Releasing lock... [2025-01-27 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:31:24] Production.INFO: 54 MB #Memory Used# [2025-01-27 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:32:05 [end_date_ymd] => 2025-01-27 19:32:05 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:32:05' and `end` < '2025-01-27 19: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-01-27 19:32:19] Production.INFO: count ==3419 [2025-01-27 19:32:20] Production.ERROR: pbx CDR StartTime 2025-01-27 16:32:05 - End Time 2025-01-27 19:32:05 [2025-01-27 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343807', 'tblTempUsageDetail_20' ) start [2025-01-27 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343807', 'tblTempUsageDetail_20' ) end [2025-01-27 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343807', 'tblTempVendorCDR_20' ) start [2025-01-27 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343807', 'tblTempVendorCDR_20' ) end [2025-01-27 19:32:20] Production.INFO: ProcessCDR(1,14343807,1,1,2) [2025-01-27 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343807', 'tblTempUsageDetail_20' ) start [2025-01-27 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343807', 'tblTempUsageDetail_20' ) end [2025-01-27 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:32:23] Production.INFO: ==16720== Releasing lock... [2025-01-27 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:32:23] Production.INFO: 53.75 MB #Memory Used# [2025-01-27 19:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:33:06 [end_date_ymd] => 2025-01-27 19:33:06 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:33:06' and `end` < '2025-01-27 19: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-01-27 19:33:19] Production.INFO: count ==3407 [2025-01-27 19:33:20] Production.ERROR: pbx CDR StartTime 2025-01-27 16:33:06 - End Time 2025-01-27 19:33:06 [2025-01-27 19:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343812', 'tblTempUsageDetail_20' ) start [2025-01-27 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343812', 'tblTempUsageDetail_20' ) end [2025-01-27 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343812', 'tblTempVendorCDR_20' ) start [2025-01-27 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343812', 'tblTempVendorCDR_20' ) end [2025-01-27 19:33:20] Production.INFO: ProcessCDR(1,14343812,1,1,2) [2025-01-27 19:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343812', 'tblTempUsageDetail_20' ) start [2025-01-27 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343812', 'tblTempUsageDetail_20' ) end [2025-01-27 19:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:33:24] Production.INFO: ==16796== Releasing lock... [2025-01-27 19:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:33:24] Production.INFO: 53.5 MB #Memory Used# [2025-01-27 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:34:05 [end_date_ymd] => 2025-01-27 19:34:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:34:05' and `end` < '2025-01-27 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-01-27 19:34:19] Production.INFO: count ==3395 [2025-01-27 19:34:20] Production.ERROR: pbx CDR StartTime 2025-01-27 16:34:05 - End Time 2025-01-27 19:34:05 [2025-01-27 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343817', 'tblTempUsageDetail_20' ) start [2025-01-27 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343817', 'tblTempUsageDetail_20' ) end [2025-01-27 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343817', 'tblTempVendorCDR_20' ) start [2025-01-27 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343817', 'tblTempVendorCDR_20' ) end [2025-01-27 19:34:20] Production.INFO: ProcessCDR(1,14343817,1,1,2) [2025-01-27 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343817', 'tblTempUsageDetail_20' ) start [2025-01-27 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343817', 'tblTempUsageDetail_20' ) end [2025-01-27 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:34:23] Production.INFO: ==16871== Releasing lock... [2025-01-27 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:34:23] Production.INFO: 53.5 MB #Memory Used# [2025-01-27 19:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:35:06 [end_date_ymd] => 2025-01-27 19:35:06 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:35:06' and `end` < '2025-01-27 19: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-01-27 19:35:19] Production.INFO: count ==3388 [2025-01-27 19:35:20] Production.ERROR: pbx CDR StartTime 2025-01-27 16:35:06 - End Time 2025-01-27 19:35:06 [2025-01-27 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343822', 'tblTempUsageDetail_20' ) start [2025-01-27 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343822', 'tblTempUsageDetail_20' ) end [2025-01-27 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343822', 'tblTempVendorCDR_20' ) start [2025-01-27 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343822', 'tblTempVendorCDR_20' ) end [2025-01-27 19:35:20] Production.INFO: ProcessCDR(1,14343822,1,1,2) [2025-01-27 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343822', 'tblTempUsageDetail_20' ) start [2025-01-27 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343822', 'tblTempUsageDetail_20' ) end [2025-01-27 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:35:23] Production.INFO: ==16950== Releasing lock... [2025-01-27 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:35:23] Production.INFO: 54 MB #Memory Used# [2025-01-27 19:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:36:06 [end_date_ymd] => 2025-01-27 19:36:06 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:36:06' and `end` < '2025-01-27 19: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-01-27 19:36:23] Production.INFO: count ==3377 [2025-01-27 19:36:24] Production.ERROR: pbx CDR StartTime 2025-01-27 16:36:06 - End Time 2025-01-27 19:36:06 [2025-01-27 19:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343827', 'tblTempUsageDetail_20' ) start [2025-01-27 19:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343827', 'tblTempUsageDetail_20' ) end [2025-01-27 19:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343827', 'tblTempVendorCDR_20' ) start [2025-01-27 19:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343827', 'tblTempVendorCDR_20' ) end [2025-01-27 19:36:24] Production.INFO: ProcessCDR(1,14343827,1,1,2) [2025-01-27 19:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343827', 'tblTempUsageDetail_20' ) start [2025-01-27 19:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343827', 'tblTempUsageDetail_20' ) end [2025-01-27 19:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:36:27] Production.INFO: ==17072== Releasing lock... [2025-01-27 19:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:36:27] Production.INFO: 53.5 MB #Memory Used# [2025-01-27 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:37:05 [end_date_ymd] => 2025-01-27 19:37:05 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:37:05' and `end` < '2025-01-27 19: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-01-27 19:37:21] Production.INFO: count ==3361 [2025-01-27 19:37:22] Production.ERROR: pbx CDR StartTime 2025-01-27 16:37:05 - End Time 2025-01-27 19:37:05 [2025-01-27 19:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343832', 'tblTempUsageDetail_20' ) start [2025-01-27 19:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343832', 'tblTempUsageDetail_20' ) end [2025-01-27 19:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343832', 'tblTempVendorCDR_20' ) start [2025-01-27 19:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343832', 'tblTempVendorCDR_20' ) end [2025-01-27 19:37:22] Production.INFO: ProcessCDR(1,14343832,1,1,2) [2025-01-27 19:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343832', 'tblTempUsageDetail_20' ) start [2025-01-27 19:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343832', 'tblTempUsageDetail_20' ) end [2025-01-27 19:37:27] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:37:27] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:37:27] Production.INFO: ==17149== Releasing lock... [2025-01-27 19:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:37:27] Production.INFO: 53 MB #Memory Used# [2025-01-27 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:38:05 [end_date_ymd] => 2025-01-27 19:38:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:38:05' and `end` < '2025-01-27 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-01-27 19:38:24] Production.INFO: count ==3356 [2025-01-27 19:38:25] Production.ERROR: pbx CDR StartTime 2025-01-27 16:38:05 - End Time 2025-01-27 19:38:05 [2025-01-27 19:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343837', 'tblTempUsageDetail_20' ) start [2025-01-27 19:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343837', 'tblTempUsageDetail_20' ) end [2025-01-27 19:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343837', 'tblTempVendorCDR_20' ) start [2025-01-27 19:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343837', 'tblTempVendorCDR_20' ) end [2025-01-27 19:38:25] Production.INFO: ProcessCDR(1,14343837,1,1,2) [2025-01-27 19:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343837', 'tblTempUsageDetail_20' ) start [2025-01-27 19:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343837', 'tblTempUsageDetail_20' ) end [2025-01-27 19:38:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:38:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:38:28] Production.INFO: ==17223== Releasing lock... [2025-01-27 19:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:38:28] Production.INFO: 53.25 MB #Memory Used# [2025-01-27 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:39:05 [end_date_ymd] => 2025-01-27 19:39:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:39:05' and `end` < '2025-01-27 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-01-27 19:39:19] Production.INFO: count ==3342 [2025-01-27 19:39:20] Production.ERROR: pbx CDR StartTime 2025-01-27 16:39:05 - End Time 2025-01-27 19:39:05 [2025-01-27 19:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343842', 'tblTempUsageDetail_20' ) start [2025-01-27 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343842', 'tblTempUsageDetail_20' ) end [2025-01-27 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343842', 'tblTempVendorCDR_20' ) start [2025-01-27 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343842', 'tblTempVendorCDR_20' ) end [2025-01-27 19:39:20] Production.INFO: ProcessCDR(1,14343842,1,1,2) [2025-01-27 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343842', 'tblTempUsageDetail_20' ) start [2025-01-27 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343842', 'tblTempUsageDetail_20' ) end [2025-01-27 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:39:23] Production.INFO: ==17301== Releasing lock... [2025-01-27 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:39:23] Production.INFO: 53 MB #Memory Used# [2025-01-27 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:40:06 [end_date_ymd] => 2025-01-27 19:40:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:40:06' and `end` < '2025-01-27 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-01-27 19:40:21] Production.INFO: count ==3323 [2025-01-27 19:40:22] Production.ERROR: pbx CDR StartTime 2025-01-27 16:40:06 - End Time 2025-01-27 19:40:06 [2025-01-27 19:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343848', 'tblTempUsageDetail_20' ) start [2025-01-27 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343848', 'tblTempUsageDetail_20' ) end [2025-01-27 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343848', 'tblTempVendorCDR_20' ) start [2025-01-27 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343848', 'tblTempVendorCDR_20' ) end [2025-01-27 19:40:22] Production.INFO: ProcessCDR(1,14343848,1,1,2) [2025-01-27 19:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343848', 'tblTempUsageDetail_20' ) start [2025-01-27 19:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343848', 'tblTempUsageDetail_20' ) end [2025-01-27 19:40:27] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:40:27] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:40:27] Production.INFO: ==17374== Releasing lock... [2025-01-27 19:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:40:27] Production.INFO: 53 MB #Memory Used# [2025-01-27 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:41:05 [end_date_ymd] => 2025-01-27 19:41:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:41:05' and `end` < '2025-01-27 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-01-27 19:41:18] Production.INFO: count ==3249 [2025-01-27 19:41:19] Production.ERROR: pbx CDR StartTime 2025-01-27 16:41:05 - End Time 2025-01-27 19:41:05 [2025-01-27 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343853', 'tblTempUsageDetail_20' ) start [2025-01-27 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343853', 'tblTempUsageDetail_20' ) end [2025-01-27 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343853', 'tblTempVendorCDR_20' ) start [2025-01-27 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343853', 'tblTempVendorCDR_20' ) end [2025-01-27 19:41:19] Production.INFO: ProcessCDR(1,14343853,1,1,2) [2025-01-27 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343853', 'tblTempUsageDetail_20' ) start [2025-01-27 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343853', 'tblTempUsageDetail_20' ) end [2025-01-27 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:41:22] Production.INFO: ==17449== Releasing lock... [2025-01-27 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:41:22] Production.INFO: 52.5 MB #Memory Used# [2025-01-27 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:42:05 [end_date_ymd] => 2025-01-27 19:42:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:42:05' and `end` < '2025-01-27 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-01-27 19:42:19] Production.INFO: count ==3239 [2025-01-27 19:42:20] Production.ERROR: pbx CDR StartTime 2025-01-27 16:42:05 - End Time 2025-01-27 19:42:05 [2025-01-27 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343858', 'tblTempUsageDetail_20' ) start [2025-01-27 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343858', 'tblTempUsageDetail_20' ) end [2025-01-27 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343858', 'tblTempVendorCDR_20' ) start [2025-01-27 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343858', 'tblTempVendorCDR_20' ) end [2025-01-27 19:42:20] Production.INFO: ProcessCDR(1,14343858,1,1,2) [2025-01-27 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343858', 'tblTempUsageDetail_20' ) start [2025-01-27 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343858', 'tblTempUsageDetail_20' ) end [2025-01-27 19:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:42:25] Production.INFO: ==17523== Releasing lock... [2025-01-27 19:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:42:25] Production.INFO: 52.25 MB #Memory Used# [2025-01-27 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:43:05 [end_date_ymd] => 2025-01-27 19:43:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:43:05' and `end` < '2025-01-27 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-01-27 19:43:18] Production.INFO: count ==3226 [2025-01-27 19:43:18] Production.ERROR: pbx CDR StartTime 2025-01-27 16:43:05 - End Time 2025-01-27 19:43:05 [2025-01-27 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343863', 'tblTempUsageDetail_20' ) start [2025-01-27 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343863', 'tblTempUsageDetail_20' ) end [2025-01-27 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343863', 'tblTempVendorCDR_20' ) start [2025-01-27 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343863', 'tblTempVendorCDR_20' ) end [2025-01-27 19:43:18] Production.INFO: ProcessCDR(1,14343863,1,1,2) [2025-01-27 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343863', 'tblTempUsageDetail_20' ) start [2025-01-27 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343863', 'tblTempUsageDetail_20' ) end [2025-01-27 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:43:22] Production.INFO: ==17594== Releasing lock... [2025-01-27 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:43:22] Production.INFO: 52 MB #Memory Used# [2025-01-27 19:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:44:06 [end_date_ymd] => 2025-01-27 19:44:06 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:44:06' and `end` < '2025-01-27 19: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-01-27 19:44:20] Production.INFO: count ==3221 [2025-01-27 19:44:21] Production.ERROR: pbx CDR StartTime 2025-01-27 16:44:06 - End Time 2025-01-27 19:44:06 [2025-01-27 19:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343868', 'tblTempUsageDetail_20' ) start [2025-01-27 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343868', 'tblTempUsageDetail_20' ) end [2025-01-27 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343868', 'tblTempVendorCDR_20' ) start [2025-01-27 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343868', 'tblTempVendorCDR_20' ) end [2025-01-27 19:44:21] Production.INFO: ProcessCDR(1,14343868,1,1,2) [2025-01-27 19:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343868', 'tblTempUsageDetail_20' ) start [2025-01-27 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343868', 'tblTempUsageDetail_20' ) end [2025-01-27 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:44:24] Production.INFO: ==17670== Releasing lock... [2025-01-27 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:44:24] Production.INFO: 52 MB #Memory Used# [2025-01-27 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:45:05 [end_date_ymd] => 2025-01-27 19:45:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:45:05' and `end` < '2025-01-27 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-01-27 19:45:18] Production.INFO: count ==3201 [2025-01-27 19:45:19] Production.ERROR: pbx CDR StartTime 2025-01-27 16:45:05 - End Time 2025-01-27 19:45:05 [2025-01-27 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343873', 'tblTempUsageDetail_20' ) start [2025-01-27 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343873', 'tblTempUsageDetail_20' ) end [2025-01-27 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343873', 'tblTempVendorCDR_20' ) start [2025-01-27 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343873', 'tblTempVendorCDR_20' ) end [2025-01-27 19:45:19] Production.INFO: ProcessCDR(1,14343873,1,1,2) [2025-01-27 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343873', 'tblTempUsageDetail_20' ) start [2025-01-27 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343873', 'tblTempUsageDetail_20' ) end [2025-01-27 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:45:22] Production.INFO: ==17744== Releasing lock... [2025-01-27 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:45:22] Production.INFO: 52.25 MB #Memory Used# [2025-01-27 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:46:05 [end_date_ymd] => 2025-01-27 19:46:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:46:05' and `end` < '2025-01-27 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-01-27 19:46:20] Production.INFO: count ==3186 [2025-01-27 19:46:21] Production.ERROR: pbx CDR StartTime 2025-01-27 16:46:05 - End Time 2025-01-27 19:46:05 [2025-01-27 19:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343878', 'tblTempUsageDetail_20' ) start [2025-01-27 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343878', 'tblTempUsageDetail_20' ) end [2025-01-27 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343878', 'tblTempVendorCDR_20' ) start [2025-01-27 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343878', 'tblTempVendorCDR_20' ) end [2025-01-27 19:46:21] Production.INFO: ProcessCDR(1,14343878,1,1,2) [2025-01-27 19:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343878', 'tblTempUsageDetail_20' ) start [2025-01-27 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343878', 'tblTempUsageDetail_20' ) end [2025-01-27 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:46:24] Production.INFO: ==17818== Releasing lock... [2025-01-27 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:46:24] Production.INFO: 52.75 MB #Memory Used# [2025-01-27 19:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:47:04 [end_date_ymd] => 2025-01-27 19:47:04 [RateCDR] => 1 ) [2025-01-27 19:47: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-01-27 16:47:04' and `end` < '2025-01-27 19:47: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-01-27 19:47:17] Production.INFO: count ==3175 [2025-01-27 19:47:18] Production.ERROR: pbx CDR StartTime 2025-01-27 16:47:04 - End Time 2025-01-27 19:47:04 [2025-01-27 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343883', 'tblTempUsageDetail_20' ) start [2025-01-27 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343883', 'tblTempUsageDetail_20' ) end [2025-01-27 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343883', 'tblTempVendorCDR_20' ) start [2025-01-27 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343883', 'tblTempVendorCDR_20' ) end [2025-01-27 19:47:18] Production.INFO: ProcessCDR(1,14343883,1,1,2) [2025-01-27 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343883', 'tblTempUsageDetail_20' ) start [2025-01-27 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343883', 'tblTempUsageDetail_20' ) end [2025-01-27 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:47:22] Production.INFO: ==17889== Releasing lock... [2025-01-27 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:47:22] Production.INFO: 52.5 MB #Memory Used# [2025-01-27 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:48:05 [end_date_ymd] => 2025-01-27 19:48:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:48:05' and `end` < '2025-01-27 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-01-27 19:48:18] Production.INFO: count ==3170 [2025-01-27 19:48:19] Production.ERROR: pbx CDR StartTime 2025-01-27 16:48:05 - End Time 2025-01-27 19:48:05 [2025-01-27 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343888', 'tblTempUsageDetail_20' ) start [2025-01-27 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343888', 'tblTempUsageDetail_20' ) end [2025-01-27 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343888', 'tblTempVendorCDR_20' ) start [2025-01-27 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343888', 'tblTempVendorCDR_20' ) end [2025-01-27 19:48:19] Production.INFO: ProcessCDR(1,14343888,1,1,2) [2025-01-27 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343888', 'tblTempUsageDetail_20' ) start [2025-01-27 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343888', 'tblTempUsageDetail_20' ) end [2025-01-27 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:48:24] Production.INFO: ==17966== Releasing lock... [2025-01-27 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:48:24] Production.INFO: 52 MB #Memory Used# [2025-01-27 19:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:49:04 [end_date_ymd] => 2025-01-27 19:49:04 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:49:04' and `end` < '2025-01-27 19: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-01-27 19:49:19] Production.INFO: count ==3142 [2025-01-27 19:49:19] Production.ERROR: pbx CDR StartTime 2025-01-27 16:49:04 - End Time 2025-01-27 19:49:04 [2025-01-27 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343893', 'tblTempUsageDetail_20' ) start [2025-01-27 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343893', 'tblTempUsageDetail_20' ) end [2025-01-27 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343893', 'tblTempVendorCDR_20' ) start [2025-01-27 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343893', 'tblTempVendorCDR_20' ) end [2025-01-27 19:49:20] Production.INFO: ProcessCDR(1,14343893,1,1,2) [2025-01-27 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343893', 'tblTempUsageDetail_20' ) start [2025-01-27 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343893', 'tblTempUsageDetail_20' ) end [2025-01-27 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:49:23] Production.INFO: ==18040== Releasing lock... [2025-01-27 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:49:23] Production.INFO: 51.75 MB #Memory Used# [2025-01-27 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:50:06 [end_date_ymd] => 2025-01-27 19:50:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:50:06' and `end` < '2025-01-27 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-01-27 19:50:19] Production.INFO: count ==3126 [2025-01-27 19:50:20] Production.ERROR: pbx CDR StartTime 2025-01-27 16:50:06 - End Time 2025-01-27 19:50:06 [2025-01-27 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343899', 'tblTempUsageDetail_20' ) start [2025-01-27 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343899', 'tblTempUsageDetail_20' ) end [2025-01-27 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343899', 'tblTempVendorCDR_20' ) start [2025-01-27 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343899', 'tblTempVendorCDR_20' ) end [2025-01-27 19:50:20] Production.INFO: ProcessCDR(1,14343899,1,1,2) [2025-01-27 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343899', 'tblTempUsageDetail_20' ) start [2025-01-27 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343899', 'tblTempUsageDetail_20' ) end [2025-01-27 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:50:23] Production.INFO: ==18123== Releasing lock... [2025-01-27 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:50:23] Production.INFO: 51.25 MB #Memory Used# [2025-01-27 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:51:05 [end_date_ymd] => 2025-01-27 19:51:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:51:05' and `end` < '2025-01-27 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-01-27 19:51:18] Production.INFO: count ==3004 [2025-01-27 19:51:19] Production.ERROR: pbx CDR StartTime 2025-01-27 16:51:05 - End Time 2025-01-27 19:51:05 [2025-01-27 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343904', 'tblTempUsageDetail_20' ) start [2025-01-27 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343904', 'tblTempUsageDetail_20' ) end [2025-01-27 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343904', 'tblTempVendorCDR_20' ) start [2025-01-27 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343904', 'tblTempVendorCDR_20' ) end [2025-01-27 19:51:19] Production.INFO: ProcessCDR(1,14343904,1,1,2) [2025-01-27 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343904', 'tblTempUsageDetail_20' ) start [2025-01-27 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343904', 'tblTempUsageDetail_20' ) end [2025-01-27 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:51:22] Production.INFO: ==18247== Releasing lock... [2025-01-27 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:51:22] Production.INFO: 51.25 MB #Memory Used# [2025-01-27 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:52:05 [end_date_ymd] => 2025-01-27 19:52:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:52:05' and `end` < '2025-01-27 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-01-27 19:52:18] Production.INFO: count ==2993 [2025-01-27 19:52:19] Production.ERROR: pbx CDR StartTime 2025-01-27 16:52:05 - End Time 2025-01-27 19:52:05 [2025-01-27 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343909', 'tblTempUsageDetail_20' ) start [2025-01-27 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343909', 'tblTempUsageDetail_20' ) end [2025-01-27 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343909', 'tblTempVendorCDR_20' ) start [2025-01-27 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343909', 'tblTempVendorCDR_20' ) end [2025-01-27 19:52:19] Production.INFO: ProcessCDR(1,14343909,1,1,2) [2025-01-27 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343909', 'tblTempUsageDetail_20' ) start [2025-01-27 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343909', 'tblTempUsageDetail_20' ) end [2025-01-27 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:52:22] Production.INFO: ==18324== Releasing lock... [2025-01-27 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:52:22] Production.INFO: 50.25 MB #Memory Used# [2025-01-27 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:53:05 [end_date_ymd] => 2025-01-27 19:53:05 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:53:05' and `end` < '2025-01-27 19: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-01-27 19:53:18] Production.INFO: count ==2988 [2025-01-27 19:53:19] Production.ERROR: pbx CDR StartTime 2025-01-27 16:53:05 - End Time 2025-01-27 19:53:05 [2025-01-27 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343914', 'tblTempUsageDetail_20' ) start [2025-01-27 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343914', 'tblTempUsageDetail_20' ) end [2025-01-27 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343914', 'tblTempVendorCDR_20' ) start [2025-01-27 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343914', 'tblTempVendorCDR_20' ) end [2025-01-27 19:53:19] Production.INFO: ProcessCDR(1,14343914,1,1,2) [2025-01-27 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343914', 'tblTempUsageDetail_20' ) start [2025-01-27 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343914', 'tblTempUsageDetail_20' ) end [2025-01-27 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:53:22] Production.INFO: ==18402== Releasing lock... [2025-01-27 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:53:22] Production.INFO: 50.75 MB #Memory Used# [2025-01-27 19:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:54:06 [end_date_ymd] => 2025-01-27 19:54:06 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:54:06' and `end` < '2025-01-27 19: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-01-27 19:54:19] Production.INFO: count ==2967 [2025-01-27 19:54:20] Production.ERROR: pbx CDR StartTime 2025-01-27 16:54:06 - End Time 2025-01-27 19:54:06 [2025-01-27 19:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343919', 'tblTempUsageDetail_20' ) start [2025-01-27 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343919', 'tblTempUsageDetail_20' ) end [2025-01-27 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343919', 'tblTempVendorCDR_20' ) start [2025-01-27 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343919', 'tblTempVendorCDR_20' ) end [2025-01-27 19:54:20] Production.INFO: ProcessCDR(1,14343919,1,1,2) [2025-01-27 19:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343919', 'tblTempUsageDetail_20' ) start [2025-01-27 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343919', 'tblTempUsageDetail_20' ) end [2025-01-27 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:54:23] Production.INFO: ==18487== Releasing lock... [2025-01-27 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:54:23] Production.INFO: 50 MB #Memory Used# [2025-01-27 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:55:05 [end_date_ymd] => 2025-01-27 19:55:05 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:55:05' and `end` < '2025-01-27 19: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-01-27 19:55:35] Production.INFO: count ==2960 [2025-01-27 19:55:36] Production.ERROR: pbx CDR StartTime 2025-01-27 16:55:05 - End Time 2025-01-27 19:55:05 [2025-01-27 19:55:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:55:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343924', 'tblTempUsageDetail_20' ) start [2025-01-27 19:55:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343924', 'tblTempUsageDetail_20' ) end [2025-01-27 19:55:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343924', 'tblTempVendorCDR_20' ) start [2025-01-27 19:55:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343924', 'tblTempVendorCDR_20' ) end [2025-01-27 19:55:36] Production.INFO: ProcessCDR(1,14343924,1,1,2) [2025-01-27 19:55:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:55:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:55:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:55:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:55:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343924', 'tblTempUsageDetail_20' ) start [2025-01-27 19:55:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343924', 'tblTempUsageDetail_20' ) end [2025-01-27 19:55:39] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:55:39] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:55:39] Production.INFO: ==18566== Releasing lock... [2025-01-27 19:55:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:55:39] Production.INFO: 50 MB #Memory Used# [2025-01-27 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:56:05 [end_date_ymd] => 2025-01-27 19:56:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:56:05' and `end` < '2025-01-27 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-01-27 19:56:25] Production.INFO: count ==2945 [2025-01-27 19:56:25] Production.ERROR: pbx CDR StartTime 2025-01-27 16:56:05 - End Time 2025-01-27 19:56:05 [2025-01-27 19:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343929', 'tblTempUsageDetail_20' ) start [2025-01-27 19:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343929', 'tblTempUsageDetail_20' ) end [2025-01-27 19:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343929', 'tblTempVendorCDR_20' ) start [2025-01-27 19:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343929', 'tblTempVendorCDR_20' ) end [2025-01-27 19:56:25] Production.INFO: ProcessCDR(1,14343929,1,1,2) [2025-01-27 19:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343929', 'tblTempUsageDetail_20' ) start [2025-01-27 19:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343929', 'tblTempUsageDetail_20' ) end [2025-01-27 19:56:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:56:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:56:29] Production.INFO: ==18653== Releasing lock... [2025-01-27 19:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:56:29] Production.INFO: 49.75 MB #Memory Used# [2025-01-27 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:57:05 [end_date_ymd] => 2025-01-27 19:57:05 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:57:05' and `end` < '2025-01-27 19: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-01-27 19:57:18] Production.INFO: count ==2929 [2025-01-27 19:57:19] Production.ERROR: pbx CDR StartTime 2025-01-27 16:57:05 - End Time 2025-01-27 19:57:05 [2025-01-27 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343934', 'tblTempUsageDetail_20' ) start [2025-01-27 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343934', 'tblTempUsageDetail_20' ) end [2025-01-27 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343934', 'tblTempVendorCDR_20' ) start [2025-01-27 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343934', 'tblTempVendorCDR_20' ) end [2025-01-27 19:57:19] Production.INFO: ProcessCDR(1,14343934,1,1,2) [2025-01-27 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343934', 'tblTempUsageDetail_20' ) start [2025-01-27 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343934', 'tblTempUsageDetail_20' ) end [2025-01-27 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:57:22] Production.INFO: ==18737== Releasing lock... [2025-01-27 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:57:22] Production.INFO: 50 MB #Memory Used# [2025-01-27 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:58:05 [end_date_ymd] => 2025-01-27 19:58:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 16:58:05' and `end` < '2025-01-27 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-01-27 19:58:19] Production.INFO: count ==2923 [2025-01-27 19:58:20] Production.ERROR: pbx CDR StartTime 2025-01-27 16:58:05 - End Time 2025-01-27 19:58:05 [2025-01-27 19:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343939', 'tblTempUsageDetail_20' ) start [2025-01-27 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343939', 'tblTempUsageDetail_20' ) end [2025-01-27 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343939', 'tblTempVendorCDR_20' ) start [2025-01-27 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343939', 'tblTempVendorCDR_20' ) end [2025-01-27 19:58:20] Production.INFO: ProcessCDR(1,14343939,1,1,2) [2025-01-27 19:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343939', 'tblTempUsageDetail_20' ) start [2025-01-27 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343939', 'tblTempUsageDetail_20' ) end [2025-01-27 19:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:58:24] Production.INFO: ==18825== Releasing lock... [2025-01-27 19:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:58:24] Production.INFO: 49.75 MB #Memory Used# [2025-01-27 19:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 16:59:06 [end_date_ymd] => 2025-01-27 19:59:06 [RateCDR] => 1 ) [2025-01-27 19: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-01-27 16:59:06' and `end` < '2025-01-27 19: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-01-27 19:59:18] Production.INFO: count ==2916 [2025-01-27 19:59:19] Production.ERROR: pbx CDR StartTime 2025-01-27 16:59:06 - End Time 2025-01-27 19:59:06 [2025-01-27 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343944', 'tblTempUsageDetail_20' ) start [2025-01-27 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343944', 'tblTempUsageDetail_20' ) end [2025-01-27 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343944', 'tblTempVendorCDR_20' ) start [2025-01-27 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343944', 'tblTempVendorCDR_20' ) end [2025-01-27 19:59:19] Production.INFO: ProcessCDR(1,14343944,1,1,2) [2025-01-27 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343944', 'tblTempUsageDetail_20' ) start [2025-01-27 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343944', 'tblTempUsageDetail_20' ) end [2025-01-27 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 19:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 19:59:23] Production.INFO: ==18905== Releasing lock... [2025-01-27 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 19:59:23] Production.INFO: 49.75 MB #Memory Used# [2025-01-27 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:00:06 [end_date_ymd] => 2025-01-27 20:00:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:00:06' and `end` < '2025-01-27 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-01-27 20:00:19] Production.INFO: count ==2910 [2025-01-27 20:00:20] Production.ERROR: pbx CDR StartTime 2025-01-27 17:00:06 - End Time 2025-01-27 20:00:06 [2025-01-27 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343950', 'tblTempUsageDetail_20' ) start [2025-01-27 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343950', 'tblTempUsageDetail_20' ) end [2025-01-27 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343950', 'tblTempVendorCDR_20' ) start [2025-01-27 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343950', 'tblTempVendorCDR_20' ) end [2025-01-27 20:00:20] Production.INFO: ProcessCDR(1,14343950,1,1,2) [2025-01-27 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343950', 'tblTempUsageDetail_20' ) start [2025-01-27 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343950', 'tblTempUsageDetail_20' ) end [2025-01-27 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:00:23] Production.INFO: ==18988== Releasing lock... [2025-01-27 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:00:23] Production.INFO: 49.75 MB #Memory Used# [2025-01-27 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:01:05 [end_date_ymd] => 2025-01-27 20:01:05 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:01:05' and `end` < '2025-01-27 20: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-01-27 20:01:21] Production.INFO: count ==2844 [2025-01-27 20:01:22] Production.ERROR: pbx CDR StartTime 2025-01-27 17:01:05 - End Time 2025-01-27 20:01:05 [2025-01-27 20:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343955', 'tblTempUsageDetail_20' ) start [2025-01-27 20:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343955', 'tblTempUsageDetail_20' ) end [2025-01-27 20:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343955', 'tblTempVendorCDR_20' ) start [2025-01-27 20:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343955', 'tblTempVendorCDR_20' ) end [2025-01-27 20:01:22] Production.INFO: ProcessCDR(1,14343955,1,1,2) [2025-01-27 20:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343955', 'tblTempUsageDetail_20' ) start [2025-01-27 20:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343955', 'tblTempUsageDetail_20' ) end [2025-01-27 20:01:27] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:01:27] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:01:27] Production.INFO: ==19125== Releasing lock... [2025-01-27 20:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:01:27] Production.INFO: 49.5 MB #Memory Used# [2025-01-27 20:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:02:04 [end_date_ymd] => 2025-01-27 20:02:04 [RateCDR] => 1 ) [2025-01-27 20:02: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-01-27 17:02:04' and `end` < '2025-01-27 20:02: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-01-27 20:02:23] Production.INFO: count ==2849 [2025-01-27 20:02:24] Production.ERROR: pbx CDR StartTime 2025-01-27 17:02:04 - End Time 2025-01-27 20:02:04 [2025-01-27 20:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343960', 'tblTempUsageDetail_20' ) start [2025-01-27 20:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343960', 'tblTempUsageDetail_20' ) end [2025-01-27 20:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343960', 'tblTempVendorCDR_20' ) start [2025-01-27 20:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343960', 'tblTempVendorCDR_20' ) end [2025-01-27 20:02:24] Production.INFO: ProcessCDR(1,14343960,1,1,2) [2025-01-27 20:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343960', 'tblTempUsageDetail_20' ) start [2025-01-27 20:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343960', 'tblTempUsageDetail_20' ) end [2025-01-27 20:02:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:02:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:02:28] Production.INFO: ==19198== Releasing lock... [2025-01-27 20:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:02:28] Production.INFO: 49.75 MB #Memory Used# [2025-01-27 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:03:06 [end_date_ymd] => 2025-01-27 20:03:06 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:03:06' and `end` < '2025-01-27 20: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-01-27 20:03:22] Production.INFO: count ==2834 [2025-01-27 20:03:22] Production.ERROR: pbx CDR StartTime 2025-01-27 17:03:06 - End Time 2025-01-27 20:03:06 [2025-01-27 20:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343965', 'tblTempUsageDetail_20' ) start [2025-01-27 20:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343965', 'tblTempUsageDetail_20' ) end [2025-01-27 20:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343965', 'tblTempVendorCDR_20' ) start [2025-01-27 20:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343965', 'tblTempVendorCDR_20' ) end [2025-01-27 20:03:23] Production.INFO: ProcessCDR(1,14343965,1,1,2) [2025-01-27 20:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343965', 'tblTempUsageDetail_20' ) start [2025-01-27 20:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343965', 'tblTempUsageDetail_20' ) end [2025-01-27 20:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:03:26] Production.INFO: ==19283== Releasing lock... [2025-01-27 20:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:03:26] Production.INFO: 49 MB #Memory Used# [2025-01-27 20:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:04:06 [end_date_ymd] => 2025-01-27 20:04:06 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:04:06' and `end` < '2025-01-27 20: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-01-27 20:04:19] Production.INFO: count ==2819 [2025-01-27 20:04:20] Production.ERROR: pbx CDR StartTime 2025-01-27 17:04:06 - End Time 2025-01-27 20:04:06 [2025-01-27 20:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343970', 'tblTempUsageDetail_20' ) start [2025-01-27 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343970', 'tblTempUsageDetail_20' ) end [2025-01-27 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343970', 'tblTempVendorCDR_20' ) start [2025-01-27 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343970', 'tblTempVendorCDR_20' ) end [2025-01-27 20:04:20] Production.INFO: ProcessCDR(1,14343970,1,1,2) [2025-01-27 20:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343970', 'tblTempUsageDetail_20' ) start [2025-01-27 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343970', 'tblTempUsageDetail_20' ) end [2025-01-27 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:04:23] Production.INFO: ==19364== Releasing lock... [2025-01-27 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:04:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-27 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:05:06 [end_date_ymd] => 2025-01-27 20:05:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:05:06' and `end` < '2025-01-27 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-01-27 20:05:22] Production.INFO: count ==2812 [2025-01-27 20:05:23] Production.ERROR: pbx CDR StartTime 2025-01-27 17:05:06 - End Time 2025-01-27 20:05:06 [2025-01-27 20:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343975', 'tblTempUsageDetail_20' ) start [2025-01-27 20:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343975', 'tblTempUsageDetail_20' ) end [2025-01-27 20:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343975', 'tblTempVendorCDR_20' ) start [2025-01-27 20:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343975', 'tblTempVendorCDR_20' ) end [2025-01-27 20:05:23] Production.INFO: ProcessCDR(1,14343975,1,1,2) [2025-01-27 20:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343975', 'tblTempUsageDetail_20' ) start [2025-01-27 20:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343975', 'tblTempUsageDetail_20' ) end [2025-01-27 20:05:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:05:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:05:28] Production.INFO: ==19451== Releasing lock... [2025-01-27 20:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:05:28] Production.INFO: 49.25 MB #Memory Used# [2025-01-27 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:06:05 [end_date_ymd] => 2025-01-27 20:06:05 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:06:05' and `end` < '2025-01-27 20: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-01-27 20:06:18] Production.INFO: count ==2804 [2025-01-27 20:06:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:06:05 - End Time 2025-01-27 20:06:05 [2025-01-27 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343980', 'tblTempUsageDetail_20' ) start [2025-01-27 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343980', 'tblTempUsageDetail_20' ) end [2025-01-27 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343980', 'tblTempVendorCDR_20' ) start [2025-01-27 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343980', 'tblTempVendorCDR_20' ) end [2025-01-27 20:06:19] Production.INFO: ProcessCDR(1,14343980,1,1,2) [2025-01-27 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343980', 'tblTempUsageDetail_20' ) start [2025-01-27 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343980', 'tblTempUsageDetail_20' ) end [2025-01-27 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:06:23] Production.INFO: ==19533== Releasing lock... [2025-01-27 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:06:23] Production.INFO: 49 MB #Memory Used# [2025-01-27 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:07:05 [end_date_ymd] => 2025-01-27 20:07:05 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:07:05' and `end` < '2025-01-27 20: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-01-27 20:07:18] Production.INFO: count ==2796 [2025-01-27 20:07:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:07:05 - End Time 2025-01-27 20:07:05 [2025-01-27 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343985', 'tblTempUsageDetail_20' ) start [2025-01-27 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343985', 'tblTempUsageDetail_20' ) end [2025-01-27 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343985', 'tblTempVendorCDR_20' ) start [2025-01-27 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343985', 'tblTempVendorCDR_20' ) end [2025-01-27 20:07:19] Production.INFO: ProcessCDR(1,14343985,1,1,2) [2025-01-27 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343985', 'tblTempUsageDetail_20' ) start [2025-01-27 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343985', 'tblTempUsageDetail_20' ) end [2025-01-27 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:07:23] Production.INFO: ==19650== Releasing lock... [2025-01-27 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:07:23] Production.INFO: 49 MB #Memory Used# [2025-01-27 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:08:05 [end_date_ymd] => 2025-01-27 20:08:05 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:08:05' and `end` < '2025-01-27 20: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-01-27 20:08:18] Production.INFO: count ==2788 [2025-01-27 20:08:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:08:05 - End Time 2025-01-27 20:08:05 [2025-01-27 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343990', 'tblTempUsageDetail_20' ) start [2025-01-27 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343990', 'tblTempUsageDetail_20' ) end [2025-01-27 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343990', 'tblTempVendorCDR_20' ) start [2025-01-27 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343990', 'tblTempVendorCDR_20' ) end [2025-01-27 20:08:19] Production.INFO: ProcessCDR(1,14343990,1,1,2) [2025-01-27 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343990', 'tblTempUsageDetail_20' ) start [2025-01-27 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343990', 'tblTempUsageDetail_20' ) end [2025-01-27 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:08:23] Production.INFO: ==19732== Releasing lock... [2025-01-27 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:08:23] Production.INFO: 49 MB #Memory Used# [2025-01-27 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:09:05 [end_date_ymd] => 2025-01-27 20:09:05 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:09:05' and `end` < '2025-01-27 20: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-01-27 20:09:20] Production.INFO: count ==2783 [2025-01-27 20:09:21] Production.ERROR: pbx CDR StartTime 2025-01-27 17:09:05 - End Time 2025-01-27 20:09:05 [2025-01-27 20:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343994', 'tblTempUsageDetail_20' ) start [2025-01-27 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14343994', 'tblTempUsageDetail_20' ) end [2025-01-27 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343994', 'tblTempVendorCDR_20' ) start [2025-01-27 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14343994', 'tblTempVendorCDR_20' ) end [2025-01-27 20:09:21] Production.INFO: ProcessCDR(1,14343994,1,1,2) [2025-01-27 20:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14343994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14343994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14343994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14343994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343994', 'tblTempUsageDetail_20' ) start [2025-01-27 20:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14343994', 'tblTempUsageDetail_20' ) end [2025-01-27 20:09:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:09:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:09:26] Production.INFO: ==19814== Releasing lock... [2025-01-27 20:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:09:26] Production.INFO: 49 MB #Memory Used# [2025-01-27 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:10:06 [end_date_ymd] => 2025-01-27 20:10:06 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:10:06' and `end` < '2025-01-27 20: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-01-27 20:10:19] Production.INFO: count ==2760 [2025-01-27 20:10:20] Production.ERROR: pbx CDR StartTime 2025-01-27 17:10:06 - End Time 2025-01-27 20:10:06 [2025-01-27 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344001', 'tblTempUsageDetail_20' ) start [2025-01-27 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344001', 'tblTempUsageDetail_20' ) end [2025-01-27 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344001', 'tblTempVendorCDR_20' ) start [2025-01-27 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344001', 'tblTempVendorCDR_20' ) end [2025-01-27 20:10:20] Production.INFO: ProcessCDR(1,14344001,1,1,2) [2025-01-27 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344001', 'tblTempUsageDetail_20' ) start [2025-01-27 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344001', 'tblTempUsageDetail_20' ) end [2025-01-27 20:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:10:25] Production.INFO: ==19893== Releasing lock... [2025-01-27 20:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:10:25] Production.INFO: 48.75 MB #Memory Used# [2025-01-27 20:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:11:06 [end_date_ymd] => 2025-01-27 20:11:06 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:11:06' and `end` < '2025-01-27 20: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-01-27 20:11:19] Production.INFO: count ==2663 [2025-01-27 20:11:20] Production.ERROR: pbx CDR StartTime 2025-01-27 17:11:06 - End Time 2025-01-27 20:11:06 [2025-01-27 20:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344006', 'tblTempUsageDetail_20' ) start [2025-01-27 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344006', 'tblTempUsageDetail_20' ) end [2025-01-27 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344006', 'tblTempVendorCDR_20' ) start [2025-01-27 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344006', 'tblTempVendorCDR_20' ) end [2025-01-27 20:11:20] Production.INFO: ProcessCDR(1,14344006,1,1,2) [2025-01-27 20:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344006', 'tblTempUsageDetail_20' ) start [2025-01-27 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344006', 'tblTempUsageDetail_20' ) end [2025-01-27 20:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:11:24] Production.INFO: ==19983== Releasing lock... [2025-01-27 20:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:11:24] Production.INFO: 48 MB #Memory Used# [2025-01-27 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:12:06 [end_date_ymd] => 2025-01-27 20:12:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:12:06' and `end` < '2025-01-27 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-01-27 20:12:18] Production.INFO: count ==2659 [2025-01-27 20:12:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:12:06 - End Time 2025-01-27 20:12:06 [2025-01-27 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344011', 'tblTempUsageDetail_20' ) start [2025-01-27 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344011', 'tblTempUsageDetail_20' ) end [2025-01-27 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344011', 'tblTempVendorCDR_20' ) start [2025-01-27 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344011', 'tblTempVendorCDR_20' ) end [2025-01-27 20:12:19] Production.INFO: ProcessCDR(1,14344011,1,1,2) [2025-01-27 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344011', 'tblTempUsageDetail_20' ) start [2025-01-27 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344011', 'tblTempUsageDetail_20' ) end [2025-01-27 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:12:23] Production.INFO: ==20059== Releasing lock... [2025-01-27 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:12:23] Production.INFO: 48 MB #Memory Used# [2025-01-27 20:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:13:06 [end_date_ymd] => 2025-01-27 20:13:06 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:13:06' and `end` < '2025-01-27 20: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-01-27 20:13:20] Production.INFO: count ==2650 [2025-01-27 20:13:21] Production.ERROR: pbx CDR StartTime 2025-01-27 17:13:06 - End Time 2025-01-27 20:13:06 [2025-01-27 20:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344016', 'tblTempUsageDetail_20' ) start [2025-01-27 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344016', 'tblTempUsageDetail_20' ) end [2025-01-27 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344016', 'tblTempVendorCDR_20' ) start [2025-01-27 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344016', 'tblTempVendorCDR_20' ) end [2025-01-27 20:13:21] Production.INFO: ProcessCDR(1,14344016,1,1,2) [2025-01-27 20:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344016', 'tblTempUsageDetail_20' ) start [2025-01-27 20:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344016', 'tblTempUsageDetail_20' ) end [2025-01-27 20:13:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:13:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:13:26] Production.INFO: ==20146== Releasing lock... [2025-01-27 20:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:13:26] Production.INFO: 48 MB #Memory Used# [2025-01-27 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:14:05 [end_date_ymd] => 2025-01-27 20:14:05 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:14:05' and `end` < '2025-01-27 20: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-01-27 20:14:18] Production.INFO: count ==2650 [2025-01-27 20:14:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:14:05 - End Time 2025-01-27 20:14:05 [2025-01-27 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344021', 'tblTempUsageDetail_20' ) start [2025-01-27 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344021', 'tblTempUsageDetail_20' ) end [2025-01-27 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344021', 'tblTempVendorCDR_20' ) start [2025-01-27 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344021', 'tblTempVendorCDR_20' ) end [2025-01-27 20:14:19] Production.INFO: ProcessCDR(1,14344021,1,1,2) [2025-01-27 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344021', 'tblTempUsageDetail_20' ) start [2025-01-27 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344021', 'tblTempUsageDetail_20' ) end [2025-01-27 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:14:24] Production.INFO: ==20236== Releasing lock... [2025-01-27 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:14:24] Production.INFO: 48 MB #Memory Used# [2025-01-27 20:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:15:06 [end_date_ymd] => 2025-01-27 20:15:06 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:15:06' and `end` < '2025-01-27 20: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-01-27 20:15:19] Production.INFO: count ==2637 [2025-01-27 20:15:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:15:06 - End Time 2025-01-27 20:15:06 [2025-01-27 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344026', 'tblTempUsageDetail_20' ) start [2025-01-27 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344026', 'tblTempUsageDetail_20' ) end [2025-01-27 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344026', 'tblTempVendorCDR_20' ) start [2025-01-27 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344026', 'tblTempVendorCDR_20' ) end [2025-01-27 20:15:19] Production.INFO: ProcessCDR(1,14344026,1,1,2) [2025-01-27 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344026', 'tblTempUsageDetail_20' ) start [2025-01-27 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344026', 'tblTempUsageDetail_20' ) end [2025-01-27 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:15:23] Production.INFO: ==20343== Releasing lock... [2025-01-27 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:15:23] Production.INFO: 47.75 MB #Memory Used# [2025-01-27 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:16:05 [end_date_ymd] => 2025-01-27 20:16:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:16:05' and `end` < '2025-01-27 20: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-01-27 20:16:18] Production.INFO: count ==2609 [2025-01-27 20:16:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:16:05 - End Time 2025-01-27 20:16:05 [2025-01-27 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344031', 'tblTempUsageDetail_20' ) start [2025-01-27 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344031', 'tblTempUsageDetail_20' ) end [2025-01-27 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344031', 'tblTempVendorCDR_20' ) start [2025-01-27 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344031', 'tblTempVendorCDR_20' ) end [2025-01-27 20:16:19] Production.INFO: ProcessCDR(1,14344031,1,1,2) [2025-01-27 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344031', 'tblTempUsageDetail_20' ) start [2025-01-27 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344031', 'tblTempUsageDetail_20' ) end [2025-01-27 20:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:16:24] Production.INFO: ==20444== Releasing lock... [2025-01-27 20:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:16:24] Production.INFO: 48 MB #Memory Used# [2025-01-27 20:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:17:06 [end_date_ymd] => 2025-01-27 20:17:06 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:17:06' and `end` < '2025-01-27 20: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-01-27 20:17:19] Production.INFO: count ==2602 [2025-01-27 20:17:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:17:06 - End Time 2025-01-27 20:17:06 [2025-01-27 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344036', 'tblTempUsageDetail_20' ) start [2025-01-27 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344036', 'tblTempUsageDetail_20' ) end [2025-01-27 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344036', 'tblTempVendorCDR_20' ) start [2025-01-27 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344036', 'tblTempVendorCDR_20' ) end [2025-01-27 20:17:19] Production.INFO: ProcessCDR(1,14344036,1,1,2) [2025-01-27 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344036', 'tblTempUsageDetail_20' ) start [2025-01-27 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344036', 'tblTempUsageDetail_20' ) end [2025-01-27 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:17:23] Production.INFO: ==20552== Releasing lock... [2025-01-27 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:17:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-27 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:18:06 [end_date_ymd] => 2025-01-27 20:18:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:18:06' and `end` < '2025-01-27 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-01-27 20:18:19] Production.INFO: count ==2595 [2025-01-27 20:18:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:18:06 - End Time 2025-01-27 20:18:06 [2025-01-27 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344041', 'tblTempUsageDetail_20' ) start [2025-01-27 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344041', 'tblTempUsageDetail_20' ) end [2025-01-27 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344041', 'tblTempVendorCDR_20' ) start [2025-01-27 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344041', 'tblTempVendorCDR_20' ) end [2025-01-27 20:18:19] Production.INFO: ProcessCDR(1,14344041,1,1,2) [2025-01-27 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344041', 'tblTempUsageDetail_20' ) start [2025-01-27 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344041', 'tblTempUsageDetail_20' ) end [2025-01-27 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:18:23] Production.INFO: ==20670== Releasing lock... [2025-01-27 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:18:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-27 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:19:05 [end_date_ymd] => 2025-01-27 20:19:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:19:05' and `end` < '2025-01-27 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-01-27 20:19:18] Production.INFO: count ==2584 [2025-01-27 20:19:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:19:05 - End Time 2025-01-27 20:19:05 [2025-01-27 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344046', 'tblTempUsageDetail_20' ) start [2025-01-27 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344046', 'tblTempUsageDetail_20' ) end [2025-01-27 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344046', 'tblTempVendorCDR_20' ) start [2025-01-27 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344046', 'tblTempVendorCDR_20' ) end [2025-01-27 20:19:19] Production.INFO: ProcessCDR(1,14344046,1,1,2) [2025-01-27 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344046', 'tblTempUsageDetail_20' ) start [2025-01-27 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344046', 'tblTempUsageDetail_20' ) end [2025-01-27 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:19:22] Production.INFO: ==20782== Releasing lock... [2025-01-27 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:19:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-27 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:20:06 [end_date_ymd] => 2025-01-27 20:20:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:20:06' and `end` < '2025-01-27 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-01-27 20:20:23] Production.INFO: count ==2575 [2025-01-27 20:20:24] Production.ERROR: pbx CDR StartTime 2025-01-27 17:20:06 - End Time 2025-01-27 20:20:06 [2025-01-27 20:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344052', 'tblTempUsageDetail_20' ) start [2025-01-27 20:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344052', 'tblTempUsageDetail_20' ) end [2025-01-27 20:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344052', 'tblTempVendorCDR_20' ) start [2025-01-27 20:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344052', 'tblTempVendorCDR_20' ) end [2025-01-27 20:20:24] Production.INFO: ProcessCDR(1,14344052,1,1,2) [2025-01-27 20:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344052', 'tblTempUsageDetail_20' ) start [2025-01-27 20:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344052', 'tblTempUsageDetail_20' ) end [2025-01-27 20:20:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:20:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:20:28] Production.INFO: ==20891== Releasing lock... [2025-01-27 20:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:20:28] Production.INFO: 47.25 MB #Memory Used# [2025-01-27 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:21:06 [end_date_ymd] => 2025-01-27 20:21:06 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:21:06' and `end` < '2025-01-27 20: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-01-27 20:21:19] Production.INFO: count ==2466 [2025-01-27 20:21:20] Production.ERROR: pbx CDR StartTime 2025-01-27 17:21:06 - End Time 2025-01-27 20:21:06 [2025-01-27 20:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344057', 'tblTempUsageDetail_20' ) start [2025-01-27 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344057', 'tblTempUsageDetail_20' ) end [2025-01-27 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344057', 'tblTempVendorCDR_20' ) start [2025-01-27 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344057', 'tblTempVendorCDR_20' ) end [2025-01-27 20:21:20] Production.INFO: ProcessCDR(1,14344057,1,1,2) [2025-01-27 20:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344057', 'tblTempUsageDetail_20' ) start [2025-01-27 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344057', 'tblTempUsageDetail_20' ) end [2025-01-27 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:21:23] Production.INFO: ==21000== Releasing lock... [2025-01-27 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:21:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-27 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:22:06 [end_date_ymd] => 2025-01-27 20:22:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:22:06' and `end` < '2025-01-27 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-01-27 20:22:19] Production.INFO: count ==2451 [2025-01-27 20:22:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:22:06 - End Time 2025-01-27 20:22:06 [2025-01-27 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344062', 'tblTempUsageDetail_20' ) start [2025-01-27 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344062', 'tblTempUsageDetail_20' ) end [2025-01-27 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344062', 'tblTempVendorCDR_20' ) start [2025-01-27 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344062', 'tblTempVendorCDR_20' ) end [2025-01-27 20:22:19] Production.INFO: ProcessCDR(1,14344062,1,1,2) [2025-01-27 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344062', 'tblTempUsageDetail_20' ) start [2025-01-27 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344062', 'tblTempUsageDetail_20' ) end [2025-01-27 20:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:22:23] Production.INFO: ==21150== Releasing lock... [2025-01-27 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:22:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-27 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:23:05 [end_date_ymd] => 2025-01-27 20:23:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:23:05' and `end` < '2025-01-27 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-01-27 20:23:19] Production.INFO: count ==2441 [2025-01-27 20:23:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:23:05 - End Time 2025-01-27 20:23:05 [2025-01-27 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344067', 'tblTempUsageDetail_20' ) start [2025-01-27 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344067', 'tblTempUsageDetail_20' ) end [2025-01-27 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344067', 'tblTempVendorCDR_20' ) start [2025-01-27 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344067', 'tblTempVendorCDR_20' ) end [2025-01-27 20:23:20] Production.INFO: ProcessCDR(1,14344067,1,1,2) [2025-01-27 20:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344067', 'tblTempUsageDetail_20' ) start [2025-01-27 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344067', 'tblTempUsageDetail_20' ) end [2025-01-27 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:23:23] Production.INFO: ==21261== Releasing lock... [2025-01-27 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:23:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-27 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:24:06 [end_date_ymd] => 2025-01-27 20:24:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:24:06' and `end` < '2025-01-27 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-01-27 20:24:18] Production.INFO: count ==2431 [2025-01-27 20:24:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:24:06 - End Time 2025-01-27 20:24:06 [2025-01-27 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344072', 'tblTempUsageDetail_20' ) start [2025-01-27 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344072', 'tblTempUsageDetail_20' ) end [2025-01-27 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344072', 'tblTempVendorCDR_20' ) start [2025-01-27 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344072', 'tblTempVendorCDR_20' ) end [2025-01-27 20:24:19] Production.INFO: ProcessCDR(1,14344072,1,1,2) [2025-01-27 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344072', 'tblTempUsageDetail_20' ) start [2025-01-27 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344072', 'tblTempUsageDetail_20' ) end [2025-01-27 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:24:22] Production.INFO: ==21375== Releasing lock... [2025-01-27 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:24:22] Production.INFO: 46 MB #Memory Used# [2025-01-27 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:25:06 [end_date_ymd] => 2025-01-27 20:25:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:25:06' and `end` < '2025-01-27 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-01-27 20:25:19] Production.INFO: count ==2409 [2025-01-27 20:25:20] Production.ERROR: pbx CDR StartTime 2025-01-27 17:25:06 - End Time 2025-01-27 20:25:06 [2025-01-27 20:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344077', 'tblTempUsageDetail_20' ) start [2025-01-27 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344077', 'tblTempUsageDetail_20' ) end [2025-01-27 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344077', 'tblTempVendorCDR_20' ) start [2025-01-27 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344077', 'tblTempVendorCDR_20' ) end [2025-01-27 20:25:20] Production.INFO: ProcessCDR(1,14344077,1,1,2) [2025-01-27 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344077', 'tblTempUsageDetail_20' ) start [2025-01-27 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344077', 'tblTempUsageDetail_20' ) end [2025-01-27 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:25:23] Production.INFO: ==21482== Releasing lock... [2025-01-27 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:25:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-27 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:26:06 [end_date_ymd] => 2025-01-27 20:26:06 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:26:06' and `end` < '2025-01-27 20: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-01-27 20:26:20] Production.INFO: count ==2400 [2025-01-27 20:26:20] Production.ERROR: pbx CDR StartTime 2025-01-27 17:26:06 - End Time 2025-01-27 20:26:06 [2025-01-27 20:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344082', 'tblTempUsageDetail_20' ) start [2025-01-27 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344082', 'tblTempUsageDetail_20' ) end [2025-01-27 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344082', 'tblTempVendorCDR_20' ) start [2025-01-27 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344082', 'tblTempVendorCDR_20' ) end [2025-01-27 20:26:20] Production.INFO: ProcessCDR(1,14344082,1,1,2) [2025-01-27 20:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344082', 'tblTempUsageDetail_20' ) start [2025-01-27 20:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344082', 'tblTempUsageDetail_20' ) end [2025-01-27 20:26:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:26:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:26:25] Production.INFO: ==21591== Releasing lock... [2025-01-27 20:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:26:25] Production.INFO: 45.75 MB #Memory Used# [2025-01-27 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:27:05 [end_date_ymd] => 2025-01-27 20:27:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:27:05' and `end` < '2025-01-27 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-01-27 20:27:18] Production.INFO: count ==2392 [2025-01-27 20:27:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:27:05 - End Time 2025-01-27 20:27:05 [2025-01-27 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344087', 'tblTempUsageDetail_20' ) start [2025-01-27 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344087', 'tblTempUsageDetail_20' ) end [2025-01-27 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344087', 'tblTempVendorCDR_20' ) start [2025-01-27 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344087', 'tblTempVendorCDR_20' ) end [2025-01-27 20:27:19] Production.INFO: ProcessCDR(1,14344087,1,1,2) [2025-01-27 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344087', 'tblTempUsageDetail_20' ) start [2025-01-27 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344087', 'tblTempUsageDetail_20' ) end [2025-01-27 20:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:27:24] Production.INFO: ==21696== Releasing lock... [2025-01-27 20:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:27:24] Production.INFO: 45.75 MB #Memory Used# [2025-01-27 20:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:28:06 [end_date_ymd] => 2025-01-27 20:28:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:28:06' and `end` < '2025-01-27 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-01-27 20:28:21] Production.INFO: count ==2374 [2025-01-27 20:28:21] Production.ERROR: pbx CDR StartTime 2025-01-27 17:28:06 - End Time 2025-01-27 20:28:06 [2025-01-27 20:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344092', 'tblTempUsageDetail_20' ) start [2025-01-27 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344092', 'tblTempUsageDetail_20' ) end [2025-01-27 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344092', 'tblTempVendorCDR_20' ) start [2025-01-27 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344092', 'tblTempVendorCDR_20' ) end [2025-01-27 20:28:21] Production.INFO: ProcessCDR(1,14344092,1,1,2) [2025-01-27 20:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344092', 'tblTempUsageDetail_20' ) start [2025-01-27 20:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344092', 'tblTempUsageDetail_20' ) end [2025-01-27 20:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:28:26] Production.INFO: ==21801== Releasing lock... [2025-01-27 20:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:28:26] Production.INFO: 45.75 MB #Memory Used# [2025-01-27 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:29:05 [end_date_ymd] => 2025-01-27 20:29:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:29:05' and `end` < '2025-01-27 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-01-27 20:29:18] Production.INFO: count ==2363 [2025-01-27 20:29:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:29:05 - End Time 2025-01-27 20:29:05 [2025-01-27 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344097', 'tblTempUsageDetail_20' ) start [2025-01-27 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344097', 'tblTempUsageDetail_20' ) end [2025-01-27 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344097', 'tblTempVendorCDR_20' ) start [2025-01-27 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344097', 'tblTempVendorCDR_20' ) end [2025-01-27 20:29:19] Production.INFO: ProcessCDR(1,14344097,1,1,2) [2025-01-27 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344097', 'tblTempUsageDetail_20' ) start [2025-01-27 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344097', 'tblTempUsageDetail_20' ) end [2025-01-27 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:29:22] Production.INFO: ==21910== Releasing lock... [2025-01-27 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:29:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-27 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:30:06 [end_date_ymd] => 2025-01-27 20:30:06 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:30:06' and `end` < '2025-01-27 20: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-01-27 20:30:19] Production.INFO: count ==2346 [2025-01-27 20:30:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:30:06 - End Time 2025-01-27 20:30:06 [2025-01-27 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344103', 'tblTempUsageDetail_20' ) start [2025-01-27 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344103', 'tblTempUsageDetail_20' ) end [2025-01-27 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344103', 'tblTempVendorCDR_20' ) start [2025-01-27 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344103', 'tblTempVendorCDR_20' ) end [2025-01-27 20:30:19] Production.INFO: ProcessCDR(1,14344103,1,1,2) [2025-01-27 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344103', 'tblTempUsageDetail_20' ) start [2025-01-27 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344103', 'tblTempUsageDetail_20' ) end [2025-01-27 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:30:23] Production.INFO: ==22018== Releasing lock... [2025-01-27 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:30:23] Production.INFO: 45.5 MB #Memory Used# [2025-01-27 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:31:06 [end_date_ymd] => 2025-01-27 20:31:06 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:31:06' and `end` < '2025-01-27 20: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-01-27 20:31:19] Production.INFO: count ==2187 [2025-01-27 20:31:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:31:06 - End Time 2025-01-27 20:31:06 [2025-01-27 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344108', 'tblTempUsageDetail_20' ) start [2025-01-27 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344108', 'tblTempUsageDetail_20' ) end [2025-01-27 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344108', 'tblTempVendorCDR_20' ) start [2025-01-27 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344108', 'tblTempVendorCDR_20' ) end [2025-01-27 20:31:19] Production.INFO: ProcessCDR(1,14344108,1,1,2) [2025-01-27 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344108', 'tblTempUsageDetail_20' ) start [2025-01-27 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344108', 'tblTempUsageDetail_20' ) end [2025-01-27 20:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:31:24] Production.INFO: ==22124== Releasing lock... [2025-01-27 20:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:31:24] Production.INFO: 44.25 MB #Memory Used# [2025-01-27 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:32:06 [end_date_ymd] => 2025-01-27 20:32:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:32:06' and `end` < '2025-01-27 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-01-27 20:32:18] Production.INFO: count ==2183 [2025-01-27 20:32:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:32:06 - End Time 2025-01-27 20:32:06 [2025-01-27 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344113', 'tblTempUsageDetail_20' ) start [2025-01-27 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344113', 'tblTempUsageDetail_20' ) end [2025-01-27 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344113', 'tblTempVendorCDR_20' ) start [2025-01-27 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344113', 'tblTempVendorCDR_20' ) end [2025-01-27 20:32:19] Production.INFO: ProcessCDR(1,14344113,1,1,2) [2025-01-27 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344113', 'tblTempUsageDetail_20' ) start [2025-01-27 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344113', 'tblTempUsageDetail_20' ) end [2025-01-27 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:32:23] Production.INFO: ==22222== Releasing lock... [2025-01-27 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:32:23] Production.INFO: 44.25 MB #Memory Used# [2025-01-27 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:33:05 [end_date_ymd] => 2025-01-27 20:33:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:33:05' and `end` < '2025-01-27 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-01-27 20:33:18] Production.INFO: count ==2163 [2025-01-27 20:33:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:33:05 - End Time 2025-01-27 20:33:05 [2025-01-27 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344118', 'tblTempUsageDetail_20' ) start [2025-01-27 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344118', 'tblTempUsageDetail_20' ) end [2025-01-27 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344118', 'tblTempVendorCDR_20' ) start [2025-01-27 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344118', 'tblTempVendorCDR_20' ) end [2025-01-27 20:33:19] Production.INFO: ProcessCDR(1,14344118,1,1,2) [2025-01-27 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344118', 'tblTempUsageDetail_20' ) start [2025-01-27 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344118', 'tblTempUsageDetail_20' ) end [2025-01-27 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:33:22] Production.INFO: ==22310== Releasing lock... [2025-01-27 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:33:22] Production.INFO: 44.25 MB #Memory Used# [2025-01-27 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:34:05 [end_date_ymd] => 2025-01-27 20:34:05 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:34:05' and `end` < '2025-01-27 20: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-01-27 20:34:20] Production.INFO: count ==2155 [2025-01-27 20:34:20] Production.ERROR: pbx CDR StartTime 2025-01-27 17:34:05 - End Time 2025-01-27 20:34:05 [2025-01-27 20:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344123', 'tblTempUsageDetail_20' ) start [2025-01-27 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344123', 'tblTempUsageDetail_20' ) end [2025-01-27 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344123', 'tblTempVendorCDR_20' ) start [2025-01-27 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344123', 'tblTempVendorCDR_20' ) end [2025-01-27 20:34:20] Production.INFO: ProcessCDR(1,14344123,1,1,2) [2025-01-27 20:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344123', 'tblTempUsageDetail_20' ) start [2025-01-27 20:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344123', 'tblTempUsageDetail_20' ) end [2025-01-27 20:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:34:25] Production.INFO: ==22383== Releasing lock... [2025-01-27 20:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:34:25] Production.INFO: 44 MB #Memory Used# [2025-01-27 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:35:06 [end_date_ymd] => 2025-01-27 20:35:06 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:35:06' and `end` < '2025-01-27 20: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-01-27 20:35:19] Production.INFO: count ==2143 [2025-01-27 20:35:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:35:06 - End Time 2025-01-27 20:35:06 [2025-01-27 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344128', 'tblTempUsageDetail_20' ) start [2025-01-27 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344128', 'tblTempUsageDetail_20' ) end [2025-01-27 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344128', 'tblTempVendorCDR_20' ) start [2025-01-27 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344128', 'tblTempVendorCDR_20' ) end [2025-01-27 20:35:19] Production.INFO: ProcessCDR(1,14344128,1,1,2) [2025-01-27 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344128', 'tblTempUsageDetail_20' ) start [2025-01-27 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344128', 'tblTempUsageDetail_20' ) end [2025-01-27 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:35:23] Production.INFO: ==22461== Releasing lock... [2025-01-27 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:35:23] Production.INFO: 44.25 MB #Memory Used# [2025-01-27 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:36:05 [end_date_ymd] => 2025-01-27 20:36:05 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:36:05' and `end` < '2025-01-27 20: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-01-27 20:36:18] Production.INFO: count ==2112 [2025-01-27 20:36:18] Production.ERROR: pbx CDR StartTime 2025-01-27 17:36:05 - End Time 2025-01-27 20:36:05 [2025-01-27 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344133', 'tblTempUsageDetail_20' ) start [2025-01-27 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344133', 'tblTempUsageDetail_20' ) end [2025-01-27 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344133', 'tblTempVendorCDR_20' ) start [2025-01-27 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344133', 'tblTempVendorCDR_20' ) end [2025-01-27 20:36:18] Production.INFO: ProcessCDR(1,14344133,1,1,2) [2025-01-27 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344133', 'tblTempUsageDetail_20' ) start [2025-01-27 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344133', 'tblTempUsageDetail_20' ) end [2025-01-27 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:36:22] Production.INFO: ==22535== Releasing lock... [2025-01-27 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:36:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-27 20:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:37:06 [end_date_ymd] => 2025-01-27 20:37:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:37:06' and `end` < '2025-01-27 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-01-27 20:37:19] Production.INFO: count ==2110 [2025-01-27 20:37:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:37:06 - End Time 2025-01-27 20:37:06 [2025-01-27 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344138', 'tblTempUsageDetail_20' ) start [2025-01-27 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344138', 'tblTempUsageDetail_20' ) end [2025-01-27 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344138', 'tblTempVendorCDR_20' ) start [2025-01-27 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344138', 'tblTempVendorCDR_20' ) end [2025-01-27 20:37:19] Production.INFO: ProcessCDR(1,14344138,1,1,2) [2025-01-27 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344138', 'tblTempUsageDetail_20' ) start [2025-01-27 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344138', 'tblTempUsageDetail_20' ) end [2025-01-27 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:37:23] Production.INFO: ==22604== Releasing lock... [2025-01-27 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:37:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-27 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:38:05 [end_date_ymd] => 2025-01-27 20:38:05 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:38:05' and `end` < '2025-01-27 20: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-01-27 20:38:20] Production.INFO: count ==2106 [2025-01-27 20:38:20] Production.ERROR: pbx CDR StartTime 2025-01-27 17:38:05 - End Time 2025-01-27 20:38:05 [2025-01-27 20:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344143', 'tblTempUsageDetail_20' ) start [2025-01-27 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344143', 'tblTempUsageDetail_20' ) end [2025-01-27 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344143', 'tblTempVendorCDR_20' ) start [2025-01-27 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344143', 'tblTempVendorCDR_20' ) end [2025-01-27 20:38:20] Production.INFO: ProcessCDR(1,14344143,1,1,2) [2025-01-27 20:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344143', 'tblTempUsageDetail_20' ) start [2025-01-27 20:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344143', 'tblTempUsageDetail_20' ) end [2025-01-27 20:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:38:25] Production.INFO: ==22719== Releasing lock... [2025-01-27 20:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:38:25] Production.INFO: 43.75 MB #Memory Used# [2025-01-27 20:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:39:06 [end_date_ymd] => 2025-01-27 20:39:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:39:06' and `end` < '2025-01-27 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-01-27 20:39:18] Production.INFO: count ==2100 [2025-01-27 20:39:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:39:06 - End Time 2025-01-27 20:39:06 [2025-01-27 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344148', 'tblTempUsageDetail_20' ) start [2025-01-27 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344148', 'tblTempUsageDetail_20' ) end [2025-01-27 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344148', 'tblTempVendorCDR_20' ) start [2025-01-27 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344148', 'tblTempVendorCDR_20' ) end [2025-01-27 20:39:19] Production.INFO: ProcessCDR(1,14344148,1,1,2) [2025-01-27 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344148', 'tblTempUsageDetail_20' ) start [2025-01-27 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344148', 'tblTempUsageDetail_20' ) end [2025-01-27 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:39:22] Production.INFO: ==22790== Releasing lock... [2025-01-27 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:39:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-27 20:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:40:07 [end_date_ymd] => 2025-01-27 20:40:07 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:40:07' and `end` < '2025-01-27 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-01-27 20:40:19] Production.INFO: count ==2094 [2025-01-27 20:40:20] Production.ERROR: pbx CDR StartTime 2025-01-27 17:40:07 - End Time 2025-01-27 20:40:07 [2025-01-27 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344154', 'tblTempUsageDetail_20' ) start [2025-01-27 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344154', 'tblTempUsageDetail_20' ) end [2025-01-27 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344154', 'tblTempVendorCDR_20' ) start [2025-01-27 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344154', 'tblTempVendorCDR_20' ) end [2025-01-27 20:40:20] Production.INFO: ProcessCDR(1,14344154,1,1,2) [2025-01-27 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344154', 'tblTempUsageDetail_20' ) start [2025-01-27 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344154', 'tblTempUsageDetail_20' ) end [2025-01-27 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:40:23] Production.INFO: ==22867== Releasing lock... [2025-01-27 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:40:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-27 20:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:41:06 [end_date_ymd] => 2025-01-27 20:41:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:41:06' and `end` < '2025-01-27 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-01-27 20:41:18] Production.INFO: count ==2054 [2025-01-27 20:41:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:41:06 - End Time 2025-01-27 20:41:06 [2025-01-27 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344159', 'tblTempUsageDetail_20' ) start [2025-01-27 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344159', 'tblTempUsageDetail_20' ) end [2025-01-27 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344159', 'tblTempVendorCDR_20' ) start [2025-01-27 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344159', 'tblTempVendorCDR_20' ) end [2025-01-27 20:41:19] Production.INFO: ProcessCDR(1,14344159,1,1,2) [2025-01-27 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344159', 'tblTempUsageDetail_20' ) start [2025-01-27 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344159', 'tblTempUsageDetail_20' ) end [2025-01-27 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:41:23] Production.INFO: ==22942== Releasing lock... [2025-01-27 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:41:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-27 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:42:05 [end_date_ymd] => 2025-01-27 20:42:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:42:05' and `end` < '2025-01-27 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-01-27 20:42:20] Production.INFO: count ==2056 [2025-01-27 20:42:20] Production.ERROR: pbx CDR StartTime 2025-01-27 17:42:05 - End Time 2025-01-27 20:42:05 [2025-01-27 20:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344164', 'tblTempUsageDetail_20' ) start [2025-01-27 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344164', 'tblTempUsageDetail_20' ) end [2025-01-27 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344164', 'tblTempVendorCDR_20' ) start [2025-01-27 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344164', 'tblTempVendorCDR_20' ) end [2025-01-27 20:42:20] Production.INFO: ProcessCDR(1,14344164,1,1,2) [2025-01-27 20:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344164', 'tblTempUsageDetail_20' ) start [2025-01-27 20:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344164', 'tblTempUsageDetail_20' ) end [2025-01-27 20:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:42:25] Production.INFO: ==23035== Releasing lock... [2025-01-27 20:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:42:25] Production.INFO: 43.25 MB #Memory Used# [2025-01-27 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:43:05 [end_date_ymd] => 2025-01-27 20:43:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:43:05' and `end` < '2025-01-27 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-01-27 20:43:22] Production.INFO: count ==2044 [2025-01-27 20:43:22] Production.ERROR: pbx CDR StartTime 2025-01-27 17:43:05 - End Time 2025-01-27 20:43:05 [2025-01-27 20:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344169', 'tblTempUsageDetail_20' ) start [2025-01-27 20:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344169', 'tblTempUsageDetail_20' ) end [2025-01-27 20:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344169', 'tblTempVendorCDR_20' ) start [2025-01-27 20:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344169', 'tblTempVendorCDR_20' ) end [2025-01-27 20:43:22] Production.INFO: ProcessCDR(1,14344169,1,1,2) [2025-01-27 20:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344169', 'tblTempUsageDetail_20' ) start [2025-01-27 20:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344169', 'tblTempUsageDetail_20' ) end [2025-01-27 20:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:43:26] Production.INFO: ==23108== Releasing lock... [2025-01-27 20:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:43:26] Production.INFO: 43.25 MB #Memory Used# [2025-01-27 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:44:05 [end_date_ymd] => 2025-01-27 20:44:05 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:44:05' and `end` < '2025-01-27 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-01-27 20:44:23] Production.INFO: count ==2029 [2025-01-27 20:44:24] Production.ERROR: pbx CDR StartTime 2025-01-27 17:44:05 - End Time 2025-01-27 20:44:05 [2025-01-27 20:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344174', 'tblTempUsageDetail_20' ) start [2025-01-27 20:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344174', 'tblTempUsageDetail_20' ) end [2025-01-27 20:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344174', 'tblTempVendorCDR_20' ) start [2025-01-27 20:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344174', 'tblTempVendorCDR_20' ) end [2025-01-27 20:44:24] Production.INFO: ProcessCDR(1,14344174,1,1,2) [2025-01-27 20:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344174', 'tblTempUsageDetail_20' ) start [2025-01-27 20:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344174', 'tblTempUsageDetail_20' ) end [2025-01-27 20:44:27] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:44:27] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:44:27] Production.INFO: ==23178== Releasing lock... [2025-01-27 20:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:44:27] Production.INFO: 43 MB #Memory Used# [2025-01-27 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:45:05 [end_date_ymd] => 2025-01-27 20:45:05 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:45:05' and `end` < '2025-01-27 20: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-01-27 20:45:18] Production.INFO: count ==2022 [2025-01-27 20:45:18] Production.ERROR: pbx CDR StartTime 2025-01-27 17:45:05 - End Time 2025-01-27 20:45:05 [2025-01-27 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344179', 'tblTempUsageDetail_20' ) start [2025-01-27 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344179', 'tblTempUsageDetail_20' ) end [2025-01-27 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344179', 'tblTempVendorCDR_20' ) start [2025-01-27 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344179', 'tblTempVendorCDR_20' ) end [2025-01-27 20:45:18] Production.INFO: ProcessCDR(1,14344179,1,1,2) [2025-01-27 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344179', 'tblTempUsageDetail_20' ) start [2025-01-27 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344179', 'tblTempUsageDetail_20' ) end [2025-01-27 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:45:22] Production.INFO: ==23267== Releasing lock... [2025-01-27 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:45:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-27 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:46:06 [end_date_ymd] => 2025-01-27 20:46:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:46:06' and `end` < '2025-01-27 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-01-27 20:46:18] Production.INFO: count ==2013 [2025-01-27 20:46:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:46:06 - End Time 2025-01-27 20:46:06 [2025-01-27 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344184', 'tblTempUsageDetail_20' ) start [2025-01-27 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344184', 'tblTempUsageDetail_20' ) end [2025-01-27 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344184', 'tblTempVendorCDR_20' ) start [2025-01-27 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344184', 'tblTempVendorCDR_20' ) end [2025-01-27 20:46:19] Production.INFO: ProcessCDR(1,14344184,1,1,2) [2025-01-27 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344184', 'tblTempUsageDetail_20' ) start [2025-01-27 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344184', 'tblTempUsageDetail_20' ) end [2025-01-27 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:46:22] Production.INFO: ==23366== Releasing lock... [2025-01-27 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:46:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-27 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:47:06 [end_date_ymd] => 2025-01-27 20:47:06 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:47:06' and `end` < '2025-01-27 20: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-01-27 20:47:19] Production.INFO: count ==2004 [2025-01-27 20:47:20] Production.ERROR: pbx CDR StartTime 2025-01-27 17:47:06 - End Time 2025-01-27 20:47:06 [2025-01-27 20:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344189', 'tblTempUsageDetail_20' ) start [2025-01-27 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344189', 'tblTempUsageDetail_20' ) end [2025-01-27 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344189', 'tblTempVendorCDR_20' ) start [2025-01-27 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344189', 'tblTempVendorCDR_20' ) end [2025-01-27 20:47:20] Production.INFO: ProcessCDR(1,14344189,1,1,2) [2025-01-27 20:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344189', 'tblTempUsageDetail_20' ) start [2025-01-27 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344189', 'tblTempUsageDetail_20' ) end [2025-01-27 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:47:23] Production.INFO: ==23472== Releasing lock... [2025-01-27 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:47:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-27 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:48:06 [end_date_ymd] => 2025-01-27 20:48:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:48:06' and `end` < '2025-01-27 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-01-27 20:48:25] Production.INFO: count ==1987 [2025-01-27 20:48:25] Production.ERROR: pbx CDR StartTime 2025-01-27 17:48:06 - End Time 2025-01-27 20:48:06 [2025-01-27 20:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344194', 'tblTempUsageDetail_20' ) start [2025-01-27 20:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344194', 'tblTempUsageDetail_20' ) end [2025-01-27 20:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344194', 'tblTempVendorCDR_20' ) start [2025-01-27 20:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344194', 'tblTempVendorCDR_20' ) end [2025-01-27 20:48:25] Production.INFO: ProcessCDR(1,14344194,1,1,2) [2025-01-27 20:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344194', 'tblTempUsageDetail_20' ) start [2025-01-27 20:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344194', 'tblTempUsageDetail_20' ) end [2025-01-27 20:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:48:30] Production.INFO: ==23565== Releasing lock... [2025-01-27 20:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:48:30] Production.INFO: 42.5 MB #Memory Used# [2025-01-27 20:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:49:04 [end_date_ymd] => 2025-01-27 20:49:04 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:49:04' and `end` < '2025-01-27 20: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-01-27 20:49:23] Production.INFO: count ==1981 [2025-01-27 20:49:23] Production.ERROR: pbx CDR StartTime 2025-01-27 17:49:04 - End Time 2025-01-27 20:49:04 [2025-01-27 20:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344199', 'tblTempUsageDetail_20' ) start [2025-01-27 20:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344199', 'tblTempUsageDetail_20' ) end [2025-01-27 20:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344199', 'tblTempVendorCDR_20' ) start [2025-01-27 20:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344199', 'tblTempVendorCDR_20' ) end [2025-01-27 20:49:23] Production.INFO: ProcessCDR(1,14344199,1,1,2) [2025-01-27 20:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344199', 'tblTempUsageDetail_20' ) start [2025-01-27 20:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344199', 'tblTempUsageDetail_20' ) end [2025-01-27 20:49:28] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:49:28] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:49:28] Production.INFO: ==23638== Releasing lock... [2025-01-27 20:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:49:28] Production.INFO: 42.5 MB #Memory Used# [2025-01-27 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:50:06 [end_date_ymd] => 2025-01-27 20:50:06 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:50:06' and `end` < '2025-01-27 20: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-01-27 20:50:19] Production.INFO: count ==1977 [2025-01-27 20:50:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:50:06 - End Time 2025-01-27 20:50:06 [2025-01-27 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344205', 'tblTempUsageDetail_20' ) start [2025-01-27 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344205', 'tblTempUsageDetail_20' ) end [2025-01-27 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344205', 'tblTempVendorCDR_20' ) start [2025-01-27 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344205', 'tblTempVendorCDR_20' ) end [2025-01-27 20:50:19] Production.INFO: ProcessCDR(1,14344205,1,1,2) [2025-01-27 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344205', 'tblTempUsageDetail_20' ) start [2025-01-27 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344205', 'tblTempUsageDetail_20' ) end [2025-01-27 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:50:23] Production.INFO: ==23714== Releasing lock... [2025-01-27 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:50:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-27 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:51:05 [end_date_ymd] => 2025-01-27 20:51:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:51:05' and `end` < '2025-01-27 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-01-27 20:51:18] Production.INFO: count ==1931 [2025-01-27 20:51:18] Production.ERROR: pbx CDR StartTime 2025-01-27 17:51:05 - End Time 2025-01-27 20:51:05 [2025-01-27 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344210', 'tblTempUsageDetail_20' ) start [2025-01-27 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344210', 'tblTempUsageDetail_20' ) end [2025-01-27 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344210', 'tblTempVendorCDR_20' ) start [2025-01-27 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344210', 'tblTempVendorCDR_20' ) end [2025-01-27 20:51:18] Production.INFO: ProcessCDR(1,14344210,1,1,2) [2025-01-27 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344210', 'tblTempUsageDetail_20' ) start [2025-01-27 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344210', 'tblTempUsageDetail_20' ) end [2025-01-27 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:51:22] Production.INFO: ==23785== Releasing lock... [2025-01-27 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:51:22] Production.INFO: 42 MB #Memory Used# [2025-01-27 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:52:05 [end_date_ymd] => 2025-01-27 20:52:05 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:52:05' and `end` < '2025-01-27 20: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-01-27 20:52:18] Production.INFO: count ==1916 [2025-01-27 20:52:18] Production.ERROR: pbx CDR StartTime 2025-01-27 17:52:05 - End Time 2025-01-27 20:52:05 [2025-01-27 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344215', 'tblTempUsageDetail_20' ) start [2025-01-27 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344215', 'tblTempUsageDetail_20' ) end [2025-01-27 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344215', 'tblTempVendorCDR_20' ) start [2025-01-27 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344215', 'tblTempVendorCDR_20' ) end [2025-01-27 20:52:18] Production.INFO: ProcessCDR(1,14344215,1,1,2) [2025-01-27 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344215', 'tblTempUsageDetail_20' ) start [2025-01-27 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344215', 'tblTempUsageDetail_20' ) end [2025-01-27 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:52:22] Production.INFO: ==23863== Releasing lock... [2025-01-27 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:52:22] Production.INFO: 42 MB #Memory Used# [2025-01-27 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:53:05 [end_date_ymd] => 2025-01-27 20:53:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:53:05' and `end` < '2025-01-27 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-01-27 20:53:20] Production.INFO: count ==1912 [2025-01-27 20:53:20] Production.ERROR: pbx CDR StartTime 2025-01-27 17:53:05 - End Time 2025-01-27 20:53:05 [2025-01-27 20:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344220', 'tblTempUsageDetail_20' ) start [2025-01-27 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344220', 'tblTempUsageDetail_20' ) end [2025-01-27 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344220', 'tblTempVendorCDR_20' ) start [2025-01-27 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344220', 'tblTempVendorCDR_20' ) end [2025-01-27 20:53:20] Production.INFO: ProcessCDR(1,14344220,1,1,2) [2025-01-27 20:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344220', 'tblTempUsageDetail_20' ) start [2025-01-27 20:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344220', 'tblTempUsageDetail_20' ) end [2025-01-27 20:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:53:25] Production.INFO: ==23976== Releasing lock... [2025-01-27 20:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:53:25] Production.INFO: 42 MB #Memory Used# [2025-01-27 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:54:05 [end_date_ymd] => 2025-01-27 20:54:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:54:05' and `end` < '2025-01-27 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-01-27 20:54:25] Production.INFO: count ==1907 [2025-01-27 20:54:26] Production.ERROR: pbx CDR StartTime 2025-01-27 17:54:05 - End Time 2025-01-27 20:54:05 [2025-01-27 20:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344225', 'tblTempUsageDetail_20' ) start [2025-01-27 20:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344225', 'tblTempUsageDetail_20' ) end [2025-01-27 20:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344225', 'tblTempVendorCDR_20' ) start [2025-01-27 20:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344225', 'tblTempVendorCDR_20' ) end [2025-01-27 20:54:26] Production.INFO: ProcessCDR(1,14344225,1,1,2) [2025-01-27 20:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344225', 'tblTempUsageDetail_20' ) start [2025-01-27 20:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344225', 'tblTempUsageDetail_20' ) end [2025-01-27 20:54:29] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:54:29] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:54:29] Production.INFO: ==24048== Releasing lock... [2025-01-27 20:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:54:29] Production.INFO: 42 MB #Memory Used# [2025-01-27 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:55:05 [end_date_ymd] => 2025-01-27 20:55:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:55:05' and `end` < '2025-01-27 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-01-27 20:55:17] Production.INFO: count ==1897 [2025-01-27 20:55:18] Production.ERROR: pbx CDR StartTime 2025-01-27 17:55:05 - End Time 2025-01-27 20:55:05 [2025-01-27 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344230', 'tblTempUsageDetail_20' ) start [2025-01-27 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344230', 'tblTempUsageDetail_20' ) end [2025-01-27 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344230', 'tblTempVendorCDR_20' ) start [2025-01-27 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344230', 'tblTempVendorCDR_20' ) end [2025-01-27 20:55:18] Production.INFO: ProcessCDR(1,14344230,1,1,2) [2025-01-27 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344230', 'tblTempUsageDetail_20' ) start [2025-01-27 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344230', 'tblTempUsageDetail_20' ) end [2025-01-27 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:55:21] Production.INFO: ==24122== Releasing lock... [2025-01-27 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:55:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-27 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:56:05 [end_date_ymd] => 2025-01-27 20:56:05 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:56:05' and `end` < '2025-01-27 20: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-01-27 20:56:18] Production.INFO: count ==1884 [2025-01-27 20:56:18] Production.ERROR: pbx CDR StartTime 2025-01-27 17:56:05 - End Time 2025-01-27 20:56:05 [2025-01-27 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344235', 'tblTempUsageDetail_20' ) start [2025-01-27 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344235', 'tblTempUsageDetail_20' ) end [2025-01-27 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344235', 'tblTempVendorCDR_20' ) start [2025-01-27 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344235', 'tblTempVendorCDR_20' ) end [2025-01-27 20:56:18] Production.INFO: ProcessCDR(1,14344235,1,1,2) [2025-01-27 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344235', 'tblTempUsageDetail_20' ) start [2025-01-27 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344235', 'tblTempUsageDetail_20' ) end [2025-01-27 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:56:22] Production.INFO: ==24193== Releasing lock... [2025-01-27 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:56:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-27 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:57:06 [end_date_ymd] => 2025-01-27 20:57:06 [RateCDR] => 1 ) [2025-01-27 20: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-01-27 17:57:06' and `end` < '2025-01-27 20: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-01-27 20:57:18] Production.INFO: count ==1877 [2025-01-27 20:57:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:57:06 - End Time 2025-01-27 20:57:06 [2025-01-27 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344240', 'tblTempUsageDetail_20' ) start [2025-01-27 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344240', 'tblTempUsageDetail_20' ) end [2025-01-27 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344240', 'tblTempVendorCDR_20' ) start [2025-01-27 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344240', 'tblTempVendorCDR_20' ) end [2025-01-27 20:57:19] Production.INFO: ProcessCDR(1,14344240,1,1,2) [2025-01-27 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344240', 'tblTempUsageDetail_20' ) start [2025-01-27 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344240', 'tblTempUsageDetail_20' ) end [2025-01-27 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:57:22] Production.INFO: ==24267== Releasing lock... [2025-01-27 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:57:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-27 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:58:05 [end_date_ymd] => 2025-01-27 20:58:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:58:05' and `end` < '2025-01-27 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-01-27 20:58:19] Production.INFO: count ==1870 [2025-01-27 20:58:20] Production.ERROR: pbx CDR StartTime 2025-01-27 17:58:05 - End Time 2025-01-27 20:58:05 [2025-01-27 20:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344245', 'tblTempUsageDetail_20' ) start [2025-01-27 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344245', 'tblTempUsageDetail_20' ) end [2025-01-27 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344245', 'tblTempVendorCDR_20' ) start [2025-01-27 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344245', 'tblTempVendorCDR_20' ) end [2025-01-27 20:58:20] Production.INFO: ProcessCDR(1,14344245,1,1,2) [2025-01-27 20:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344245', 'tblTempUsageDetail_20' ) start [2025-01-27 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344245', 'tblTempUsageDetail_20' ) end [2025-01-27 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:58:23] Production.INFO: ==24341== Releasing lock... [2025-01-27 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:58:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-27 20:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 17:59:06 [end_date_ymd] => 2025-01-27 20:59:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 17:59:06' and `end` < '2025-01-27 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-01-27 20:59:18] Production.INFO: count ==1865 [2025-01-27 20:59:19] Production.ERROR: pbx CDR StartTime 2025-01-27 17:59:06 - End Time 2025-01-27 20:59:06 [2025-01-27 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344250', 'tblTempUsageDetail_20' ) start [2025-01-27 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344250', 'tblTempUsageDetail_20' ) end [2025-01-27 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344250', 'tblTempVendorCDR_20' ) start [2025-01-27 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344250', 'tblTempVendorCDR_20' ) end [2025-01-27 20:59:19] Production.INFO: ProcessCDR(1,14344250,1,1,2) [2025-01-27 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344250', 'tblTempUsageDetail_20' ) start [2025-01-27 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344250', 'tblTempUsageDetail_20' ) end [2025-01-27 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 20:59:22] Production.INFO: ==24415== Releasing lock... [2025-01-27 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 20:59:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-27 21:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:00:07 [end_date_ymd] => 2025-01-27 21:00:07 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:00:07' and `end` < '2025-01-27 21: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-01-27 21:00:21] Production.INFO: count ==1853 [2025-01-27 21:00:21] Production.ERROR: pbx CDR StartTime 2025-01-27 18:00:07 - End Time 2025-01-27 21:00:07 [2025-01-27 21:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344256', 'tblTempUsageDetail_20' ) start [2025-01-27 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344256', 'tblTempUsageDetail_20' ) end [2025-01-27 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344256', 'tblTempVendorCDR_20' ) start [2025-01-27 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344256', 'tblTempVendorCDR_20' ) end [2025-01-27 21:00:21] Production.INFO: ProcessCDR(1,14344256,1,1,2) [2025-01-27 21:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344256', 'tblTempUsageDetail_20' ) start [2025-01-27 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344256', 'tblTempUsageDetail_20' ) end [2025-01-27 21:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:00:24] Production.INFO: ==24490== Releasing lock... [2025-01-27 21:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:00:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-27 21:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:01:06 [end_date_ymd] => 2025-01-27 21:01:06 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:01:06' and `end` < '2025-01-27 21: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-01-27 21:01:20] Production.INFO: count ==1812 [2025-01-27 21:01:21] Production.ERROR: pbx CDR StartTime 2025-01-27 18:01:06 - End Time 2025-01-27 21:01:06 [2025-01-27 21:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344261', 'tblTempUsageDetail_20' ) start [2025-01-27 21:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344261', 'tblTempUsageDetail_20' ) end [2025-01-27 21:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344261', 'tblTempVendorCDR_20' ) start [2025-01-27 21:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344261', 'tblTempVendorCDR_20' ) end [2025-01-27 21:01:21] Production.INFO: ProcessCDR(1,14344261,1,1,2) [2025-01-27 21:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344261', 'tblTempUsageDetail_20' ) start [2025-01-27 21:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344261', 'tblTempUsageDetail_20' ) end [2025-01-27 21:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:01:26] Production.INFO: ==24584== Releasing lock... [2025-01-27 21:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:01:26] Production.INFO: 41.25 MB #Memory Used# [2025-01-27 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:02:05 [end_date_ymd] => 2025-01-27 21:02:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:02:05' and `end` < '2025-01-27 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-01-27 21:02:18] Production.INFO: count ==1802 [2025-01-27 21:02:19] Production.ERROR: pbx CDR StartTime 2025-01-27 18:02:05 - End Time 2025-01-27 21:02:05 [2025-01-27 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344266', 'tblTempUsageDetail_20' ) start [2025-01-27 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344266', 'tblTempUsageDetail_20' ) end [2025-01-27 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344266', 'tblTempVendorCDR_20' ) start [2025-01-27 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344266', 'tblTempVendorCDR_20' ) end [2025-01-27 21:02:19] Production.INFO: ProcessCDR(1,14344266,1,1,2) [2025-01-27 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344266', 'tblTempUsageDetail_20' ) start [2025-01-27 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344266', 'tblTempUsageDetail_20' ) end [2025-01-27 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:02:22] Production.INFO: ==24658== Releasing lock... [2025-01-27 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:02:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-27 21:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:03:06 [end_date_ymd] => 2025-01-27 21:03:06 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:03:06' and `end` < '2025-01-27 21: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-01-27 21:03:19] Production.INFO: count ==1801 [2025-01-27 21:03:19] Production.ERROR: pbx CDR StartTime 2025-01-27 18:03:06 - End Time 2025-01-27 21:03:06 [2025-01-27 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344271', 'tblTempUsageDetail_20' ) start [2025-01-27 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344271', 'tblTempUsageDetail_20' ) end [2025-01-27 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344271', 'tblTempVendorCDR_20' ) start [2025-01-27 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344271', 'tblTempVendorCDR_20' ) end [2025-01-27 21:03:19] Production.INFO: ProcessCDR(1,14344271,1,1,2) [2025-01-27 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344271', 'tblTempUsageDetail_20' ) start [2025-01-27 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344271', 'tblTempUsageDetail_20' ) end [2025-01-27 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:03:22] Production.INFO: ==24735== Releasing lock... [2025-01-27 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:03:22] Production.INFO: 41 MB #Memory Used# [2025-01-27 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:04:05 [end_date_ymd] => 2025-01-27 21:04:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:04:05' and `end` < '2025-01-27 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-01-27 21:04:17] Production.INFO: count ==1799 [2025-01-27 21:04:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:04:05 - End Time 2025-01-27 21:04:05 [2025-01-27 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344276', 'tblTempUsageDetail_20' ) start [2025-01-27 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344276', 'tblTempUsageDetail_20' ) end [2025-01-27 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344276', 'tblTempVendorCDR_20' ) start [2025-01-27 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344276', 'tblTempVendorCDR_20' ) end [2025-01-27 21:04:18] Production.INFO: ProcessCDR(1,14344276,1,1,2) [2025-01-27 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344276', 'tblTempUsageDetail_20' ) start [2025-01-27 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344276', 'tblTempUsageDetail_20' ) end [2025-01-27 21:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:04:21] Production.INFO: ==24809== Releasing lock... [2025-01-27 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:04:21] Production.INFO: 41 MB #Memory Used# [2025-01-27 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:05:05 [end_date_ymd] => 2025-01-27 21:05:05 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:05:05' and `end` < '2025-01-27 21: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-01-27 21:05:19] Production.INFO: count ==1800 [2025-01-27 21:05:19] Production.ERROR: pbx CDR StartTime 2025-01-27 18:05:05 - End Time 2025-01-27 21:05:05 [2025-01-27 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344281', 'tblTempUsageDetail_20' ) start [2025-01-27 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344281', 'tblTempUsageDetail_20' ) end [2025-01-27 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344281', 'tblTempVendorCDR_20' ) start [2025-01-27 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344281', 'tblTempVendorCDR_20' ) end [2025-01-27 21:05:19] Production.INFO: ProcessCDR(1,14344281,1,1,2) [2025-01-27 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344281', 'tblTempUsageDetail_20' ) start [2025-01-27 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344281', 'tblTempUsageDetail_20' ) end [2025-01-27 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:05:22] Production.INFO: ==24883== Releasing lock... [2025-01-27 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:05:22] Production.INFO: 41 MB #Memory Used# [2025-01-27 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:06:05 [end_date_ymd] => 2025-01-27 21:06:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:06:05' and `end` < '2025-01-27 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-01-27 21:06:17] Production.INFO: count ==1797 [2025-01-27 21:06:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:06:05 - End Time 2025-01-27 21:06:05 [2025-01-27 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344286', 'tblTempUsageDetail_20' ) start [2025-01-27 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344286', 'tblTempUsageDetail_20' ) end [2025-01-27 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344286', 'tblTempVendorCDR_20' ) start [2025-01-27 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344286', 'tblTempVendorCDR_20' ) end [2025-01-27 21:06:18] Production.INFO: ProcessCDR(1,14344286,1,1,2) [2025-01-27 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344286', 'tblTempUsageDetail_20' ) start [2025-01-27 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344286', 'tblTempUsageDetail_20' ) end [2025-01-27 21:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:06:21] Production.INFO: ==24957== Releasing lock... [2025-01-27 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:06:21] Production.INFO: 41 MB #Memory Used# [2025-01-27 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:07:05 [end_date_ymd] => 2025-01-27 21:07:05 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:07:05' and `end` < '2025-01-27 21: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-01-27 21:07:18] Production.INFO: count ==1797 [2025-01-27 21:07:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:07:05 - End Time 2025-01-27 21:07:05 [2025-01-27 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344291', 'tblTempUsageDetail_20' ) start [2025-01-27 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344291', 'tblTempUsageDetail_20' ) end [2025-01-27 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344291', 'tblTempVendorCDR_20' ) start [2025-01-27 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344291', 'tblTempVendorCDR_20' ) end [2025-01-27 21:07:18] Production.INFO: ProcessCDR(1,14344291,1,1,2) [2025-01-27 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344291', 'tblTempUsageDetail_20' ) start [2025-01-27 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344291', 'tblTempUsageDetail_20' ) end [2025-01-27 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:07:21] Production.INFO: ==25030== Releasing lock... [2025-01-27 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:07:21] Production.INFO: 41 MB #Memory Used# [2025-01-27 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:08:05 [end_date_ymd] => 2025-01-27 21:08:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:08:05' and `end` < '2025-01-27 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-01-27 21:08:20] Production.INFO: count ==1795 [2025-01-27 21:08:20] Production.ERROR: pbx CDR StartTime 2025-01-27 18:08:05 - End Time 2025-01-27 21:08:05 [2025-01-27 21:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344296', 'tblTempUsageDetail_20' ) start [2025-01-27 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344296', 'tblTempUsageDetail_20' ) end [2025-01-27 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344296', 'tblTempVendorCDR_20' ) start [2025-01-27 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344296', 'tblTempVendorCDR_20' ) end [2025-01-27 21:08:20] Production.INFO: ProcessCDR(1,14344296,1,1,2) [2025-01-27 21:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344296', 'tblTempUsageDetail_20' ) start [2025-01-27 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344296', 'tblTempUsageDetail_20' ) end [2025-01-27 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:08:23] Production.INFO: ==25141== Releasing lock... [2025-01-27 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:08:23] Production.INFO: 41 MB #Memory Used# [2025-01-27 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:09:05 [end_date_ymd] => 2025-01-27 21:09:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:09:05' and `end` < '2025-01-27 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-01-27 21:09:18] Production.INFO: count ==1792 [2025-01-27 21:09:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:09:05 - End Time 2025-01-27 21:09:05 [2025-01-27 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344301', 'tblTempUsageDetail_20' ) start [2025-01-27 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344301', 'tblTempUsageDetail_20' ) end [2025-01-27 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344301', 'tblTempVendorCDR_20' ) start [2025-01-27 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344301', 'tblTempVendorCDR_20' ) end [2025-01-27 21:09:18] Production.INFO: ProcessCDR(1,14344301,1,1,2) [2025-01-27 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344301', 'tblTempUsageDetail_20' ) start [2025-01-27 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344301', 'tblTempUsageDetail_20' ) end [2025-01-27 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:09:21] Production.INFO: ==25219== Releasing lock... [2025-01-27 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:09:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-27 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:10:06 [end_date_ymd] => 2025-01-27 21:10:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:10:06' and `end` < '2025-01-27 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-01-27 21:10:20] Production.INFO: count ==1789 [2025-01-27 21:10:20] Production.ERROR: pbx CDR StartTime 2025-01-27 18:10:06 - End Time 2025-01-27 21:10:06 [2025-01-27 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344307', 'tblTempUsageDetail_20' ) start [2025-01-27 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344307', 'tblTempUsageDetail_20' ) end [2025-01-27 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344307', 'tblTempVendorCDR_20' ) start [2025-01-27 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344307', 'tblTempVendorCDR_20' ) end [2025-01-27 21:10:20] Production.INFO: ProcessCDR(1,14344307,1,1,2) [2025-01-27 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344307', 'tblTempUsageDetail_20' ) start [2025-01-27 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344307', 'tblTempUsageDetail_20' ) end [2025-01-27 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:10:23] Production.INFO: ==25296== Releasing lock... [2025-01-27 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:10:23] Production.INFO: 41 MB #Memory Used# [2025-01-27 21:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:11:06 [end_date_ymd] => 2025-01-27 21:11:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:11:06' and `end` < '2025-01-27 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-01-27 21:11:19] Production.INFO: count ==1743 [2025-01-27 21:11:19] Production.ERROR: pbx CDR StartTime 2025-01-27 18:11:06 - End Time 2025-01-27 21:11:06 [2025-01-27 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344312', 'tblTempUsageDetail_20' ) start [2025-01-27 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344312', 'tblTempUsageDetail_20' ) end [2025-01-27 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344312', 'tblTempVendorCDR_20' ) start [2025-01-27 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344312', 'tblTempVendorCDR_20' ) end [2025-01-27 21:11:19] Production.INFO: ProcessCDR(1,14344312,1,1,2) [2025-01-27 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344312', 'tblTempUsageDetail_20' ) start [2025-01-27 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344312', 'tblTempUsageDetail_20' ) end [2025-01-27 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:11:22] Production.INFO: ==25380== Releasing lock... [2025-01-27 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:11:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-27 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:12:05 [end_date_ymd] => 2025-01-27 21:12:05 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:12:05' and `end` < '2025-01-27 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-01-27 21:12:19] Production.INFO: count ==1737 [2025-01-27 21:12:19] Production.ERROR: pbx CDR StartTime 2025-01-27 18:12:05 - End Time 2025-01-27 21:12:05 [2025-01-27 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344317', 'tblTempUsageDetail_20' ) start [2025-01-27 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344317', 'tblTempUsageDetail_20' ) end [2025-01-27 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344317', 'tblTempVendorCDR_20' ) start [2025-01-27 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344317', 'tblTempVendorCDR_20' ) end [2025-01-27 21:12:19] Production.INFO: ProcessCDR(1,14344317,1,1,2) [2025-01-27 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344317', 'tblTempUsageDetail_20' ) start [2025-01-27 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344317', 'tblTempUsageDetail_20' ) end [2025-01-27 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:12:22] Production.INFO: ==25450== Releasing lock... [2025-01-27 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:12:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-27 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:13:05 [end_date_ymd] => 2025-01-27 21:13:05 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:13:05' and `end` < '2025-01-27 21: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-01-27 21:13:19] Production.INFO: count ==1734 [2025-01-27 21:13:19] Production.ERROR: pbx CDR StartTime 2025-01-27 18:13:05 - End Time 2025-01-27 21:13:05 [2025-01-27 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344322', 'tblTempUsageDetail_20' ) start [2025-01-27 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344322', 'tblTempUsageDetail_20' ) end [2025-01-27 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344322', 'tblTempVendorCDR_20' ) start [2025-01-27 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344322', 'tblTempVendorCDR_20' ) end [2025-01-27 21:13:19] Production.INFO: ProcessCDR(1,14344322,1,1,2) [2025-01-27 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344322', 'tblTempUsageDetail_20' ) start [2025-01-27 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344322', 'tblTempUsageDetail_20' ) end [2025-01-27 21:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:13:24] Production.INFO: ==25522== Releasing lock... [2025-01-27 21:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:13:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-27 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:14:05 [end_date_ymd] => 2025-01-27 21:14:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:14:05' and `end` < '2025-01-27 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-01-27 21:14:19] Production.INFO: count ==1736 [2025-01-27 21:14:19] Production.ERROR: pbx CDR StartTime 2025-01-27 18:14:05 - End Time 2025-01-27 21:14:05 [2025-01-27 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344327', 'tblTempUsageDetail_20' ) start [2025-01-27 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344327', 'tblTempUsageDetail_20' ) end [2025-01-27 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344327', 'tblTempVendorCDR_20' ) start [2025-01-27 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344327', 'tblTempVendorCDR_20' ) end [2025-01-27 21:14:19] Production.INFO: ProcessCDR(1,14344327,1,1,2) [2025-01-27 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344327', 'tblTempUsageDetail_20' ) start [2025-01-27 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344327', 'tblTempUsageDetail_20' ) end [2025-01-27 21:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:14:24] Production.INFO: ==25595== Releasing lock... [2025-01-27 21:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:14:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-27 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:15:05 [end_date_ymd] => 2025-01-27 21:15:05 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:15:05' and `end` < '2025-01-27 21: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-01-27 21:15:18] Production.INFO: count ==1734 [2025-01-27 21:15:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:15:05 - End Time 2025-01-27 21:15:05 [2025-01-27 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344332', 'tblTempUsageDetail_20' ) start [2025-01-27 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344332', 'tblTempUsageDetail_20' ) end [2025-01-27 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344332', 'tblTempVendorCDR_20' ) start [2025-01-27 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344332', 'tblTempVendorCDR_20' ) end [2025-01-27 21:15:18] Production.INFO: ProcessCDR(1,14344332,1,1,2) [2025-01-27 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344332', 'tblTempUsageDetail_20' ) start [2025-01-27 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344332', 'tblTempUsageDetail_20' ) end [2025-01-27 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:15:22] Production.INFO: ==25672== Releasing lock... [2025-01-27 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:15:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-27 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:16:05 [end_date_ymd] => 2025-01-27 21:16:05 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:16:05' and `end` < '2025-01-27 21: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-01-27 21:16:17] Production.INFO: count ==1732 [2025-01-27 21:16:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:16:05 - End Time 2025-01-27 21:16:05 [2025-01-27 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344337', 'tblTempUsageDetail_20' ) start [2025-01-27 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344337', 'tblTempUsageDetail_20' ) end [2025-01-27 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344337', 'tblTempVendorCDR_20' ) start [2025-01-27 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344337', 'tblTempVendorCDR_20' ) end [2025-01-27 21:16:18] Production.INFO: ProcessCDR(1,14344337,1,1,2) [2025-01-27 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344337', 'tblTempUsageDetail_20' ) start [2025-01-27 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344337', 'tblTempUsageDetail_20' ) end [2025-01-27 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:16:22] Production.INFO: ==25753== Releasing lock... [2025-01-27 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:16:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-27 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:17:05 [end_date_ymd] => 2025-01-27 21:17:05 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:17:05' and `end` < '2025-01-27 21: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-01-27 21:17:18] Production.INFO: count ==1723 [2025-01-27 21:17:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:17:05 - End Time 2025-01-27 21:17:05 [2025-01-27 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344342', 'tblTempUsageDetail_20' ) start [2025-01-27 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344342', 'tblTempUsageDetail_20' ) end [2025-01-27 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344342', 'tblTempVendorCDR_20' ) start [2025-01-27 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344342', 'tblTempVendorCDR_20' ) end [2025-01-27 21:17:18] Production.INFO: ProcessCDR(1,14344342,1,1,2) [2025-01-27 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344342', 'tblTempUsageDetail_20' ) start [2025-01-27 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344342', 'tblTempUsageDetail_20' ) end [2025-01-27 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:17:21] Production.INFO: ==25826== Releasing lock... [2025-01-27 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:17:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-27 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:18:05 [end_date_ymd] => 2025-01-27 21:18:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:18:05' and `end` < '2025-01-27 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-01-27 21:18:18] Production.INFO: count ==1720 [2025-01-27 21:18:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:18:05 - End Time 2025-01-27 21:18:05 [2025-01-27 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344347', 'tblTempUsageDetail_20' ) start [2025-01-27 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344347', 'tblTempUsageDetail_20' ) end [2025-01-27 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344347', 'tblTempVendorCDR_20' ) start [2025-01-27 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344347', 'tblTempVendorCDR_20' ) end [2025-01-27 21:18:18] Production.INFO: ProcessCDR(1,14344347,1,1,2) [2025-01-27 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344347', 'tblTempUsageDetail_20' ) start [2025-01-27 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344347', 'tblTempUsageDetail_20' ) end [2025-01-27 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:18:21] Production.INFO: ==25896== Releasing lock... [2025-01-27 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:18:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-27 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:19:05 [end_date_ymd] => 2025-01-27 21:19:05 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:19:05' and `end` < '2025-01-27 21: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-01-27 21:19:19] Production.INFO: count ==1719 [2025-01-27 21:19:19] Production.ERROR: pbx CDR StartTime 2025-01-27 18:19:05 - End Time 2025-01-27 21:19:05 [2025-01-27 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344352', 'tblTempUsageDetail_20' ) start [2025-01-27 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344352', 'tblTempUsageDetail_20' ) end [2025-01-27 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344352', 'tblTempVendorCDR_20' ) start [2025-01-27 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344352', 'tblTempVendorCDR_20' ) end [2025-01-27 21:19:19] Production.INFO: ProcessCDR(1,14344352,1,1,2) [2025-01-27 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344352', 'tblTempUsageDetail_20' ) start [2025-01-27 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344352', 'tblTempUsageDetail_20' ) end [2025-01-27 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:19:22] Production.INFO: ==25967== Releasing lock... [2025-01-27 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:19:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-27 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:20:06 [end_date_ymd] => 2025-01-27 21:20:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:20:06' and `end` < '2025-01-27 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-01-27 21:20:20] Production.INFO: count ==1716 [2025-01-27 21:20:20] Production.ERROR: pbx CDR StartTime 2025-01-27 18:20:06 - End Time 2025-01-27 21:20:06 [2025-01-27 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344358', 'tblTempUsageDetail_20' ) start [2025-01-27 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344358', 'tblTempUsageDetail_20' ) end [2025-01-27 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344358', 'tblTempVendorCDR_20' ) start [2025-01-27 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344358', 'tblTempVendorCDR_20' ) end [2025-01-27 21:20:20] Production.INFO: ProcessCDR(1,14344358,1,1,2) [2025-01-27 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344358', 'tblTempUsageDetail_20' ) start [2025-01-27 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344358', 'tblTempUsageDetail_20' ) end [2025-01-27 21:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:20:24] Production.INFO: ==26040== Releasing lock... [2025-01-27 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:20:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-27 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:21:05 [end_date_ymd] => 2025-01-27 21:21:05 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:21:05' and `end` < '2025-01-27 21: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-01-27 21:21:18] Production.INFO: count ==1654 [2025-01-27 21:21:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:21:05 - End Time 2025-01-27 21:21:05 [2025-01-27 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344363', 'tblTempUsageDetail_20' ) start [2025-01-27 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344363', 'tblTempUsageDetail_20' ) end [2025-01-27 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344363', 'tblTempVendorCDR_20' ) start [2025-01-27 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344363', 'tblTempVendorCDR_20' ) end [2025-01-27 21:21:18] Production.INFO: ProcessCDR(1,14344363,1,1,2) [2025-01-27 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344363', 'tblTempUsageDetail_20' ) start [2025-01-27 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344363', 'tblTempUsageDetail_20' ) end [2025-01-27 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:21:21] Production.INFO: ==26111== Releasing lock... [2025-01-27 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:21:21] Production.INFO: 40 MB #Memory Used# [2025-01-27 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:22:06 [end_date_ymd] => 2025-01-27 21:22:06 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:22:06' and `end` < '2025-01-27 21: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-01-27 21:22:20] Production.INFO: count ==1651 [2025-01-27 21:22:20] Production.ERROR: pbx CDR StartTime 2025-01-27 18:22:06 - End Time 2025-01-27 21:22:06 [2025-01-27 21:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344368', 'tblTempUsageDetail_20' ) start [2025-01-27 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344368', 'tblTempUsageDetail_20' ) end [2025-01-27 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344368', 'tblTempVendorCDR_20' ) start [2025-01-27 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344368', 'tblTempVendorCDR_20' ) end [2025-01-27 21:22:20] Production.INFO: ProcessCDR(1,14344368,1,1,2) [2025-01-27 21:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344368', 'tblTempUsageDetail_20' ) start [2025-01-27 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344368', 'tblTempUsageDetail_20' ) end [2025-01-27 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:22:23] Production.INFO: ==26186== Releasing lock... [2025-01-27 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:22:23] Production.INFO: 40 MB #Memory Used# [2025-01-27 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:23:05 [end_date_ymd] => 2025-01-27 21:23:05 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:23:05' and `end` < '2025-01-27 21: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-01-27 21:23:23] Production.INFO: count ==1638 [2025-01-27 21:23:24] Production.ERROR: pbx CDR StartTime 2025-01-27 18:23:05 - End Time 2025-01-27 21:23:05 [2025-01-27 21:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344373', 'tblTempUsageDetail_20' ) start [2025-01-27 21:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344373', 'tblTempUsageDetail_20' ) end [2025-01-27 21:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344373', 'tblTempVendorCDR_20' ) start [2025-01-27 21:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344373', 'tblTempVendorCDR_20' ) end [2025-01-27 21:23:24] Production.INFO: ProcessCDR(1,14344373,1,1,2) [2025-01-27 21:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344373', 'tblTempUsageDetail_20' ) start [2025-01-27 21:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344373', 'tblTempUsageDetail_20' ) end [2025-01-27 21:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:23:27] Production.INFO: ==26258== Releasing lock... [2025-01-27 21:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:23:27] Production.INFO: 39.75 MB #Memory Used# [2025-01-27 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:24:05 [end_date_ymd] => 2025-01-27 21:24:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:24:05' and `end` < '2025-01-27 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-01-27 21:24:18] Production.INFO: count ==1631 [2025-01-27 21:24:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:24:05 - End Time 2025-01-27 21:24:05 [2025-01-27 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344378', 'tblTempUsageDetail_20' ) start [2025-01-27 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344378', 'tblTempUsageDetail_20' ) end [2025-01-27 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344378', 'tblTempVendorCDR_20' ) start [2025-01-27 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344378', 'tblTempVendorCDR_20' ) end [2025-01-27 21:24:18] Production.INFO: ProcessCDR(1,14344378,1,1,2) [2025-01-27 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344378', 'tblTempUsageDetail_20' ) start [2025-01-27 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344378', 'tblTempUsageDetail_20' ) end [2025-01-27 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:24:21] Production.INFO: ==26372== Releasing lock... [2025-01-27 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:24:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-27 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:25:05 [end_date_ymd] => 2025-01-27 21:25:05 [RateCDR] => 1 ) [2025-01-27 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 18:25:05' and `end` < '2025-01-27 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-27 21:25:17] Production.INFO: count ==1625 [2025-01-27 21:25:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:25:05 - End Time 2025-01-27 21:25:05 [2025-01-27 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344383', 'tblTempUsageDetail_20' ) start [2025-01-27 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344383', 'tblTempUsageDetail_20' ) end [2025-01-27 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344383', 'tblTempVendorCDR_20' ) start [2025-01-27 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344383', 'tblTempVendorCDR_20' ) end [2025-01-27 21:25:18] Production.INFO: ProcessCDR(1,14344383,1,1,2) [2025-01-27 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344383', 'tblTempUsageDetail_20' ) start [2025-01-27 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344383', 'tblTempUsageDetail_20' ) end [2025-01-27 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:25:21] Production.INFO: ==26444== Releasing lock... [2025-01-27 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:25:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-27 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:26:05 [end_date_ymd] => 2025-01-27 21:26:05 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:26:05' and `end` < '2025-01-27 21: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-01-27 21:26:17] Production.INFO: count ==1616 [2025-01-27 21:26:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:26:05 - End Time 2025-01-27 21:26:05 [2025-01-27 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344388', 'tblTempUsageDetail_20' ) start [2025-01-27 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344388', 'tblTempUsageDetail_20' ) end [2025-01-27 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344388', 'tblTempVendorCDR_20' ) start [2025-01-27 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344388', 'tblTempVendorCDR_20' ) end [2025-01-27 21:26:18] Production.INFO: ProcessCDR(1,14344388,1,1,2) [2025-01-27 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344388', 'tblTempUsageDetail_20' ) start [2025-01-27 21:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344388', 'tblTempUsageDetail_20' ) end [2025-01-27 21:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:26:20] Production.INFO: ==26514== Releasing lock... [2025-01-27 21:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:26:20] Production.INFO: 39.75 MB #Memory Used# [2025-01-27 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:27:05 [end_date_ymd] => 2025-01-27 21:27:05 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:27:05' and `end` < '2025-01-27 21: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-01-27 21:27:18] Production.INFO: count ==1614 [2025-01-27 21:27:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:27:05 - End Time 2025-01-27 21:27:05 [2025-01-27 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344393', 'tblTempUsageDetail_20' ) start [2025-01-27 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344393', 'tblTempUsageDetail_20' ) end [2025-01-27 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344393', 'tblTempVendorCDR_20' ) start [2025-01-27 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344393', 'tblTempVendorCDR_20' ) end [2025-01-27 21:27:18] Production.INFO: ProcessCDR(1,14344393,1,1,2) [2025-01-27 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344393', 'tblTempUsageDetail_20' ) start [2025-01-27 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344393', 'tblTempUsageDetail_20' ) end [2025-01-27 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:27:21] Production.INFO: ==26597== Releasing lock... [2025-01-27 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:27:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-27 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:28:06 [end_date_ymd] => 2025-01-27 21:28:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:28:06' and `end` < '2025-01-27 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-01-27 21:28:19] Production.INFO: count ==1607 [2025-01-27 21:28:20] Production.ERROR: pbx CDR StartTime 2025-01-27 18:28:06 - End Time 2025-01-27 21:28:06 [2025-01-27 21:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344398', 'tblTempUsageDetail_20' ) start [2025-01-27 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344398', 'tblTempUsageDetail_20' ) end [2025-01-27 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344398', 'tblTempVendorCDR_20' ) start [2025-01-27 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344398', 'tblTempVendorCDR_20' ) end [2025-01-27 21:28:20] Production.INFO: ProcessCDR(1,14344398,1,1,2) [2025-01-27 21:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344398', 'tblTempUsageDetail_20' ) start [2025-01-27 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344398', 'tblTempUsageDetail_20' ) end [2025-01-27 21:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:28:24] Production.INFO: ==26680== Releasing lock... [2025-01-27 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:28:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-27 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:29:06 [end_date_ymd] => 2025-01-27 21:29:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:29:06' and `end` < '2025-01-27 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-01-27 21:29:19] Production.INFO: count ==1608 [2025-01-27 21:29:19] Production.ERROR: pbx CDR StartTime 2025-01-27 18:29:06 - End Time 2025-01-27 21:29:06 [2025-01-27 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344403', 'tblTempUsageDetail_20' ) start [2025-01-27 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344403', 'tblTempUsageDetail_20' ) end [2025-01-27 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344403', 'tblTempVendorCDR_20' ) start [2025-01-27 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344403', 'tblTempVendorCDR_20' ) end [2025-01-27 21:29:19] Production.INFO: ProcessCDR(1,14344403,1,1,2) [2025-01-27 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344403', 'tblTempUsageDetail_20' ) start [2025-01-27 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344403', 'tblTempUsageDetail_20' ) end [2025-01-27 21:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:29:23] Production.INFO: ==26777== Releasing lock... [2025-01-27 21:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:29:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-27 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:30:06 [end_date_ymd] => 2025-01-27 21:30:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:30:06' and `end` < '2025-01-27 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-01-27 21:30:19] Production.INFO: count ==1601 [2025-01-27 21:30:19] Production.ERROR: pbx CDR StartTime 2025-01-27 18:30:06 - End Time 2025-01-27 21:30:06 [2025-01-27 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344409', 'tblTempUsageDetail_20' ) start [2025-01-27 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344409', 'tblTempUsageDetail_20' ) end [2025-01-27 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344409', 'tblTempVendorCDR_20' ) start [2025-01-27 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344409', 'tblTempVendorCDR_20' ) end [2025-01-27 21:30:19] Production.INFO: ProcessCDR(1,14344409,1,1,2) [2025-01-27 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344409', 'tblTempUsageDetail_20' ) start [2025-01-27 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344409', 'tblTempUsageDetail_20' ) end [2025-01-27 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:30:22] Production.INFO: ==26873== Releasing lock... [2025-01-27 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:30:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-27 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:31:05 [end_date_ymd] => 2025-01-27 21:31:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:31:05' and `end` < '2025-01-27 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-01-27 21:31:18] Production.INFO: count ==1550 [2025-01-27 21:31:19] Production.ERROR: pbx CDR StartTime 2025-01-27 18:31:05 - End Time 2025-01-27 21:31:05 [2025-01-27 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344414', 'tblTempUsageDetail_20' ) start [2025-01-27 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344414', 'tblTempUsageDetail_20' ) end [2025-01-27 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344414', 'tblTempVendorCDR_20' ) start [2025-01-27 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344414', 'tblTempVendorCDR_20' ) end [2025-01-27 21:31:19] Production.INFO: ProcessCDR(1,14344414,1,1,2) [2025-01-27 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344414', 'tblTempUsageDetail_20' ) start [2025-01-27 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344414', 'tblTempUsageDetail_20' ) end [2025-01-27 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:31:22] Production.INFO: ==26969== Releasing lock... [2025-01-27 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:31:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-27 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:32:05 [end_date_ymd] => 2025-01-27 21:32:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:32:05' and `end` < '2025-01-27 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-01-27 21:32:19] Production.INFO: count ==1544 [2025-01-27 21:32:19] Production.ERROR: pbx CDR StartTime 2025-01-27 18:32:05 - End Time 2025-01-27 21:32:05 [2025-01-27 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344419', 'tblTempUsageDetail_20' ) start [2025-01-27 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344419', 'tblTempUsageDetail_20' ) end [2025-01-27 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344419', 'tblTempVendorCDR_20' ) start [2025-01-27 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344419', 'tblTempVendorCDR_20' ) end [2025-01-27 21:32:19] Production.INFO: ProcessCDR(1,14344419,1,1,2) [2025-01-27 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344419', 'tblTempUsageDetail_20' ) start [2025-01-27 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344419', 'tblTempUsageDetail_20' ) end [2025-01-27 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:32:22] Production.INFO: ==27057== Releasing lock... [2025-01-27 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:32:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-27 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:33:05 [end_date_ymd] => 2025-01-27 21:33:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:33:05' and `end` < '2025-01-27 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-01-27 21:33:18] Production.INFO: count ==1545 [2025-01-27 21:33:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:33:05 - End Time 2025-01-27 21:33:05 [2025-01-27 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344424', 'tblTempUsageDetail_20' ) start [2025-01-27 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344424', 'tblTempUsageDetail_20' ) end [2025-01-27 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344424', 'tblTempVendorCDR_20' ) start [2025-01-27 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344424', 'tblTempVendorCDR_20' ) end [2025-01-27 21:33:18] Production.INFO: ProcessCDR(1,14344424,1,1,2) [2025-01-27 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344424', 'tblTempUsageDetail_20' ) start [2025-01-27 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344424', 'tblTempUsageDetail_20' ) end [2025-01-27 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:33:22] Production.INFO: ==27148== Releasing lock... [2025-01-27 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:33:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-27 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:34:05 [end_date_ymd] => 2025-01-27 21:34:05 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:34:05' and `end` < '2025-01-27 21: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-01-27 21:34:18] Production.INFO: count ==1538 [2025-01-27 21:34:19] Production.ERROR: pbx CDR StartTime 2025-01-27 18:34:05 - End Time 2025-01-27 21:34:05 [2025-01-27 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344429', 'tblTempUsageDetail_20' ) start [2025-01-27 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344429', 'tblTempUsageDetail_20' ) end [2025-01-27 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344429', 'tblTempVendorCDR_20' ) start [2025-01-27 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344429', 'tblTempVendorCDR_20' ) end [2025-01-27 21:34:19] Production.INFO: ProcessCDR(1,14344429,1,1,2) [2025-01-27 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344429', 'tblTempUsageDetail_20' ) start [2025-01-27 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344429', 'tblTempUsageDetail_20' ) end [2025-01-27 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:34:22] Production.INFO: ==27253== Releasing lock... [2025-01-27 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:34:22] Production.INFO: 39 MB #Memory Used# [2025-01-27 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:35:05 [end_date_ymd] => 2025-01-27 21:35:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:35:05' and `end` < '2025-01-27 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-01-27 21:35:19] Production.INFO: count ==1542 [2025-01-27 21:35:19] Production.ERROR: pbx CDR StartTime 2025-01-27 18:35:05 - End Time 2025-01-27 21:35:05 [2025-01-27 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344434', 'tblTempUsageDetail_20' ) start [2025-01-27 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344434', 'tblTempUsageDetail_20' ) end [2025-01-27 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344434', 'tblTempVendorCDR_20' ) start [2025-01-27 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344434', 'tblTempVendorCDR_20' ) end [2025-01-27 21:35:19] Production.INFO: ProcessCDR(1,14344434,1,1,2) [2025-01-27 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344434', 'tblTempUsageDetail_20' ) start [2025-01-27 21:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344434', 'tblTempUsageDetail_20' ) end [2025-01-27 21:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:35:24] Production.INFO: ==27355== Releasing lock... [2025-01-27 21:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:35:24] Production.INFO: 39.25 MB #Memory Used# [2025-01-27 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:36:05 [end_date_ymd] => 2025-01-27 21:36:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:36:05' and `end` < '2025-01-27 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-01-27 21:36:17] Production.INFO: count ==1529 [2025-01-27 21:36:17] Production.ERROR: pbx CDR StartTime 2025-01-27 18:36:05 - End Time 2025-01-27 21:36:05 [2025-01-27 21:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344439', 'tblTempUsageDetail_20' ) start [2025-01-27 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344439', 'tblTempUsageDetail_20' ) end [2025-01-27 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344439', 'tblTempVendorCDR_20' ) start [2025-01-27 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344439', 'tblTempVendorCDR_20' ) end [2025-01-27 21:36:17] Production.INFO: ProcessCDR(1,14344439,1,1,2) [2025-01-27 21:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344439', 'tblTempUsageDetail_20' ) start [2025-01-27 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344439', 'tblTempUsageDetail_20' ) end [2025-01-27 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:36:21] Production.INFO: ==27457== Releasing lock... [2025-01-27 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:36:21] Production.INFO: 39 MB #Memory Used# [2025-01-27 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:37:05 [end_date_ymd] => 2025-01-27 21:37:05 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:37:05' and `end` < '2025-01-27 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-01-27 21:37:18] Production.INFO: count ==1516 [2025-01-27 21:37:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:37:05 - End Time 2025-01-27 21:37:05 [2025-01-27 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344444', 'tblTempUsageDetail_20' ) start [2025-01-27 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344444', 'tblTempUsageDetail_20' ) end [2025-01-27 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344444', 'tblTempVendorCDR_20' ) start [2025-01-27 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344444', 'tblTempVendorCDR_20' ) end [2025-01-27 21:37:18] Production.INFO: ProcessCDR(1,14344444,1,1,2) [2025-01-27 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344444', 'tblTempUsageDetail_20' ) start [2025-01-27 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344444', 'tblTempUsageDetail_20' ) end [2025-01-27 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:37:21] Production.INFO: ==27551== Releasing lock... [2025-01-27 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:37:21] Production.INFO: 39 MB #Memory Used# [2025-01-27 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:38:05 [end_date_ymd] => 2025-01-27 21:38:05 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:38:05' and `end` < '2025-01-27 21: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-01-27 21:38:18] Production.INFO: count ==1513 [2025-01-27 21:38:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:38:05 - End Time 2025-01-27 21:38:05 [2025-01-27 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344449', 'tblTempUsageDetail_20' ) start [2025-01-27 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344449', 'tblTempUsageDetail_20' ) end [2025-01-27 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344449', 'tblTempVendorCDR_20' ) start [2025-01-27 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344449', 'tblTempVendorCDR_20' ) end [2025-01-27 21:38:18] Production.INFO: ProcessCDR(1,14344449,1,1,2) [2025-01-27 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344449', 'tblTempUsageDetail_20' ) start [2025-01-27 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344449', 'tblTempUsageDetail_20' ) end [2025-01-27 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:38:21] Production.INFO: ==27622== Releasing lock... [2025-01-27 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:38:21] Production.INFO: 39 MB #Memory Used# [2025-01-27 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:39:05 [end_date_ymd] => 2025-01-27 21:39:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:39:05' and `end` < '2025-01-27 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-01-27 21:39:17] Production.INFO: count ==1510 [2025-01-27 21:39:17] Production.ERROR: pbx CDR StartTime 2025-01-27 18:39:05 - End Time 2025-01-27 21:39:05 [2025-01-27 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344454', 'tblTempUsageDetail_20' ) start [2025-01-27 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344454', 'tblTempUsageDetail_20' ) end [2025-01-27 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344454', 'tblTempVendorCDR_20' ) start [2025-01-27 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344454', 'tblTempVendorCDR_20' ) end [2025-01-27 21:39:17] Production.INFO: ProcessCDR(1,14344454,1,1,2) [2025-01-27 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344454', 'tblTempUsageDetail_20' ) start [2025-01-27 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344454', 'tblTempUsageDetail_20' ) end [2025-01-27 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:39:21] Production.INFO: ==27731== Releasing lock... [2025-01-27 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:39:21] Production.INFO: 39 MB #Memory Used# [2025-01-27 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:40:06 [end_date_ymd] => 2025-01-27 21:40:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:40:06' and `end` < '2025-01-27 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-01-27 21:40:18] Production.INFO: count ==1509 [2025-01-27 21:40:19] Production.ERROR: pbx CDR StartTime 2025-01-27 18:40:06 - End Time 2025-01-27 21:40:06 [2025-01-27 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344460', 'tblTempUsageDetail_20' ) start [2025-01-27 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344460', 'tblTempUsageDetail_20' ) end [2025-01-27 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344460', 'tblTempVendorCDR_20' ) start [2025-01-27 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344460', 'tblTempVendorCDR_20' ) end [2025-01-27 21:40:19] Production.INFO: ProcessCDR(1,14344460,1,1,2) [2025-01-27 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344460', 'tblTempUsageDetail_20' ) start [2025-01-27 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344460', 'tblTempUsageDetail_20' ) end [2025-01-27 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:40:22] Production.INFO: ==27805== Releasing lock... [2025-01-27 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:40:22] Production.INFO: 39 MB #Memory Used# [2025-01-27 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:41:05 [end_date_ymd] => 2025-01-27 21:41:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:41:05' and `end` < '2025-01-27 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-01-27 21:41:18] Production.INFO: count ==1492 [2025-01-27 21:41:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:41:05 - End Time 2025-01-27 21:41:05 [2025-01-27 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344465', 'tblTempUsageDetail_20' ) start [2025-01-27 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344465', 'tblTempUsageDetail_20' ) end [2025-01-27 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344465', 'tblTempVendorCDR_20' ) start [2025-01-27 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344465', 'tblTempVendorCDR_20' ) end [2025-01-27 21:41:18] Production.INFO: ProcessCDR(1,14344465,1,1,2) [2025-01-27 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344465', 'tblTempUsageDetail_20' ) start [2025-01-27 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344465', 'tblTempUsageDetail_20' ) end [2025-01-27 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:41:21] Production.INFO: ==27883== Releasing lock... [2025-01-27 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:41:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-27 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:42:05 [end_date_ymd] => 2025-01-27 21:42:05 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:42:05' and `end` < '2025-01-27 21: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-01-27 21:42:18] Production.INFO: count ==1484 [2025-01-27 21:42:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:42:05 - End Time 2025-01-27 21:42:05 [2025-01-27 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344470', 'tblTempUsageDetail_20' ) start [2025-01-27 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344470', 'tblTempUsageDetail_20' ) end [2025-01-27 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344470', 'tblTempVendorCDR_20' ) start [2025-01-27 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344470', 'tblTempVendorCDR_20' ) end [2025-01-27 21:42:18] Production.INFO: ProcessCDR(1,14344470,1,1,2) [2025-01-27 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344470', 'tblTempUsageDetail_20' ) start [2025-01-27 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344470', 'tblTempUsageDetail_20' ) end [2025-01-27 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:42:21] Production.INFO: ==27955== Releasing lock... [2025-01-27 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:42:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-27 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:43:05 [end_date_ymd] => 2025-01-27 21:43:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:43:05' and `end` < '2025-01-27 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-01-27 21:43:19] Production.INFO: count ==1485 [2025-01-27 21:43:20] Production.ERROR: pbx CDR StartTime 2025-01-27 18:43:05 - End Time 2025-01-27 21:43:05 [2025-01-27 21:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344475', 'tblTempUsageDetail_20' ) start [2025-01-27 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344475', 'tblTempUsageDetail_20' ) end [2025-01-27 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344475', 'tblTempVendorCDR_20' ) start [2025-01-27 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344475', 'tblTempVendorCDR_20' ) end [2025-01-27 21:43:20] Production.INFO: ProcessCDR(1,14344475,1,1,2) [2025-01-27 21:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344475', 'tblTempUsageDetail_20' ) start [2025-01-27 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344475', 'tblTempUsageDetail_20' ) end [2025-01-27 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:43:23] Production.INFO: ==28027== Releasing lock... [2025-01-27 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:43:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-27 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:44:05 [end_date_ymd] => 2025-01-27 21:44:05 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:44:05' and `end` < '2025-01-27 21: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-01-27 21:44:18] Production.INFO: count ==1481 [2025-01-27 21:44:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:44:05 - End Time 2025-01-27 21:44:05 [2025-01-27 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344480', 'tblTempUsageDetail_20' ) start [2025-01-27 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344480', 'tblTempUsageDetail_20' ) end [2025-01-27 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344480', 'tblTempVendorCDR_20' ) start [2025-01-27 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344480', 'tblTempVendorCDR_20' ) end [2025-01-27 21:44:18] Production.INFO: ProcessCDR(1,14344480,1,1,2) [2025-01-27 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344480', 'tblTempUsageDetail_20' ) start [2025-01-27 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344480', 'tblTempUsageDetail_20' ) end [2025-01-27 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:44:21] Production.INFO: ==28104== Releasing lock... [2025-01-27 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:44:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-27 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:45:05 [end_date_ymd] => 2025-01-27 21:45:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:45:05' and `end` < '2025-01-27 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-01-27 21:45:18] Production.INFO: count ==1481 [2025-01-27 21:45:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:45:05 - End Time 2025-01-27 21:45:05 [2025-01-27 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344485', 'tblTempUsageDetail_20' ) start [2025-01-27 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344485', 'tblTempUsageDetail_20' ) end [2025-01-27 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344485', 'tblTempVendorCDR_20' ) start [2025-01-27 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344485', 'tblTempVendorCDR_20' ) end [2025-01-27 21:45:18] Production.INFO: ProcessCDR(1,14344485,1,1,2) [2025-01-27 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344485', 'tblTempUsageDetail_20' ) start [2025-01-27 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344485', 'tblTempUsageDetail_20' ) end [2025-01-27 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:45:21] Production.INFO: ==28180== Releasing lock... [2025-01-27 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:45:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-27 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:46:05 [end_date_ymd] => 2025-01-27 21:46:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:46:05' and `end` < '2025-01-27 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-01-27 21:46:19] Production.INFO: count ==1476 [2025-01-27 21:46:19] Production.ERROR: pbx CDR StartTime 2025-01-27 18:46:05 - End Time 2025-01-27 21:46:05 [2025-01-27 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344490', 'tblTempUsageDetail_20' ) start [2025-01-27 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344490', 'tblTempUsageDetail_20' ) end [2025-01-27 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344490', 'tblTempVendorCDR_20' ) start [2025-01-27 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344490', 'tblTempVendorCDR_20' ) end [2025-01-27 21:46:19] Production.INFO: ProcessCDR(1,14344490,1,1,2) [2025-01-27 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344490', 'tblTempUsageDetail_20' ) start [2025-01-27 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344490', 'tblTempUsageDetail_20' ) end [2025-01-27 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:46:23] Production.INFO: ==28252== Releasing lock... [2025-01-27 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:46:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-27 21:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:47:06 [end_date_ymd] => 2025-01-27 21:47:06 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:47:06' and `end` < '2025-01-27 21: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-01-27 21:47:20] Production.INFO: count ==1475 [2025-01-27 21:47:20] Production.ERROR: pbx CDR StartTime 2025-01-27 18:47:06 - End Time 2025-01-27 21:47:06 [2025-01-27 21:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344495', 'tblTempUsageDetail_20' ) start [2025-01-27 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344495', 'tblTempUsageDetail_20' ) end [2025-01-27 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344495', 'tblTempVendorCDR_20' ) start [2025-01-27 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344495', 'tblTempVendorCDR_20' ) end [2025-01-27 21:47:20] Production.INFO: ProcessCDR(1,14344495,1,1,2) [2025-01-27 21:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344495', 'tblTempUsageDetail_20' ) start [2025-01-27 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344495', 'tblTempUsageDetail_20' ) end [2025-01-27 21:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:47:23] Production.INFO: ==28323== Releasing lock... [2025-01-27 21:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:47:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-27 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:48:05 [end_date_ymd] => 2025-01-27 21:48:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:48:05' and `end` < '2025-01-27 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-01-27 21:48:18] Production.INFO: count ==1467 [2025-01-27 21:48:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:48:05 - End Time 2025-01-27 21:48:05 [2025-01-27 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344500', 'tblTempUsageDetail_20' ) start [2025-01-27 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344500', 'tblTempUsageDetail_20' ) end [2025-01-27 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344500', 'tblTempVendorCDR_20' ) start [2025-01-27 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344500', 'tblTempVendorCDR_20' ) end [2025-01-27 21:48:18] Production.INFO: ProcessCDR(1,14344500,1,1,2) [2025-01-27 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344500', 'tblTempUsageDetail_20' ) start [2025-01-27 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344500', 'tblTempUsageDetail_20' ) end [2025-01-27 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:48:21] Production.INFO: ==28397== Releasing lock... [2025-01-27 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:48:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-27 21:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:49:06 [end_date_ymd] => 2025-01-27 21:49:06 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:49:06' and `end` < '2025-01-27 21: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-01-27 21:49:20] Production.INFO: count ==1466 [2025-01-27 21:49:20] Production.ERROR: pbx CDR StartTime 2025-01-27 18:49:06 - End Time 2025-01-27 21:49:06 [2025-01-27 21:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344505', 'tblTempUsageDetail_20' ) start [2025-01-27 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344505', 'tblTempUsageDetail_20' ) end [2025-01-27 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344505', 'tblTempVendorCDR_20' ) start [2025-01-27 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344505', 'tblTempVendorCDR_20' ) end [2025-01-27 21:49:20] Production.INFO: ProcessCDR(1,14344505,1,1,2) [2025-01-27 21:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344505', 'tblTempUsageDetail_20' ) start [2025-01-27 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344505', 'tblTempUsageDetail_20' ) end [2025-01-27 21:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:49:23] Production.INFO: ==28469== Releasing lock... [2025-01-27 21:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:49:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-27 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:50:06 [end_date_ymd] => 2025-01-27 21:50:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:50:06' and `end` < '2025-01-27 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-01-27 21:50:19] Production.INFO: count ==1460 [2025-01-27 21:50:19] Production.ERROR: pbx CDR StartTime 2025-01-27 18:50:06 - End Time 2025-01-27 21:50:06 [2025-01-27 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344511', 'tblTempUsageDetail_20' ) start [2025-01-27 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344511', 'tblTempUsageDetail_20' ) end [2025-01-27 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344511', 'tblTempVendorCDR_20' ) start [2025-01-27 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344511', 'tblTempVendorCDR_20' ) end [2025-01-27 21:50:19] Production.INFO: ProcessCDR(1,14344511,1,1,2) [2025-01-27 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344511', 'tblTempUsageDetail_20' ) start [2025-01-27 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344511', 'tblTempUsageDetail_20' ) end [2025-01-27 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:50:22] Production.INFO: ==28545== Releasing lock... [2025-01-27 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:50:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-27 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:51:05 [end_date_ymd] => 2025-01-27 21:51:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:51:05' and `end` < '2025-01-27 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-01-27 21:51:18] Production.INFO: count ==1425 [2025-01-27 21:51:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:51:05 - End Time 2025-01-27 21:51:05 [2025-01-27 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344516', 'tblTempUsageDetail_20' ) start [2025-01-27 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344516', 'tblTempUsageDetail_20' ) end [2025-01-27 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344516', 'tblTempVendorCDR_20' ) start [2025-01-27 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344516', 'tblTempVendorCDR_20' ) end [2025-01-27 21:51:18] Production.INFO: ProcessCDR(1,14344516,1,1,2) [2025-01-27 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344516', 'tblTempUsageDetail_20' ) start [2025-01-27 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344516', 'tblTempUsageDetail_20' ) end [2025-01-27 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:51:21] Production.INFO: ==28620== Releasing lock... [2025-01-27 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:51:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-27 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:52:05 [end_date_ymd] => 2025-01-27 21:52:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:52:05' and `end` < '2025-01-27 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-01-27 21:52:18] Production.INFO: count ==1422 [2025-01-27 21:52:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:52:05 - End Time 2025-01-27 21:52:05 [2025-01-27 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344521', 'tblTempUsageDetail_20' ) start [2025-01-27 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344521', 'tblTempUsageDetail_20' ) end [2025-01-27 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344521', 'tblTempVendorCDR_20' ) start [2025-01-27 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344521', 'tblTempVendorCDR_20' ) end [2025-01-27 21:52:18] Production.INFO: ProcessCDR(1,14344521,1,1,2) [2025-01-27 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344521', 'tblTempUsageDetail_20' ) start [2025-01-27 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344521', 'tblTempUsageDetail_20' ) end [2025-01-27 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:52:22] Production.INFO: ==28691== Releasing lock... [2025-01-27 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:52:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-27 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:53:05 [end_date_ymd] => 2025-01-27 21:53:05 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:53:05' and `end` < '2025-01-27 21: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-01-27 21:53:18] Production.INFO: count ==1410 [2025-01-27 21:53:19] Production.ERROR: pbx CDR StartTime 2025-01-27 18:53:05 - End Time 2025-01-27 21:53:05 [2025-01-27 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344526', 'tblTempUsageDetail_20' ) start [2025-01-27 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344526', 'tblTempUsageDetail_20' ) end [2025-01-27 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344526', 'tblTempVendorCDR_20' ) start [2025-01-27 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344526', 'tblTempVendorCDR_20' ) end [2025-01-27 21:53:19] Production.INFO: ProcessCDR(1,14344526,1,1,2) [2025-01-27 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344526', 'tblTempUsageDetail_20' ) start [2025-01-27 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344526', 'tblTempUsageDetail_20' ) end [2025-01-27 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:53:22] Production.INFO: ==28764== Releasing lock... [2025-01-27 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:53:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-27 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:54:05 [end_date_ymd] => 2025-01-27 21:54:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:54:05' and `end` < '2025-01-27 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-01-27 21:54:17] Production.INFO: count ==1401 [2025-01-27 21:54:17] Production.ERROR: pbx CDR StartTime 2025-01-27 18:54:05 - End Time 2025-01-27 21:54:05 [2025-01-27 21:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344531', 'tblTempUsageDetail_20' ) start [2025-01-27 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344531', 'tblTempUsageDetail_20' ) end [2025-01-27 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344531', 'tblTempVendorCDR_20' ) start [2025-01-27 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344531', 'tblTempVendorCDR_20' ) end [2025-01-27 21:54:17] Production.INFO: ProcessCDR(1,14344531,1,1,2) [2025-01-27 21:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344531', 'tblTempUsageDetail_20' ) start [2025-01-27 21:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344531', 'tblTempUsageDetail_20' ) end [2025-01-27 21:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:54:20] Production.INFO: ==28836== Releasing lock... [2025-01-27 21:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:54:20] Production.INFO: 38 MB #Memory Used# [2025-01-27 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:55:05 [end_date_ymd] => 2025-01-27 21:55:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:55:05' and `end` < '2025-01-27 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-01-27 21:55:19] Production.INFO: count ==1401 [2025-01-27 21:55:19] Production.ERROR: pbx CDR StartTime 2025-01-27 18:55:05 - End Time 2025-01-27 21:55:05 [2025-01-27 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344536', 'tblTempUsageDetail_20' ) start [2025-01-27 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344536', 'tblTempUsageDetail_20' ) end [2025-01-27 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344536', 'tblTempVendorCDR_20' ) start [2025-01-27 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344536', 'tblTempVendorCDR_20' ) end [2025-01-27 21:55:19] Production.INFO: ProcessCDR(1,14344536,1,1,2) [2025-01-27 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344536', 'tblTempUsageDetail_20' ) start [2025-01-27 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344536', 'tblTempUsageDetail_20' ) end [2025-01-27 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:55:22] Production.INFO: ==28947== Releasing lock... [2025-01-27 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:55:22] Production.INFO: 38 MB #Memory Used# [2025-01-27 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:56:05 [end_date_ymd] => 2025-01-27 21:56:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:56:05' and `end` < '2025-01-27 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-01-27 21:56:17] Production.INFO: count ==1399 [2025-01-27 21:56:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:56:05 - End Time 2025-01-27 21:56:05 [2025-01-27 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344541', 'tblTempUsageDetail_20' ) start [2025-01-27 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344541', 'tblTempUsageDetail_20' ) end [2025-01-27 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344541', 'tblTempVendorCDR_20' ) start [2025-01-27 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344541', 'tblTempVendorCDR_20' ) end [2025-01-27 21:56:18] Production.INFO: ProcessCDR(1,14344541,1,1,2) [2025-01-27 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344541', 'tblTempUsageDetail_20' ) start [2025-01-27 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344541', 'tblTempUsageDetail_20' ) end [2025-01-27 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:56:21] Production.INFO: ==29022== Releasing lock... [2025-01-27 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:56:21] Production.INFO: 38 MB #Memory Used# [2025-01-27 21:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:57:04 [end_date_ymd] => 2025-01-27 21:57:04 [RateCDR] => 1 ) [2025-01-27 21:57: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-01-27 18:57:04' and `end` < '2025-01-27 21:57: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-01-27 21:57:17] Production.INFO: count ==1397 [2025-01-27 21:57:17] Production.ERROR: pbx CDR StartTime 2025-01-27 18:57:04 - End Time 2025-01-27 21:57:04 [2025-01-27 21:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344546', 'tblTempUsageDetail_20' ) start [2025-01-27 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344546', 'tblTempUsageDetail_20' ) end [2025-01-27 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344546', 'tblTempVendorCDR_20' ) start [2025-01-27 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344546', 'tblTempVendorCDR_20' ) end [2025-01-27 21:57:17] Production.INFO: ProcessCDR(1,14344546,1,1,2) [2025-01-27 21:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344546', 'tblTempUsageDetail_20' ) start [2025-01-27 21:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344546', 'tblTempUsageDetail_20' ) end [2025-01-27 21:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:57:21] Production.INFO: ==29097== Releasing lock... [2025-01-27 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:57:21] Production.INFO: 38 MB #Memory Used# [2025-01-27 21:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:58:06 [end_date_ymd] => 2025-01-27 21:58:06 [RateCDR] => 1 ) [2025-01-27 21: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-01-27 18:58:06' and `end` < '2025-01-27 21: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-01-27 21:58:18] Production.INFO: count ==1396 [2025-01-27 21:58:18] Production.ERROR: pbx CDR StartTime 2025-01-27 18:58:06 - End Time 2025-01-27 21:58:06 [2025-01-27 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344551', 'tblTempUsageDetail_20' ) start [2025-01-27 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344551', 'tblTempUsageDetail_20' ) end [2025-01-27 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344551', 'tblTempVendorCDR_20' ) start [2025-01-27 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344551', 'tblTempVendorCDR_20' ) end [2025-01-27 21:58:18] Production.INFO: ProcessCDR(1,14344551,1,1,2) [2025-01-27 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344551', 'tblTempUsageDetail_20' ) start [2025-01-27 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344551', 'tblTempUsageDetail_20' ) end [2025-01-27 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:58:22] Production.INFO: ==29170== Releasing lock... [2025-01-27 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:58:22] Production.INFO: 38 MB #Memory Used# [2025-01-27 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 18:59:05 [end_date_ymd] => 2025-01-27 21:59:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 18:59:05' and `end` < '2025-01-27 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-01-27 21:59:21] Production.INFO: count ==1395 [2025-01-27 21:59:21] Production.ERROR: pbx CDR StartTime 2025-01-27 18:59:05 - End Time 2025-01-27 21:59:05 [2025-01-27 21:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 21:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344556', 'tblTempUsageDetail_20' ) start [2025-01-27 21:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344556', 'tblTempUsageDetail_20' ) end [2025-01-27 21:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344556', 'tblTempVendorCDR_20' ) start [2025-01-27 21:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344556', 'tblTempVendorCDR_20' ) end [2025-01-27 21:59:21] Production.INFO: ProcessCDR(1,14344556,1,1,2) [2025-01-27 21:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 21:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 21:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344556', 'tblTempUsageDetail_20' ) start [2025-01-27 21:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344556', 'tblTempUsageDetail_20' ) end [2025-01-27 21:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 21:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 21:59:24] Production.INFO: ==29244== Releasing lock... [2025-01-27 21:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 21:59:24] Production.INFO: 38 MB #Memory Used# [2025-01-27 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:00:06 [end_date_ymd] => 2025-01-27 22:00:06 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:00:06' and `end` < '2025-01-27 22: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-01-27 22:00:19] Production.INFO: count ==1393 [2025-01-27 22:00:19] Production.ERROR: pbx CDR StartTime 2025-01-27 19:00:06 - End Time 2025-01-27 22:00:06 [2025-01-27 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344561', 'tblTempUsageDetail_20' ) start [2025-01-27 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344561', 'tblTempUsageDetail_20' ) end [2025-01-27 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344561', 'tblTempVendorCDR_20' ) start [2025-01-27 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344561', 'tblTempVendorCDR_20' ) end [2025-01-27 22:00:19] Production.INFO: ProcessCDR(1,14344561,1,1,2) [2025-01-27 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344561', 'tblTempUsageDetail_20' ) start [2025-01-27 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344561', 'tblTempUsageDetail_20' ) end [2025-01-27 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:00:22] Production.INFO: ==29319== Releasing lock... [2025-01-27 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:00:22] Production.INFO: 38 MB #Memory Used# [2025-01-27 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:01:05 [end_date_ymd] => 2025-01-27 22:01:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:01:05' and `end` < '2025-01-27 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-01-27 22:01:18] Production.INFO: count ==1337 [2025-01-27 22:01:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:01:05 - End Time 2025-01-27 22:01:05 [2025-01-27 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344567', 'tblTempUsageDetail_20' ) start [2025-01-27 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344567', 'tblTempUsageDetail_20' ) end [2025-01-27 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344567', 'tblTempVendorCDR_20' ) start [2025-01-27 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344567', 'tblTempVendorCDR_20' ) end [2025-01-27 22:01:18] Production.INFO: ProcessCDR(1,14344567,1,1,2) [2025-01-27 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344567', 'tblTempUsageDetail_20' ) start [2025-01-27 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344567', 'tblTempUsageDetail_20' ) end [2025-01-27 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:01:21] Production.INFO: ==29407== Releasing lock... [2025-01-27 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:01:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-27 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:02:05 [end_date_ymd] => 2025-01-27 22:02:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:02:05' and `end` < '2025-01-27 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-01-27 22:02:18] Production.INFO: count ==1336 [2025-01-27 22:02:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:02:05 - End Time 2025-01-27 22:02:05 [2025-01-27 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344572', 'tblTempUsageDetail_20' ) start [2025-01-27 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344572', 'tblTempUsageDetail_20' ) end [2025-01-27 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344572', 'tblTempVendorCDR_20' ) start [2025-01-27 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344572', 'tblTempVendorCDR_20' ) end [2025-01-27 22:02:18] Production.INFO: ProcessCDR(1,14344572,1,1,2) [2025-01-27 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344572', 'tblTempUsageDetail_20' ) start [2025-01-27 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344572', 'tblTempUsageDetail_20' ) end [2025-01-27 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:02:21] Production.INFO: ==29479== Releasing lock... [2025-01-27 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:02:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-27 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:03:05 [end_date_ymd] => 2025-01-27 22:03:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:03:05' and `end` < '2025-01-27 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-01-27 22:03:17] Production.INFO: count ==1341 [2025-01-27 22:03:17] Production.ERROR: pbx CDR StartTime 2025-01-27 19:03:05 - End Time 2025-01-27 22:03:05 [2025-01-27 22:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344577', 'tblTempUsageDetail_20' ) start [2025-01-27 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344577', 'tblTempUsageDetail_20' ) end [2025-01-27 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344577', 'tblTempVendorCDR_20' ) start [2025-01-27 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344577', 'tblTempVendorCDR_20' ) end [2025-01-27 22:03:17] Production.INFO: ProcessCDR(1,14344577,1,1,2) [2025-01-27 22:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344577', 'tblTempUsageDetail_20' ) start [2025-01-27 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344577', 'tblTempUsageDetail_20' ) end [2025-01-27 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:03:23] Production.INFO: ==29549== Releasing lock... [2025-01-27 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:03:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-27 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:04:05 [end_date_ymd] => 2025-01-27 22:04:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:04:05' and `end` < '2025-01-27 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-01-27 22:04:19] Production.INFO: count ==1339 [2025-01-27 22:04:19] Production.ERROR: pbx CDR StartTime 2025-01-27 19:04:05 - End Time 2025-01-27 22:04:05 [2025-01-27 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344582', 'tblTempUsageDetail_20' ) start [2025-01-27 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344582', 'tblTempUsageDetail_20' ) end [2025-01-27 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344582', 'tblTempVendorCDR_20' ) start [2025-01-27 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344582', 'tblTempVendorCDR_20' ) end [2025-01-27 22:04:19] Production.INFO: ProcessCDR(1,14344582,1,1,2) [2025-01-27 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344582', 'tblTempUsageDetail_20' ) start [2025-01-27 22:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344582', 'tblTempUsageDetail_20' ) end [2025-01-27 22:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:04:24] Production.INFO: ==29621== Releasing lock... [2025-01-27 22:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:04:24] Production.INFO: 37.5 MB #Memory Used# [2025-01-27 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:05:05 [end_date_ymd] => 2025-01-27 22:05:05 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:05:05' and `end` < '2025-01-27 22: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-01-27 22:05:17] Production.INFO: count ==1339 [2025-01-27 22:05:17] Production.ERROR: pbx CDR StartTime 2025-01-27 19:05:05 - End Time 2025-01-27 22:05:05 [2025-01-27 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344587', 'tblTempUsageDetail_20' ) start [2025-01-27 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344587', 'tblTempUsageDetail_20' ) end [2025-01-27 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344587', 'tblTempVendorCDR_20' ) start [2025-01-27 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344587', 'tblTempVendorCDR_20' ) end [2025-01-27 22:05:17] Production.INFO: ProcessCDR(1,14344587,1,1,2) [2025-01-27 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344587', 'tblTempUsageDetail_20' ) start [2025-01-27 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344587', 'tblTempUsageDetail_20' ) end [2025-01-27 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:05:22] Production.INFO: ==29692== Releasing lock... [2025-01-27 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:05:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-27 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:06:05 [end_date_ymd] => 2025-01-27 22:06:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:06:05' and `end` < '2025-01-27 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-01-27 22:06:18] Production.INFO: count ==1337 [2025-01-27 22:06:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:06:05 - End Time 2025-01-27 22:06:05 [2025-01-27 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344592', 'tblTempUsageDetail_20' ) start [2025-01-27 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344592', 'tblTempUsageDetail_20' ) end [2025-01-27 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344592', 'tblTempVendorCDR_20' ) start [2025-01-27 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344592', 'tblTempVendorCDR_20' ) end [2025-01-27 22:06:18] Production.INFO: ProcessCDR(1,14344592,1,1,2) [2025-01-27 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344592', 'tblTempUsageDetail_20' ) start [2025-01-27 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344592', 'tblTempUsageDetail_20' ) end [2025-01-27 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:06:21] Production.INFO: ==29763== Releasing lock... [2025-01-27 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:06:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-27 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:07:05 [end_date_ymd] => 2025-01-27 22:07:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:07:05' and `end` < '2025-01-27 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-01-27 22:07:18] Production.INFO: count ==1339 [2025-01-27 22:07:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:07:05 - End Time 2025-01-27 22:07:05 [2025-01-27 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344597', 'tblTempUsageDetail_20' ) start [2025-01-27 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344597', 'tblTempUsageDetail_20' ) end [2025-01-27 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344597', 'tblTempVendorCDR_20' ) start [2025-01-27 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344597', 'tblTempVendorCDR_20' ) end [2025-01-27 22:07:18] Production.INFO: ProcessCDR(1,14344597,1,1,2) [2025-01-27 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344597', 'tblTempUsageDetail_20' ) start [2025-01-27 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344597', 'tblTempUsageDetail_20' ) end [2025-01-27 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:07:22] Production.INFO: ==29836== Releasing lock... [2025-01-27 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:07:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-27 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:08:05 [end_date_ymd] => 2025-01-27 22:08:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:08:05' and `end` < '2025-01-27 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-01-27 22:08:17] Production.INFO: count ==1337 [2025-01-27 22:08:17] Production.ERROR: pbx CDR StartTime 2025-01-27 19:08:05 - End Time 2025-01-27 22:08:05 [2025-01-27 22:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344602', 'tblTempUsageDetail_20' ) start [2025-01-27 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344602', 'tblTempUsageDetail_20' ) end [2025-01-27 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344602', 'tblTempVendorCDR_20' ) start [2025-01-27 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344602', 'tblTempVendorCDR_20' ) end [2025-01-27 22:08:17] Production.INFO: ProcessCDR(1,14344602,1,1,2) [2025-01-27 22:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344602', 'tblTempUsageDetail_20' ) start [2025-01-27 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344602', 'tblTempUsageDetail_20' ) end [2025-01-27 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:08:21] Production.INFO: ==29909== Releasing lock... [2025-01-27 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:08:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-27 22:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:09:06 [end_date_ymd] => 2025-01-27 22:09:06 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:09:06' and `end` < '2025-01-27 22: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-01-27 22:09:18] Production.INFO: count ==1338 [2025-01-27 22:09:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:09:06 - End Time 2025-01-27 22:09:06 [2025-01-27 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344607', 'tblTempUsageDetail_20' ) start [2025-01-27 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344607', 'tblTempUsageDetail_20' ) end [2025-01-27 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344607', 'tblTempVendorCDR_20' ) start [2025-01-27 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344607', 'tblTempVendorCDR_20' ) end [2025-01-27 22:09:18] Production.INFO: ProcessCDR(1,14344607,1,1,2) [2025-01-27 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344607', 'tblTempUsageDetail_20' ) start [2025-01-27 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344607', 'tblTempUsageDetail_20' ) end [2025-01-27 22:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:09:23] Production.INFO: ==29989== Releasing lock... [2025-01-27 22:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:09:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-27 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:10:06 [end_date_ymd] => 2025-01-27 22:10:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:10:06' and `end` < '2025-01-27 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-01-27 22:10:19] Production.INFO: count ==1328 [2025-01-27 22:10:20] Production.ERROR: pbx CDR StartTime 2025-01-27 19:10:06 - End Time 2025-01-27 22:10:06 [2025-01-27 22:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344612', 'tblTempUsageDetail_20' ) start [2025-01-27 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344612', 'tblTempUsageDetail_20' ) end [2025-01-27 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344612', 'tblTempVendorCDR_20' ) start [2025-01-27 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344612', 'tblTempVendorCDR_20' ) end [2025-01-27 22:10:20] Production.INFO: ProcessCDR(1,14344612,1,1,2) [2025-01-27 22:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344612', 'tblTempUsageDetail_20' ) start [2025-01-27 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344612', 'tblTempUsageDetail_20' ) end [2025-01-27 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:10:23] Production.INFO: ==30100== Releasing lock... [2025-01-27 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:10:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-27 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:11:05 [end_date_ymd] => 2025-01-27 22:11:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:11:05' and `end` < '2025-01-27 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-01-27 22:11:17] Production.INFO: count ==1306 [2025-01-27 22:11:17] Production.ERROR: pbx CDR StartTime 2025-01-27 19:11:05 - End Time 2025-01-27 22:11:05 [2025-01-27 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344618', 'tblTempUsageDetail_20' ) start [2025-01-27 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344618', 'tblTempUsageDetail_20' ) end [2025-01-27 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344618', 'tblTempVendorCDR_20' ) start [2025-01-27 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344618', 'tblTempVendorCDR_20' ) end [2025-01-27 22:11:17] Production.INFO: ProcessCDR(1,14344618,1,1,2) [2025-01-27 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344618', 'tblTempUsageDetail_20' ) start [2025-01-27 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344618', 'tblTempUsageDetail_20' ) end [2025-01-27 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:11:21] Production.INFO: ==30175== Releasing lock... [2025-01-27 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:11:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-27 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:12:05 [end_date_ymd] => 2025-01-27 22:12:05 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:12:05' and `end` < '2025-01-27 22: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-01-27 22:12:18] Production.INFO: count ==1300 [2025-01-27 22:12:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:12:05 - End Time 2025-01-27 22:12:05 [2025-01-27 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344623', 'tblTempUsageDetail_20' ) start [2025-01-27 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344623', 'tblTempUsageDetail_20' ) end [2025-01-27 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344623', 'tblTempVendorCDR_20' ) start [2025-01-27 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344623', 'tblTempVendorCDR_20' ) end [2025-01-27 22:12:18] Production.INFO: ProcessCDR(1,14344623,1,1,2) [2025-01-27 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344623', 'tblTempUsageDetail_20' ) start [2025-01-27 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344623', 'tblTempUsageDetail_20' ) end [2025-01-27 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:12:21] Production.INFO: ==30246== Releasing lock... [2025-01-27 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:12:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-27 22:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:13:06 [end_date_ymd] => 2025-01-27 22:13:06 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:13:06' and `end` < '2025-01-27 22: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-01-27 22:13:18] Production.INFO: count ==1303 [2025-01-27 22:13:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:13:06 - End Time 2025-01-27 22:13:06 [2025-01-27 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344628', 'tblTempUsageDetail_20' ) start [2025-01-27 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344628', 'tblTempUsageDetail_20' ) end [2025-01-27 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344628', 'tblTempVendorCDR_20' ) start [2025-01-27 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344628', 'tblTempVendorCDR_20' ) end [2025-01-27 22:13:18] Production.INFO: ProcessCDR(1,14344628,1,1,2) [2025-01-27 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344628', 'tblTempUsageDetail_20' ) start [2025-01-27 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344628', 'tblTempUsageDetail_20' ) end [2025-01-27 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:13:22] Production.INFO: ==30326== Releasing lock... [2025-01-27 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:13:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-27 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:14:05 [end_date_ymd] => 2025-01-27 22:14:05 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:14:05' and `end` < '2025-01-27 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-01-27 22:14:17] Production.INFO: count ==1289 [2025-01-27 22:14:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:14:05 - End Time 2025-01-27 22:14:05 [2025-01-27 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344633', 'tblTempUsageDetail_20' ) start [2025-01-27 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344633', 'tblTempUsageDetail_20' ) end [2025-01-27 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344633', 'tblTempVendorCDR_20' ) start [2025-01-27 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344633', 'tblTempVendorCDR_20' ) end [2025-01-27 22:14:18] Production.INFO: ProcessCDR(1,14344633,1,1,2) [2025-01-27 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344633', 'tblTempUsageDetail_20' ) start [2025-01-27 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344633', 'tblTempUsageDetail_20' ) end [2025-01-27 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:14:21] Production.INFO: ==30395== Releasing lock... [2025-01-27 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:14:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-27 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:15:05 [end_date_ymd] => 2025-01-27 22:15:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:15:05' and `end` < '2025-01-27 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-01-27 22:15:19] Production.INFO: count ==1289 [2025-01-27 22:15:19] Production.ERROR: pbx CDR StartTime 2025-01-27 19:15:05 - End Time 2025-01-27 22:15:05 [2025-01-27 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344638', 'tblTempUsageDetail_20' ) start [2025-01-27 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344638', 'tblTempUsageDetail_20' ) end [2025-01-27 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344638', 'tblTempVendorCDR_20' ) start [2025-01-27 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344638', 'tblTempVendorCDR_20' ) end [2025-01-27 22:15:19] Production.INFO: ProcessCDR(1,14344638,1,1,2) [2025-01-27 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344638', 'tblTempUsageDetail_20' ) start [2025-01-27 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344638', 'tblTempUsageDetail_20' ) end [2025-01-27 22:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:15:23] Production.INFO: ==30469== Releasing lock... [2025-01-27 22:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:15:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-27 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:16:05 [end_date_ymd] => 2025-01-27 22:16:05 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:16:05' and `end` < '2025-01-27 22: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-01-27 22:16:17] Production.INFO: count ==1289 [2025-01-27 22:16:17] Production.ERROR: pbx CDR StartTime 2025-01-27 19:16:05 - End Time 2025-01-27 22:16:05 [2025-01-27 22:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344643', 'tblTempUsageDetail_20' ) start [2025-01-27 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344643', 'tblTempUsageDetail_20' ) end [2025-01-27 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344643', 'tblTempVendorCDR_20' ) start [2025-01-27 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344643', 'tblTempVendorCDR_20' ) end [2025-01-27 22:16:17] Production.INFO: ProcessCDR(1,14344643,1,1,2) [2025-01-27 22:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344643', 'tblTempUsageDetail_20' ) start [2025-01-27 22:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344643', 'tblTempUsageDetail_20' ) end [2025-01-27 22:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:16:20] Production.INFO: ==30537== Releasing lock... [2025-01-27 22:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:16:20] Production.INFO: 37.25 MB #Memory Used# [2025-01-27 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:17:05 [end_date_ymd] => 2025-01-27 22:17:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:17:05' and `end` < '2025-01-27 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-01-27 22:17:19] Production.INFO: count ==1297 [2025-01-27 22:17:19] Production.ERROR: pbx CDR StartTime 2025-01-27 19:17:05 - End Time 2025-01-27 22:17:05 [2025-01-27 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344648', 'tblTempUsageDetail_20' ) start [2025-01-27 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344648', 'tblTempUsageDetail_20' ) end [2025-01-27 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344648', 'tblTempVendorCDR_20' ) start [2025-01-27 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344648', 'tblTempVendorCDR_20' ) end [2025-01-27 22:17:19] Production.INFO: ProcessCDR(1,14344648,1,1,2) [2025-01-27 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344648', 'tblTempUsageDetail_20' ) start [2025-01-27 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344648', 'tblTempUsageDetail_20' ) end [2025-01-27 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:17:22] Production.INFO: ==30609== Releasing lock... [2025-01-27 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:17:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-27 22:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:18:04 [end_date_ymd] => 2025-01-27 22:18:04 [RateCDR] => 1 ) [2025-01-27 22:18: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-01-27 19:18:04' and `end` < '2025-01-27 22:18: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-01-27 22:18:17] Production.INFO: count ==1292 [2025-01-27 22:18:17] Production.ERROR: pbx CDR StartTime 2025-01-27 19:18:04 - End Time 2025-01-27 22:18:04 [2025-01-27 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344653', 'tblTempUsageDetail_20' ) start [2025-01-27 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344653', 'tblTempUsageDetail_20' ) end [2025-01-27 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344653', 'tblTempVendorCDR_20' ) start [2025-01-27 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344653', 'tblTempVendorCDR_20' ) end [2025-01-27 22:18:17] Production.INFO: ProcessCDR(1,14344653,1,1,2) [2025-01-27 22:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344653', 'tblTempUsageDetail_20' ) start [2025-01-27 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344653', 'tblTempUsageDetail_20' ) end [2025-01-27 22:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:18:20] Production.INFO: ==30681== Releasing lock... [2025-01-27 22:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:18:20] Production.INFO: 37.25 MB #Memory Used# [2025-01-27 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:19:05 [end_date_ymd] => 2025-01-27 22:19:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:19:05' and `end` < '2025-01-27 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-01-27 22:19:17] Production.INFO: count ==1285 [2025-01-27 22:19:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:19:05 - End Time 2025-01-27 22:19:05 [2025-01-27 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344658', 'tblTempUsageDetail_20' ) start [2025-01-27 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344658', 'tblTempUsageDetail_20' ) end [2025-01-27 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344658', 'tblTempVendorCDR_20' ) start [2025-01-27 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344658', 'tblTempVendorCDR_20' ) end [2025-01-27 22:19:18] Production.INFO: ProcessCDR(1,14344658,1,1,2) [2025-01-27 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344658', 'tblTempUsageDetail_20' ) start [2025-01-27 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344658', 'tblTempUsageDetail_20' ) end [2025-01-27 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:19:21] Production.INFO: ==30757== Releasing lock... [2025-01-27 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:19:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-27 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:20:06 [end_date_ymd] => 2025-01-27 22:20:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:20:06' and `end` < '2025-01-27 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-01-27 22:20:18] Production.INFO: count ==1283 [2025-01-27 22:20:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:20:06 - End Time 2025-01-27 22:20:06 [2025-01-27 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344664', 'tblTempUsageDetail_20' ) start [2025-01-27 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344664', 'tblTempUsageDetail_20' ) end [2025-01-27 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344664', 'tblTempVendorCDR_20' ) start [2025-01-27 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344664', 'tblTempVendorCDR_20' ) end [2025-01-27 22:20:18] Production.INFO: ProcessCDR(1,14344664,1,1,2) [2025-01-27 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344664', 'tblTempUsageDetail_20' ) start [2025-01-27 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344664', 'tblTempUsageDetail_20' ) end [2025-01-27 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:20:22] Production.INFO: ==30840== Releasing lock... [2025-01-27 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:20:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-27 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:21:05 [end_date_ymd] => 2025-01-27 22:21:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:21:05' and `end` < '2025-01-27 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-01-27 22:21:18] Production.INFO: count ==1226 [2025-01-27 22:21:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:21:05 - End Time 2025-01-27 22:21:05 [2025-01-27 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344669', 'tblTempUsageDetail_20' ) start [2025-01-27 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344669', 'tblTempUsageDetail_20' ) end [2025-01-27 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344669', 'tblTempVendorCDR_20' ) start [2025-01-27 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344669', 'tblTempVendorCDR_20' ) end [2025-01-27 22:21:18] Production.INFO: ProcessCDR(1,14344669,1,1,2) [2025-01-27 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344669', 'tblTempUsageDetail_20' ) start [2025-01-27 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344669', 'tblTempUsageDetail_20' ) end [2025-01-27 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:21:21] Production.INFO: ==30916== Releasing lock... [2025-01-27 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:21:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-27 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:22:05 [end_date_ymd] => 2025-01-27 22:22:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:22:05' and `end` < '2025-01-27 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-01-27 22:22:18] Production.INFO: count ==1228 [2025-01-27 22:22:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:22:05 - End Time 2025-01-27 22:22:05 [2025-01-27 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344674', 'tblTempUsageDetail_20' ) start [2025-01-27 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344674', 'tblTempUsageDetail_20' ) end [2025-01-27 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344674', 'tblTempVendorCDR_20' ) start [2025-01-27 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344674', 'tblTempVendorCDR_20' ) end [2025-01-27 22:22:18] Production.INFO: ProcessCDR(1,14344674,1,1,2) [2025-01-27 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344674', 'tblTempUsageDetail_20' ) start [2025-01-27 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344674', 'tblTempUsageDetail_20' ) end [2025-01-27 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:22:23] Production.INFO: ==30988== Releasing lock... [2025-01-27 22:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:22:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-27 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:23:05 [end_date_ymd] => 2025-01-27 22:23:05 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:23:05' and `end` < '2025-01-27 22: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-01-27 22:23:18] Production.INFO: count ==1231 [2025-01-27 22:23:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:23:05 - End Time 2025-01-27 22:23:05 [2025-01-27 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344679', 'tblTempUsageDetail_20' ) start [2025-01-27 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344679', 'tblTempUsageDetail_20' ) end [2025-01-27 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344679', 'tblTempVendorCDR_20' ) start [2025-01-27 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344679', 'tblTempVendorCDR_20' ) end [2025-01-27 22:23:18] Production.INFO: ProcessCDR(1,14344679,1,1,2) [2025-01-27 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344679', 'tblTempUsageDetail_20' ) start [2025-01-27 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344679', 'tblTempUsageDetail_20' ) end [2025-01-27 22:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:23:23] Production.INFO: ==31060== Releasing lock... [2025-01-27 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:23:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-27 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:24:05 [end_date_ymd] => 2025-01-27 22:24:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:24:05' and `end` < '2025-01-27 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-01-27 22:24:18] Production.INFO: count ==1232 [2025-01-27 22:24:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:24:05 - End Time 2025-01-27 22:24:05 [2025-01-27 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344684', 'tblTempUsageDetail_20' ) start [2025-01-27 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344684', 'tblTempUsageDetail_20' ) end [2025-01-27 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344684', 'tblTempVendorCDR_20' ) start [2025-01-27 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344684', 'tblTempVendorCDR_20' ) end [2025-01-27 22:24:18] Production.INFO: ProcessCDR(1,14344684,1,1,2) [2025-01-27 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344684', 'tblTempUsageDetail_20' ) start [2025-01-27 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344684', 'tblTempUsageDetail_20' ) end [2025-01-27 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:24:21] Production.INFO: ==31158== Releasing lock... [2025-01-27 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:24:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-27 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:25:05 [end_date_ymd] => 2025-01-27 22:25:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:25:05' and `end` < '2025-01-27 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-01-27 22:25:18] Production.INFO: count ==1229 [2025-01-27 22:25:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:25:05 - End Time 2025-01-27 22:25:05 [2025-01-27 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344689', 'tblTempUsageDetail_20' ) start [2025-01-27 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344689', 'tblTempUsageDetail_20' ) end [2025-01-27 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344689', 'tblTempVendorCDR_20' ) start [2025-01-27 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344689', 'tblTempVendorCDR_20' ) end [2025-01-27 22:25:18] Production.INFO: ProcessCDR(1,14344689,1,1,2) [2025-01-27 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344689', 'tblTempUsageDetail_20' ) start [2025-01-27 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344689', 'tblTempUsageDetail_20' ) end [2025-01-27 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:25:21] Production.INFO: ==31259== Releasing lock... [2025-01-27 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:25:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-27 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:26:05 [end_date_ymd] => 2025-01-27 22:26:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:26:05' and `end` < '2025-01-27 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-01-27 22:26:17] Production.INFO: count ==1221 [2025-01-27 22:26:17] Production.ERROR: pbx CDR StartTime 2025-01-27 19:26:05 - End Time 2025-01-27 22:26:05 [2025-01-27 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344694', 'tblTempUsageDetail_20' ) start [2025-01-27 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344694', 'tblTempUsageDetail_20' ) end [2025-01-27 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344694', 'tblTempVendorCDR_20' ) start [2025-01-27 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344694', 'tblTempVendorCDR_20' ) end [2025-01-27 22:26:17] Production.INFO: ProcessCDR(1,14344694,1,1,2) [2025-01-27 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344694', 'tblTempUsageDetail_20' ) start [2025-01-27 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344694', 'tblTempUsageDetail_20' ) end [2025-01-27 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:26:21] Production.INFO: ==31401== Releasing lock... [2025-01-27 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:26:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-27 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:27:05 [end_date_ymd] => 2025-01-27 22:27:05 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:27:05' and `end` < '2025-01-27 22: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-01-27 22:27:19] Production.INFO: count ==1216 [2025-01-27 22:27:19] Production.ERROR: pbx CDR StartTime 2025-01-27 19:27:05 - End Time 2025-01-27 22:27:05 [2025-01-27 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344699', 'tblTempUsageDetail_20' ) start [2025-01-27 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344699', 'tblTempUsageDetail_20' ) end [2025-01-27 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344699', 'tblTempVendorCDR_20' ) start [2025-01-27 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344699', 'tblTempVendorCDR_20' ) end [2025-01-27 22:27:19] Production.INFO: ProcessCDR(1,14344699,1,1,2) [2025-01-27 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344699', 'tblTempUsageDetail_20' ) start [2025-01-27 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344699', 'tblTempUsageDetail_20' ) end [2025-01-27 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:27:22] Production.INFO: ==31475== Releasing lock... [2025-01-27 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:27:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-27 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:28:05 [end_date_ymd] => 2025-01-27 22:28:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:28:05' and `end` < '2025-01-27 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-01-27 22:28:20] Production.INFO: count ==1212 [2025-01-27 22:28:20] Production.ERROR: pbx CDR StartTime 2025-01-27 19:28:05 - End Time 2025-01-27 22:28:05 [2025-01-27 22:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344704', 'tblTempUsageDetail_20' ) start [2025-01-27 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344704', 'tblTempUsageDetail_20' ) end [2025-01-27 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344704', 'tblTempVendorCDR_20' ) start [2025-01-27 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344704', 'tblTempVendorCDR_20' ) end [2025-01-27 22:28:20] Production.INFO: ProcessCDR(1,14344704,1,1,2) [2025-01-27 22:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344704', 'tblTempUsageDetail_20' ) start [2025-01-27 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344704', 'tblTempUsageDetail_20' ) end [2025-01-27 22:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:28:23] Production.INFO: ==31549== Releasing lock... [2025-01-27 22:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:28:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-27 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:29:05 [end_date_ymd] => 2025-01-27 22:29:05 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:29:05' and `end` < '2025-01-27 22: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-01-27 22:29:19] Production.INFO: count ==1210 [2025-01-27 22:29:19] Production.ERROR: pbx CDR StartTime 2025-01-27 19:29:05 - End Time 2025-01-27 22:29:05 [2025-01-27 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344709', 'tblTempUsageDetail_20' ) start [2025-01-27 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344709', 'tblTempUsageDetail_20' ) end [2025-01-27 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344709', 'tblTempVendorCDR_20' ) start [2025-01-27 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344709', 'tblTempVendorCDR_20' ) end [2025-01-27 22:29:19] Production.INFO: ProcessCDR(1,14344709,1,1,2) [2025-01-27 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344709', 'tblTempUsageDetail_20' ) start [2025-01-27 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344709', 'tblTempUsageDetail_20' ) end [2025-01-27 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:29:22] Production.INFO: ==31623== Releasing lock... [2025-01-27 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:29:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-27 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:30:06 [end_date_ymd] => 2025-01-27 22:30:06 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:30:06' and `end` < '2025-01-27 22: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-01-27 22:30:19] Production.INFO: count ==1211 [2025-01-27 22:30:19] Production.ERROR: pbx CDR StartTime 2025-01-27 19:30:06 - End Time 2025-01-27 22:30:06 [2025-01-27 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344715', 'tblTempUsageDetail_20' ) start [2025-01-27 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344715', 'tblTempUsageDetail_20' ) end [2025-01-27 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344715', 'tblTempVendorCDR_20' ) start [2025-01-27 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344715', 'tblTempVendorCDR_20' ) end [2025-01-27 22:30:19] Production.INFO: ProcessCDR(1,14344715,1,1,2) [2025-01-27 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344715', 'tblTempUsageDetail_20' ) start [2025-01-27 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344715', 'tblTempUsageDetail_20' ) end [2025-01-27 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:30:23] Production.INFO: ==31697== Releasing lock... [2025-01-27 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:30:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-27 22:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:31:04 [end_date_ymd] => 2025-01-27 22:31:04 [RateCDR] => 1 ) [2025-01-27 22:31: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-01-27 19:31:04' and `end` < '2025-01-27 22:31: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-01-27 22:31:17] Production.INFO: count ==1144 [2025-01-27 22:31:17] Production.ERROR: pbx CDR StartTime 2025-01-27 19:31:04 - End Time 2025-01-27 22:31:04 [2025-01-27 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344720', 'tblTempUsageDetail_20' ) start [2025-01-27 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344720', 'tblTempUsageDetail_20' ) end [2025-01-27 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344720', 'tblTempVendorCDR_20' ) start [2025-01-27 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344720', 'tblTempVendorCDR_20' ) end [2025-01-27 22:31:17] Production.INFO: ProcessCDR(1,14344720,1,1,2) [2025-01-27 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344720', 'tblTempUsageDetail_20' ) start [2025-01-27 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344720', 'tblTempUsageDetail_20' ) end [2025-01-27 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:31:21] Production.INFO: ==31771== Releasing lock... [2025-01-27 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:31:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-27 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:32:06 [end_date_ymd] => 2025-01-27 22:32:06 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:32:06' and `end` < '2025-01-27 22: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-01-27 22:32:18] Production.INFO: count ==1142 [2025-01-27 22:32:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:32:06 - End Time 2025-01-27 22:32:06 [2025-01-27 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344725', 'tblTempUsageDetail_20' ) start [2025-01-27 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344725', 'tblTempUsageDetail_20' ) end [2025-01-27 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344725', 'tblTempVendorCDR_20' ) start [2025-01-27 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344725', 'tblTempVendorCDR_20' ) end [2025-01-27 22:32:18] Production.INFO: ProcessCDR(1,14344725,1,1,2) [2025-01-27 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344725', 'tblTempUsageDetail_20' ) start [2025-01-27 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344725', 'tblTempUsageDetail_20' ) end [2025-01-27 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:32:22] Production.INFO: ==31845== Releasing lock... [2025-01-27 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:32:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-27 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:33:05 [end_date_ymd] => 2025-01-27 22:33:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:33:05' and `end` < '2025-01-27 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-01-27 22:33:17] Production.INFO: count ==1141 [2025-01-27 22:33:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:33:05 - End Time 2025-01-27 22:33:05 [2025-01-27 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344730', 'tblTempUsageDetail_20' ) start [2025-01-27 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344730', 'tblTempUsageDetail_20' ) end [2025-01-27 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344730', 'tblTempVendorCDR_20' ) start [2025-01-27 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344730', 'tblTempVendorCDR_20' ) end [2025-01-27 22:33:18] Production.INFO: ProcessCDR(1,14344730,1,1,2) [2025-01-27 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344730', 'tblTempUsageDetail_20' ) start [2025-01-27 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344730', 'tblTempUsageDetail_20' ) end [2025-01-27 22:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:33:21] Production.INFO: ==31916== Releasing lock... [2025-01-27 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:33:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-27 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:34:05 [end_date_ymd] => 2025-01-27 22:34:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:34:05' and `end` < '2025-01-27 22: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-01-27 22:34:19] Production.INFO: count ==1141 [2025-01-27 22:34:19] Production.ERROR: pbx CDR StartTime 2025-01-27 19:34:05 - End Time 2025-01-27 22:34:05 [2025-01-27 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344735', 'tblTempUsageDetail_20' ) start [2025-01-27 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344735', 'tblTempUsageDetail_20' ) end [2025-01-27 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344735', 'tblTempVendorCDR_20' ) start [2025-01-27 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344735', 'tblTempVendorCDR_20' ) end [2025-01-27 22:34:19] Production.INFO: ProcessCDR(1,14344735,1,1,2) [2025-01-27 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344735', 'tblTempUsageDetail_20' ) start [2025-01-27 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344735', 'tblTempUsageDetail_20' ) end [2025-01-27 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:34:22] Production.INFO: ==31991== Releasing lock... [2025-01-27 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:34:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-27 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:35:05 [end_date_ymd] => 2025-01-27 22:35:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:35:05' and `end` < '2025-01-27 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-01-27 22:35:17] Production.INFO: count ==1141 [2025-01-27 22:35:17] Production.ERROR: pbx CDR StartTime 2025-01-27 19:35:05 - End Time 2025-01-27 22:35:05 [2025-01-27 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344740', 'tblTempUsageDetail_20' ) start [2025-01-27 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344740', 'tblTempUsageDetail_20' ) end [2025-01-27 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344740', 'tblTempVendorCDR_20' ) start [2025-01-27 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344740', 'tblTempVendorCDR_20' ) end [2025-01-27 22:35:17] Production.INFO: ProcessCDR(1,14344740,1,1,2) [2025-01-27 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344740', 'tblTempUsageDetail_20' ) start [2025-01-27 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344740', 'tblTempUsageDetail_20' ) end [2025-01-27 22:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:35:20] Production.INFO: ==32062== Releasing lock... [2025-01-27 22:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:35:20] Production.INFO: 36.25 MB #Memory Used# [2025-01-27 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:36:05 [end_date_ymd] => 2025-01-27 22:36:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:36:05' and `end` < '2025-01-27 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-01-27 22:36:19] Production.INFO: count ==1137 [2025-01-27 22:36:19] Production.ERROR: pbx CDR StartTime 2025-01-27 19:36:05 - End Time 2025-01-27 22:36:05 [2025-01-27 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344745', 'tblTempUsageDetail_20' ) start [2025-01-27 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344745', 'tblTempUsageDetail_20' ) end [2025-01-27 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344745', 'tblTempVendorCDR_20' ) start [2025-01-27 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344745', 'tblTempVendorCDR_20' ) end [2025-01-27 22:36:20] Production.INFO: ProcessCDR(1,14344745,1,1,2) [2025-01-27 22:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344745', 'tblTempUsageDetail_20' ) start [2025-01-27 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344745', 'tblTempUsageDetail_20' ) end [2025-01-27 22:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:36:23] Production.INFO: ==32133== Releasing lock... [2025-01-27 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:36:23] Production.INFO: 36 MB #Memory Used# [2025-01-27 22:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:37:04 [end_date_ymd] => 2025-01-27 22:37:04 [RateCDR] => 1 ) [2025-01-27 22:37: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-01-27 19:37:04' and `end` < '2025-01-27 22:37: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-01-27 22:37:17] Production.INFO: count ==1130 [2025-01-27 22:37:17] Production.ERROR: pbx CDR StartTime 2025-01-27 19:37:04 - End Time 2025-01-27 22:37:04 [2025-01-27 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344750', 'tblTempUsageDetail_20' ) start [2025-01-27 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344750', 'tblTempUsageDetail_20' ) end [2025-01-27 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344750', 'tblTempVendorCDR_20' ) start [2025-01-27 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344750', 'tblTempVendorCDR_20' ) end [2025-01-27 22:37:17] Production.INFO: ProcessCDR(1,14344750,1,1,2) [2025-01-27 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344750', 'tblTempUsageDetail_20' ) start [2025-01-27 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344750', 'tblTempUsageDetail_20' ) end [2025-01-27 22:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:37:20] Production.INFO: ==32203== Releasing lock... [2025-01-27 22:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:37:20] Production.INFO: 36 MB #Memory Used# [2025-01-27 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:38:05 [end_date_ymd] => 2025-01-27 22:38:05 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:38:05' and `end` < '2025-01-27 22: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-01-27 22:38:17] Production.INFO: count ==1126 [2025-01-27 22:38:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:38:05 - End Time 2025-01-27 22:38:05 [2025-01-27 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344755', 'tblTempUsageDetail_20' ) start [2025-01-27 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344755', 'tblTempUsageDetail_20' ) end [2025-01-27 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344755', 'tblTempVendorCDR_20' ) start [2025-01-27 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344755', 'tblTempVendorCDR_20' ) end [2025-01-27 22:38:18] Production.INFO: ProcessCDR(1,14344755,1,1,2) [2025-01-27 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344755', 'tblTempUsageDetail_20' ) start [2025-01-27 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344755', 'tblTempUsageDetail_20' ) end [2025-01-27 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:38:21] Production.INFO: ==32277== Releasing lock... [2025-01-27 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:38:21] Production.INFO: 36 MB #Memory Used# [2025-01-27 22:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:39:04 [end_date_ymd] => 2025-01-27 22:39:04 [RateCDR] => 1 ) [2025-01-27 22:39: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-01-27 19:39:04' and `end` < '2025-01-27 22:39: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-01-27 22:39:17] Production.INFO: count ==1125 [2025-01-27 22:39:17] Production.ERROR: pbx CDR StartTime 2025-01-27 19:39:04 - End Time 2025-01-27 22:39:04 [2025-01-27 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344760', 'tblTempUsageDetail_20' ) start [2025-01-27 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344760', 'tblTempUsageDetail_20' ) end [2025-01-27 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344760', 'tblTempVendorCDR_20' ) start [2025-01-27 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344760', 'tblTempVendorCDR_20' ) end [2025-01-27 22:39:17] Production.INFO: ProcessCDR(1,14344760,1,1,2) [2025-01-27 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344760', 'tblTempUsageDetail_20' ) start [2025-01-27 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344760', 'tblTempUsageDetail_20' ) end [2025-01-27 22:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:39:20] Production.INFO: ==32346== Releasing lock... [2025-01-27 22:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:39:20] Production.INFO: 36 MB #Memory Used# [2025-01-27 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:40:05 [end_date_ymd] => 2025-01-27 22:40:05 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:40:05' and `end` < '2025-01-27 22: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-01-27 22:40:18] Production.INFO: count ==1118 [2025-01-27 22:40:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:40:05 - End Time 2025-01-27 22:40:05 [2025-01-27 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344765', 'tblTempUsageDetail_20' ) start [2025-01-27 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344765', 'tblTempUsageDetail_20' ) end [2025-01-27 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344765', 'tblTempVendorCDR_20' ) start [2025-01-27 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344765', 'tblTempVendorCDR_20' ) end [2025-01-27 22:40:18] Production.INFO: ProcessCDR(1,14344765,1,1,2) [2025-01-27 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344765', 'tblTempUsageDetail_20' ) start [2025-01-27 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344765', 'tblTempUsageDetail_20' ) end [2025-01-27 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:40:22] Production.INFO: ==32422== Releasing lock... [2025-01-27 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:40:22] Production.INFO: 36 MB #Memory Used# [2025-01-27 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:41:05 [end_date_ymd] => 2025-01-27 22:41:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:41:05' and `end` < '2025-01-27 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-01-27 22:41:18] Production.INFO: count ==1069 [2025-01-27 22:41:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:41:05 - End Time 2025-01-27 22:41:05 [2025-01-27 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344771', 'tblTempUsageDetail_20' ) start [2025-01-27 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344771', 'tblTempUsageDetail_20' ) end [2025-01-27 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344771', 'tblTempVendorCDR_20' ) start [2025-01-27 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344771', 'tblTempVendorCDR_20' ) end [2025-01-27 22:41:18] Production.INFO: ProcessCDR(1,14344771,1,1,2) [2025-01-27 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344771', 'tblTempUsageDetail_20' ) start [2025-01-27 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344771', 'tblTempUsageDetail_20' ) end [2025-01-27 22:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:41:23] Production.INFO: ==32533== Releasing lock... [2025-01-27 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:41:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-27 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:42:05 [end_date_ymd] => 2025-01-27 22:42:05 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:42:05' and `end` < '2025-01-27 22: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-01-27 22:42:18] Production.INFO: count ==1068 [2025-01-27 22:42:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:42:05 - End Time 2025-01-27 22:42:05 [2025-01-27 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344776', 'tblTempUsageDetail_20' ) start [2025-01-27 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344776', 'tblTempUsageDetail_20' ) end [2025-01-27 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344776', 'tblTempVendorCDR_20' ) start [2025-01-27 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344776', 'tblTempVendorCDR_20' ) end [2025-01-27 22:42:18] Production.INFO: ProcessCDR(1,14344776,1,1,2) [2025-01-27 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344776', 'tblTempUsageDetail_20' ) start [2025-01-27 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344776', 'tblTempUsageDetail_20' ) end [2025-01-27 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:42:21] Production.INFO: ==32610== Releasing lock... [2025-01-27 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:42:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-27 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:43:05 [end_date_ymd] => 2025-01-27 22:43:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:43:05' and `end` < '2025-01-27 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-01-27 22:43:17] Production.INFO: count ==1069 [2025-01-27 22:43:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:43:05 - End Time 2025-01-27 22:43:05 [2025-01-27 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344781', 'tblTempUsageDetail_20' ) start [2025-01-27 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344781', 'tblTempUsageDetail_20' ) end [2025-01-27 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344781', 'tblTempVendorCDR_20' ) start [2025-01-27 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344781', 'tblTempVendorCDR_20' ) end [2025-01-27 22:43:18] Production.INFO: ProcessCDR(1,14344781,1,1,2) [2025-01-27 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344781', 'tblTempUsageDetail_20' ) start [2025-01-27 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344781', 'tblTempUsageDetail_20' ) end [2025-01-27 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:43:22] Production.INFO: ==32685== Releasing lock... [2025-01-27 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:43:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-27 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:44:05 [end_date_ymd] => 2025-01-27 22:44:05 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:44:05' and `end` < '2025-01-27 22: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-01-27 22:44:19] Production.INFO: count ==1072 [2025-01-27 22:44:20] Production.ERROR: pbx CDR StartTime 2025-01-27 19:44:05 - End Time 2025-01-27 22:44:05 [2025-01-27 22:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344786', 'tblTempUsageDetail_20' ) start [2025-01-27 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344786', 'tblTempUsageDetail_20' ) end [2025-01-27 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344786', 'tblTempVendorCDR_20' ) start [2025-01-27 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344786', 'tblTempVendorCDR_20' ) end [2025-01-27 22:44:20] Production.INFO: ProcessCDR(1,14344786,1,1,2) [2025-01-27 22:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344786', 'tblTempUsageDetail_20' ) start [2025-01-27 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344786', 'tblTempUsageDetail_20' ) end [2025-01-27 22:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:44:23] Production.INFO: ==32762== Releasing lock... [2025-01-27 22:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:44:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-27 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:45:05 [end_date_ymd] => 2025-01-27 22:45:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:45:05' and `end` < '2025-01-27 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-01-27 22:45:18] Production.INFO: count ==1070 [2025-01-27 22:45:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:45:05 - End Time 2025-01-27 22:45:05 [2025-01-27 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344791', 'tblTempUsageDetail_20' ) start [2025-01-27 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344791', 'tblTempUsageDetail_20' ) end [2025-01-27 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344791', 'tblTempVendorCDR_20' ) start [2025-01-27 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344791', 'tblTempVendorCDR_20' ) end [2025-01-27 22:45:18] Production.INFO: ProcessCDR(1,14344791,1,1,2) [2025-01-27 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344791', 'tblTempUsageDetail_20' ) start [2025-01-27 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344791', 'tblTempUsageDetail_20' ) end [2025-01-27 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:45:21] Production.INFO: ==386== Releasing lock... [2025-01-27 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:45:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-27 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:46:05 [end_date_ymd] => 2025-01-27 22:46:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:46:05' and `end` < '2025-01-27 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-01-27 22:46:18] Production.INFO: count ==1070 [2025-01-27 22:46:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:46:05 - End Time 2025-01-27 22:46:05 [2025-01-27 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344796', 'tblTempUsageDetail_20' ) start [2025-01-27 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344796', 'tblTempUsageDetail_20' ) end [2025-01-27 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344796', 'tblTempVendorCDR_20' ) start [2025-01-27 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344796', 'tblTempVendorCDR_20' ) end [2025-01-27 22:46:18] Production.INFO: ProcessCDR(1,14344796,1,1,2) [2025-01-27 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344796', 'tblTempUsageDetail_20' ) start [2025-01-27 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344796', 'tblTempUsageDetail_20' ) end [2025-01-27 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:46:21] Production.INFO: ==456== Releasing lock... [2025-01-27 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:46:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-27 22:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:47:06 [end_date_ymd] => 2025-01-27 22:47:06 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:47:06' and `end` < '2025-01-27 22: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-01-27 22:47:18] Production.INFO: count ==1068 [2025-01-27 22:47:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:47:06 - End Time 2025-01-27 22:47:06 [2025-01-27 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344801', 'tblTempUsageDetail_20' ) start [2025-01-27 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344801', 'tblTempUsageDetail_20' ) end [2025-01-27 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344801', 'tblTempVendorCDR_20' ) start [2025-01-27 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344801', 'tblTempVendorCDR_20' ) end [2025-01-27 22:47:18] Production.INFO: ProcessCDR(1,14344801,1,1,2) [2025-01-27 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344801', 'tblTempUsageDetail_20' ) start [2025-01-27 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344801', 'tblTempUsageDetail_20' ) end [2025-01-27 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:47:21] Production.INFO: ==531== Releasing lock... [2025-01-27 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:47:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-27 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:48:05 [end_date_ymd] => 2025-01-27 22:48:05 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:48:05' and `end` < '2025-01-27 22: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-01-27 22:48:19] Production.INFO: count ==1067 [2025-01-27 22:48:19] Production.ERROR: pbx CDR StartTime 2025-01-27 19:48:05 - End Time 2025-01-27 22:48:05 [2025-01-27 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344806', 'tblTempUsageDetail_20' ) start [2025-01-27 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344806', 'tblTempUsageDetail_20' ) end [2025-01-27 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344806', 'tblTempVendorCDR_20' ) start [2025-01-27 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344806', 'tblTempVendorCDR_20' ) end [2025-01-27 22:48:19] Production.INFO: ProcessCDR(1,14344806,1,1,2) [2025-01-27 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344806', 'tblTempUsageDetail_20' ) start [2025-01-27 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344806', 'tblTempUsageDetail_20' ) end [2025-01-27 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:48:22] Production.INFO: ==616== Releasing lock... [2025-01-27 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:48:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-27 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:49:05 [end_date_ymd] => 2025-01-27 22:49:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:49:05' and `end` < '2025-01-27 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-01-27 22:49:18] Production.INFO: count ==1067 [2025-01-27 22:49:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:49:05 - End Time 2025-01-27 22:49:05 [2025-01-27 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344811', 'tblTempUsageDetail_20' ) start [2025-01-27 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344811', 'tblTempUsageDetail_20' ) end [2025-01-27 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344811', 'tblTempVendorCDR_20' ) start [2025-01-27 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344811', 'tblTempVendorCDR_20' ) end [2025-01-27 22:49:18] Production.INFO: ProcessCDR(1,14344811,1,1,2) [2025-01-27 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344811', 'tblTempUsageDetail_20' ) start [2025-01-27 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344811', 'tblTempUsageDetail_20' ) end [2025-01-27 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:49:21] Production.INFO: ==721== Releasing lock... [2025-01-27 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:49:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-27 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:50:05 [end_date_ymd] => 2025-01-27 22:50:05 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:50:05' and `end` < '2025-01-27 22: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-01-27 22:50:19] Production.INFO: count ==1068 [2025-01-27 22:50:19] Production.ERROR: pbx CDR StartTime 2025-01-27 19:50:05 - End Time 2025-01-27 22:50:05 [2025-01-27 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344816', 'tblTempUsageDetail_20' ) start [2025-01-27 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344816', 'tblTempUsageDetail_20' ) end [2025-01-27 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344816', 'tblTempVendorCDR_20' ) start [2025-01-27 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344816', 'tblTempVendorCDR_20' ) end [2025-01-27 22:50:19] Production.INFO: ProcessCDR(1,14344816,1,1,2) [2025-01-27 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344816', 'tblTempUsageDetail_20' ) start [2025-01-27 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344816', 'tblTempUsageDetail_20' ) end [2025-01-27 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:50:22] Production.INFO: ==803== Releasing lock... [2025-01-27 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:50:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-27 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:51:05 [end_date_ymd] => 2025-01-27 22:51:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:51:05' and `end` < '2025-01-27 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-01-27 22:51:18] Production.INFO: count ==1024 [2025-01-27 22:51:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:51:05 - End Time 2025-01-27 22:51:05 [2025-01-27 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344822', 'tblTempUsageDetail_20' ) start [2025-01-27 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344822', 'tblTempUsageDetail_20' ) end [2025-01-27 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344822', 'tblTempVendorCDR_20' ) start [2025-01-27 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344822', 'tblTempVendorCDR_20' ) end [2025-01-27 22:51:18] Production.INFO: ProcessCDR(1,14344822,1,1,2) [2025-01-27 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344822', 'tblTempUsageDetail_20' ) start [2025-01-27 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344822', 'tblTempUsageDetail_20' ) end [2025-01-27 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:51:21] Production.INFO: ==877== Releasing lock... [2025-01-27 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:51:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-27 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:52:05 [end_date_ymd] => 2025-01-27 22:52:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:52:05' and `end` < '2025-01-27 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-01-27 22:52:17] Production.INFO: count ==1024 [2025-01-27 22:52:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:52:05 - End Time 2025-01-27 22:52:05 [2025-01-27 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344827', 'tblTempUsageDetail_20' ) start [2025-01-27 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344827', 'tblTempUsageDetail_20' ) end [2025-01-27 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344827', 'tblTempVendorCDR_20' ) start [2025-01-27 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344827', 'tblTempVendorCDR_20' ) end [2025-01-27 22:52:18] Production.INFO: ProcessCDR(1,14344827,1,1,2) [2025-01-27 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344827', 'tblTempUsageDetail_20' ) start [2025-01-27 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344827', 'tblTempUsageDetail_20' ) end [2025-01-27 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:52:21] Production.INFO: ==948== Releasing lock... [2025-01-27 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:52:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-27 22:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:53:06 [end_date_ymd] => 2025-01-27 22:53:06 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:53:06' and `end` < '2025-01-27 22: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-01-27 22:53:20] Production.INFO: count ==1023 [2025-01-27 22:53:20] Production.ERROR: pbx CDR StartTime 2025-01-27 19:53:06 - End Time 2025-01-27 22:53:06 [2025-01-27 22:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344832', 'tblTempUsageDetail_20' ) start [2025-01-27 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344832', 'tblTempUsageDetail_20' ) end [2025-01-27 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344832', 'tblTempVendorCDR_20' ) start [2025-01-27 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344832', 'tblTempVendorCDR_20' ) end [2025-01-27 22:53:20] Production.INFO: ProcessCDR(1,14344832,1,1,2) [2025-01-27 22:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344832', 'tblTempUsageDetail_20' ) start [2025-01-27 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344832', 'tblTempUsageDetail_20' ) end [2025-01-27 22:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:53:23] Production.INFO: ==1020== Releasing lock... [2025-01-27 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:53:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-27 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:54:05 [end_date_ymd] => 2025-01-27 22:54:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:54:05' and `end` < '2025-01-27 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-01-27 22:54:17] Production.INFO: count ==1024 [2025-01-27 22:54:17] Production.ERROR: pbx CDR StartTime 2025-01-27 19:54:05 - End Time 2025-01-27 22:54:05 [2025-01-27 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344837', 'tblTempUsageDetail_20' ) start [2025-01-27 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344837', 'tblTempUsageDetail_20' ) end [2025-01-27 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344837', 'tblTempVendorCDR_20' ) start [2025-01-27 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344837', 'tblTempVendorCDR_20' ) end [2025-01-27 22:54:17] Production.INFO: ProcessCDR(1,14344837,1,1,2) [2025-01-27 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344837', 'tblTempUsageDetail_20' ) start [2025-01-27 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344837', 'tblTempUsageDetail_20' ) end [2025-01-27 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:54:21] Production.INFO: ==1094== Releasing lock... [2025-01-27 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:54:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-27 22:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:55:06 [end_date_ymd] => 2025-01-27 22:55:06 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:55:06' and `end` < '2025-01-27 22: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-01-27 22:55:18] Production.INFO: count ==1024 [2025-01-27 22:55:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:55:06 - End Time 2025-01-27 22:55:06 [2025-01-27 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344842', 'tblTempUsageDetail_20' ) start [2025-01-27 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344842', 'tblTempUsageDetail_20' ) end [2025-01-27 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344842', 'tblTempVendorCDR_20' ) start [2025-01-27 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344842', 'tblTempVendorCDR_20' ) end [2025-01-27 22:55:18] Production.INFO: ProcessCDR(1,14344842,1,1,2) [2025-01-27 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344842', 'tblTempUsageDetail_20' ) start [2025-01-27 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344842', 'tblTempUsageDetail_20' ) end [2025-01-27 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:55:22] Production.INFO: ==1169== Releasing lock... [2025-01-27 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:55:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-27 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:56:05 [end_date_ymd] => 2025-01-27 22:56:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:56:05' and `end` < '2025-01-27 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-01-27 22:56:18] Production.INFO: count ==1023 [2025-01-27 22:56:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:56:05 - End Time 2025-01-27 22:56:05 [2025-01-27 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344847', 'tblTempUsageDetail_20' ) start [2025-01-27 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344847', 'tblTempUsageDetail_20' ) end [2025-01-27 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344847', 'tblTempVendorCDR_20' ) start [2025-01-27 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344847', 'tblTempVendorCDR_20' ) end [2025-01-27 22:56:18] Production.INFO: ProcessCDR(1,14344847,1,1,2) [2025-01-27 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344847', 'tblTempUsageDetail_20' ) start [2025-01-27 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344847', 'tblTempUsageDetail_20' ) end [2025-01-27 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:56:21] Production.INFO: ==1293== Releasing lock... [2025-01-27 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:56:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-27 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:57:05 [end_date_ymd] => 2025-01-27 22:57:05 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:57:05' and `end` < '2025-01-27 22: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-01-27 22:57:18] Production.INFO: count ==1024 [2025-01-27 22:57:18] Production.ERROR: pbx CDR StartTime 2025-01-27 19:57:05 - End Time 2025-01-27 22:57:05 [2025-01-27 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344852', 'tblTempUsageDetail_20' ) start [2025-01-27 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344852', 'tblTempUsageDetail_20' ) end [2025-01-27 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344852', 'tblTempVendorCDR_20' ) start [2025-01-27 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344852', 'tblTempVendorCDR_20' ) end [2025-01-27 22:57:18] Production.INFO: ProcessCDR(1,14344852,1,1,2) [2025-01-27 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344852', 'tblTempUsageDetail_20' ) start [2025-01-27 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344852', 'tblTempUsageDetail_20' ) end [2025-01-27 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:57:21] Production.INFO: ==1369== Releasing lock... [2025-01-27 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:57:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-27 22:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:58:06 [end_date_ymd] => 2025-01-27 22:58:06 [RateCDR] => 1 ) [2025-01-27 22: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-01-27 19:58:06' and `end` < '2025-01-27 22: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-01-27 22:58:18] Production.INFO: count ==1023 [2025-01-27 22:58:19] Production.ERROR: pbx CDR StartTime 2025-01-27 19:58:06 - End Time 2025-01-27 22:58:06 [2025-01-27 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344857', 'tblTempUsageDetail_20' ) start [2025-01-27 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344857', 'tblTempUsageDetail_20' ) end [2025-01-27 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344857', 'tblTempVendorCDR_20' ) start [2025-01-27 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344857', 'tblTempVendorCDR_20' ) end [2025-01-27 22:58:19] Production.INFO: ProcessCDR(1,14344857,1,1,2) [2025-01-27 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344857', 'tblTempUsageDetail_20' ) start [2025-01-27 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344857', 'tblTempUsageDetail_20' ) end [2025-01-27 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:58:22] Production.INFO: ==1442== Releasing lock... [2025-01-27 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:58:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-27 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 19:59:05 [end_date_ymd] => 2025-01-27 22:59:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 19:59:05' and `end` < '2025-01-27 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-01-27 22:59:19] Production.INFO: count ==1024 [2025-01-27 22:59:19] Production.ERROR: pbx CDR StartTime 2025-01-27 19:59:05 - End Time 2025-01-27 22:59:05 [2025-01-27 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344862', 'tblTempUsageDetail_20' ) start [2025-01-27 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344862', 'tblTempUsageDetail_20' ) end [2025-01-27 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344862', 'tblTempVendorCDR_20' ) start [2025-01-27 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344862', 'tblTempVendorCDR_20' ) end [2025-01-27 22:59:19] Production.INFO: ProcessCDR(1,14344862,1,1,2) [2025-01-27 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344862', 'tblTempUsageDetail_20' ) start [2025-01-27 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344862', 'tblTempUsageDetail_20' ) end [2025-01-27 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 22:59:23] Production.INFO: ==1545== Releasing lock... [2025-01-27 22:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 22:59:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-27 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:00:06 [end_date_ymd] => 2025-01-27 23:00:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:00:06' and `end` < '2025-01-27 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-01-27 23:00:18] Production.INFO: count ==1024 [2025-01-27 23:00:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:00:06 - End Time 2025-01-27 23:00:06 [2025-01-27 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344868', 'tblTempUsageDetail_20' ) start [2025-01-27 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344868', 'tblTempUsageDetail_20' ) end [2025-01-27 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344868', 'tblTempVendorCDR_20' ) start [2025-01-27 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344868', 'tblTempVendorCDR_20' ) end [2025-01-27 23:00:19] Production.INFO: ProcessCDR(1,14344868,1,1,2) [2025-01-27 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344868', 'tblTempUsageDetail_20' ) start [2025-01-27 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344868', 'tblTempUsageDetail_20' ) end [2025-01-27 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:00:22] Production.INFO: ==1626== Releasing lock... [2025-01-27 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:00:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-27 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:01:05 [end_date_ymd] => 2025-01-27 23:01:05 [RateCDR] => 1 ) [2025-01-27 23: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-01-27 20:01:05' and `end` < '2025-01-27 23: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-01-27 23:01:18] Production.INFO: count ==972 [2025-01-27 23:01:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:01:05 - End Time 2025-01-27 23:01:05 [2025-01-27 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344873', 'tblTempUsageDetail_20' ) start [2025-01-27 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344873', 'tblTempUsageDetail_20' ) end [2025-01-27 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344873', 'tblTempVendorCDR_20' ) start [2025-01-27 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344873', 'tblTempVendorCDR_20' ) end [2025-01-27 23:01:18] Production.INFO: ProcessCDR(1,14344873,1,1,2) [2025-01-27 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344873', 'tblTempUsageDetail_20' ) start [2025-01-27 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344873', 'tblTempUsageDetail_20' ) end [2025-01-27 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:01:21] Production.INFO: ==1791== Releasing lock... [2025-01-27 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:01:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-27 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:02:05 [end_date_ymd] => 2025-01-27 23:02:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:02:05' and `end` < '2025-01-27 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-01-27 23:02:18] Production.INFO: count ==967 [2025-01-27 23:02:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:02:05 - End Time 2025-01-27 23:02:05 [2025-01-27 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344878', 'tblTempUsageDetail_20' ) start [2025-01-27 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344878', 'tblTempUsageDetail_20' ) end [2025-01-27 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344878', 'tblTempVendorCDR_20' ) start [2025-01-27 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344878', 'tblTempVendorCDR_20' ) end [2025-01-27 23:02:18] Production.INFO: ProcessCDR(1,14344878,1,1,2) [2025-01-27 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344878', 'tblTempUsageDetail_20' ) start [2025-01-27 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344878', 'tblTempUsageDetail_20' ) end [2025-01-27 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:02:21] Production.INFO: ==1867== Releasing lock... [2025-01-27 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:02:21] Production.INFO: 35 MB #Memory Used# [2025-01-27 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:03:05 [end_date_ymd] => 2025-01-27 23:03:05 [RateCDR] => 1 ) [2025-01-27 23: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-01-27 20:03:05' and `end` < '2025-01-27 23: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-01-27 23:03:18] Production.INFO: count ==967 [2025-01-27 23:03:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:03:05 - End Time 2025-01-27 23:03:05 [2025-01-27 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344883', 'tblTempUsageDetail_20' ) start [2025-01-27 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344883', 'tblTempUsageDetail_20' ) end [2025-01-27 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344883', 'tblTempVendorCDR_20' ) start [2025-01-27 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344883', 'tblTempVendorCDR_20' ) end [2025-01-27 23:03:18] Production.INFO: ProcessCDR(1,14344883,1,1,2) [2025-01-27 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344883', 'tblTempUsageDetail_20' ) start [2025-01-27 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344883', 'tblTempUsageDetail_20' ) end [2025-01-27 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:03:21] Production.INFO: ==1938== Releasing lock... [2025-01-27 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:03:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-27 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:04:05 [end_date_ymd] => 2025-01-27 23:04:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:04:05' and `end` < '2025-01-27 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-01-27 23:04:19] Production.INFO: count ==966 [2025-01-27 23:04:19] Production.ERROR: pbx CDR StartTime 2025-01-27 20:04:05 - End Time 2025-01-27 23:04:05 [2025-01-27 23:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344888', 'tblTempUsageDetail_20' ) start [2025-01-27 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344888', 'tblTempUsageDetail_20' ) end [2025-01-27 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344888', 'tblTempVendorCDR_20' ) start [2025-01-27 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344888', 'tblTempVendorCDR_20' ) end [2025-01-27 23:04:19] Production.INFO: ProcessCDR(1,14344888,1,1,2) [2025-01-27 23:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344888', 'tblTempUsageDetail_20' ) start [2025-01-27 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344888', 'tblTempUsageDetail_20' ) end [2025-01-27 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:04:22] Production.INFO: ==2011== Releasing lock... [2025-01-27 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:04:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-27 23:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:05:06 [end_date_ymd] => 2025-01-27 23:05:06 [RateCDR] => 1 ) [2025-01-27 23: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-01-27 20:05:06' and `end` < '2025-01-27 23: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-01-27 23:05:18] Production.INFO: count ==965 [2025-01-27 23:05:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:05:06 - End Time 2025-01-27 23:05:06 [2025-01-27 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344893', 'tblTempUsageDetail_20' ) start [2025-01-27 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344893', 'tblTempUsageDetail_20' ) end [2025-01-27 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344893', 'tblTempVendorCDR_20' ) start [2025-01-27 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344893', 'tblTempVendorCDR_20' ) end [2025-01-27 23:05:18] Production.INFO: ProcessCDR(1,14344893,1,1,2) [2025-01-27 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344893', 'tblTempUsageDetail_20' ) start [2025-01-27 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344893', 'tblTempUsageDetail_20' ) end [2025-01-27 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:05:21] Production.INFO: ==2164== Releasing lock... [2025-01-27 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:05:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-27 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:06:05 [end_date_ymd] => 2025-01-27 23:06:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:06:05' and `end` < '2025-01-27 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-01-27 23:06:18] Production.INFO: count ==964 [2025-01-27 23:06:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:06:05 - End Time 2025-01-27 23:06:05 [2025-01-27 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344898', 'tblTempUsageDetail_20' ) start [2025-01-27 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344898', 'tblTempUsageDetail_20' ) end [2025-01-27 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344898', 'tblTempVendorCDR_20' ) start [2025-01-27 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344898', 'tblTempVendorCDR_20' ) end [2025-01-27 23:06:18] Production.INFO: ProcessCDR(1,14344898,1,1,2) [2025-01-27 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344898', 'tblTempUsageDetail_20' ) start [2025-01-27 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344898', 'tblTempUsageDetail_20' ) end [2025-01-27 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:06:21] Production.INFO: ==2239== Releasing lock... [2025-01-27 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:06:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-27 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:07:05 [end_date_ymd] => 2025-01-27 23:07:05 [RateCDR] => 1 ) [2025-01-27 23: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-01-27 20:07:05' and `end` < '2025-01-27 23: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-01-27 23:07:19] Production.INFO: count ==962 [2025-01-27 23:07:19] Production.ERROR: pbx CDR StartTime 2025-01-27 20:07:05 - End Time 2025-01-27 23:07:05 [2025-01-27 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344903', 'tblTempUsageDetail_20' ) start [2025-01-27 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344903', 'tblTempUsageDetail_20' ) end [2025-01-27 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344903', 'tblTempVendorCDR_20' ) start [2025-01-27 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344903', 'tblTempVendorCDR_20' ) end [2025-01-27 23:07:19] Production.INFO: ProcessCDR(1,14344903,1,1,2) [2025-01-27 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344903', 'tblTempUsageDetail_20' ) start [2025-01-27 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344903', 'tblTempUsageDetail_20' ) end [2025-01-27 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:07:22] Production.INFO: ==2310== Releasing lock... [2025-01-27 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:07:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-27 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:08:05 [end_date_ymd] => 2025-01-27 23:08:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:08:05' and `end` < '2025-01-27 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-01-27 23:08:18] Production.INFO: count ==960 [2025-01-27 23:08:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:08:05 - End Time 2025-01-27 23:08:05 [2025-01-27 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344905', 'tblTempUsageDetail_20' ) start [2025-01-27 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344905', 'tblTempUsageDetail_20' ) end [2025-01-27 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344905', 'tblTempVendorCDR_20' ) start [2025-01-27 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344905', 'tblTempVendorCDR_20' ) end [2025-01-27 23:08:18] Production.INFO: ProcessCDR(1,14344905,1,1,2) [2025-01-27 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344905', 'tblTempUsageDetail_20' ) start [2025-01-27 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344905', 'tblTempUsageDetail_20' ) end [2025-01-27 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:08:22] Production.INFO: ==2467== Releasing lock... [2025-01-27 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:08:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-27 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:09:05 [end_date_ymd] => 2025-01-27 23:09:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:09:05' and `end` < '2025-01-27 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-01-27 23:09:18] Production.INFO: count ==958 [2025-01-27 23:09:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:09:05 - End Time 2025-01-27 23:09:05 [2025-01-27 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344913', 'tblTempUsageDetail_20' ) start [2025-01-27 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344913', 'tblTempUsageDetail_20' ) end [2025-01-27 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344913', 'tblTempVendorCDR_20' ) start [2025-01-27 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344913', 'tblTempVendorCDR_20' ) end [2025-01-27 23:09:18] Production.INFO: ProcessCDR(1,14344913,1,1,2) [2025-01-27 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344913', 'tblTempUsageDetail_20' ) start [2025-01-27 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344913', 'tblTempUsageDetail_20' ) end [2025-01-27 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:09:21] Production.INFO: ==2546== Releasing lock... [2025-01-27 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:09:21] Production.INFO: 35 MB #Memory Used# [2025-01-27 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:10:06 [end_date_ymd] => 2025-01-27 23:10:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:10:06' and `end` < '2025-01-27 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-01-27 23:10:19] Production.INFO: count ==954 [2025-01-27 23:10:19] Production.ERROR: pbx CDR StartTime 2025-01-27 20:10:06 - End Time 2025-01-27 23:10:06 [2025-01-27 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344919', 'tblTempUsageDetail_20' ) start [2025-01-27 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344919', 'tblTempUsageDetail_20' ) end [2025-01-27 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344919', 'tblTempVendorCDR_20' ) start [2025-01-27 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344919', 'tblTempVendorCDR_20' ) end [2025-01-27 23:10:19] Production.INFO: ProcessCDR(1,14344919,1,1,2) [2025-01-27 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344919', 'tblTempUsageDetail_20' ) start [2025-01-27 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344919', 'tblTempUsageDetail_20' ) end [2025-01-27 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:10:22] Production.INFO: ==2630== Releasing lock... [2025-01-27 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:10:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-27 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:11:05 [end_date_ymd] => 2025-01-27 23:11:05 [RateCDR] => 1 ) [2025-01-27 23: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-01-27 20:11:05' and `end` < '2025-01-27 23: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-01-27 23:11:17] Production.INFO: count ==915 [2025-01-27 23:11:17] Production.ERROR: pbx CDR StartTime 2025-01-27 20:11:05 - End Time 2025-01-27 23:11:05 [2025-01-27 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344924', 'tblTempUsageDetail_20' ) start [2025-01-27 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344924', 'tblTempUsageDetail_20' ) end [2025-01-27 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344924', 'tblTempVendorCDR_20' ) start [2025-01-27 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344924', 'tblTempVendorCDR_20' ) end [2025-01-27 23:11:17] Production.INFO: ProcessCDR(1,14344924,1,1,2) [2025-01-27 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344924', 'tblTempUsageDetail_20' ) start [2025-01-27 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344924', 'tblTempUsageDetail_20' ) end [2025-01-27 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:11:21] Production.INFO: ==2711== Releasing lock... [2025-01-27 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:11:21] Production.INFO: 34 MB #Memory Used# [2025-01-27 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:12:06 [end_date_ymd] => 2025-01-27 23:12:06 [RateCDR] => 1 ) [2025-01-27 23: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-01-27 20:12:06' and `end` < '2025-01-27 23: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-01-27 23:12:18] Production.INFO: count ==910 [2025-01-27 23:12:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:12:06 - End Time 2025-01-27 23:12:06 [2025-01-27 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344929', 'tblTempUsageDetail_20' ) start [2025-01-27 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344929', 'tblTempUsageDetail_20' ) end [2025-01-27 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344929', 'tblTempVendorCDR_20' ) start [2025-01-27 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344929', 'tblTempVendorCDR_20' ) end [2025-01-27 23:12:18] Production.INFO: ProcessCDR(1,14344929,1,1,2) [2025-01-27 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344929', 'tblTempUsageDetail_20' ) start [2025-01-27 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344929', 'tblTempUsageDetail_20' ) end [2025-01-27 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:12:22] Production.INFO: ==2909== Releasing lock... [2025-01-27 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:12:22] Production.INFO: 34 MB #Memory Used# [2025-01-27 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:13:04 [end_date_ymd] => 2025-01-27 23:13:04 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:13:04' and `end` < '2025-01-27 23: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-01-27 23:13:17] Production.INFO: count ==910 [2025-01-27 23:13:17] Production.ERROR: pbx CDR StartTime 2025-01-27 20:13:04 - End Time 2025-01-27 23:13:04 [2025-01-27 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344934', 'tblTempUsageDetail_20' ) start [2025-01-27 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344934', 'tblTempUsageDetail_20' ) end [2025-01-27 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344934', 'tblTempVendorCDR_20' ) start [2025-01-27 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344934', 'tblTempVendorCDR_20' ) end [2025-01-27 23:13:17] Production.INFO: ProcessCDR(1,14344934,1,1,2) [2025-01-27 23:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344934', 'tblTempUsageDetail_20' ) start [2025-01-27 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344934', 'tblTempUsageDetail_20' ) end [2025-01-27 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:13:22] Production.INFO: ==2987== Releasing lock... [2025-01-27 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:13:22] Production.INFO: 34 MB #Memory Used# [2025-01-27 23:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:14:06 [end_date_ymd] => 2025-01-27 23:14:06 [RateCDR] => 1 ) [2025-01-27 23: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-01-27 20:14:06' and `end` < '2025-01-27 23: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-01-27 23:14:18] Production.INFO: count ==904 [2025-01-27 23:14:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:14:06 - End Time 2025-01-27 23:14:06 [2025-01-27 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344939', 'tblTempUsageDetail_20' ) start [2025-01-27 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344939', 'tblTempUsageDetail_20' ) end [2025-01-27 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344939', 'tblTempVendorCDR_20' ) start [2025-01-27 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344939', 'tblTempVendorCDR_20' ) end [2025-01-27 23:14:18] Production.INFO: ProcessCDR(1,14344939,1,1,2) [2025-01-27 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344939', 'tblTempUsageDetail_20' ) start [2025-01-27 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344939', 'tblTempUsageDetail_20' ) end [2025-01-27 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:14:22] Production.INFO: ==3064== Releasing lock... [2025-01-27 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:14:22] Production.INFO: 34 MB #Memory Used# [2025-01-27 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:15:05 [end_date_ymd] => 2025-01-27 23:15:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:15:05' and `end` < '2025-01-27 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-01-27 23:15:18] Production.INFO: count ==904 [2025-01-27 23:15:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:15:05 - End Time 2025-01-27 23:15:05 [2025-01-27 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344944', 'tblTempUsageDetail_20' ) start [2025-01-27 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344944', 'tblTempUsageDetail_20' ) end [2025-01-27 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344944', 'tblTempVendorCDR_20' ) start [2025-01-27 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344944', 'tblTempVendorCDR_20' ) end [2025-01-27 23:15:18] Production.INFO: ProcessCDR(1,14344944,1,1,2) [2025-01-27 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344944', 'tblTempUsageDetail_20' ) start [2025-01-27 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344944', 'tblTempUsageDetail_20' ) end [2025-01-27 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:15:21] Production.INFO: ==3221== Releasing lock... [2025-01-27 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:15:21] Production.INFO: 34 MB #Memory Used# [2025-01-27 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:16:05 [end_date_ymd] => 2025-01-27 23:16:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:16:05' and `end` < '2025-01-27 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-01-27 23:16:18] Production.INFO: count ==900 [2025-01-27 23:16:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:16:05 - End Time 2025-01-27 23:16:05 [2025-01-27 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344949', 'tblTempUsageDetail_20' ) start [2025-01-27 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344949', 'tblTempUsageDetail_20' ) end [2025-01-27 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344949', 'tblTempVendorCDR_20' ) start [2025-01-27 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344949', 'tblTempVendorCDR_20' ) end [2025-01-27 23:16:18] Production.INFO: ProcessCDR(1,14344949,1,1,2) [2025-01-27 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344949', 'tblTempUsageDetail_20' ) start [2025-01-27 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344949', 'tblTempUsageDetail_20' ) end [2025-01-27 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:16:21] Production.INFO: ==3304== Releasing lock... [2025-01-27 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:16:21] Production.INFO: 34 MB #Memory Used# [2025-01-27 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:17:05 [end_date_ymd] => 2025-01-27 23:17:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:17:05' and `end` < '2025-01-27 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-01-27 23:17:18] Production.INFO: count ==899 [2025-01-27 23:17:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:17:05 - End Time 2025-01-27 23:17:05 [2025-01-27 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344952', 'tblTempUsageDetail_20' ) start [2025-01-27 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344952', 'tblTempUsageDetail_20' ) end [2025-01-27 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344952', 'tblTempVendorCDR_20' ) start [2025-01-27 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344952', 'tblTempVendorCDR_20' ) end [2025-01-27 23:17:18] Production.INFO: ProcessCDR(1,14344952,1,1,2) [2025-01-27 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344952', 'tblTempUsageDetail_20' ) start [2025-01-27 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344952', 'tblTempUsageDetail_20' ) end [2025-01-27 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:17:21] Production.INFO: ==3381== Releasing lock... [2025-01-27 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:17:21] Production.INFO: 34 MB #Memory Used# [2025-01-27 23:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:18:06 [end_date_ymd] => 2025-01-27 23:18:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:18:06' and `end` < '2025-01-27 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-01-27 23:18:18] Production.INFO: count ==898 [2025-01-27 23:18:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:18:06 - End Time 2025-01-27 23:18:06 [2025-01-27 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344959', 'tblTempUsageDetail_20' ) start [2025-01-27 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344959', 'tblTempUsageDetail_20' ) end [2025-01-27 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344959', 'tblTempVendorCDR_20' ) start [2025-01-27 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344959', 'tblTempVendorCDR_20' ) end [2025-01-27 23:18:18] Production.INFO: ProcessCDR(1,14344959,1,1,2) [2025-01-27 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344959', 'tblTempUsageDetail_20' ) start [2025-01-27 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344959', 'tblTempUsageDetail_20' ) end [2025-01-27 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:18:22] Production.INFO: ==3455== Releasing lock... [2025-01-27 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:18:22] Production.INFO: 34 MB #Memory Used# [2025-01-27 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:19:04 [end_date_ymd] => 2025-01-27 23:19:04 [RateCDR] => 1 ) [2025-01-27 23:19: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-01-27 20:19:04' and `end` < '2025-01-27 23:19: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-01-27 23:19:17] Production.INFO: count ==898 [2025-01-27 23:19:17] Production.ERROR: pbx CDR StartTime 2025-01-27 20:19:04 - End Time 2025-01-27 23:19:04 [2025-01-27 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344964', 'tblTempUsageDetail_20' ) start [2025-01-27 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344964', 'tblTempUsageDetail_20' ) end [2025-01-27 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344964', 'tblTempVendorCDR_20' ) start [2025-01-27 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344964', 'tblTempVendorCDR_20' ) end [2025-01-27 23:19:17] Production.INFO: ProcessCDR(1,14344964,1,1,2) [2025-01-27 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344964', 'tblTempUsageDetail_20' ) start [2025-01-27 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344964', 'tblTempUsageDetail_20' ) end [2025-01-27 23:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:19:20] Production.INFO: ==3533== Releasing lock... [2025-01-27 23:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:19:20] Production.INFO: 34 MB #Memory Used# [2025-01-27 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:20:06 [end_date_ymd] => 2025-01-27 23:20:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:20:06' and `end` < '2025-01-27 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-01-27 23:20:21] Production.INFO: count ==899 [2025-01-27 23:20:21] Production.ERROR: pbx CDR StartTime 2025-01-27 20:20:06 - End Time 2025-01-27 23:20:06 [2025-01-27 23:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344970', 'tblTempUsageDetail_20' ) start [2025-01-27 23:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344970', 'tblTempUsageDetail_20' ) end [2025-01-27 23:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344970', 'tblTempVendorCDR_20' ) start [2025-01-27 23:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344970', 'tblTempVendorCDR_20' ) end [2025-01-27 23:20:21] Production.INFO: ProcessCDR(1,14344970,1,1,2) [2025-01-27 23:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344970', 'tblTempUsageDetail_20' ) start [2025-01-27 23:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344970', 'tblTempUsageDetail_20' ) end [2025-01-27 23:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:20:25] Production.INFO: ==3615== Releasing lock... [2025-01-27 23:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:20:25] Production.INFO: 34 MB #Memory Used# [2025-01-27 23:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:21:06 [end_date_ymd] => 2025-01-27 23:21:06 [RateCDR] => 1 ) [2025-01-27 23: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-01-27 20:21:06' and `end` < '2025-01-27 23: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-01-27 23:21:20] Production.INFO: count ==889 [2025-01-27 23:21:20] Production.ERROR: pbx CDR StartTime 2025-01-27 20:21:06 - End Time 2025-01-27 23:21:06 [2025-01-27 23:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344975', 'tblTempUsageDetail_20' ) start [2025-01-27 23:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344975', 'tblTempUsageDetail_20' ) end [2025-01-27 23:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344975', 'tblTempVendorCDR_20' ) start [2025-01-27 23:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344975', 'tblTempVendorCDR_20' ) end [2025-01-27 23:21:20] Production.INFO: ProcessCDR(1,14344975,1,1,2) [2025-01-27 23:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344975', 'tblTempUsageDetail_20' ) start [2025-01-27 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344975', 'tblTempUsageDetail_20' ) end [2025-01-27 23:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:21:23] Production.INFO: ==3697== Releasing lock... [2025-01-27 23:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:21:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-27 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:22:05 [end_date_ymd] => 2025-01-27 23:22:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:22:05' and `end` < '2025-01-27 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-01-27 23:22:18] Production.INFO: count ==890 [2025-01-27 23:22:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:22:05 - End Time 2025-01-27 23:22:05 [2025-01-27 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344980', 'tblTempUsageDetail_20' ) start [2025-01-27 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344980', 'tblTempUsageDetail_20' ) end [2025-01-27 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344980', 'tblTempVendorCDR_20' ) start [2025-01-27 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344980', 'tblTempVendorCDR_20' ) end [2025-01-27 23:22:18] Production.INFO: ProcessCDR(1,14344980,1,1,2) [2025-01-27 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344980', 'tblTempUsageDetail_20' ) start [2025-01-27 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344980', 'tblTempUsageDetail_20' ) end [2025-01-27 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:22:21] Production.INFO: ==3771== Releasing lock... [2025-01-27 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:22:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-27 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:23:05 [end_date_ymd] => 2025-01-27 23:23:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:23:05' and `end` < '2025-01-27 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-01-27 23:23:17] Production.INFO: count ==890 [2025-01-27 23:23:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:23:05 - End Time 2025-01-27 23:23:05 [2025-01-27 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344985', 'tblTempUsageDetail_20' ) start [2025-01-27 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344985', 'tblTempUsageDetail_20' ) end [2025-01-27 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344985', 'tblTempVendorCDR_20' ) start [2025-01-27 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344985', 'tblTempVendorCDR_20' ) end [2025-01-27 23:23:18] Production.INFO: ProcessCDR(1,14344985,1,1,2) [2025-01-27 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344985', 'tblTempUsageDetail_20' ) start [2025-01-27 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344985', 'tblTempUsageDetail_20' ) end [2025-01-27 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:23:21] Production.INFO: ==3848== Releasing lock... [2025-01-27 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:23:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-27 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:24:05 [end_date_ymd] => 2025-01-27 23:24:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:24:05' and `end` < '2025-01-27 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-01-27 23:24:18] Production.INFO: count ==890 [2025-01-27 23:24:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:24:05 - End Time 2025-01-27 23:24:05 [2025-01-27 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344990', 'tblTempUsageDetail_20' ) start [2025-01-27 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344990', 'tblTempUsageDetail_20' ) end [2025-01-27 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344990', 'tblTempVendorCDR_20' ) start [2025-01-27 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344990', 'tblTempVendorCDR_20' ) end [2025-01-27 23:24:18] Production.INFO: ProcessCDR(1,14344990,1,1,2) [2025-01-27 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344990', 'tblTempUsageDetail_20' ) start [2025-01-27 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344990', 'tblTempUsageDetail_20' ) end [2025-01-27 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:24:21] Production.INFO: ==3923== Releasing lock... [2025-01-27 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:24:21] Production.INFO: 34 MB #Memory Used# [2025-01-27 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:25:05 [end_date_ymd] => 2025-01-27 23:25:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:25:05' and `end` < '2025-01-27 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-01-27 23:25:18] Production.INFO: count ==890 [2025-01-27 23:25:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:25:05 - End Time 2025-01-27 23:25:05 [2025-01-27 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344995', 'tblTempUsageDetail_20' ) start [2025-01-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14344995', 'tblTempUsageDetail_20' ) end [2025-01-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344995', 'tblTempVendorCDR_20' ) start [2025-01-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14344995', 'tblTempVendorCDR_20' ) end [2025-01-27 23:25:18] Production.INFO: ProcessCDR(1,14344995,1,1,2) [2025-01-27 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14344995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14344995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14344995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14344995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344995', 'tblTempUsageDetail_20' ) start [2025-01-27 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14344995', 'tblTempUsageDetail_20' ) end [2025-01-27 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:25:21] Production.INFO: ==3998== Releasing lock... [2025-01-27 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:25:21] Production.INFO: 34 MB #Memory Used# [2025-01-27 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:26:05 [end_date_ymd] => 2025-01-27 23:26:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:26:05' and `end` < '2025-01-27 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-01-27 23:26:17] Production.INFO: count ==888 [2025-01-27 23:26:17] Production.ERROR: pbx CDR StartTime 2025-01-27 20:26:05 - End Time 2025-01-27 23:26:05 [2025-01-27 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345000', 'tblTempUsageDetail_20' ) start [2025-01-27 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345000', 'tblTempUsageDetail_20' ) end [2025-01-27 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345000', 'tblTempVendorCDR_20' ) start [2025-01-27 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345000', 'tblTempVendorCDR_20' ) end [2025-01-27 23:26:18] Production.INFO: ProcessCDR(1,14345000,1,1,2) [2025-01-27 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345000', 'tblTempUsageDetail_20' ) start [2025-01-27 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345000', 'tblTempUsageDetail_20' ) end [2025-01-27 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:26:21] Production.INFO: ==4083== Releasing lock... [2025-01-27 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:26:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-27 23:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:27:06 [end_date_ymd] => 2025-01-27 23:27:06 [RateCDR] => 1 ) [2025-01-27 23: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-01-27 20:27:06' and `end` < '2025-01-27 23: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-01-27 23:27:20] Production.INFO: count ==889 [2025-01-27 23:27:20] Production.ERROR: pbx CDR StartTime 2025-01-27 20:27:06 - End Time 2025-01-27 23:27:06 [2025-01-27 23:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345005', 'tblTempUsageDetail_20' ) start [2025-01-27 23:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345005', 'tblTempUsageDetail_20' ) end [2025-01-27 23:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345005', 'tblTempVendorCDR_20' ) start [2025-01-27 23:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345005', 'tblTempVendorCDR_20' ) end [2025-01-27 23:27:20] Production.INFO: ProcessCDR(1,14345005,1,1,2) [2025-01-27 23:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345005', 'tblTempUsageDetail_20' ) start [2025-01-27 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345005', 'tblTempUsageDetail_20' ) end [2025-01-27 23:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:27:23] Production.INFO: ==4218== Releasing lock... [2025-01-27 23:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:27:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-27 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:28:05 [end_date_ymd] => 2025-01-27 23:28:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:28:05' and `end` < '2025-01-27 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-01-27 23:28:17] Production.INFO: count ==886 [2025-01-27 23:28:17] Production.ERROR: pbx CDR StartTime 2025-01-27 20:28:05 - End Time 2025-01-27 23:28:05 [2025-01-27 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345010', 'tblTempUsageDetail_20' ) start [2025-01-27 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345010', 'tblTempUsageDetail_20' ) end [2025-01-27 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345010', 'tblTempVendorCDR_20' ) start [2025-01-27 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345010', 'tblTempVendorCDR_20' ) end [2025-01-27 23:28:17] Production.INFO: ProcessCDR(1,14345010,1,1,2) [2025-01-27 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345010', 'tblTempUsageDetail_20' ) start [2025-01-27 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345010', 'tblTempUsageDetail_20' ) end [2025-01-27 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:28:21] Production.INFO: ==4295== Releasing lock... [2025-01-27 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:28:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-27 23:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:29:06 [end_date_ymd] => 2025-01-27 23:29:06 [RateCDR] => 1 ) [2025-01-27 23: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-01-27 20:29:06' and `end` < '2025-01-27 23: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-01-27 23:29:19] Production.INFO: count ==886 [2025-01-27 23:29:19] Production.ERROR: pbx CDR StartTime 2025-01-27 20:29:06 - End Time 2025-01-27 23:29:06 [2025-01-27 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345015', 'tblTempUsageDetail_20' ) start [2025-01-27 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345015', 'tblTempUsageDetail_20' ) end [2025-01-27 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345015', 'tblTempVendorCDR_20' ) start [2025-01-27 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345015', 'tblTempVendorCDR_20' ) end [2025-01-27 23:29:20] Production.INFO: ProcessCDR(1,14345015,1,1,2) [2025-01-27 23:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345015', 'tblTempUsageDetail_20' ) start [2025-01-27 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345015', 'tblTempUsageDetail_20' ) end [2025-01-27 23:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:29:23] Production.INFO: ==4375== Releasing lock... [2025-01-27 23:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:29:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-27 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:30:06 [end_date_ymd] => 2025-01-27 23:30:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:30:06' and `end` < '2025-01-27 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-01-27 23:30:18] Production.INFO: count ==887 [2025-01-27 23:30:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:30:06 - End Time 2025-01-27 23:30:06 [2025-01-27 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345021', 'tblTempUsageDetail_20' ) start [2025-01-27 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345021', 'tblTempUsageDetail_20' ) end [2025-01-27 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345021', 'tblTempVendorCDR_20' ) start [2025-01-27 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345021', 'tblTempVendorCDR_20' ) end [2025-01-27 23:30:18] Production.INFO: ProcessCDR(1,14345021,1,1,2) [2025-01-27 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345021', 'tblTempUsageDetail_20' ) start [2025-01-27 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345021', 'tblTempUsageDetail_20' ) end [2025-01-27 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:30:22] Production.INFO: ==4455== Releasing lock... [2025-01-27 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:30:22] Production.INFO: 34 MB #Memory Used# [2025-01-27 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:31:05 [end_date_ymd] => 2025-01-27 23:31:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:31:05' and `end` < '2025-01-27 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-01-27 23:31:18] Production.INFO: count ==887 [2025-01-27 23:31:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:31:05 - End Time 2025-01-27 23:31:05 [2025-01-27 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345026', 'tblTempUsageDetail_20' ) start [2025-01-27 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345026', 'tblTempUsageDetail_20' ) end [2025-01-27 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345026', 'tblTempVendorCDR_20' ) start [2025-01-27 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345026', 'tblTempVendorCDR_20' ) end [2025-01-27 23:31:18] Production.INFO: ProcessCDR(1,14345026,1,1,2) [2025-01-27 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345026', 'tblTempUsageDetail_20' ) start [2025-01-27 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345026', 'tblTempUsageDetail_20' ) end [2025-01-27 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:31:21] Production.INFO: ==4531== Releasing lock... [2025-01-27 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:31:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-27 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:32:05 [end_date_ymd] => 2025-01-27 23:32:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:32:05' and `end` < '2025-01-27 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-01-27 23:32:19] Production.INFO: count ==885 [2025-01-27 23:32:19] Production.ERROR: pbx CDR StartTime 2025-01-27 20:32:05 - End Time 2025-01-27 23:32:05 [2025-01-27 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345031', 'tblTempUsageDetail_20' ) start [2025-01-27 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345031', 'tblTempUsageDetail_20' ) end [2025-01-27 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345031', 'tblTempVendorCDR_20' ) start [2025-01-27 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345031', 'tblTempVendorCDR_20' ) end [2025-01-27 23:32:19] Production.INFO: ProcessCDR(1,14345031,1,1,2) [2025-01-27 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345031', 'tblTempUsageDetail_20' ) start [2025-01-27 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345031', 'tblTempUsageDetail_20' ) end [2025-01-27 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:32:22] Production.INFO: ==4615== Releasing lock... [2025-01-27 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:32:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-27 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:33:05 [end_date_ymd] => 2025-01-27 23:33:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:33:05' and `end` < '2025-01-27 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-01-27 23:33:18] Production.INFO: count ==883 [2025-01-27 23:33:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:33:05 - End Time 2025-01-27 23:33:05 [2025-01-27 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345036', 'tblTempUsageDetail_20' ) start [2025-01-27 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345036', 'tblTempUsageDetail_20' ) end [2025-01-27 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345036', 'tblTempVendorCDR_20' ) start [2025-01-27 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345036', 'tblTempVendorCDR_20' ) end [2025-01-27 23:33:18] Production.INFO: ProcessCDR(1,14345036,1,1,2) [2025-01-27 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345036', 'tblTempUsageDetail_20' ) start [2025-01-27 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345036', 'tblTempUsageDetail_20' ) end [2025-01-27 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:33:21] Production.INFO: ==4692== Releasing lock... [2025-01-27 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:33:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-27 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:34:05 [end_date_ymd] => 2025-01-27 23:34:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:34:05' and `end` < '2025-01-27 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-01-27 23:34:18] Production.INFO: count ==880 [2025-01-27 23:34:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:34:05 - End Time 2025-01-27 23:34:05 [2025-01-27 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345041', 'tblTempUsageDetail_20' ) start [2025-01-27 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345041', 'tblTempUsageDetail_20' ) end [2025-01-27 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345041', 'tblTempVendorCDR_20' ) start [2025-01-27 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345041', 'tblTempVendorCDR_20' ) end [2025-01-27 23:34:18] Production.INFO: ProcessCDR(1,14345041,1,1,2) [2025-01-27 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345041', 'tblTempUsageDetail_20' ) start [2025-01-27 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345041', 'tblTempUsageDetail_20' ) end [2025-01-27 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:34:21] Production.INFO: ==4772== Releasing lock... [2025-01-27 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:34:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-27 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:35:05 [end_date_ymd] => 2025-01-27 23:35:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:35:05' and `end` < '2025-01-27 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-01-27 23:35:18] Production.INFO: count ==880 [2025-01-27 23:35:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:35:05 - End Time 2025-01-27 23:35:05 [2025-01-27 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345046', 'tblTempUsageDetail_20' ) start [2025-01-27 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345046', 'tblTempUsageDetail_20' ) end [2025-01-27 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345046', 'tblTempVendorCDR_20' ) start [2025-01-27 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345046', 'tblTempVendorCDR_20' ) end [2025-01-27 23:35:18] Production.INFO: ProcessCDR(1,14345046,1,1,2) [2025-01-27 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345046', 'tblTempUsageDetail_20' ) start [2025-01-27 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345046', 'tblTempUsageDetail_20' ) end [2025-01-27 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:35:21] Production.INFO: ==4850== Releasing lock... [2025-01-27 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:35:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-27 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:36:05 [end_date_ymd] => 2025-01-27 23:36:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:36:05' and `end` < '2025-01-27 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-01-27 23:36:17] Production.INFO: count ==878 [2025-01-27 23:36:17] Production.ERROR: pbx CDR StartTime 2025-01-27 20:36:05 - End Time 2025-01-27 23:36:05 [2025-01-27 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345051', 'tblTempUsageDetail_20' ) start [2025-01-27 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345051', 'tblTempUsageDetail_20' ) end [2025-01-27 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345051', 'tblTempVendorCDR_20' ) start [2025-01-27 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345051', 'tblTempVendorCDR_20' ) end [2025-01-27 23:36:18] Production.INFO: ProcessCDR(1,14345051,1,1,2) [2025-01-27 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345051', 'tblTempUsageDetail_20' ) start [2025-01-27 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345051', 'tblTempUsageDetail_20' ) end [2025-01-27 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:36:21] Production.INFO: ==4927== Releasing lock... [2025-01-27 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:36:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-27 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:37:05 [end_date_ymd] => 2025-01-27 23:37:05 [RateCDR] => 1 ) [2025-01-27 23: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-01-27 20:37:05' and `end` < '2025-01-27 23: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-01-27 23:37:18] Production.INFO: count ==876 [2025-01-27 23:37:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:37:05 - End Time 2025-01-27 23:37:05 [2025-01-27 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345056', 'tblTempUsageDetail_20' ) start [2025-01-27 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345056', 'tblTempUsageDetail_20' ) end [2025-01-27 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345056', 'tblTempVendorCDR_20' ) start [2025-01-27 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345056', 'tblTempVendorCDR_20' ) end [2025-01-27 23:37:18] Production.INFO: ProcessCDR(1,14345056,1,1,2) [2025-01-27 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345056', 'tblTempUsageDetail_20' ) start [2025-01-27 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345056', 'tblTempUsageDetail_20' ) end [2025-01-27 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:37:21] Production.INFO: ==5004== Releasing lock... [2025-01-27 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:37:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-27 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:38:05 [end_date_ymd] => 2025-01-27 23:38:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:38:05' and `end` < '2025-01-27 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-01-27 23:38:18] Production.INFO: count ==875 [2025-01-27 23:38:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:38:05 - End Time 2025-01-27 23:38:05 [2025-01-27 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345061', 'tblTempUsageDetail_20' ) start [2025-01-27 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345061', 'tblTempUsageDetail_20' ) end [2025-01-27 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345061', 'tblTempVendorCDR_20' ) start [2025-01-27 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345061', 'tblTempVendorCDR_20' ) end [2025-01-27 23:38:18] Production.INFO: ProcessCDR(1,14345061,1,1,2) [2025-01-27 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345061', 'tblTempUsageDetail_20' ) start [2025-01-27 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345061', 'tblTempUsageDetail_20' ) end [2025-01-27 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:38:21] Production.INFO: ==5080== Releasing lock... [2025-01-27 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:38:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-27 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:39:05 [end_date_ymd] => 2025-01-27 23:39:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:39:05' and `end` < '2025-01-27 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-01-27 23:39:18] Production.INFO: count ==875 [2025-01-27 23:39:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:39:05 - End Time 2025-01-27 23:39:05 [2025-01-27 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345066', 'tblTempUsageDetail_20' ) start [2025-01-27 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345066', 'tblTempUsageDetail_20' ) end [2025-01-27 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345066', 'tblTempVendorCDR_20' ) start [2025-01-27 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345066', 'tblTempVendorCDR_20' ) end [2025-01-27 23:39:18] Production.INFO: ProcessCDR(1,14345066,1,1,2) [2025-01-27 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345066', 'tblTempUsageDetail_20' ) start [2025-01-27 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345066', 'tblTempUsageDetail_20' ) end [2025-01-27 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:39:21] Production.INFO: ==5159== Releasing lock... [2025-01-27 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:39:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-27 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:40:06 [end_date_ymd] => 2025-01-27 23:40:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:40:06' and `end` < '2025-01-27 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-01-27 23:40:21] Production.INFO: count ==881 [2025-01-27 23:40:21] Production.ERROR: pbx CDR StartTime 2025-01-27 20:40:06 - End Time 2025-01-27 23:40:06 [2025-01-27 23:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345071', 'tblTempUsageDetail_20' ) start [2025-01-27 23:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345071', 'tblTempUsageDetail_20' ) end [2025-01-27 23:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345071', 'tblTempVendorCDR_20' ) start [2025-01-27 23:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345071', 'tblTempVendorCDR_20' ) end [2025-01-27 23:40:21] Production.INFO: ProcessCDR(1,14345071,1,1,2) [2025-01-27 23:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345071', 'tblTempUsageDetail_20' ) start [2025-01-27 23:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345071', 'tblTempUsageDetail_20' ) end [2025-01-27 23:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:40:25] Production.INFO: ==5244== Releasing lock... [2025-01-27 23:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:40:25] Production.INFO: 33.75 MB #Memory Used# [2025-01-27 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:41:05 [end_date_ymd] => 2025-01-27 23:41:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:41:05' and `end` < '2025-01-27 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-01-27 23:41:18] Production.INFO: count ==853 [2025-01-27 23:41:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:41:05 - End Time 2025-01-27 23:41:05 [2025-01-27 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345077', 'tblTempUsageDetail_20' ) start [2025-01-27 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345077', 'tblTempUsageDetail_20' ) end [2025-01-27 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345077', 'tblTempVendorCDR_20' ) start [2025-01-27 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345077', 'tblTempVendorCDR_20' ) end [2025-01-27 23:41:18] Production.INFO: ProcessCDR(1,14345077,1,1,2) [2025-01-27 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345077', 'tblTempUsageDetail_20' ) start [2025-01-27 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345077', 'tblTempUsageDetail_20' ) end [2025-01-27 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:41:21] Production.INFO: ==5326== Releasing lock... [2025-01-27 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:41:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-27 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:42:05 [end_date_ymd] => 2025-01-27 23:42:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:42:05' and `end` < '2025-01-27 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-01-27 23:42:18] Production.INFO: count ==848 [2025-01-27 23:42:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:42:05 - End Time 2025-01-27 23:42:05 [2025-01-27 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345082', 'tblTempUsageDetail_20' ) start [2025-01-27 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345082', 'tblTempUsageDetail_20' ) end [2025-01-27 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345082', 'tblTempVendorCDR_20' ) start [2025-01-27 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345082', 'tblTempVendorCDR_20' ) end [2025-01-27 23:42:18] Production.INFO: ProcessCDR(1,14345082,1,1,2) [2025-01-27 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345082', 'tblTempUsageDetail_20' ) start [2025-01-27 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345082', 'tblTempUsageDetail_20' ) end [2025-01-27 23:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:42:23] Production.INFO: ==5407== Releasing lock... [2025-01-27 23:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:42:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-27 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:43:05 [end_date_ymd] => 2025-01-27 23:43:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:43:05' and `end` < '2025-01-27 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-01-27 23:43:17] Production.INFO: count ==850 [2025-01-27 23:43:17] Production.ERROR: pbx CDR StartTime 2025-01-27 20:43:05 - End Time 2025-01-27 23:43:05 [2025-01-27 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345087', 'tblTempUsageDetail_20' ) start [2025-01-27 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345087', 'tblTempUsageDetail_20' ) end [2025-01-27 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345087', 'tblTempVendorCDR_20' ) start [2025-01-27 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345087', 'tblTempVendorCDR_20' ) end [2025-01-27 23:43:17] Production.INFO: ProcessCDR(1,14345087,1,1,2) [2025-01-27 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345087', 'tblTempUsageDetail_20' ) start [2025-01-27 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345087', 'tblTempUsageDetail_20' ) end [2025-01-27 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:43:22] Production.INFO: ==5524== Releasing lock... [2025-01-27 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:43:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-27 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:44:05 [end_date_ymd] => 2025-01-27 23:44:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:44:05' and `end` < '2025-01-27 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-01-27 23:44:18] Production.INFO: count ==849 [2025-01-27 23:44:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:44:05 - End Time 2025-01-27 23:44:05 [2025-01-27 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345092', 'tblTempUsageDetail_20' ) start [2025-01-27 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345092', 'tblTempUsageDetail_20' ) end [2025-01-27 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345092', 'tblTempVendorCDR_20' ) start [2025-01-27 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345092', 'tblTempVendorCDR_20' ) end [2025-01-27 23:44:18] Production.INFO: ProcessCDR(1,14345092,1,1,2) [2025-01-27 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345092', 'tblTempUsageDetail_20' ) start [2025-01-27 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345092', 'tblTempUsageDetail_20' ) end [2025-01-27 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:44:21] Production.INFO: ==5601== Releasing lock... [2025-01-27 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:44:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-27 23:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:45:04 [end_date_ymd] => 2025-01-27 23:45:04 [RateCDR] => 1 ) [2025-01-27 23: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-01-27 20:45:04' and `end` < '2025-01-27 23: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-01-27 23:45:19] Production.INFO: count ==850 [2025-01-27 23:45:19] Production.ERROR: pbx CDR StartTime 2025-01-27 20:45:04 - End Time 2025-01-27 23:45:04 [2025-01-27 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345097', 'tblTempUsageDetail_20' ) start [2025-01-27 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345097', 'tblTempUsageDetail_20' ) end [2025-01-27 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345097', 'tblTempVendorCDR_20' ) start [2025-01-27 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345097', 'tblTempVendorCDR_20' ) end [2025-01-27 23:45:19] Production.INFO: ProcessCDR(1,14345097,1,1,2) [2025-01-27 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345097', 'tblTempUsageDetail_20' ) start [2025-01-27 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345097', 'tblTempUsageDetail_20' ) end [2025-01-27 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:45:22] Production.INFO: ==5679== Releasing lock... [2025-01-27 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:45:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-27 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:46:05 [end_date_ymd] => 2025-01-27 23:46:05 [RateCDR] => 1 ) [2025-01-27 23: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-01-27 20:46:05' and `end` < '2025-01-27 23: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-01-27 23:46:17] Production.INFO: count ==849 [2025-01-27 23:46:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:46:05 - End Time 2025-01-27 23:46:05 [2025-01-27 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345102', 'tblTempUsageDetail_20' ) start [2025-01-27 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345102', 'tblTempUsageDetail_20' ) end [2025-01-27 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345102', 'tblTempVendorCDR_20' ) start [2025-01-27 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345102', 'tblTempVendorCDR_20' ) end [2025-01-27 23:46:18] Production.INFO: ProcessCDR(1,14345102,1,1,2) [2025-01-27 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345102', 'tblTempUsageDetail_20' ) start [2025-01-27 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345102', 'tblTempUsageDetail_20' ) end [2025-01-27 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:46:21] Production.INFO: ==5762== Releasing lock... [2025-01-27 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:46:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-27 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:47:05 [end_date_ymd] => 2025-01-27 23:47:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:47:05' and `end` < '2025-01-27 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-01-27 23:47:18] Production.INFO: count ==847 [2025-01-27 23:47:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:47:05 - End Time 2025-01-27 23:47:05 [2025-01-27 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345107', 'tblTempUsageDetail_20' ) start [2025-01-27 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345107', 'tblTempUsageDetail_20' ) end [2025-01-27 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345107', 'tblTempVendorCDR_20' ) start [2025-01-27 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345107', 'tblTempVendorCDR_20' ) end [2025-01-27 23:47:18] Production.INFO: ProcessCDR(1,14345107,1,1,2) [2025-01-27 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345107', 'tblTempUsageDetail_20' ) start [2025-01-27 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345107', 'tblTempUsageDetail_20' ) end [2025-01-27 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:47:22] Production.INFO: ==5842== Releasing lock... [2025-01-27 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:47:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-27 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:48:05 [end_date_ymd] => 2025-01-27 23:48:05 [RateCDR] => 1 ) [2025-01-27 23: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-01-27 20:48:05' and `end` < '2025-01-27 23: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-01-27 23:48:18] Production.INFO: count ==845 [2025-01-27 23:48:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:48:05 - End Time 2025-01-27 23:48:05 [2025-01-27 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345112', 'tblTempUsageDetail_20' ) start [2025-01-27 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345112', 'tblTempUsageDetail_20' ) end [2025-01-27 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345112', 'tblTempVendorCDR_20' ) start [2025-01-27 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345112', 'tblTempVendorCDR_20' ) end [2025-01-27 23:48:18] Production.INFO: ProcessCDR(1,14345112,1,1,2) [2025-01-27 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345112', 'tblTempUsageDetail_20' ) start [2025-01-27 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345112', 'tblTempUsageDetail_20' ) end [2025-01-27 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:48:21] Production.INFO: ==5918== Releasing lock... [2025-01-27 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:48:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-27 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:49:05 [end_date_ymd] => 2025-01-27 23:49:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:49:05' and `end` < '2025-01-27 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-01-27 23:49:18] Production.INFO: count ==844 [2025-01-27 23:49:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:49:05 - End Time 2025-01-27 23:49:05 [2025-01-27 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345117', 'tblTempUsageDetail_20' ) start [2025-01-27 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345117', 'tblTempUsageDetail_20' ) end [2025-01-27 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345117', 'tblTempVendorCDR_20' ) start [2025-01-27 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345117', 'tblTempVendorCDR_20' ) end [2025-01-27 23:49:18] Production.INFO: ProcessCDR(1,14345117,1,1,2) [2025-01-27 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345117', 'tblTempUsageDetail_20' ) start [2025-01-27 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345117', 'tblTempUsageDetail_20' ) end [2025-01-27 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:49:21] Production.INFO: ==6000== Releasing lock... [2025-01-27 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:49:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-27 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:50:06 [end_date_ymd] => 2025-01-27 23:50:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:50:06' and `end` < '2025-01-27 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-01-27 23:50:18] Production.INFO: count ==845 [2025-01-27 23:50:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:50:06 - End Time 2025-01-27 23:50:06 [2025-01-27 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345122', 'tblTempUsageDetail_20' ) start [2025-01-27 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345122', 'tblTempUsageDetail_20' ) end [2025-01-27 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345122', 'tblTempVendorCDR_20' ) start [2025-01-27 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345122', 'tblTempVendorCDR_20' ) end [2025-01-27 23:50:18] Production.INFO: ProcessCDR(1,14345122,1,1,2) [2025-01-27 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345122', 'tblTempUsageDetail_20' ) start [2025-01-27 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345122', 'tblTempUsageDetail_20' ) end [2025-01-27 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:50:23] Production.INFO: ==6074== Releasing lock... [2025-01-27 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:50:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-27 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:51:05 [end_date_ymd] => 2025-01-27 23:51:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:51:05' and `end` < '2025-01-27 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-01-27 23:51:18] Production.INFO: count ==809 [2025-01-27 23:51:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:51:05 - End Time 2025-01-27 23:51:05 [2025-01-27 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345128', 'tblTempUsageDetail_20' ) start [2025-01-27 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345128', 'tblTempUsageDetail_20' ) end [2025-01-27 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345128', 'tblTempVendorCDR_20' ) start [2025-01-27 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345128', 'tblTempVendorCDR_20' ) end [2025-01-27 23:51:18] Production.INFO: ProcessCDR(1,14345128,1,1,2) [2025-01-27 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345128', 'tblTempUsageDetail_20' ) start [2025-01-27 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345128', 'tblTempUsageDetail_20' ) end [2025-01-27 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:51:21] Production.INFO: ==6154== Releasing lock... [2025-01-27 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:51:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-27 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:52:05 [end_date_ymd] => 2025-01-27 23:52:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:52:05' and `end` < '2025-01-27 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-01-27 23:52:19] Production.INFO: count ==810 [2025-01-27 23:52:19] Production.ERROR: pbx CDR StartTime 2025-01-27 20:52:05 - End Time 2025-01-27 23:52:05 [2025-01-27 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345133', 'tblTempUsageDetail_20' ) start [2025-01-27 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345133', 'tblTempUsageDetail_20' ) end [2025-01-27 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345133', 'tblTempVendorCDR_20' ) start [2025-01-27 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345133', 'tblTempVendorCDR_20' ) end [2025-01-27 23:52:19] Production.INFO: ProcessCDR(1,14345133,1,1,2) [2025-01-27 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345133', 'tblTempUsageDetail_20' ) start [2025-01-27 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345133', 'tblTempUsageDetail_20' ) end [2025-01-27 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:52:22] Production.INFO: ==6231== Releasing lock... [2025-01-27 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:52:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-27 23:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:53:06 [end_date_ymd] => 2025-01-27 23:53:06 [RateCDR] => 1 ) [2025-01-27 23: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-01-27 20:53:06' and `end` < '2025-01-27 23: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-01-27 23:53:18] Production.INFO: count ==812 [2025-01-27 23:53:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:53:06 - End Time 2025-01-27 23:53:06 [2025-01-27 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345138', 'tblTempUsageDetail_20' ) start [2025-01-27 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345138', 'tblTempUsageDetail_20' ) end [2025-01-27 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345138', 'tblTempVendorCDR_20' ) start [2025-01-27 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345138', 'tblTempVendorCDR_20' ) end [2025-01-27 23:53:18] Production.INFO: ProcessCDR(1,14345138,1,1,2) [2025-01-27 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345138', 'tblTempUsageDetail_20' ) start [2025-01-27 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345138', 'tblTempUsageDetail_20' ) end [2025-01-27 23:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:53:23] Production.INFO: ==6313== Releasing lock... [2025-01-27 23:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:53:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-27 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:54:05 [end_date_ymd] => 2025-01-27 23:54:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:54:05' and `end` < '2025-01-27 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-01-27 23:54:17] Production.INFO: count ==811 [2025-01-27 23:54:17] Production.ERROR: pbx CDR StartTime 2025-01-27 20:54:05 - End Time 2025-01-27 23:54:05 [2025-01-27 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345143', 'tblTempUsageDetail_20' ) start [2025-01-27 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345143', 'tblTempUsageDetail_20' ) end [2025-01-27 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345143', 'tblTempVendorCDR_20' ) start [2025-01-27 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345143', 'tblTempVendorCDR_20' ) end [2025-01-27 23:54:17] Production.INFO: ProcessCDR(1,14345143,1,1,2) [2025-01-27 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345143', 'tblTempUsageDetail_20' ) start [2025-01-27 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345143', 'tblTempUsageDetail_20' ) end [2025-01-27 23:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:54:20] Production.INFO: ==6393== Releasing lock... [2025-01-27 23:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:54:20] Production.INFO: 33.25 MB #Memory Used# [2025-01-27 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:55:05 [end_date_ymd] => 2025-01-27 23:55:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:55:05' and `end` < '2025-01-27 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-01-27 23:55:18] Production.INFO: count ==814 [2025-01-27 23:55:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:55:05 - End Time 2025-01-27 23:55:05 [2025-01-27 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345148', 'tblTempUsageDetail_20' ) start [2025-01-27 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345148', 'tblTempUsageDetail_20' ) end [2025-01-27 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345148', 'tblTempVendorCDR_20' ) start [2025-01-27 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345148', 'tblTempVendorCDR_20' ) end [2025-01-27 23:55:18] Production.INFO: ProcessCDR(1,14345148,1,1,2) [2025-01-27 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345148', 'tblTempUsageDetail_20' ) start [2025-01-27 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345148', 'tblTempUsageDetail_20' ) end [2025-01-27 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:55:21] Production.INFO: ==6474== Releasing lock... [2025-01-27 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:55:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-27 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:56:06 [end_date_ymd] => 2025-01-27 23:56:06 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:56:06' and `end` < '2025-01-27 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-01-27 23:56:18] Production.INFO: count ==815 [2025-01-27 23:56:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:56:06 - End Time 2025-01-27 23:56:06 [2025-01-27 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345153', 'tblTempUsageDetail_20' ) start [2025-01-27 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345153', 'tblTempUsageDetail_20' ) end [2025-01-27 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345153', 'tblTempVendorCDR_20' ) start [2025-01-27 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345153', 'tblTempVendorCDR_20' ) end [2025-01-27 23:56:18] Production.INFO: ProcessCDR(1,14345153,1,1,2) [2025-01-27 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345153', 'tblTempUsageDetail_20' ) start [2025-01-27 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345153', 'tblTempUsageDetail_20' ) end [2025-01-27 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:56:21] Production.INFO: ==6557== Releasing lock... [2025-01-27 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:56:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-27 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:57:05 [end_date_ymd] => 2025-01-27 23:57:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:57:05' and `end` < '2025-01-27 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-01-27 23:57:19] Production.INFO: count ==818 [2025-01-27 23:57:19] Production.ERROR: pbx CDR StartTime 2025-01-27 20:57:05 - End Time 2025-01-27 23:57:05 [2025-01-27 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345158', 'tblTempUsageDetail_20' ) start [2025-01-27 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345158', 'tblTempUsageDetail_20' ) end [2025-01-27 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345158', 'tblTempVendorCDR_20' ) start [2025-01-27 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345158', 'tblTempVendorCDR_20' ) end [2025-01-27 23:57:19] Production.INFO: ProcessCDR(1,14345158,1,1,2) [2025-01-27 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345158', 'tblTempUsageDetail_20' ) start [2025-01-27 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345158', 'tblTempUsageDetail_20' ) end [2025-01-27 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:57:22] Production.INFO: ==6635== Releasing lock... [2025-01-27 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:57:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-27 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:58:05 [end_date_ymd] => 2025-01-27 23:58:05 [RateCDR] => 1 ) [2025-01-27 23: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-01-27 20:58:05' and `end` < '2025-01-27 23: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-01-27 23:58:18] Production.INFO: count ==818 [2025-01-27 23:58:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:58:05 - End Time 2025-01-27 23:58:05 [2025-01-27 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345163', 'tblTempUsageDetail_20' ) start [2025-01-27 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345163', 'tblTempUsageDetail_20' ) end [2025-01-27 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345163', 'tblTempVendorCDR_20' ) start [2025-01-27 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345163', 'tblTempVendorCDR_20' ) end [2025-01-27 23:58:18] Production.INFO: ProcessCDR(1,14345163,1,1,2) [2025-01-27 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345163', 'tblTempUsageDetail_20' ) start [2025-01-27 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345163', 'tblTempUsageDetail_20' ) end [2025-01-27 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:58:21] Production.INFO: ==6754== Releasing lock... [2025-01-27 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:58:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-27 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 20:59:05 [end_date_ymd] => 2025-01-27 23:59:05 [RateCDR] => 1 ) [2025-01-27 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-01-27 20:59:05' and `end` < '2025-01-27 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-01-27 23:59:18] Production.INFO: count ==818 [2025-01-27 23:59:18] Production.ERROR: pbx CDR StartTime 2025-01-27 20:59:05 - End Time 2025-01-27 23:59:05 [2025-01-27 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-27 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345168', 'tblTempUsageDetail_20' ) start [2025-01-27 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345168', 'tblTempUsageDetail_20' ) end [2025-01-27 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345168', 'tblTempVendorCDR_20' ) start [2025-01-27 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345168', 'tblTempVendorCDR_20' ) end [2025-01-27 23:59:18] Production.INFO: ProcessCDR(1,14345168,1,1,2) [2025-01-27 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-27 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-27 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345168', 'tblTempUsageDetail_20' ) start [2025-01-27 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345168', 'tblTempUsageDetail_20' ) end [2025-01-27 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-27 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-27 23:59:21] Production.INFO: ==6831== Releasing lock... [2025-01-27 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-27 23:59:21] Production.INFO: 33.25 MB #Memory Used#