[2025-03-27 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:00:06 [end_date_ymd] => 2025-03-27 00:00:06 [RateCDR] => 1 ) [2025-03-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-03-26 21:00:06' and `end` < '2025-03-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-03-27 00:00:19] Production.INFO: count ==1306 [2025-03-27 00:00:20] Production.ERROR: pbx CDR StartTime 2025-03-26 21:00:06 - End Time 2025-03-27 00:00:06 [2025-03-27 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770352', 'tblTempUsageDetail_20' ) start [2025-03-27 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770352', 'tblTempUsageDetail_20' ) end [2025-03-27 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770352', 'tblTempVendorCDR_20' ) start [2025-03-27 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770352', 'tblTempVendorCDR_20' ) end [2025-03-27 00:00:20] Production.INFO: ProcessCDR(1,14770352,1,1,2) [2025-03-27 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770352', 'tblTempUsageDetail_20' ) start [2025-03-27 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770352', 'tblTempUsageDetail_20' ) end [2025-03-27 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:00:24] Production.INFO: ==31800== Releasing lock... [2025-03-27 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:00:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-27 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:01:05 [end_date_ymd] => 2025-03-27 00:01:05 [RateCDR] => 1 ) [2025-03-27 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:01:05' and `end` < '2025-03-27 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:01:25] Production.INFO: count ==848 [2025-03-27 00:01:26] Production.ERROR: pbx CDR StartTime 2025-03-26 21:01:05 - End Time 2025-03-27 00:01:05 [2025-03-27 00:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770358', 'tblTempUsageDetail_20' ) start [2025-03-27 00:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770358', 'tblTempUsageDetail_20' ) end [2025-03-27 00:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770358', 'tblTempVendorCDR_20' ) start [2025-03-27 00:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770358', 'tblTempVendorCDR_20' ) end [2025-03-27 00:01:26] Production.INFO: ProcessCDR(1,14770358,1,1,2) [2025-03-27 00:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770358', 'tblTempUsageDetail_20' ) start [2025-03-27 00:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770358', 'tblTempUsageDetail_20' ) end [2025-03-27 00:01:31] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:01:31] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:01:31] Production.INFO: ==31890== Releasing lock... [2025-03-27 00:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:01:31] Production.INFO: 35.5 MB #Memory Used# [2025-03-27 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:02:05 [end_date_ymd] => 2025-03-27 00:02:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:02:05' and `end` < '2025-03-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-03-27 00:02:19] Production.INFO: count ==848 [2025-03-27 00:02:19] Production.ERROR: pbx CDR StartTime 2025-03-26 21:02:05 - End Time 2025-03-27 00:02:05 [2025-03-27 00:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770363', 'tblTempUsageDetail_20' ) start [2025-03-27 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770363', 'tblTempUsageDetail_20' ) end [2025-03-27 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770363', 'tblTempVendorCDR_20' ) start [2025-03-27 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770363', 'tblTempVendorCDR_20' ) end [2025-03-27 00:02:19] Production.INFO: ProcessCDR(1,14770363,1,1,2) [2025-03-27 00:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770363', 'tblTempUsageDetail_20' ) start [2025-03-27 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770363', 'tblTempUsageDetail_20' ) end [2025-03-27 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:02:22] Production.INFO: ==31966== Releasing lock... [2025-03-27 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:02:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-27 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:03:05 [end_date_ymd] => 2025-03-27 00:03:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:03:05' and `end` < '2025-03-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-03-27 00:03:18] Production.INFO: count ==844 [2025-03-27 00:03:19] Production.ERROR: pbx CDR StartTime 2025-03-26 21:03:05 - End Time 2025-03-27 00:03:05 [2025-03-27 00:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770368', 'tblTempUsageDetail_20' ) start [2025-03-27 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770368', 'tblTempUsageDetail_20' ) end [2025-03-27 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770368', 'tblTempVendorCDR_20' ) start [2025-03-27 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770368', 'tblTempVendorCDR_20' ) end [2025-03-27 00:03:19] Production.INFO: ProcessCDR(1,14770368,1,1,2) [2025-03-27 00:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770368', 'tblTempUsageDetail_20' ) start [2025-03-27 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770368', 'tblTempUsageDetail_20' ) end [2025-03-27 00:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:03:22] Production.INFO: ==32037== Releasing lock... [2025-03-27 00:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:03:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-27 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:04:05 [end_date_ymd] => 2025-03-27 00:04:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:04:05' and `end` < '2025-03-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-03-27 00:04:18] Production.INFO: count ==846 [2025-03-27 00:04:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:04:05 - End Time 2025-03-27 00:04:05 [2025-03-27 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770373', 'tblTempUsageDetail_20' ) start [2025-03-27 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770373', 'tblTempUsageDetail_20' ) end [2025-03-27 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770373', 'tblTempVendorCDR_20' ) start [2025-03-27 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770373', 'tblTempVendorCDR_20' ) end [2025-03-27 00:04:18] Production.INFO: ProcessCDR(1,14770373,1,1,2) [2025-03-27 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770373', 'tblTempUsageDetail_20' ) start [2025-03-27 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770373', 'tblTempUsageDetail_20' ) end [2025-03-27 00:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:04:22] Production.INFO: ==32108== Releasing lock... [2025-03-27 00:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:04:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-27 00:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:05:06 [end_date_ymd] => 2025-03-27 00:05:06 [RateCDR] => 1 ) [2025-03-27 00:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:05:06' and `end` < '2025-03-27 00:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:05:35] Production.INFO: count ==841 [2025-03-27 00:05:35] Production.ERROR: pbx CDR StartTime 2025-03-26 21:05:06 - End Time 2025-03-27 00:05:06 [2025-03-27 00:05:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770378', 'tblTempUsageDetail_20' ) start [2025-03-27 00:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770378', 'tblTempUsageDetail_20' ) end [2025-03-27 00:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770378', 'tblTempVendorCDR_20' ) start [2025-03-27 00:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770378', 'tblTempVendorCDR_20' ) end [2025-03-27 00:05:35] Production.INFO: ProcessCDR(1,14770378,1,1,2) [2025-03-27 00:05:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:05:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:05:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:05:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:05:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770378', 'tblTempUsageDetail_20' ) start [2025-03-27 00:05:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770378', 'tblTempUsageDetail_20' ) end [2025-03-27 00:05:39] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:05:39] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:05:39] Production.INFO: ==32179== Releasing lock... [2025-03-27 00:05:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:05:39] Production.INFO: 35.25 MB #Memory Used# [2025-03-27 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:06:05 [end_date_ymd] => 2025-03-27 00:06:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:06:05' and `end` < '2025-03-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-03-27 00:06:29] Production.INFO: count ==830 [2025-03-27 00:06:30] Production.ERROR: pbx CDR StartTime 2025-03-26 21:06:05 - End Time 2025-03-27 00:06:05 [2025-03-27 00:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770383', 'tblTempUsageDetail_20' ) start [2025-03-27 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770383', 'tblTempUsageDetail_20' ) end [2025-03-27 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770383', 'tblTempVendorCDR_20' ) start [2025-03-27 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770383', 'tblTempVendorCDR_20' ) end [2025-03-27 00:06:30] Production.INFO: ProcessCDR(1,14770383,1,1,2) [2025-03-27 00:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:06:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770383', 'tblTempUsageDetail_20' ) start [2025-03-27 00:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770383', 'tblTempUsageDetail_20' ) end [2025-03-27 00:06:35] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:06:35] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:06:35] Production.INFO: ==32252== Releasing lock... [2025-03-27 00:06:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:06:35] Production.INFO: 35.25 MB #Memory Used# [2025-03-27 00:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:07:06 [end_date_ymd] => 2025-03-27 00:07:06 [RateCDR] => 1 ) [2025-03-27 00:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:07:06' and `end` < '2025-03-27 00:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:07:29] Production.INFO: count ==833 [2025-03-27 00:07:29] Production.ERROR: pbx CDR StartTime 2025-03-26 21:07:06 - End Time 2025-03-27 00:07:06 [2025-03-27 00:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770388', 'tblTempUsageDetail_20' ) start [2025-03-27 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770388', 'tblTempUsageDetail_20' ) end [2025-03-27 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770388', 'tblTempVendorCDR_20' ) start [2025-03-27 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770388', 'tblTempVendorCDR_20' ) end [2025-03-27 00:07:29] Production.INFO: ProcessCDR(1,14770388,1,1,2) [2025-03-27 00:07:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:07:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:07:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770388', 'tblTempUsageDetail_20' ) start [2025-03-27 00:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770388', 'tblTempUsageDetail_20' ) end [2025-03-27 00:07:33] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:07:33] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:07:33] Production.INFO: ==32322== Releasing lock... [2025-03-27 00:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:07:33] Production.INFO: 35 MB #Memory Used# [2025-03-27 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:08:05 [end_date_ymd] => 2025-03-27 00:08:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:08:05' and `end` < '2025-03-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-03-27 00:08:28] Production.INFO: count ==819 [2025-03-27 00:08:28] Production.ERROR: pbx CDR StartTime 2025-03-26 21:08:05 - End Time 2025-03-27 00:08:05 [2025-03-27 00:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770393', 'tblTempUsageDetail_20' ) start [2025-03-27 00:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770393', 'tblTempUsageDetail_20' ) end [2025-03-27 00:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770393', 'tblTempVendorCDR_20' ) start [2025-03-27 00:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770393', 'tblTempVendorCDR_20' ) end [2025-03-27 00:08:28] Production.INFO: ProcessCDR(1,14770393,1,1,2) [2025-03-27 00:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770393', 'tblTempUsageDetail_20' ) start [2025-03-27 00:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770393', 'tblTempUsageDetail_20' ) end [2025-03-27 00:08:32] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:08:32] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:08:32] Production.INFO: ==32395== Releasing lock... [2025-03-27 00:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:08:32] Production.INFO: 35.25 MB #Memory Used# [2025-03-27 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:09:05 [end_date_ymd] => 2025-03-27 00:09:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:09:05' and `end` < '2025-03-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-03-27 00:09:27] Production.INFO: count ==795 [2025-03-27 00:09:27] Production.ERROR: pbx CDR StartTime 2025-03-26 21:09:05 - End Time 2025-03-27 00:09:05 [2025-03-27 00:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770398', 'tblTempUsageDetail_20' ) start [2025-03-27 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770398', 'tblTempUsageDetail_20' ) end [2025-03-27 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770398', 'tblTempVendorCDR_20' ) start [2025-03-27 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770398', 'tblTempVendorCDR_20' ) end [2025-03-27 00:09:27] Production.INFO: ProcessCDR(1,14770398,1,1,2) [2025-03-27 00:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770398', 'tblTempUsageDetail_20' ) start [2025-03-27 00:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770398', 'tblTempUsageDetail_20' ) end [2025-03-27 00:09:31] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:09:31] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:09:31] Production.INFO: ==32468== Releasing lock... [2025-03-27 00:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:09:31] Production.INFO: 35 MB #Memory Used# [2025-03-27 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:10:05 [end_date_ymd] => 2025-03-27 00:10:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:10:05' and `end` < '2025-03-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-03-27 00:10:18] Production.INFO: count ==799 [2025-03-27 00:10:19] Production.ERROR: pbx CDR StartTime 2025-03-26 21:10:05 - End Time 2025-03-27 00:10:05 [2025-03-27 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770403', 'tblTempUsageDetail_20' ) start [2025-03-27 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770403', 'tblTempUsageDetail_20' ) end [2025-03-27 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770403', 'tblTempVendorCDR_20' ) start [2025-03-27 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770403', 'tblTempVendorCDR_20' ) end [2025-03-27 00:10:19] Production.INFO: ProcessCDR(1,14770403,1,1,2) [2025-03-27 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770403', 'tblTempUsageDetail_20' ) start [2025-03-27 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770403', 'tblTempUsageDetail_20' ) end [2025-03-27 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:10:22] Production.INFO: ==32539== Releasing lock... [2025-03-27 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:10:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-27 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:11:05 [end_date_ymd] => 2025-03-27 00:11:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:11:05' and `end` < '2025-03-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-03-27 00:11:18] Production.INFO: count ==798 [2025-03-27 00:11:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:11:05 - End Time 2025-03-27 00:11:05 [2025-03-27 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770409', 'tblTempUsageDetail_20' ) start [2025-03-27 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770409', 'tblTempUsageDetail_20' ) end [2025-03-27 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770409', 'tblTempVendorCDR_20' ) start [2025-03-27 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770409', 'tblTempVendorCDR_20' ) end [2025-03-27 00:11:18] Production.INFO: ProcessCDR(1,14770409,1,1,2) [2025-03-27 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770409', 'tblTempUsageDetail_20' ) start [2025-03-27 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770409', 'tblTempUsageDetail_20' ) end [2025-03-27 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:11:21] Production.INFO: ==32652== Releasing lock... [2025-03-27 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:11:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-27 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:12:06 [end_date_ymd] => 2025-03-27 00:12:06 [RateCDR] => 1 ) [2025-03-27 00:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:12:06' and `end` < '2025-03-27 00:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:12:18] Production.INFO: count ==795 [2025-03-27 00:12:19] Production.ERROR: pbx CDR StartTime 2025-03-26 21:12:06 - End Time 2025-03-27 00:12:06 [2025-03-27 00:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770414', 'tblTempUsageDetail_20' ) start [2025-03-27 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770414', 'tblTempUsageDetail_20' ) end [2025-03-27 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770414', 'tblTempVendorCDR_20' ) start [2025-03-27 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770414', 'tblTempVendorCDR_20' ) end [2025-03-27 00:12:19] Production.INFO: ProcessCDR(1,14770414,1,1,2) [2025-03-27 00:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770414', 'tblTempUsageDetail_20' ) start [2025-03-27 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770414', 'tblTempUsageDetail_20' ) end [2025-03-27 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:12:22] Production.INFO: ==32722== Releasing lock... [2025-03-27 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:12:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-27 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:13:05 [end_date_ymd] => 2025-03-27 00:13:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:13:05' and `end` < '2025-03-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-03-27 00:13:18] Production.INFO: count ==795 [2025-03-27 00:13:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:13:05 - End Time 2025-03-27 00:13:05 [2025-03-27 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770419', 'tblTempUsageDetail_20' ) start [2025-03-27 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770419', 'tblTempUsageDetail_20' ) end [2025-03-27 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770419', 'tblTempVendorCDR_20' ) start [2025-03-27 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770419', 'tblTempVendorCDR_20' ) end [2025-03-27 00:13:18] Production.INFO: ProcessCDR(1,14770419,1,1,2) [2025-03-27 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770419', 'tblTempUsageDetail_20' ) start [2025-03-27 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770419', 'tblTempUsageDetail_20' ) end [2025-03-27 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:13:21] Production.INFO: ==333== Releasing lock... [2025-03-27 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:13:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-27 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:14:06 [end_date_ymd] => 2025-03-27 00:14:06 [RateCDR] => 1 ) [2025-03-27 00:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:14:06' and `end` < '2025-03-27 00:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:14:19] Production.INFO: count ==795 [2025-03-27 00:14:19] Production.ERROR: pbx CDR StartTime 2025-03-26 21:14:06 - End Time 2025-03-27 00:14:06 [2025-03-27 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770424', 'tblTempUsageDetail_20' ) start [2025-03-27 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770424', 'tblTempUsageDetail_20' ) end [2025-03-27 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770424', 'tblTempVendorCDR_20' ) start [2025-03-27 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770424', 'tblTempVendorCDR_20' ) end [2025-03-27 00:14:19] Production.INFO: ProcessCDR(1,14770424,1,1,2) [2025-03-27 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770424', 'tblTempUsageDetail_20' ) start [2025-03-27 00:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770424', 'tblTempUsageDetail_20' ) end [2025-03-27 00:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:14:23] Production.INFO: ==417== Releasing lock... [2025-03-27 00:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:14:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-27 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:15:05 [end_date_ymd] => 2025-03-27 00:15:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:15:05' and `end` < '2025-03-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-03-27 00:15:18] Production.INFO: count ==792 [2025-03-27 00:15:19] Production.ERROR: pbx CDR StartTime 2025-03-26 21:15:05 - End Time 2025-03-27 00:15:05 [2025-03-27 00:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770428', 'tblTempUsageDetail_20' ) start [2025-03-27 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770428', 'tblTempUsageDetail_20' ) end [2025-03-27 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770428', 'tblTempVendorCDR_20' ) start [2025-03-27 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770428', 'tblTempVendorCDR_20' ) end [2025-03-27 00:15:19] Production.INFO: ProcessCDR(1,14770428,1,1,2) [2025-03-27 00:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770428', 'tblTempUsageDetail_20' ) start [2025-03-27 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770428', 'tblTempUsageDetail_20' ) end [2025-03-27 00:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:15:22] Production.INFO: ==489== Releasing lock... [2025-03-27 00:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:15:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-27 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:16:06 [end_date_ymd] => 2025-03-27 00:16:06 [RateCDR] => 1 ) [2025-03-27 00:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:16:06' and `end` < '2025-03-27 00:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:16:18] Production.INFO: count ==800 [2025-03-27 00:16:19] Production.ERROR: pbx CDR StartTime 2025-03-26 21:16:06 - End Time 2025-03-27 00:16:06 [2025-03-27 00:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770434', 'tblTempUsageDetail_20' ) start [2025-03-27 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770434', 'tblTempUsageDetail_20' ) end [2025-03-27 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770434', 'tblTempVendorCDR_20' ) start [2025-03-27 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770434', 'tblTempVendorCDR_20' ) end [2025-03-27 00:16:19] Production.INFO: ProcessCDR(1,14770434,1,1,2) [2025-03-27 00:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770434', 'tblTempUsageDetail_20' ) start [2025-03-27 00:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770434', 'tblTempUsageDetail_20' ) end [2025-03-27 00:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:16:24] Production.INFO: ==574== Releasing lock... [2025-03-27 00:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:16:24] Production.INFO: 35.5 MB #Memory Used# [2025-03-27 00:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:17:04 [end_date_ymd] => 2025-03-27 00:17:04 [RateCDR] => 1 ) [2025-03-27 00:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:17:04' and `end` < '2025-03-27 00:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:17:17] Production.INFO: count ==793 [2025-03-27 00:17:17] Production.ERROR: pbx CDR StartTime 2025-03-26 21:17:04 - End Time 2025-03-27 00:17:04 [2025-03-27 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770439', 'tblTempUsageDetail_20' ) start [2025-03-27 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770439', 'tblTempUsageDetail_20' ) end [2025-03-27 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770439', 'tblTempVendorCDR_20' ) start [2025-03-27 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770439', 'tblTempVendorCDR_20' ) end [2025-03-27 00:17:17] Production.INFO: ProcessCDR(1,14770439,1,1,2) [2025-03-27 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770439', 'tblTempUsageDetail_20' ) start [2025-03-27 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770439', 'tblTempUsageDetail_20' ) end [2025-03-27 00:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:17:20] Production.INFO: ==655== Releasing lock... [2025-03-27 00:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:17:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-27 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:18:05 [end_date_ymd] => 2025-03-27 00:18:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:18:05' and `end` < '2025-03-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-03-27 00:18:18] Production.INFO: count ==791 [2025-03-27 00:18:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:18:05 - End Time 2025-03-27 00:18:05 [2025-03-27 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770444', 'tblTempUsageDetail_20' ) start [2025-03-27 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770444', 'tblTempUsageDetail_20' ) end [2025-03-27 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770444', 'tblTempVendorCDR_20' ) start [2025-03-27 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770444', 'tblTempVendorCDR_20' ) end [2025-03-27 00:18:18] Production.INFO: ProcessCDR(1,14770444,1,1,2) [2025-03-27 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770444', 'tblTempUsageDetail_20' ) start [2025-03-27 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770444', 'tblTempUsageDetail_20' ) end [2025-03-27 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:18:21] Production.INFO: ==753== Releasing lock... [2025-03-27 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:18:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-27 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:19:05 [end_date_ymd] => 2025-03-27 00:19:05 [RateCDR] => 1 ) [2025-03-27 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:19:05' and `end` < '2025-03-27 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:19:18] Production.INFO: count ==790 [2025-03-27 00:19:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:19:05 - End Time 2025-03-27 00:19:05 [2025-03-27 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770449', 'tblTempUsageDetail_20' ) start [2025-03-27 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770449', 'tblTempUsageDetail_20' ) end [2025-03-27 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770449', 'tblTempVendorCDR_20' ) start [2025-03-27 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770449', 'tblTempVendorCDR_20' ) end [2025-03-27 00:19:18] Production.INFO: ProcessCDR(1,14770449,1,1,2) [2025-03-27 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770449', 'tblTempUsageDetail_20' ) start [2025-03-27 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770449', 'tblTempUsageDetail_20' ) end [2025-03-27 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:19:21] Production.INFO: ==830== Releasing lock... [2025-03-27 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:19:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-27 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:20:06 [end_date_ymd] => 2025-03-27 00:20:06 [RateCDR] => 1 ) [2025-03-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-03-26 21:20:06' and `end` < '2025-03-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-03-27 00:20:18] Production.INFO: count ==798 [2025-03-27 00:20:19] Production.ERROR: pbx CDR StartTime 2025-03-26 21:20:06 - End Time 2025-03-27 00:20:06 [2025-03-27 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770454', 'tblTempUsageDetail_20' ) start [2025-03-27 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770454', 'tblTempUsageDetail_20' ) end [2025-03-27 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770454', 'tblTempVendorCDR_20' ) start [2025-03-27 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770454', 'tblTempVendorCDR_20' ) end [2025-03-27 00:20:19] Production.INFO: ProcessCDR(1,14770454,1,1,2) [2025-03-27 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770454', 'tblTempUsageDetail_20' ) start [2025-03-27 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770454', 'tblTempUsageDetail_20' ) end [2025-03-27 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:20:22] Production.INFO: ==904== Releasing lock... [2025-03-27 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:20:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-27 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:21:04 [end_date_ymd] => 2025-03-27 00:21:04 [RateCDR] => 1 ) [2025-03-27 00:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:21:04' and `end` < '2025-03-27 00:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:21:17] Production.INFO: count ==786 [2025-03-27 00:21:17] Production.ERROR: pbx CDR StartTime 2025-03-26 21:21:04 - End Time 2025-03-27 00:21:04 [2025-03-27 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770460', 'tblTempUsageDetail_20' ) start [2025-03-27 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770460', 'tblTempUsageDetail_20' ) end [2025-03-27 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770460', 'tblTempVendorCDR_20' ) start [2025-03-27 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770460', 'tblTempVendorCDR_20' ) end [2025-03-27 00:21:17] Production.INFO: ProcessCDR(1,14770460,1,1,2) [2025-03-27 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770460', 'tblTempUsageDetail_20' ) start [2025-03-27 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770460', 'tblTempUsageDetail_20' ) end [2025-03-27 00:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:21:20] Production.INFO: ==978== Releasing lock... [2025-03-27 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:21:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-27 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:22:05 [end_date_ymd] => 2025-03-27 00:22:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:22:05' and `end` < '2025-03-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-03-27 00:22:18] Production.INFO: count ==772 [2025-03-27 00:22:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:22:05 - End Time 2025-03-27 00:22:05 [2025-03-27 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770465', 'tblTempUsageDetail_20' ) start [2025-03-27 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770465', 'tblTempUsageDetail_20' ) end [2025-03-27 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770465', 'tblTempVendorCDR_20' ) start [2025-03-27 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770465', 'tblTempVendorCDR_20' ) end [2025-03-27 00:22:18] Production.INFO: ProcessCDR(1,14770465,1,1,2) [2025-03-27 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770465', 'tblTempUsageDetail_20' ) start [2025-03-27 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770465', 'tblTempUsageDetail_20' ) end [2025-03-27 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:22:21] Production.INFO: ==1050== Releasing lock... [2025-03-27 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:22:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-27 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:23:05 [end_date_ymd] => 2025-03-27 00:23:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:23:05' and `end` < '2025-03-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-03-27 00:23:17] Production.INFO: count ==758 [2025-03-27 00:23:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:23:05 - End Time 2025-03-27 00:23:05 [2025-03-27 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770470', 'tblTempUsageDetail_20' ) start [2025-03-27 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770470', 'tblTempUsageDetail_20' ) end [2025-03-27 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770470', 'tblTempVendorCDR_20' ) start [2025-03-27 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770470', 'tblTempVendorCDR_20' ) end [2025-03-27 00:23:18] Production.INFO: ProcessCDR(1,14770470,1,1,2) [2025-03-27 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770470', 'tblTempUsageDetail_20' ) start [2025-03-27 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770470', 'tblTempUsageDetail_20' ) end [2025-03-27 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:23:21] Production.INFO: ==1125== Releasing lock... [2025-03-27 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:23:21] Production.INFO: 34 MB #Memory Used# [2025-03-27 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:24:05 [end_date_ymd] => 2025-03-27 00:24:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:24:05' and `end` < '2025-03-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-03-27 00:24:18] Production.INFO: count ==733 [2025-03-27 00:24:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:24:05 - End Time 2025-03-27 00:24:05 [2025-03-27 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770475', 'tblTempUsageDetail_20' ) start [2025-03-27 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770475', 'tblTempUsageDetail_20' ) end [2025-03-27 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770475', 'tblTempVendorCDR_20' ) start [2025-03-27 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770475', 'tblTempVendorCDR_20' ) end [2025-03-27 00:24:18] Production.INFO: ProcessCDR(1,14770475,1,1,2) [2025-03-27 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770475', 'tblTempUsageDetail_20' ) start [2025-03-27 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770475', 'tblTempUsageDetail_20' ) end [2025-03-27 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:24:22] Production.INFO: ==1208== Releasing lock... [2025-03-27 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:24:22] Production.INFO: 34 MB #Memory Used# [2025-03-27 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:25:06 [end_date_ymd] => 2025-03-27 00:25:06 [RateCDR] => 1 ) [2025-03-27 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:25:06' and `end` < '2025-03-27 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:25:18] Production.INFO: count ==732 [2025-03-27 00:25:19] Production.ERROR: pbx CDR StartTime 2025-03-26 21:25:06 - End Time 2025-03-27 00:25:06 [2025-03-27 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770480', 'tblTempUsageDetail_20' ) start [2025-03-27 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770480', 'tblTempUsageDetail_20' ) end [2025-03-27 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770480', 'tblTempVendorCDR_20' ) start [2025-03-27 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770480', 'tblTempVendorCDR_20' ) end [2025-03-27 00:25:19] Production.INFO: ProcessCDR(1,14770480,1,1,2) [2025-03-27 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770480', 'tblTempUsageDetail_20' ) start [2025-03-27 00:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770480', 'tblTempUsageDetail_20' ) end [2025-03-27 00:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:25:23] Production.INFO: ==1294== Releasing lock... [2025-03-27 00:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:25:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-27 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:26:05 [end_date_ymd] => 2025-03-27 00:26:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:26:05' and `end` < '2025-03-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-03-27 00:26:17] Production.INFO: count ==728 [2025-03-27 00:26:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:26:05 - End Time 2025-03-27 00:26:05 [2025-03-27 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770485', 'tblTempUsageDetail_20' ) start [2025-03-27 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770485', 'tblTempUsageDetail_20' ) end [2025-03-27 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770485', 'tblTempVendorCDR_20' ) start [2025-03-27 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770485', 'tblTempVendorCDR_20' ) end [2025-03-27 00:26:18] Production.INFO: ProcessCDR(1,14770485,1,1,2) [2025-03-27 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770485', 'tblTempUsageDetail_20' ) start [2025-03-27 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770485', 'tblTempUsageDetail_20' ) end [2025-03-27 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:26:21] Production.INFO: ==1402== Releasing lock... [2025-03-27 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:26:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-27 00:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:27:06 [end_date_ymd] => 2025-03-27 00:27:06 [RateCDR] => 1 ) [2025-03-27 00:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:27:06' and `end` < '2025-03-27 00:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:27:18] Production.INFO: count ==726 [2025-03-27 00:27:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:27:06 - End Time 2025-03-27 00:27:06 [2025-03-27 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770490', 'tblTempUsageDetail_20' ) start [2025-03-27 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770490', 'tblTempUsageDetail_20' ) end [2025-03-27 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770490', 'tblTempVendorCDR_20' ) start [2025-03-27 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770490', 'tblTempVendorCDR_20' ) end [2025-03-27 00:27:18] Production.INFO: ProcessCDR(1,14770490,1,1,2) [2025-03-27 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770490', 'tblTempUsageDetail_20' ) start [2025-03-27 00:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770490', 'tblTempUsageDetail_20' ) end [2025-03-27 00:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:27:24] Production.INFO: ==1475== Releasing lock... [2025-03-27 00:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:27:24] Production.INFO: 34 MB #Memory Used# [2025-03-27 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:28:05 [end_date_ymd] => 2025-03-27 00:28:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:28:05' and `end` < '2025-03-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-03-27 00:28:17] Production.INFO: count ==730 [2025-03-27 00:28:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:28:05 - End Time 2025-03-27 00:28:05 [2025-03-27 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770495', 'tblTempUsageDetail_20' ) start [2025-03-27 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770495', 'tblTempUsageDetail_20' ) end [2025-03-27 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770495', 'tblTempVendorCDR_20' ) start [2025-03-27 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770495', 'tblTempVendorCDR_20' ) end [2025-03-27 00:28:18] Production.INFO: ProcessCDR(1,14770495,1,1,2) [2025-03-27 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770495', 'tblTempUsageDetail_20' ) start [2025-03-27 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770495', 'tblTempUsageDetail_20' ) end [2025-03-27 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:28:21] Production.INFO: ==1585== Releasing lock... [2025-03-27 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:28:21] Production.INFO: 34 MB #Memory Used# [2025-03-27 00:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:29:06 [end_date_ymd] => 2025-03-27 00:29:06 [RateCDR] => 1 ) [2025-03-27 00:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:29:06' and `end` < '2025-03-27 00:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:29:18] Production.INFO: count ==719 [2025-03-27 00:29:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:29:06 - End Time 2025-03-27 00:29:06 [2025-03-27 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770500', 'tblTempUsageDetail_20' ) start [2025-03-27 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770500', 'tblTempUsageDetail_20' ) end [2025-03-27 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770500', 'tblTempVendorCDR_20' ) start [2025-03-27 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770500', 'tblTempVendorCDR_20' ) end [2025-03-27 00:29:19] Production.INFO: ProcessCDR(1,14770500,1,1,2) [2025-03-27 00:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770500', 'tblTempUsageDetail_20' ) start [2025-03-27 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770500', 'tblTempUsageDetail_20' ) end [2025-03-27 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:29:22] Production.INFO: ==1658== Releasing lock... [2025-03-27 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:29:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-27 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:30:06 [end_date_ymd] => 2025-03-27 00:30:06 [RateCDR] => 1 ) [2025-03-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-03-26 21:30:06' and `end` < '2025-03-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-03-27 00:30:18] Production.INFO: count ==718 [2025-03-27 00:30:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:30:06 - End Time 2025-03-27 00:30:06 [2025-03-27 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770506', 'tblTempUsageDetail_20' ) start [2025-03-27 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770506', 'tblTempUsageDetail_20' ) end [2025-03-27 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770506', 'tblTempVendorCDR_20' ) start [2025-03-27 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770506', 'tblTempVendorCDR_20' ) end [2025-03-27 00:30:19] Production.INFO: ProcessCDR(1,14770506,1,1,2) [2025-03-27 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770506', 'tblTempUsageDetail_20' ) start [2025-03-27 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770506', 'tblTempUsageDetail_20' ) end [2025-03-27 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:30:22] Production.INFO: ==1734== Releasing lock... [2025-03-27 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:30:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-27 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:31:05 [end_date_ymd] => 2025-03-27 00:31:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:31:05' and `end` < '2025-03-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-03-27 00:31:18] Production.INFO: count ==717 [2025-03-27 00:31:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:31:05 - End Time 2025-03-27 00:31:05 [2025-03-27 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770511', 'tblTempUsageDetail_20' ) start [2025-03-27 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770511', 'tblTempUsageDetail_20' ) end [2025-03-27 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770511', 'tblTempVendorCDR_20' ) start [2025-03-27 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770511', 'tblTempVendorCDR_20' ) end [2025-03-27 00:31:18] Production.INFO: ProcessCDR(1,14770511,1,1,2) [2025-03-27 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770511', 'tblTempUsageDetail_20' ) start [2025-03-27 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770511', 'tblTempUsageDetail_20' ) end [2025-03-27 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:31:21] Production.INFO: ==1807== Releasing lock... [2025-03-27 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:31:21] Production.INFO: 34 MB #Memory Used# [2025-03-27 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:32:05 [end_date_ymd] => 2025-03-27 00:32:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:32:05' and `end` < '2025-03-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-03-27 00:32:18] Production.INFO: count ==705 [2025-03-27 00:32:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:32:05 - End Time 2025-03-27 00:32:05 [2025-03-27 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770516', 'tblTempUsageDetail_20' ) start [2025-03-27 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770516', 'tblTempUsageDetail_20' ) end [2025-03-27 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770516', 'tblTempVendorCDR_20' ) start [2025-03-27 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770516', 'tblTempVendorCDR_20' ) end [2025-03-27 00:32:18] Production.INFO: ProcessCDR(1,14770516,1,1,2) [2025-03-27 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770516', 'tblTempUsageDetail_20' ) start [2025-03-27 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770516', 'tblTempUsageDetail_20' ) end [2025-03-27 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:32:22] Production.INFO: ==1883== Releasing lock... [2025-03-27 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:32:22] Production.INFO: 34 MB #Memory Used# [2025-03-27 00:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:33:06 [end_date_ymd] => 2025-03-27 00:33:06 [RateCDR] => 1 ) [2025-03-27 00:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:33:06' and `end` < '2025-03-27 00:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:33:18] Production.INFO: count ==705 [2025-03-27 00:33:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:33:06 - End Time 2025-03-27 00:33:06 [2025-03-27 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770521', 'tblTempUsageDetail_20' ) start [2025-03-27 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770521', 'tblTempUsageDetail_20' ) end [2025-03-27 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770521', 'tblTempVendorCDR_20' ) start [2025-03-27 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770521', 'tblTempVendorCDR_20' ) end [2025-03-27 00:33:18] Production.INFO: ProcessCDR(1,14770521,1,1,2) [2025-03-27 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770521', 'tblTempUsageDetail_20' ) start [2025-03-27 00:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770521', 'tblTempUsageDetail_20' ) end [2025-03-27 00:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:33:24] Production.INFO: ==1956== Releasing lock... [2025-03-27 00:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:33:24] Production.INFO: 34 MB #Memory Used# [2025-03-27 00:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:34:06 [end_date_ymd] => 2025-03-27 00:34:06 [RateCDR] => 1 ) [2025-03-27 00:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:34:06' and `end` < '2025-03-27 00:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:34:18] Production.INFO: count ==703 [2025-03-27 00:34:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:34:06 - End Time 2025-03-27 00:34:06 [2025-03-27 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770526', 'tblTempUsageDetail_20' ) start [2025-03-27 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770526', 'tblTempUsageDetail_20' ) end [2025-03-27 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770526', 'tblTempVendorCDR_20' ) start [2025-03-27 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770526', 'tblTempVendorCDR_20' ) end [2025-03-27 00:34:19] Production.INFO: ProcessCDR(1,14770526,1,1,2) [2025-03-27 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770526', 'tblTempUsageDetail_20' ) start [2025-03-27 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770526', 'tblTempUsageDetail_20' ) end [2025-03-27 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:34:22] Production.INFO: ==2034== Releasing lock... [2025-03-27 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:34:22] Production.INFO: 34 MB #Memory Used# [2025-03-27 00:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:35:06 [end_date_ymd] => 2025-03-27 00:35:06 [RateCDR] => 1 ) [2025-03-27 00:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:35:06' and `end` < '2025-03-27 00:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:35:18] Production.INFO: count ==703 [2025-03-27 00:35:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:35:06 - End Time 2025-03-27 00:35:06 [2025-03-27 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770531', 'tblTempUsageDetail_20' ) start [2025-03-27 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770531', 'tblTempUsageDetail_20' ) end [2025-03-27 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770531', 'tblTempVendorCDR_20' ) start [2025-03-27 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770531', 'tblTempVendorCDR_20' ) end [2025-03-27 00:35:18] Production.INFO: ProcessCDR(1,14770531,1,1,2) [2025-03-27 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770531', 'tblTempUsageDetail_20' ) start [2025-03-27 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770531', 'tblTempUsageDetail_20' ) end [2025-03-27 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:35:22] Production.INFO: ==2110== Releasing lock... [2025-03-27 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:35:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-27 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:36:05 [end_date_ymd] => 2025-03-27 00:36:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:36:05' and `end` < '2025-03-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-03-27 00:36:18] Production.INFO: count ==703 [2025-03-27 00:36:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:36:05 - End Time 2025-03-27 00:36:05 [2025-03-27 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770536', 'tblTempUsageDetail_20' ) start [2025-03-27 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770536', 'tblTempUsageDetail_20' ) end [2025-03-27 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770536', 'tblTempVendorCDR_20' ) start [2025-03-27 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770536', 'tblTempVendorCDR_20' ) end [2025-03-27 00:36:18] Production.INFO: ProcessCDR(1,14770536,1,1,2) [2025-03-27 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770536', 'tblTempUsageDetail_20' ) start [2025-03-27 00:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770536', 'tblTempUsageDetail_20' ) end [2025-03-27 00:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:36:23] Production.INFO: ==2183== Releasing lock... [2025-03-27 00:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:36:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-27 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:37:05 [end_date_ymd] => 2025-03-27 00:37:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:37:05' and `end` < '2025-03-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-03-27 00:37:17] Production.INFO: count ==701 [2025-03-27 00:37:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:37:05 - End Time 2025-03-27 00:37:05 [2025-03-27 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770541', 'tblTempUsageDetail_20' ) start [2025-03-27 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770541', 'tblTempUsageDetail_20' ) end [2025-03-27 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770541', 'tblTempVendorCDR_20' ) start [2025-03-27 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770541', 'tblTempVendorCDR_20' ) end [2025-03-27 00:37:18] Production.INFO: ProcessCDR(1,14770541,1,1,2) [2025-03-27 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770541', 'tblTempUsageDetail_20' ) start [2025-03-27 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770541', 'tblTempUsageDetail_20' ) end [2025-03-27 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:37:21] Production.INFO: ==2264== Releasing lock... [2025-03-27 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:37:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-27 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:38:05 [end_date_ymd] => 2025-03-27 00:38:05 [RateCDR] => 1 ) [2025-03-27 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:38:05' and `end` < '2025-03-27 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:38:18] Production.INFO: count ==697 [2025-03-27 00:38:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:38:05 - End Time 2025-03-27 00:38:05 [2025-03-27 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770546', 'tblTempUsageDetail_20' ) start [2025-03-27 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770546', 'tblTempUsageDetail_20' ) end [2025-03-27 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770546', 'tblTempVendorCDR_20' ) start [2025-03-27 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770546', 'tblTempVendorCDR_20' ) end [2025-03-27 00:38:18] Production.INFO: ProcessCDR(1,14770546,1,1,2) [2025-03-27 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770546', 'tblTempUsageDetail_20' ) start [2025-03-27 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770546', 'tblTempUsageDetail_20' ) end [2025-03-27 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:38:21] Production.INFO: ==2336== Releasing lock... [2025-03-27 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:38:21] Production.INFO: 34 MB #Memory Used# [2025-03-27 00:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:39:04 [end_date_ymd] => 2025-03-27 00:39:04 [RateCDR] => 1 ) [2025-03-27 00: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-03-26 21:39:04' and `end` < '2025-03-27 00: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-03-27 00:39:17] Production.INFO: count ==688 [2025-03-27 00:39:17] Production.ERROR: pbx CDR StartTime 2025-03-26 21:39:04 - End Time 2025-03-27 00:39:04 [2025-03-27 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770551', 'tblTempUsageDetail_20' ) start [2025-03-27 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770551', 'tblTempUsageDetail_20' ) end [2025-03-27 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770551', 'tblTempVendorCDR_20' ) start [2025-03-27 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770551', 'tblTempVendorCDR_20' ) end [2025-03-27 00:39:17] Production.INFO: ProcessCDR(1,14770551,1,1,2) [2025-03-27 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770551', 'tblTempUsageDetail_20' ) start [2025-03-27 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770551', 'tblTempUsageDetail_20' ) end [2025-03-27 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:39:21] Production.INFO: ==2408== Releasing lock... [2025-03-27 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:39:21] Production.INFO: 34 MB #Memory Used# [2025-03-27 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:40:06 [end_date_ymd] => 2025-03-27 00:40:06 [RateCDR] => 1 ) [2025-03-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-03-26 21:40:06' and `end` < '2025-03-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-03-27 00:40:18] Production.INFO: count ==650 [2025-03-27 00:40:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:40:06 - End Time 2025-03-27 00:40:06 [2025-03-27 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770557', 'tblTempUsageDetail_20' ) start [2025-03-27 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770557', 'tblTempUsageDetail_20' ) end [2025-03-27 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770557', 'tblTempVendorCDR_20' ) start [2025-03-27 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770557', 'tblTempVendorCDR_20' ) end [2025-03-27 00:40:18] Production.INFO: ProcessCDR(1,14770557,1,1,2) [2025-03-27 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770557', 'tblTempUsageDetail_20' ) start [2025-03-27 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770557', 'tblTempUsageDetail_20' ) end [2025-03-27 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:40:22] Production.INFO: ==2480== Releasing lock... [2025-03-27 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:40:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-27 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:41:05 [end_date_ymd] => 2025-03-27 00:41:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:41:05' and `end` < '2025-03-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-03-27 00:41:17] Production.INFO: count ==605 [2025-03-27 00:41:17] Production.ERROR: pbx CDR StartTime 2025-03-26 21:41:05 - End Time 2025-03-27 00:41:05 [2025-03-27 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770562', 'tblTempUsageDetail_20' ) start [2025-03-27 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770562', 'tblTempUsageDetail_20' ) end [2025-03-27 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770562', 'tblTempVendorCDR_20' ) start [2025-03-27 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770562', 'tblTempVendorCDR_20' ) end [2025-03-27 00:41:17] Production.INFO: ProcessCDR(1,14770562,1,1,2) [2025-03-27 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770562', 'tblTempUsageDetail_20' ) start [2025-03-27 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770562', 'tblTempUsageDetail_20' ) end [2025-03-27 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:41:22] Production.INFO: ==2551== Releasing lock... [2025-03-27 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:41:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-27 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:42:05 [end_date_ymd] => 2025-03-27 00:42:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:42:05' and `end` < '2025-03-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-03-27 00:42:18] Production.INFO: count ==596 [2025-03-27 00:42:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:42:05 - End Time 2025-03-27 00:42:05 [2025-03-27 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770567', 'tblTempUsageDetail_20' ) start [2025-03-27 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770567', 'tblTempUsageDetail_20' ) end [2025-03-27 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770567', 'tblTempVendorCDR_20' ) start [2025-03-27 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770567', 'tblTempVendorCDR_20' ) end [2025-03-27 00:42:18] Production.INFO: ProcessCDR(1,14770567,1,1,2) [2025-03-27 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770567', 'tblTempUsageDetail_20' ) start [2025-03-27 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770567', 'tblTempUsageDetail_20' ) end [2025-03-27 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:42:21] Production.INFO: ==2664== Releasing lock... [2025-03-27 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:42:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:43:05 [end_date_ymd] => 2025-03-27 00:43:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:43:05' and `end` < '2025-03-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-03-27 00:43:18] Production.INFO: count ==588 [2025-03-27 00:43:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:43:05 - End Time 2025-03-27 00:43:05 [2025-03-27 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770572', 'tblTempUsageDetail_20' ) start [2025-03-27 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770572', 'tblTempUsageDetail_20' ) end [2025-03-27 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770572', 'tblTempVendorCDR_20' ) start [2025-03-27 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770572', 'tblTempVendorCDR_20' ) end [2025-03-27 00:43:18] Production.INFO: ProcessCDR(1,14770572,1,1,2) [2025-03-27 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770572', 'tblTempUsageDetail_20' ) start [2025-03-27 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770572', 'tblTempUsageDetail_20' ) end [2025-03-27 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:43:21] Production.INFO: ==2737== Releasing lock... [2025-03-27 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:43:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:44:05 [end_date_ymd] => 2025-03-27 00:44:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:44:05' and `end` < '2025-03-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-03-27 00:44:17] Production.INFO: count ==576 [2025-03-27 00:44:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:44:05 - End Time 2025-03-27 00:44:05 [2025-03-27 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770577', 'tblTempUsageDetail_20' ) start [2025-03-27 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770577', 'tblTempUsageDetail_20' ) end [2025-03-27 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770577', 'tblTempVendorCDR_20' ) start [2025-03-27 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770577', 'tblTempVendorCDR_20' ) end [2025-03-27 00:44:18] Production.INFO: ProcessCDR(1,14770577,1,1,2) [2025-03-27 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770577', 'tblTempUsageDetail_20' ) start [2025-03-27 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770577', 'tblTempUsageDetail_20' ) end [2025-03-27 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:44:21] Production.INFO: ==2808== Releasing lock... [2025-03-27 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:44:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:45:05 [end_date_ymd] => 2025-03-27 00:45:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:45:05' and `end` < '2025-03-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-03-27 00:45:17] Production.INFO: count ==576 [2025-03-27 00:45:17] Production.ERROR: pbx CDR StartTime 2025-03-26 21:45:05 - End Time 2025-03-27 00:45:05 [2025-03-27 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770582', 'tblTempUsageDetail_20' ) start [2025-03-27 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770582', 'tblTempUsageDetail_20' ) end [2025-03-27 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770582', 'tblTempVendorCDR_20' ) start [2025-03-27 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770582', 'tblTempVendorCDR_20' ) end [2025-03-27 00:45:17] Production.INFO: ProcessCDR(1,14770582,1,1,2) [2025-03-27 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770582', 'tblTempUsageDetail_20' ) start [2025-03-27 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770582', 'tblTempUsageDetail_20' ) end [2025-03-27 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:45:21] Production.INFO: ==2882== Releasing lock... [2025-03-27 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:45:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:46:05 [end_date_ymd] => 2025-03-27 00:46:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:46:05' and `end` < '2025-03-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-03-27 00:46:18] Production.INFO: count ==565 [2025-03-27 00:46:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:46:05 - End Time 2025-03-27 00:46:05 [2025-03-27 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770587', 'tblTempUsageDetail_20' ) start [2025-03-27 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770587', 'tblTempUsageDetail_20' ) end [2025-03-27 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770587', 'tblTempVendorCDR_20' ) start [2025-03-27 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770587', 'tblTempVendorCDR_20' ) end [2025-03-27 00:46:18] Production.INFO: ProcessCDR(1,14770587,1,1,2) [2025-03-27 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770587', 'tblTempUsageDetail_20' ) start [2025-03-27 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770587', 'tblTempUsageDetail_20' ) end [2025-03-27 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:46:22] Production.INFO: ==2955== Releasing lock... [2025-03-27 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:46:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 00:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:47:06 [end_date_ymd] => 2025-03-27 00:47:06 [RateCDR] => 1 ) [2025-03-27 00:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:47:06' and `end` < '2025-03-27 00:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:47:18] Production.INFO: count ==564 [2025-03-27 00:47:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:47:06 - End Time 2025-03-27 00:47:06 [2025-03-27 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770592', 'tblTempUsageDetail_20' ) start [2025-03-27 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770592', 'tblTempUsageDetail_20' ) end [2025-03-27 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770592', 'tblTempVendorCDR_20' ) start [2025-03-27 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770592', 'tblTempVendorCDR_20' ) end [2025-03-27 00:47:18] Production.INFO: ProcessCDR(1,14770592,1,1,2) [2025-03-27 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770592', 'tblTempUsageDetail_20' ) start [2025-03-27 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770592', 'tblTempUsageDetail_20' ) end [2025-03-27 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:47:22] Production.INFO: ==3030== Releasing lock... [2025-03-27 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:47:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:48:05 [end_date_ymd] => 2025-03-27 00:48:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:48:05' and `end` < '2025-03-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-03-27 00:48:18] Production.INFO: count ==563 [2025-03-27 00:48:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:48:05 - End Time 2025-03-27 00:48:05 [2025-03-27 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770597', 'tblTempUsageDetail_20' ) start [2025-03-27 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770597', 'tblTempUsageDetail_20' ) end [2025-03-27 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770597', 'tblTempVendorCDR_20' ) start [2025-03-27 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770597', 'tblTempVendorCDR_20' ) end [2025-03-27 00:48:18] Production.INFO: ProcessCDR(1,14770597,1,1,2) [2025-03-27 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770597', 'tblTempUsageDetail_20' ) start [2025-03-27 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770597', 'tblTempUsageDetail_20' ) end [2025-03-27 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:48:21] Production.INFO: ==3103== Releasing lock... [2025-03-27 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:48:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 00:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:49:06 [end_date_ymd] => 2025-03-27 00:49:06 [RateCDR] => 1 ) [2025-03-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-03-26 21:49:06' and `end` < '2025-03-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-03-27 00:49:18] Production.INFO: count ==561 [2025-03-27 00:49:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:49:06 - End Time 2025-03-27 00:49:06 [2025-03-27 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770602', 'tblTempUsageDetail_20' ) start [2025-03-27 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770602', 'tblTempUsageDetail_20' ) end [2025-03-27 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770602', 'tblTempVendorCDR_20' ) start [2025-03-27 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770602', 'tblTempVendorCDR_20' ) end [2025-03-27 00:49:18] Production.INFO: ProcessCDR(1,14770602,1,1,2) [2025-03-27 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770602', 'tblTempUsageDetail_20' ) start [2025-03-27 00:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770602', 'tblTempUsageDetail_20' ) end [2025-03-27 00:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:49:23] Production.INFO: ==3180== Releasing lock... [2025-03-27 00:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:49:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:50:05 [end_date_ymd] => 2025-03-27 00:50:05 [RateCDR] => 1 ) [2025-03-27 00:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:50:05' and `end` < '2025-03-27 00:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:50:17] Production.INFO: count ==570 [2025-03-27 00:50:17] Production.ERROR: pbx CDR StartTime 2025-03-26 21:50:05 - End Time 2025-03-27 00:50:05 [2025-03-27 00:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770603', 'tblTempUsageDetail_20' ) start [2025-03-27 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770603', 'tblTempUsageDetail_20' ) end [2025-03-27 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770603', 'tblTempVendorCDR_20' ) start [2025-03-27 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770603', 'tblTempVendorCDR_20' ) end [2025-03-27 00:50:18] Production.INFO: ProcessCDR(1,14770603,1,1,2) [2025-03-27 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770603', 'tblTempUsageDetail_20' ) start [2025-03-27 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770603', 'tblTempUsageDetail_20' ) end [2025-03-27 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:50:22] Production.INFO: ==3259== Releasing lock... [2025-03-27 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:50:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:51:06 [end_date_ymd] => 2025-03-27 00:51:06 [RateCDR] => 1 ) [2025-03-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-03-26 21:51:06' and `end` < '2025-03-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-03-27 00:51:18] Production.INFO: count ==555 [2025-03-27 00:51:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:51:06 - End Time 2025-03-27 00:51:06 [2025-03-27 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770613', 'tblTempUsageDetail_20' ) start [2025-03-27 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770613', 'tblTempUsageDetail_20' ) end [2025-03-27 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770613', 'tblTempVendorCDR_20' ) start [2025-03-27 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770613', 'tblTempVendorCDR_20' ) end [2025-03-27 00:51:18] Production.INFO: ProcessCDR(1,14770613,1,1,2) [2025-03-27 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770613', 'tblTempUsageDetail_20' ) start [2025-03-27 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770613', 'tblTempUsageDetail_20' ) end [2025-03-27 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:51:22] Production.INFO: ==3333== Releasing lock... [2025-03-27 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:51:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:52:05 [end_date_ymd] => 2025-03-27 00:52:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:52:05' and `end` < '2025-03-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-03-27 00:52:18] Production.INFO: count ==552 [2025-03-27 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:52:05 - End Time 2025-03-27 00:52:05 [2025-03-27 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770618', 'tblTempUsageDetail_20' ) start [2025-03-27 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770618', 'tblTempUsageDetail_20' ) end [2025-03-27 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770618', 'tblTempVendorCDR_20' ) start [2025-03-27 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770618', 'tblTempVendorCDR_20' ) end [2025-03-27 00:52:18] Production.INFO: ProcessCDR(1,14770618,1,1,2) [2025-03-27 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770618', 'tblTempUsageDetail_20' ) start [2025-03-27 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770618', 'tblTempUsageDetail_20' ) end [2025-03-27 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:52:21] Production.INFO: ==3406== Releasing lock... [2025-03-27 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:52:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 00:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:53:06 [end_date_ymd] => 2025-03-27 00:53:06 [RateCDR] => 1 ) [2025-03-27 00:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:53:06' and `end` < '2025-03-27 00:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:53:18] Production.INFO: count ==550 [2025-03-27 00:53:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:53:06 - End Time 2025-03-27 00:53:06 [2025-03-27 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770623', 'tblTempUsageDetail_20' ) start [2025-03-27 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770623', 'tblTempUsageDetail_20' ) end [2025-03-27 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770623', 'tblTempVendorCDR_20' ) start [2025-03-27 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770623', 'tblTempVendorCDR_20' ) end [2025-03-27 00:53:18] Production.INFO: ProcessCDR(1,14770623,1,1,2) [2025-03-27 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770623', 'tblTempUsageDetail_20' ) start [2025-03-27 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770623', 'tblTempUsageDetail_20' ) end [2025-03-27 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:53:22] Production.INFO: ==3478== Releasing lock... [2025-03-27 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:53:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:54:05 [end_date_ymd] => 2025-03-27 00:54:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:54:05' and `end` < '2025-03-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-03-27 00:54:18] Production.INFO: count ==549 [2025-03-27 00:54:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:54:05 - End Time 2025-03-27 00:54:05 [2025-03-27 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770628', 'tblTempUsageDetail_20' ) start [2025-03-27 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770628', 'tblTempUsageDetail_20' ) end [2025-03-27 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770628', 'tblTempVendorCDR_20' ) start [2025-03-27 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770628', 'tblTempVendorCDR_20' ) end [2025-03-27 00:54:18] Production.INFO: ProcessCDR(1,14770628,1,1,2) [2025-03-27 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770628', 'tblTempUsageDetail_20' ) start [2025-03-27 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770628', 'tblTempUsageDetail_20' ) end [2025-03-27 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:54:21] Production.INFO: ==3562== Releasing lock... [2025-03-27 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:54:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:55:06 [end_date_ymd] => 2025-03-27 00:55:06 [RateCDR] => 1 ) [2025-03-27 00:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:55:06' and `end` < '2025-03-27 00:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:55:18] Production.INFO: count ==549 [2025-03-27 00:55:19] Production.ERROR: pbx CDR StartTime 2025-03-26 21:55:06 - End Time 2025-03-27 00:55:06 [2025-03-27 00:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770633', 'tblTempUsageDetail_20' ) start [2025-03-27 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770633', 'tblTempUsageDetail_20' ) end [2025-03-27 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770633', 'tblTempVendorCDR_20' ) start [2025-03-27 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770633', 'tblTempVendorCDR_20' ) end [2025-03-27 00:55:19] Production.INFO: ProcessCDR(1,14770633,1,1,2) [2025-03-27 00:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770633', 'tblTempUsageDetail_20' ) start [2025-03-27 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770633', 'tblTempUsageDetail_20' ) end [2025-03-27 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:55:22] Production.INFO: ==3644== Releasing lock... [2025-03-27 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:55:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:56:05 [end_date_ymd] => 2025-03-27 00:56:05 [RateCDR] => 1 ) [2025-03-27 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:56:05' and `end` < '2025-03-27 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:56:18] Production.INFO: count ==545 [2025-03-27 00:56:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:56:05 - End Time 2025-03-27 00:56:05 [2025-03-27 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770638', 'tblTempUsageDetail_20' ) start [2025-03-27 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770638', 'tblTempUsageDetail_20' ) end [2025-03-27 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770638', 'tblTempVendorCDR_20' ) start [2025-03-27 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770638', 'tblTempVendorCDR_20' ) end [2025-03-27 00:56:18] Production.INFO: ProcessCDR(1,14770638,1,1,2) [2025-03-27 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770638', 'tblTempUsageDetail_20' ) start [2025-03-27 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770638', 'tblTempUsageDetail_20' ) end [2025-03-27 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:56:21] Production.INFO: ==3725== Releasing lock... [2025-03-27 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:56:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:57:05 [end_date_ymd] => 2025-03-27 00:57:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:57:05' and `end` < '2025-03-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-03-27 00:57:18] Production.INFO: count ==544 [2025-03-27 00:57:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:57:05 - End Time 2025-03-27 00:57:05 [2025-03-27 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770643', 'tblTempUsageDetail_20' ) start [2025-03-27 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770643', 'tblTempUsageDetail_20' ) end [2025-03-27 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770643', 'tblTempVendorCDR_20' ) start [2025-03-27 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770643', 'tblTempVendorCDR_20' ) end [2025-03-27 00:57:18] Production.INFO: ProcessCDR(1,14770643,1,1,2) [2025-03-27 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770643', 'tblTempUsageDetail_20' ) start [2025-03-27 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770643', 'tblTempUsageDetail_20' ) end [2025-03-27 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:57:21] Production.INFO: ==3845== Releasing lock... [2025-03-27 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:57:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 00:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:58:06 [end_date_ymd] => 2025-03-27 00:58:06 [RateCDR] => 1 ) [2025-03-27 00:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 21:58:06' and `end` < '2025-03-27 00:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 00:58:18] Production.INFO: count ==543 [2025-03-27 00:58:19] Production.ERROR: pbx CDR StartTime 2025-03-26 21:58:06 - End Time 2025-03-27 00:58:06 [2025-03-27 00:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770648', 'tblTempUsageDetail_20' ) start [2025-03-27 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770648', 'tblTempUsageDetail_20' ) end [2025-03-27 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770648', 'tblTempVendorCDR_20' ) start [2025-03-27 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770648', 'tblTempVendorCDR_20' ) end [2025-03-27 00:58:19] Production.INFO: ProcessCDR(1,14770648,1,1,2) [2025-03-27 00:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770648', 'tblTempUsageDetail_20' ) start [2025-03-27 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770648', 'tblTempUsageDetail_20' ) end [2025-03-27 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:58:22] Production.INFO: ==3920== Releasing lock... [2025-03-27 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:58:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 21:59:05 [end_date_ymd] => 2025-03-27 00:59:05 [RateCDR] => 1 ) [2025-03-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-03-26 21:59:05' and `end` < '2025-03-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-03-27 00:59:18] Production.INFO: count ==552 [2025-03-27 00:59:18] Production.ERROR: pbx CDR StartTime 2025-03-26 21:59:05 - End Time 2025-03-27 00:59:05 [2025-03-27 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770653', 'tblTempUsageDetail_20' ) start [2025-03-27 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770653', 'tblTempUsageDetail_20' ) end [2025-03-27 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770653', 'tblTempVendorCDR_20' ) start [2025-03-27 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770653', 'tblTempVendorCDR_20' ) end [2025-03-27 00:59:18] Production.INFO: ProcessCDR(1,14770653,1,1,2) [2025-03-27 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770653', 'tblTempUsageDetail_20' ) start [2025-03-27 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770653', 'tblTempUsageDetail_20' ) end [2025-03-27 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 00:59:21] Production.INFO: ==4000== Releasing lock... [2025-03-27 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 00:59:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:00:06 [end_date_ymd] => 2025-03-27 01:00:06 [RateCDR] => 1 ) [2025-03-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-03-26 22:00:06' and `end` < '2025-03-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-03-27 01:00:18] Production.INFO: count ==574 [2025-03-27 01:00:19] Production.ERROR: pbx CDR StartTime 2025-03-26 22:00:06 - End Time 2025-03-27 01:00:06 [2025-03-27 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770658', 'tblTempUsageDetail_20' ) start [2025-03-27 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770658', 'tblTempUsageDetail_20' ) end [2025-03-27 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770658', 'tblTempVendorCDR_20' ) start [2025-03-27 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770658', 'tblTempVendorCDR_20' ) end [2025-03-27 01:00:19] Production.INFO: ProcessCDR(1,14770658,1,1,2) [2025-03-27 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770658', 'tblTempUsageDetail_20' ) start [2025-03-27 01:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770658', 'tblTempUsageDetail_20' ) end [2025-03-27 01:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:00:24] Production.INFO: ==4083== Releasing lock... [2025-03-27 01:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:00:24] Production.INFO: 33 MB #Memory Used# [2025-03-27 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:01:05 [end_date_ymd] => 2025-03-27 01:01:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:01:05' and `end` < '2025-03-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-03-27 01:01:17] Production.INFO: count ==600 [2025-03-27 01:01:17] Production.ERROR: pbx CDR StartTime 2025-03-26 22:01:05 - End Time 2025-03-27 01:01:05 [2025-03-27 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770664', 'tblTempUsageDetail_20' ) start [2025-03-27 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770664', 'tblTempUsageDetail_20' ) end [2025-03-27 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770664', 'tblTempVendorCDR_20' ) start [2025-03-27 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770664', 'tblTempVendorCDR_20' ) end [2025-03-27 01:01:17] Production.INFO: ProcessCDR(1,14770664,1,1,2) [2025-03-27 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770664', 'tblTempUsageDetail_20' ) start [2025-03-27 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770664', 'tblTempUsageDetail_20' ) end [2025-03-27 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:01:21] Production.INFO: ==4182== Releasing lock... [2025-03-27 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:01:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:02:05 [end_date_ymd] => 2025-03-27 01:02:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:02:05' and `end` < '2025-03-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-03-27 01:02:18] Production.INFO: count ==599 [2025-03-27 01:02:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:02:05 - End Time 2025-03-27 01:02:05 [2025-03-27 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770669', 'tblTempUsageDetail_20' ) start [2025-03-27 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770669', 'tblTempUsageDetail_20' ) end [2025-03-27 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770669', 'tblTempVendorCDR_20' ) start [2025-03-27 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770669', 'tblTempVendorCDR_20' ) end [2025-03-27 01:02:18] Production.INFO: ProcessCDR(1,14770669,1,1,2) [2025-03-27 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770669', 'tblTempUsageDetail_20' ) start [2025-03-27 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770669', 'tblTempUsageDetail_20' ) end [2025-03-27 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:02:21] Production.INFO: ==4261== Releasing lock... [2025-03-27 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:02:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:03:05 [end_date_ymd] => 2025-03-27 01:03:05 [RateCDR] => 1 ) [2025-03-27 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:03:05' and `end` < '2025-03-27 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:03:18] Production.INFO: count ==610 [2025-03-27 01:03:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:03:05 - End Time 2025-03-27 01:03:05 [2025-03-27 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770674', 'tblTempUsageDetail_20' ) start [2025-03-27 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770674', 'tblTempUsageDetail_20' ) end [2025-03-27 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770674', 'tblTempVendorCDR_20' ) start [2025-03-27 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770674', 'tblTempVendorCDR_20' ) end [2025-03-27 01:03:18] Production.INFO: ProcessCDR(1,14770674,1,1,2) [2025-03-27 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770674', 'tblTempUsageDetail_20' ) start [2025-03-27 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770674', 'tblTempUsageDetail_20' ) end [2025-03-27 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:03:21] Production.INFO: ==4345== Releasing lock... [2025-03-27 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:03:21] Production.INFO: 33 MB #Memory Used# [2025-03-27 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:04:06 [end_date_ymd] => 2025-03-27 01:04:06 [RateCDR] => 1 ) [2025-03-27 01:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:04:06' and `end` < '2025-03-27 01:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:04:18] Production.INFO: count ==608 [2025-03-27 01:04:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:04:06 - End Time 2025-03-27 01:04:06 [2025-03-27 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770679', 'tblTempUsageDetail_20' ) start [2025-03-27 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770679', 'tblTempUsageDetail_20' ) end [2025-03-27 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770679', 'tblTempVendorCDR_20' ) start [2025-03-27 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770679', 'tblTempVendorCDR_20' ) end [2025-03-27 01:04:18] Production.INFO: ProcessCDR(1,14770679,1,1,2) [2025-03-27 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770679', 'tblTempUsageDetail_20' ) start [2025-03-27 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770679', 'tblTempUsageDetail_20' ) end [2025-03-27 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:04:22] Production.INFO: ==4427== Releasing lock... [2025-03-27 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:04:22] Production.INFO: 33 MB #Memory Used# [2025-03-27 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:05:05 [end_date_ymd] => 2025-03-27 01:05:05 [RateCDR] => 1 ) [2025-03-27 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:05:05' and `end` < '2025-03-27 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:05:17] Production.INFO: count ==614 [2025-03-27 01:05:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:05:05 - End Time 2025-03-27 01:05:05 [2025-03-27 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770684', 'tblTempUsageDetail_20' ) start [2025-03-27 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770684', 'tblTempUsageDetail_20' ) end [2025-03-27 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770684', 'tblTempVendorCDR_20' ) start [2025-03-27 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770684', 'tblTempVendorCDR_20' ) end [2025-03-27 01:05:18] Production.INFO: ProcessCDR(1,14770684,1,1,2) [2025-03-27 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770684', 'tblTempUsageDetail_20' ) start [2025-03-27 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770684', 'tblTempUsageDetail_20' ) end [2025-03-27 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:05:21] Production.INFO: ==4506== Releasing lock... [2025-03-27 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:05:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-27 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:06:05 [end_date_ymd] => 2025-03-27 01:06:05 [RateCDR] => 1 ) [2025-03-27 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:06:05' and `end` < '2025-03-27 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:06:18] Production.INFO: count ==608 [2025-03-27 01:06:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:06:05 - End Time 2025-03-27 01:06:05 [2025-03-27 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770689', 'tblTempUsageDetail_20' ) start [2025-03-27 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770689', 'tblTempUsageDetail_20' ) end [2025-03-27 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770689', 'tblTempVendorCDR_20' ) start [2025-03-27 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770689', 'tblTempVendorCDR_20' ) end [2025-03-27 01:06:18] Production.INFO: ProcessCDR(1,14770689,1,1,2) [2025-03-27 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770689', 'tblTempUsageDetail_20' ) start [2025-03-27 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770689', 'tblTempUsageDetail_20' ) end [2025-03-27 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:06:21] Production.INFO: ==4588== Releasing lock... [2025-03-27 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:06:21] Production.INFO: 33 MB #Memory Used# [2025-03-27 01:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:07:06 [end_date_ymd] => 2025-03-27 01:07:06 [RateCDR] => 1 ) [2025-03-27 01:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:07:06' and `end` < '2025-03-27 01:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:07:18] Production.INFO: count ==609 [2025-03-27 01:07:19] Production.ERROR: pbx CDR StartTime 2025-03-26 22:07:06 - End Time 2025-03-27 01:07:06 [2025-03-27 01:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770694', 'tblTempUsageDetail_20' ) start [2025-03-27 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770694', 'tblTempUsageDetail_20' ) end [2025-03-27 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770694', 'tblTempVendorCDR_20' ) start [2025-03-27 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770694', 'tblTempVendorCDR_20' ) end [2025-03-27 01:07:19] Production.INFO: ProcessCDR(1,14770694,1,1,2) [2025-03-27 01:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770694', 'tblTempUsageDetail_20' ) start [2025-03-27 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770694', 'tblTempUsageDetail_20' ) end [2025-03-27 01:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:07:23] Production.INFO: ==4672== Releasing lock... [2025-03-27 01:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:07:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:08:05 [end_date_ymd] => 2025-03-27 01:08:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:08:05' and `end` < '2025-03-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-03-27 01:08:17] Production.INFO: count ==606 [2025-03-27 01:08:17] Production.ERROR: pbx CDR StartTime 2025-03-26 22:08:05 - End Time 2025-03-27 01:08:05 [2025-03-27 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770699', 'tblTempUsageDetail_20' ) start [2025-03-27 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770699', 'tblTempUsageDetail_20' ) end [2025-03-27 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770699', 'tblTempVendorCDR_20' ) start [2025-03-27 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770699', 'tblTempVendorCDR_20' ) end [2025-03-27 01:08:17] Production.INFO: ProcessCDR(1,14770699,1,1,2) [2025-03-27 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770699', 'tblTempUsageDetail_20' ) start [2025-03-27 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770699', 'tblTempUsageDetail_20' ) end [2025-03-27 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:08:21] Production.INFO: ==4750== Releasing lock... [2025-03-27 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:08:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-27 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:09:05 [end_date_ymd] => 2025-03-27 01:09:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:09:05' and `end` < '2025-03-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-03-27 01:09:18] Production.INFO: count ==611 [2025-03-27 01:09:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:09:05 - End Time 2025-03-27 01:09:05 [2025-03-27 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770704', 'tblTempUsageDetail_20' ) start [2025-03-27 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770704', 'tblTempUsageDetail_20' ) end [2025-03-27 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770704', 'tblTempVendorCDR_20' ) start [2025-03-27 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770704', 'tblTempVendorCDR_20' ) end [2025-03-27 01:09:18] Production.INFO: ProcessCDR(1,14770704,1,1,2) [2025-03-27 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770704', 'tblTempUsageDetail_20' ) start [2025-03-27 01:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770704', 'tblTempUsageDetail_20' ) end [2025-03-27 01:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:09:23] Production.INFO: ==4827== Releasing lock... [2025-03-27 01:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:09:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:10:06 [end_date_ymd] => 2025-03-27 01:10:06 [RateCDR] => 1 ) [2025-03-27 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:10:06' and `end` < '2025-03-27 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:10:18] Production.INFO: count ==621 [2025-03-27 01:10:19] Production.ERROR: pbx CDR StartTime 2025-03-26 22:10:06 - End Time 2025-03-27 01:10:06 [2025-03-27 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770710', 'tblTempUsageDetail_20' ) start [2025-03-27 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770710', 'tblTempUsageDetail_20' ) end [2025-03-27 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770710', 'tblTempVendorCDR_20' ) start [2025-03-27 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770710', 'tblTempVendorCDR_20' ) end [2025-03-27 01:10:19] Production.INFO: ProcessCDR(1,14770710,1,1,2) [2025-03-27 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770710', 'tblTempUsageDetail_20' ) start [2025-03-27 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770710', 'tblTempUsageDetail_20' ) end [2025-03-27 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:10:22] Production.INFO: ==4909== Releasing lock... [2025-03-27 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:10:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-27 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:11:05 [end_date_ymd] => 2025-03-27 01:11:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:11:05' and `end` < '2025-03-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-03-27 01:11:18] Production.INFO: count ==637 [2025-03-27 01:11:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:11:05 - End Time 2025-03-27 01:11:05 [2025-03-27 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770715', 'tblTempUsageDetail_20' ) start [2025-03-27 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770715', 'tblTempUsageDetail_20' ) end [2025-03-27 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770715', 'tblTempVendorCDR_20' ) start [2025-03-27 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770715', 'tblTempVendorCDR_20' ) end [2025-03-27 01:11:18] Production.INFO: ProcessCDR(1,14770715,1,1,2) [2025-03-27 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770715', 'tblTempUsageDetail_20' ) start [2025-03-27 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770715', 'tblTempUsageDetail_20' ) end [2025-03-27 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:11:22] Production.INFO: ==4986== Releasing lock... [2025-03-27 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:11:22] Production.INFO: 33 MB #Memory Used# [2025-03-27 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:12:05 [end_date_ymd] => 2025-03-27 01:12:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:12:05' and `end` < '2025-03-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-03-27 01:12:18] Production.INFO: count ==624 [2025-03-27 01:12:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:12:05 - End Time 2025-03-27 01:12:05 [2025-03-27 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770720', 'tblTempUsageDetail_20' ) start [2025-03-27 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770720', 'tblTempUsageDetail_20' ) end [2025-03-27 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770720', 'tblTempVendorCDR_20' ) start [2025-03-27 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770720', 'tblTempVendorCDR_20' ) end [2025-03-27 01:12:18] Production.INFO: ProcessCDR(1,14770720,1,1,2) [2025-03-27 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770720', 'tblTempUsageDetail_20' ) start [2025-03-27 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770720', 'tblTempUsageDetail_20' ) end [2025-03-27 01:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:12:23] Production.INFO: ==5068== Releasing lock... [2025-03-27 01:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:12:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:13:05 [end_date_ymd] => 2025-03-27 01:13:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:13:05' and `end` < '2025-03-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-03-27 01:13:18] Production.INFO: count ==622 [2025-03-27 01:13:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:13:05 - End Time 2025-03-27 01:13:05 [2025-03-27 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770725', 'tblTempUsageDetail_20' ) start [2025-03-27 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770725', 'tblTempUsageDetail_20' ) end [2025-03-27 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770725', 'tblTempVendorCDR_20' ) start [2025-03-27 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770725', 'tblTempVendorCDR_20' ) end [2025-03-27 01:13:18] Production.INFO: ProcessCDR(1,14770725,1,1,2) [2025-03-27 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770725', 'tblTempUsageDetail_20' ) start [2025-03-27 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770725', 'tblTempUsageDetail_20' ) end [2025-03-27 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:13:21] Production.INFO: ==5186== Releasing lock... [2025-03-27 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:13:21] Production.INFO: 33 MB #Memory Used# [2025-03-27 01:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:14:06 [end_date_ymd] => 2025-03-27 01:14:06 [RateCDR] => 1 ) [2025-03-27 01:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:14:06' and `end` < '2025-03-27 01:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:14:19] Production.INFO: count ==621 [2025-03-27 01:14:19] Production.ERROR: pbx CDR StartTime 2025-03-26 22:14:06 - End Time 2025-03-27 01:14:06 [2025-03-27 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770730', 'tblTempUsageDetail_20' ) start [2025-03-27 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770730', 'tblTempUsageDetail_20' ) end [2025-03-27 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770730', 'tblTempVendorCDR_20' ) start [2025-03-27 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770730', 'tblTempVendorCDR_20' ) end [2025-03-27 01:14:19] Production.INFO: ProcessCDR(1,14770730,1,1,2) [2025-03-27 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770730', 'tblTempUsageDetail_20' ) start [2025-03-27 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770730', 'tblTempUsageDetail_20' ) end [2025-03-27 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:14:22] Production.INFO: ==5268== Releasing lock... [2025-03-27 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:14:22] Production.INFO: 33 MB #Memory Used# [2025-03-27 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:15:05 [end_date_ymd] => 2025-03-27 01:15:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:15:05' and `end` < '2025-03-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-03-27 01:15:17] Production.INFO: count ==621 [2025-03-27 01:15:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:15:05 - End Time 2025-03-27 01:15:05 [2025-03-27 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770735', 'tblTempUsageDetail_20' ) start [2025-03-27 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770735', 'tblTempUsageDetail_20' ) end [2025-03-27 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770735', 'tblTempVendorCDR_20' ) start [2025-03-27 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770735', 'tblTempVendorCDR_20' ) end [2025-03-27 01:15:18] Production.INFO: ProcessCDR(1,14770735,1,1,2) [2025-03-27 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770735', 'tblTempUsageDetail_20' ) start [2025-03-27 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770735', 'tblTempUsageDetail_20' ) end [2025-03-27 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:15:21] Production.INFO: ==5353== Releasing lock... [2025-03-27 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:15:21] Production.INFO: 33 MB #Memory Used# [2025-03-27 01:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:16:06 [end_date_ymd] => 2025-03-27 01:16:06 [RateCDR] => 1 ) [2025-03-27 01:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:16:06' and `end` < '2025-03-27 01:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:16:18] Production.INFO: count ==629 [2025-03-27 01:16:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:16:06 - End Time 2025-03-27 01:16:06 [2025-03-27 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770740', 'tblTempUsageDetail_20' ) start [2025-03-27 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770740', 'tblTempUsageDetail_20' ) end [2025-03-27 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770740', 'tblTempVendorCDR_20' ) start [2025-03-27 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770740', 'tblTempVendorCDR_20' ) end [2025-03-27 01:16:18] Production.INFO: ProcessCDR(1,14770740,1,1,2) [2025-03-27 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770740', 'tblTempUsageDetail_20' ) start [2025-03-27 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770740', 'tblTempUsageDetail_20' ) end [2025-03-27 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:16:22] Production.INFO: ==5431== Releasing lock... [2025-03-27 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:16:22] Production.INFO: 33 MB #Memory Used# [2025-03-27 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:17:05 [end_date_ymd] => 2025-03-27 01:17:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:17:05' and `end` < '2025-03-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-03-27 01:17:18] Production.INFO: count ==627 [2025-03-27 01:17:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:17:05 - End Time 2025-03-27 01:17:05 [2025-03-27 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770745', 'tblTempUsageDetail_20' ) start [2025-03-27 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770745', 'tblTempUsageDetail_20' ) end [2025-03-27 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770745', 'tblTempVendorCDR_20' ) start [2025-03-27 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770745', 'tblTempVendorCDR_20' ) end [2025-03-27 01:17:18] Production.INFO: ProcessCDR(1,14770745,1,1,2) [2025-03-27 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770745', 'tblTempUsageDetail_20' ) start [2025-03-27 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770745', 'tblTempUsageDetail_20' ) end [2025-03-27 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:17:21] Production.INFO: ==5508== Releasing lock... [2025-03-27 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:17:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:18:06 [end_date_ymd] => 2025-03-27 01:18:06 [RateCDR] => 1 ) [2025-03-27 01:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:18:06' and `end` < '2025-03-27 01:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:18:18] Production.INFO: count ==634 [2025-03-27 01:18:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:18:06 - End Time 2025-03-27 01:18:06 [2025-03-27 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770750', 'tblTempUsageDetail_20' ) start [2025-03-27 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770750', 'tblTempUsageDetail_20' ) end [2025-03-27 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770750', 'tblTempVendorCDR_20' ) start [2025-03-27 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770750', 'tblTempVendorCDR_20' ) end [2025-03-27 01:18:19] Production.INFO: ProcessCDR(1,14770750,1,1,2) [2025-03-27 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770750', 'tblTempUsageDetail_20' ) start [2025-03-27 01:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770750', 'tblTempUsageDetail_20' ) end [2025-03-27 01:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:18:24] Production.INFO: ==5597== Releasing lock... [2025-03-27 01:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:18:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:19:05 [end_date_ymd] => 2025-03-27 01:19:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:19:05' and `end` < '2025-03-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-03-27 01:19:17] Production.INFO: count ==630 [2025-03-27 01:19:17] Production.ERROR: pbx CDR StartTime 2025-03-26 22:19:05 - End Time 2025-03-27 01:19:05 [2025-03-27 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770755', 'tblTempUsageDetail_20' ) start [2025-03-27 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770755', 'tblTempUsageDetail_20' ) end [2025-03-27 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770755', 'tblTempVendorCDR_20' ) start [2025-03-27 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770755', 'tblTempVendorCDR_20' ) end [2025-03-27 01:19:17] Production.INFO: ProcessCDR(1,14770755,1,1,2) [2025-03-27 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770755', 'tblTempUsageDetail_20' ) start [2025-03-27 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770755', 'tblTempUsageDetail_20' ) end [2025-03-27 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:19:21] Production.INFO: ==5672== Releasing lock... [2025-03-27 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:19:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:20:06 [end_date_ymd] => 2025-03-27 01:20:06 [RateCDR] => 1 ) [2025-03-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-03-26 22:20:06' and `end` < '2025-03-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-03-27 01:20:19] Production.INFO: count ==639 [2025-03-27 01:20:19] Production.ERROR: pbx CDR StartTime 2025-03-26 22:20:06 - End Time 2025-03-27 01:20:06 [2025-03-27 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770760', 'tblTempUsageDetail_20' ) start [2025-03-27 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770760', 'tblTempUsageDetail_20' ) end [2025-03-27 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770760', 'tblTempVendorCDR_20' ) start [2025-03-27 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770760', 'tblTempVendorCDR_20' ) end [2025-03-27 01:20:19] Production.INFO: ProcessCDR(1,14770760,1,1,2) [2025-03-27 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770760', 'tblTempUsageDetail_20' ) start [2025-03-27 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770760', 'tblTempUsageDetail_20' ) end [2025-03-27 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:20:22] Production.INFO: ==5756== Releasing lock... [2025-03-27 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:20:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-27 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:21:05 [end_date_ymd] => 2025-03-27 01:21:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:21:05' and `end` < '2025-03-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-03-27 01:21:17] Production.INFO: count ==655 [2025-03-27 01:21:17] Production.ERROR: pbx CDR StartTime 2025-03-26 22:21:05 - End Time 2025-03-27 01:21:05 [2025-03-27 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770766', 'tblTempUsageDetail_20' ) start [2025-03-27 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770766', 'tblTempUsageDetail_20' ) end [2025-03-27 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770766', 'tblTempVendorCDR_20' ) start [2025-03-27 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770766', 'tblTempVendorCDR_20' ) end [2025-03-27 01:21:18] Production.INFO: ProcessCDR(1,14770766,1,1,2) [2025-03-27 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770766', 'tblTempUsageDetail_20' ) start [2025-03-27 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770766', 'tblTempUsageDetail_20' ) end [2025-03-27 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:21:21] Production.INFO: ==5837== Releasing lock... [2025-03-27 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:21:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-27 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:22:05 [end_date_ymd] => 2025-03-27 01:22:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:22:05' and `end` < '2025-03-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-03-27 01:22:18] Production.INFO: count ==658 [2025-03-27 01:22:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:22:05 - End Time 2025-03-27 01:22:05 [2025-03-27 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770771', 'tblTempUsageDetail_20' ) start [2025-03-27 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770771', 'tblTempUsageDetail_20' ) end [2025-03-27 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770771', 'tblTempVendorCDR_20' ) start [2025-03-27 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770771', 'tblTempVendorCDR_20' ) end [2025-03-27 01:22:18] Production.INFO: ProcessCDR(1,14770771,1,1,2) [2025-03-27 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770771', 'tblTempUsageDetail_20' ) start [2025-03-27 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770771', 'tblTempUsageDetail_20' ) end [2025-03-27 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:22:21] Production.INFO: ==5913== Releasing lock... [2025-03-27 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:22:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:23:05 [end_date_ymd] => 2025-03-27 01:23:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:23:05' and `end` < '2025-03-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-03-27 01:23:17] Production.INFO: count ==662 [2025-03-27 01:23:17] Production.ERROR: pbx CDR StartTime 2025-03-26 22:23:05 - End Time 2025-03-27 01:23:05 [2025-03-27 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770776', 'tblTempUsageDetail_20' ) start [2025-03-27 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770776', 'tblTempUsageDetail_20' ) end [2025-03-27 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770776', 'tblTempVendorCDR_20' ) start [2025-03-27 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770776', 'tblTempVendorCDR_20' ) end [2025-03-27 01:23:17] Production.INFO: ProcessCDR(1,14770776,1,1,2) [2025-03-27 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770776', 'tblTempUsageDetail_20' ) start [2025-03-27 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770776', 'tblTempUsageDetail_20' ) end [2025-03-27 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:23:21] Production.INFO: ==5991== Releasing lock... [2025-03-27 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:23:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-27 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:24:05 [end_date_ymd] => 2025-03-27 01:24:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:24:05' and `end` < '2025-03-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-03-27 01:24:18] Production.INFO: count ==648 [2025-03-27 01:24:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:24:05 - End Time 2025-03-27 01:24:05 [2025-03-27 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770781', 'tblTempUsageDetail_20' ) start [2025-03-27 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770781', 'tblTempUsageDetail_20' ) end [2025-03-27 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770781', 'tblTempVendorCDR_20' ) start [2025-03-27 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770781', 'tblTempVendorCDR_20' ) end [2025-03-27 01:24:18] Production.INFO: ProcessCDR(1,14770781,1,1,2) [2025-03-27 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770781', 'tblTempUsageDetail_20' ) start [2025-03-27 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770781', 'tblTempUsageDetail_20' ) end [2025-03-27 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:24:22] Production.INFO: ==6074== Releasing lock... [2025-03-27 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:24:22] Production.INFO: 34 MB #Memory Used# [2025-03-27 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:25:05 [end_date_ymd] => 2025-03-27 01:25:05 [RateCDR] => 1 ) [2025-03-27 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:25:05' and `end` < '2025-03-27 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:25:18] Production.INFO: count ==634 [2025-03-27 01:25:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:25:05 - End Time 2025-03-27 01:25:05 [2025-03-27 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770786', 'tblTempUsageDetail_20' ) start [2025-03-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770786', 'tblTempUsageDetail_20' ) end [2025-03-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770786', 'tblTempVendorCDR_20' ) start [2025-03-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770786', 'tblTempVendorCDR_20' ) end [2025-03-27 01:25:18] Production.INFO: ProcessCDR(1,14770786,1,1,2) [2025-03-27 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770786', 'tblTempUsageDetail_20' ) start [2025-03-27 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770786', 'tblTempUsageDetail_20' ) end [2025-03-27 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:25:21] Production.INFO: ==6165== Releasing lock... [2025-03-27 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:26:05 [end_date_ymd] => 2025-03-27 01:26:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:26:05' and `end` < '2025-03-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-03-27 01:26:17] Production.INFO: count ==629 [2025-03-27 01:26:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:26:05 - End Time 2025-03-27 01:26:05 [2025-03-27 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770791', 'tblTempUsageDetail_20' ) start [2025-03-27 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770791', 'tblTempUsageDetail_20' ) end [2025-03-27 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770791', 'tblTempVendorCDR_20' ) start [2025-03-27 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770791', 'tblTempVendorCDR_20' ) end [2025-03-27 01:26:18] Production.INFO: ProcessCDR(1,14770791,1,1,2) [2025-03-27 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770791', 'tblTempUsageDetail_20' ) start [2025-03-27 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770791', 'tblTempUsageDetail_20' ) end [2025-03-27 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:26:21] Production.INFO: ==6247== Releasing lock... [2025-03-27 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:26:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:27:05 [end_date_ymd] => 2025-03-27 01:27:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:27:05' and `end` < '2025-03-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-03-27 01:27:18] Production.INFO: count ==627 [2025-03-27 01:27:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:27:05 - End Time 2025-03-27 01:27:05 [2025-03-27 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770796', 'tblTempUsageDetail_20' ) start [2025-03-27 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770796', 'tblTempUsageDetail_20' ) end [2025-03-27 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770796', 'tblTempVendorCDR_20' ) start [2025-03-27 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770796', 'tblTempVendorCDR_20' ) end [2025-03-27 01:27:18] Production.INFO: ProcessCDR(1,14770796,1,1,2) [2025-03-27 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770796', 'tblTempUsageDetail_20' ) start [2025-03-27 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770796', 'tblTempUsageDetail_20' ) end [2025-03-27 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:27:22] Production.INFO: ==6325== Releasing lock... [2025-03-27 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:27:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:28:04 [end_date_ymd] => 2025-03-27 01:28:04 [RateCDR] => 1 ) [2025-03-27 01:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:28:04' and `end` < '2025-03-27 01:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:28:17] Production.INFO: count ==627 [2025-03-27 01:28:17] Production.ERROR: pbx CDR StartTime 2025-03-26 22:28:04 - End Time 2025-03-27 01:28:04 [2025-03-27 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770801', 'tblTempUsageDetail_20' ) start [2025-03-27 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770801', 'tblTempUsageDetail_20' ) end [2025-03-27 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770801', 'tblTempVendorCDR_20' ) start [2025-03-27 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770801', 'tblTempVendorCDR_20' ) end [2025-03-27 01:28:17] Production.INFO: ProcessCDR(1,14770801,1,1,2) [2025-03-27 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770801', 'tblTempUsageDetail_20' ) start [2025-03-27 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770801', 'tblTempUsageDetail_20' ) end [2025-03-27 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:28:21] Production.INFO: ==6448== Releasing lock... [2025-03-27 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:28:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:29:05 [end_date_ymd] => 2025-03-27 01:29:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:29:05' and `end` < '2025-03-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-03-27 01:29:18] Production.INFO: count ==627 [2025-03-27 01:29:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:29:05 - End Time 2025-03-27 01:29:05 [2025-03-27 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770806', 'tblTempUsageDetail_20' ) start [2025-03-27 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770806', 'tblTempUsageDetail_20' ) end [2025-03-27 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770806', 'tblTempVendorCDR_20' ) start [2025-03-27 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770806', 'tblTempVendorCDR_20' ) end [2025-03-27 01:29:18] Production.INFO: ProcessCDR(1,14770806,1,1,2) [2025-03-27 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770806', 'tblTempUsageDetail_20' ) start [2025-03-27 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770806', 'tblTempUsageDetail_20' ) end [2025-03-27 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:29:21] Production.INFO: ==6526== Releasing lock... [2025-03-27 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:29:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:30:06 [end_date_ymd] => 2025-03-27 01:30:06 [RateCDR] => 1 ) [2025-03-27 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:30:06' and `end` < '2025-03-27 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:30:18] Production.INFO: count ==633 [2025-03-27 01:30:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:30:06 - End Time 2025-03-27 01:30:06 [2025-03-27 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770811', 'tblTempUsageDetail_20' ) start [2025-03-27 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770811', 'tblTempUsageDetail_20' ) end [2025-03-27 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770811', 'tblTempVendorCDR_20' ) start [2025-03-27 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770811', 'tblTempVendorCDR_20' ) end [2025-03-27 01:30:19] Production.INFO: ProcessCDR(1,14770811,1,1,2) [2025-03-27 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770811', 'tblTempUsageDetail_20' ) start [2025-03-27 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770811', 'tblTempUsageDetail_20' ) end [2025-03-27 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:30:22] Production.INFO: ==6610== Releasing lock... [2025-03-27 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:30:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:31:05 [end_date_ymd] => 2025-03-27 01:31:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:31:05' and `end` < '2025-03-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-03-27 01:31:18] Production.INFO: count ==633 [2025-03-27 01:31:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:31:05 - End Time 2025-03-27 01:31:05 [2025-03-27 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770817', 'tblTempUsageDetail_20' ) start [2025-03-27 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770817', 'tblTempUsageDetail_20' ) end [2025-03-27 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770817', 'tblTempVendorCDR_20' ) start [2025-03-27 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770817', 'tblTempVendorCDR_20' ) end [2025-03-27 01:31:18] Production.INFO: ProcessCDR(1,14770817,1,1,2) [2025-03-27 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770817', 'tblTempUsageDetail_20' ) start [2025-03-27 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770817', 'tblTempUsageDetail_20' ) end [2025-03-27 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:31:21] Production.INFO: ==6694== Releasing lock... [2025-03-27 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:31:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:32:05 [end_date_ymd] => 2025-03-27 01:32:05 [RateCDR] => 1 ) [2025-03-27 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:32:05' and `end` < '2025-03-27 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:32:18] Production.INFO: count ==633 [2025-03-27 01:32:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:32:05 - End Time 2025-03-27 01:32:05 [2025-03-27 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770822', 'tblTempUsageDetail_20' ) start [2025-03-27 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770822', 'tblTempUsageDetail_20' ) end [2025-03-27 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770822', 'tblTempVendorCDR_20' ) start [2025-03-27 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770822', 'tblTempVendorCDR_20' ) end [2025-03-27 01:32:18] Production.INFO: ProcessCDR(1,14770822,1,1,2) [2025-03-27 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770822', 'tblTempUsageDetail_20' ) start [2025-03-27 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770822', 'tblTempUsageDetail_20' ) end [2025-03-27 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:32:21] Production.INFO: ==6771== Releasing lock... [2025-03-27 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:32:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:33:06 [end_date_ymd] => 2025-03-27 01:33:06 [RateCDR] => 1 ) [2025-03-27 01:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:33:06' and `end` < '2025-03-27 01:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:33:18] Production.INFO: count ==615 [2025-03-27 01:33:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:33:06 - End Time 2025-03-27 01:33:06 [2025-03-27 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770827', 'tblTempUsageDetail_20' ) start [2025-03-27 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770827', 'tblTempUsageDetail_20' ) end [2025-03-27 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770827', 'tblTempVendorCDR_20' ) start [2025-03-27 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770827', 'tblTempVendorCDR_20' ) end [2025-03-27 01:33:18] Production.INFO: ProcessCDR(1,14770827,1,1,2) [2025-03-27 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770827', 'tblTempUsageDetail_20' ) start [2025-03-27 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770827', 'tblTempUsageDetail_20' ) end [2025-03-27 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:33:22] Production.INFO: ==6854== Releasing lock... [2025-03-27 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:33:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-27 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:34:05 [end_date_ymd] => 2025-03-27 01:34:05 [RateCDR] => 1 ) [2025-03-27 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:34:05' and `end` < '2025-03-27 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:34:18] Production.INFO: count ==612 [2025-03-27 01:34:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:34:05 - End Time 2025-03-27 01:34:05 [2025-03-27 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770832', 'tblTempUsageDetail_20' ) start [2025-03-27 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770832', 'tblTempUsageDetail_20' ) end [2025-03-27 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770832', 'tblTempVendorCDR_20' ) start [2025-03-27 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770832', 'tblTempVendorCDR_20' ) end [2025-03-27 01:34:18] Production.INFO: ProcessCDR(1,14770832,1,1,2) [2025-03-27 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770832', 'tblTempUsageDetail_20' ) start [2025-03-27 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770832', 'tblTempUsageDetail_20' ) end [2025-03-27 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:34:21] Production.INFO: ==6932== Releasing lock... [2025-03-27 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:34:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:35:05 [end_date_ymd] => 2025-03-27 01:35:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:35:05' and `end` < '2025-03-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-03-27 01:35:18] Production.INFO: count ==612 [2025-03-27 01:35:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:35:05 - End Time 2025-03-27 01:35:05 [2025-03-27 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770837', 'tblTempUsageDetail_20' ) start [2025-03-27 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770837', 'tblTempUsageDetail_20' ) end [2025-03-27 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770837', 'tblTempVendorCDR_20' ) start [2025-03-27 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770837', 'tblTempVendorCDR_20' ) end [2025-03-27 01:35:18] Production.INFO: ProcessCDR(1,14770837,1,1,2) [2025-03-27 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770837', 'tblTempUsageDetail_20' ) start [2025-03-27 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770837', 'tblTempUsageDetail_20' ) end [2025-03-27 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:35:21] Production.INFO: ==7011== Releasing lock... [2025-03-27 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:35:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:36:05 [end_date_ymd] => 2025-03-27 01:36:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:36:05' and `end` < '2025-03-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-03-27 01:36:17] Production.INFO: count ==609 [2025-03-27 01:36:17] Production.ERROR: pbx CDR StartTime 2025-03-26 22:36:05 - End Time 2025-03-27 01:36:05 [2025-03-27 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770842', 'tblTempUsageDetail_20' ) start [2025-03-27 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770842', 'tblTempUsageDetail_20' ) end [2025-03-27 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770842', 'tblTempVendorCDR_20' ) start [2025-03-27 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770842', 'tblTempVendorCDR_20' ) end [2025-03-27 01:36:17] Production.INFO: ProcessCDR(1,14770842,1,1,2) [2025-03-27 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770842', 'tblTempUsageDetail_20' ) start [2025-03-27 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770842', 'tblTempUsageDetail_20' ) end [2025-03-27 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:36:21] Production.INFO: ==7088== Releasing lock... [2025-03-27 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:36:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-27 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:37:06 [end_date_ymd] => 2025-03-27 01:37:06 [RateCDR] => 1 ) [2025-03-27 01:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:37:06' and `end` < '2025-03-27 01:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:37:18] Production.INFO: count ==608 [2025-03-27 01:37:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:37:06 - End Time 2025-03-27 01:37:06 [2025-03-27 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770847', 'tblTempUsageDetail_20' ) start [2025-03-27 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770847', 'tblTempUsageDetail_20' ) end [2025-03-27 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770847', 'tblTempVendorCDR_20' ) start [2025-03-27 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770847', 'tblTempVendorCDR_20' ) end [2025-03-27 01:37:18] Production.INFO: ProcessCDR(1,14770847,1,1,2) [2025-03-27 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770847', 'tblTempUsageDetail_20' ) start [2025-03-27 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770847', 'tblTempUsageDetail_20' ) end [2025-03-27 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:37:22] Production.INFO: ==7167== Releasing lock... [2025-03-27 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:37:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-27 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:38:05 [end_date_ymd] => 2025-03-27 01:38:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:38:05' and `end` < '2025-03-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-03-27 01:38:17] Production.INFO: count ==606 [2025-03-27 01:38:17] Production.ERROR: pbx CDR StartTime 2025-03-26 22:38:05 - End Time 2025-03-27 01:38:05 [2025-03-27 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770852', 'tblTempUsageDetail_20' ) start [2025-03-27 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770852', 'tblTempUsageDetail_20' ) end [2025-03-27 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770852', 'tblTempVendorCDR_20' ) start [2025-03-27 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770852', 'tblTempVendorCDR_20' ) end [2025-03-27 01:38:17] Production.INFO: ProcessCDR(1,14770852,1,1,2) [2025-03-27 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770852', 'tblTempUsageDetail_20' ) start [2025-03-27 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770852', 'tblTempUsageDetail_20' ) end [2025-03-27 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:38:21] Production.INFO: ==7247== Releasing lock... [2025-03-27 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:38:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:39:05 [end_date_ymd] => 2025-03-27 01:39:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:39:05' and `end` < '2025-03-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-03-27 01:39:18] Production.INFO: count ==602 [2025-03-27 01:39:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:39:05 - End Time 2025-03-27 01:39:05 [2025-03-27 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770857', 'tblTempUsageDetail_20' ) start [2025-03-27 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770857', 'tblTempUsageDetail_20' ) end [2025-03-27 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770857', 'tblTempVendorCDR_20' ) start [2025-03-27 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770857', 'tblTempVendorCDR_20' ) end [2025-03-27 01:39:18] Production.INFO: ProcessCDR(1,14770857,1,1,2) [2025-03-27 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770857', 'tblTempUsageDetail_20' ) start [2025-03-27 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770857', 'tblTempUsageDetail_20' ) end [2025-03-27 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:39:21] Production.INFO: ==7341== Releasing lock... [2025-03-27 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:39:21] Production.INFO: 33 MB #Memory Used# [2025-03-27 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:40:06 [end_date_ymd] => 2025-03-27 01:40:06 [RateCDR] => 1 ) [2025-03-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-03-26 22:40:06' and `end` < '2025-03-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-03-27 01:40:19] Production.INFO: count ==595 [2025-03-27 01:40:19] Production.ERROR: pbx CDR StartTime 2025-03-26 22:40:06 - End Time 2025-03-27 01:40:06 [2025-03-27 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770862', 'tblTempUsageDetail_20' ) start [2025-03-27 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770862', 'tblTempUsageDetail_20' ) end [2025-03-27 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770862', 'tblTempVendorCDR_20' ) start [2025-03-27 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770862', 'tblTempVendorCDR_20' ) end [2025-03-27 01:40:19] Production.INFO: ProcessCDR(1,14770862,1,1,2) [2025-03-27 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770862', 'tblTempUsageDetail_20' ) start [2025-03-27 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770862', 'tblTempUsageDetail_20' ) end [2025-03-27 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:40:22] Production.INFO: ==7423== Releasing lock... [2025-03-27 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:40:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:41:05 [end_date_ymd] => 2025-03-27 01:41:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:41:05' and `end` < '2025-03-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-03-27 01:41:18] Production.INFO: count ==604 [2025-03-27 01:41:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:41:05 - End Time 2025-03-27 01:41:05 [2025-03-27 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770868', 'tblTempUsageDetail_20' ) start [2025-03-27 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770868', 'tblTempUsageDetail_20' ) end [2025-03-27 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770868', 'tblTempVendorCDR_20' ) start [2025-03-27 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770868', 'tblTempVendorCDR_20' ) end [2025-03-27 01:41:18] Production.INFO: ProcessCDR(1,14770868,1,1,2) [2025-03-27 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770868', 'tblTempUsageDetail_20' ) start [2025-03-27 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770868', 'tblTempUsageDetail_20' ) end [2025-03-27 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:41:21] Production.INFO: ==7511== Releasing lock... [2025-03-27 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:41:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:42:05 [end_date_ymd] => 2025-03-27 01:42:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:42:05' and `end` < '2025-03-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-03-27 01:42:18] Production.INFO: count ==610 [2025-03-27 01:42:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:42:05 - End Time 2025-03-27 01:42:05 [2025-03-27 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770873', 'tblTempUsageDetail_20' ) start [2025-03-27 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770873', 'tblTempUsageDetail_20' ) end [2025-03-27 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770873', 'tblTempVendorCDR_20' ) start [2025-03-27 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770873', 'tblTempVendorCDR_20' ) end [2025-03-27 01:42:18] Production.INFO: ProcessCDR(1,14770873,1,1,2) [2025-03-27 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770873', 'tblTempUsageDetail_20' ) start [2025-03-27 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770873', 'tblTempUsageDetail_20' ) end [2025-03-27 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:42:21] Production.INFO: ==7601== Releasing lock... [2025-03-27 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:42:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-27 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:43:05 [end_date_ymd] => 2025-03-27 01:43:05 [RateCDR] => 1 ) [2025-03-27 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:43:05' and `end` < '2025-03-27 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:43:17] Production.INFO: count ==612 [2025-03-27 01:43:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:43:05 - End Time 2025-03-27 01:43:05 [2025-03-27 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770878', 'tblTempUsageDetail_20' ) start [2025-03-27 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770878', 'tblTempUsageDetail_20' ) end [2025-03-27 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770878', 'tblTempVendorCDR_20' ) start [2025-03-27 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770878', 'tblTempVendorCDR_20' ) end [2025-03-27 01:43:18] Production.INFO: ProcessCDR(1,14770878,1,1,2) [2025-03-27 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770878', 'tblTempUsageDetail_20' ) start [2025-03-27 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770878', 'tblTempUsageDetail_20' ) end [2025-03-27 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:43:21] Production.INFO: ==7686== Releasing lock... [2025-03-27 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:43:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:44:06 [end_date_ymd] => 2025-03-27 01:44:06 [RateCDR] => 1 ) [2025-03-27 01:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:44:06' and `end` < '2025-03-27 01:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:44:18] Production.INFO: count ==609 [2025-03-27 01:44:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:44:06 - End Time 2025-03-27 01:44:06 [2025-03-27 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770883', 'tblTempUsageDetail_20' ) start [2025-03-27 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770883', 'tblTempUsageDetail_20' ) end [2025-03-27 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770883', 'tblTempVendorCDR_20' ) start [2025-03-27 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770883', 'tblTempVendorCDR_20' ) end [2025-03-27 01:44:18] Production.INFO: ProcessCDR(1,14770883,1,1,2) [2025-03-27 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770883', 'tblTempUsageDetail_20' ) start [2025-03-27 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770883', 'tblTempUsageDetail_20' ) end [2025-03-27 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:44:22] Production.INFO: ==7819== Releasing lock... [2025-03-27 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:44:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:45:05 [end_date_ymd] => 2025-03-27 01:45:05 [RateCDR] => 1 ) [2025-03-27 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:45:05' and `end` < '2025-03-27 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:45:17] Production.INFO: count ==605 [2025-03-27 01:45:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:45:05 - End Time 2025-03-27 01:45:05 [2025-03-27 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770888', 'tblTempUsageDetail_20' ) start [2025-03-27 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770888', 'tblTempUsageDetail_20' ) end [2025-03-27 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770888', 'tblTempVendorCDR_20' ) start [2025-03-27 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770888', 'tblTempVendorCDR_20' ) end [2025-03-27 01:45:18] Production.INFO: ProcessCDR(1,14770888,1,1,2) [2025-03-27 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770888', 'tblTempUsageDetail_20' ) start [2025-03-27 01:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770888', 'tblTempUsageDetail_20' ) end [2025-03-27 01:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:45:23] Production.INFO: ==7916== Releasing lock... [2025-03-27 01:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:45:23] Production.INFO: 33 MB #Memory Used# [2025-03-27 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:46:06 [end_date_ymd] => 2025-03-27 01:46:06 [RateCDR] => 1 ) [2025-03-27 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:46:06' and `end` < '2025-03-27 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:46:18] Production.INFO: count ==588 [2025-03-27 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:46:06 - End Time 2025-03-27 01:46:06 [2025-03-27 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770893', 'tblTempUsageDetail_20' ) start [2025-03-27 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770893', 'tblTempUsageDetail_20' ) end [2025-03-27 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770893', 'tblTempVendorCDR_20' ) start [2025-03-27 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770893', 'tblTempVendorCDR_20' ) end [2025-03-27 01:46:18] Production.INFO: ProcessCDR(1,14770893,1,1,2) [2025-03-27 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770893', 'tblTempUsageDetail_20' ) start [2025-03-27 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770893', 'tblTempUsageDetail_20' ) end [2025-03-27 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:46:22] Production.INFO: ==7998== Releasing lock... [2025-03-27 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:46:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:47:05 [end_date_ymd] => 2025-03-27 01:47:05 [RateCDR] => 1 ) [2025-03-27 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:47:05' and `end` < '2025-03-27 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:47:18] Production.INFO: count ==584 [2025-03-27 01:47:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:47:05 - End Time 2025-03-27 01:47:05 [2025-03-27 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770898', 'tblTempUsageDetail_20' ) start [2025-03-27 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770898', 'tblTempUsageDetail_20' ) end [2025-03-27 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770898', 'tblTempVendorCDR_20' ) start [2025-03-27 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770898', 'tblTempVendorCDR_20' ) end [2025-03-27 01:47:18] Production.INFO: ProcessCDR(1,14770898,1,1,2) [2025-03-27 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770898', 'tblTempUsageDetail_20' ) start [2025-03-27 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770898', 'tblTempUsageDetail_20' ) end [2025-03-27 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:47:21] Production.INFO: ==8085== Releasing lock... [2025-03-27 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:47:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:48:05 [end_date_ymd] => 2025-03-27 01:48:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:48:05' and `end` < '2025-03-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-03-27 01:48:18] Production.INFO: count ==586 [2025-03-27 01:48:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:48:05 - End Time 2025-03-27 01:48:05 [2025-03-27 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770903', 'tblTempUsageDetail_20' ) start [2025-03-27 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770903', 'tblTempUsageDetail_20' ) end [2025-03-27 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770903', 'tblTempVendorCDR_20' ) start [2025-03-27 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770903', 'tblTempVendorCDR_20' ) end [2025-03-27 01:48:18] Production.INFO: ProcessCDR(1,14770903,1,1,2) [2025-03-27 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770903', 'tblTempUsageDetail_20' ) start [2025-03-27 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770903', 'tblTempUsageDetail_20' ) end [2025-03-27 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:48:22] Production.INFO: ==8180== Releasing lock... [2025-03-27 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:48:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:49:05 [end_date_ymd] => 2025-03-27 01:49:05 [RateCDR] => 1 ) [2025-03-27 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:49:05' and `end` < '2025-03-27 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:49:17] Production.INFO: count ==575 [2025-03-27 01:49:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:49:05 - End Time 2025-03-27 01:49:05 [2025-03-27 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770908', 'tblTempUsageDetail_20' ) start [2025-03-27 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770908', 'tblTempUsageDetail_20' ) end [2025-03-27 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770908', 'tblTempVendorCDR_20' ) start [2025-03-27 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770908', 'tblTempVendorCDR_20' ) end [2025-03-27 01:49:18] Production.INFO: ProcessCDR(1,14770908,1,1,2) [2025-03-27 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770908', 'tblTempUsageDetail_20' ) start [2025-03-27 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770908', 'tblTempUsageDetail_20' ) end [2025-03-27 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:49:21] Production.INFO: ==8276== Releasing lock... [2025-03-27 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:49:21] Production.INFO: 33 MB #Memory Used# [2025-03-27 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:50:06 [end_date_ymd] => 2025-03-27 01:50:06 [RateCDR] => 1 ) [2025-03-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-03-26 22:50:06' and `end` < '2025-03-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-03-27 01:50:18] Production.INFO: count ==573 [2025-03-27 01:50:19] Production.ERROR: pbx CDR StartTime 2025-03-26 22:50:06 - End Time 2025-03-27 01:50:06 [2025-03-27 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770914', 'tblTempUsageDetail_20' ) start [2025-03-27 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770914', 'tblTempUsageDetail_20' ) end [2025-03-27 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770914', 'tblTempVendorCDR_20' ) start [2025-03-27 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770914', 'tblTempVendorCDR_20' ) end [2025-03-27 01:50:19] Production.INFO: ProcessCDR(1,14770914,1,1,2) [2025-03-27 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770914', 'tblTempUsageDetail_20' ) start [2025-03-27 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770914', 'tblTempUsageDetail_20' ) end [2025-03-27 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:50:22] Production.INFO: ==8375== Releasing lock... [2025-03-27 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:50:22] Production.INFO: 33 MB #Memory Used# [2025-03-27 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:51:06 [end_date_ymd] => 2025-03-27 01:51:06 [RateCDR] => 1 ) [2025-03-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-03-26 22:51:06' and `end` < '2025-03-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-03-27 01:51:19] Production.INFO: count ==567 [2025-03-27 01:51:19] Production.ERROR: pbx CDR StartTime 2025-03-26 22:51:06 - End Time 2025-03-27 01:51:06 [2025-03-27 01:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770919', 'tblTempUsageDetail_20' ) start [2025-03-27 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770919', 'tblTempUsageDetail_20' ) end [2025-03-27 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770919', 'tblTempVendorCDR_20' ) start [2025-03-27 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770919', 'tblTempVendorCDR_20' ) end [2025-03-27 01:51:19] Production.INFO: ProcessCDR(1,14770919,1,1,2) [2025-03-27 01:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770919', 'tblTempUsageDetail_20' ) start [2025-03-27 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770919', 'tblTempUsageDetail_20' ) end [2025-03-27 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:51:22] Production.INFO: ==8477== Releasing lock... [2025-03-27 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:51:22] Production.INFO: 33 MB #Memory Used# [2025-03-27 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:52:05 [end_date_ymd] => 2025-03-27 01:52:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:52:05' and `end` < '2025-03-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-03-27 01:52:18] Production.INFO: count ==545 [2025-03-27 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:52:05 - End Time 2025-03-27 01:52:05 [2025-03-27 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770924', 'tblTempUsageDetail_20' ) start [2025-03-27 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770924', 'tblTempUsageDetail_20' ) end [2025-03-27 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770924', 'tblTempVendorCDR_20' ) start [2025-03-27 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770924', 'tblTempVendorCDR_20' ) end [2025-03-27 01:52:18] Production.INFO: ProcessCDR(1,14770924,1,1,2) [2025-03-27 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770924', 'tblTempUsageDetail_20' ) start [2025-03-27 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770924', 'tblTempUsageDetail_20' ) end [2025-03-27 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:52:22] Production.INFO: ==8575== Releasing lock... [2025-03-27 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:52:22] Production.INFO: 33 MB #Memory Used# [2025-03-27 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:53:05 [end_date_ymd] => 2025-03-27 01:53:05 [RateCDR] => 1 ) [2025-03-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-03-26 22:53:05' and `end` < '2025-03-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-03-27 01:53:17] Production.INFO: count ==543 [2025-03-27 01:53:17] Production.ERROR: pbx CDR StartTime 2025-03-26 22:53:05 - End Time 2025-03-27 01:53:05 [2025-03-27 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770929', 'tblTempUsageDetail_20' ) start [2025-03-27 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770929', 'tblTempUsageDetail_20' ) end [2025-03-27 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770929', 'tblTempVendorCDR_20' ) start [2025-03-27 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770929', 'tblTempVendorCDR_20' ) end [2025-03-27 01:53:17] Production.INFO: ProcessCDR(1,14770929,1,1,2) [2025-03-27 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770929', 'tblTempUsageDetail_20' ) start [2025-03-27 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770929', 'tblTempUsageDetail_20' ) end [2025-03-27 01:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:53:20] Production.INFO: ==8676== Releasing lock... [2025-03-27 01:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:53:20] Production.INFO: 33 MB #Memory Used# [2025-03-27 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:54:05 [end_date_ymd] => 2025-03-27 01:54:05 [RateCDR] => 1 ) [2025-03-27 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:54:05' and `end` < '2025-03-27 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:54:18] Production.INFO: count ==541 [2025-03-27 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:54:05 - End Time 2025-03-27 01:54:05 [2025-03-27 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770934', 'tblTempUsageDetail_20' ) start [2025-03-27 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770934', 'tblTempUsageDetail_20' ) end [2025-03-27 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770934', 'tblTempVendorCDR_20' ) start [2025-03-27 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770934', 'tblTempVendorCDR_20' ) end [2025-03-27 01:54:18] Production.INFO: ProcessCDR(1,14770934,1,1,2) [2025-03-27 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770934', 'tblTempUsageDetail_20' ) start [2025-03-27 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770934', 'tblTempUsageDetail_20' ) end [2025-03-27 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:54:21] Production.INFO: ==8777== Releasing lock... [2025-03-27 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:54:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:55:06 [end_date_ymd] => 2025-03-27 01:55:06 [RateCDR] => 1 ) [2025-03-27 01:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:55:06' and `end` < '2025-03-27 01:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:55:18] Production.INFO: count ==541 [2025-03-27 01:55:19] Production.ERROR: pbx CDR StartTime 2025-03-26 22:55:06 - End Time 2025-03-27 01:55:06 [2025-03-27 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770939', 'tblTempUsageDetail_20' ) start [2025-03-27 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770939', 'tblTempUsageDetail_20' ) end [2025-03-27 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770939', 'tblTempVendorCDR_20' ) start [2025-03-27 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770939', 'tblTempVendorCDR_20' ) end [2025-03-27 01:55:19] Production.INFO: ProcessCDR(1,14770939,1,1,2) [2025-03-27 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770939', 'tblTempUsageDetail_20' ) start [2025-03-27 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770939', 'tblTempUsageDetail_20' ) end [2025-03-27 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:55:22] Production.INFO: ==8872== Releasing lock... [2025-03-27 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:55:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:56:05 [end_date_ymd] => 2025-03-27 01:56:05 [RateCDR] => 1 ) [2025-03-27 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:56:05' and `end` < '2025-03-27 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:56:18] Production.INFO: count ==539 [2025-03-27 01:56:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:56:05 - End Time 2025-03-27 01:56:05 [2025-03-27 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770944', 'tblTempUsageDetail_20' ) start [2025-03-27 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770944', 'tblTempUsageDetail_20' ) end [2025-03-27 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770944', 'tblTempVendorCDR_20' ) start [2025-03-27 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770944', 'tblTempVendorCDR_20' ) end [2025-03-27 01:56:18] Production.INFO: ProcessCDR(1,14770944,1,1,2) [2025-03-27 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770944', 'tblTempUsageDetail_20' ) start [2025-03-27 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770944', 'tblTempUsageDetail_20' ) end [2025-03-27 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:56:21] Production.INFO: ==8968== Releasing lock... [2025-03-27 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:56:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:57:06 [end_date_ymd] => 2025-03-27 01:57:06 [RateCDR] => 1 ) [2025-03-27 01:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:57:06' and `end` < '2025-03-27 01:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:57:19] Production.INFO: count ==538 [2025-03-27 01:57:19] Production.ERROR: pbx CDR StartTime 2025-03-26 22:57:06 - End Time 2025-03-27 01:57:06 [2025-03-27 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770949', 'tblTempUsageDetail_20' ) start [2025-03-27 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770949', 'tblTempUsageDetail_20' ) end [2025-03-27 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770949', 'tblTempVendorCDR_20' ) start [2025-03-27 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770949', 'tblTempVendorCDR_20' ) end [2025-03-27 01:57:19] Production.INFO: ProcessCDR(1,14770949,1,1,2) [2025-03-27 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770949', 'tblTempUsageDetail_20' ) start [2025-03-27 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770949', 'tblTempUsageDetail_20' ) end [2025-03-27 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:57:22] Production.INFO: ==9066== Releasing lock... [2025-03-27 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:57:22] Production.INFO: 33 MB #Memory Used# [2025-03-27 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:58:05 [end_date_ymd] => 2025-03-27 01:58:05 [RateCDR] => 1 ) [2025-03-27 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:58:05' and `end` < '2025-03-27 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:58:18] Production.INFO: count ==539 [2025-03-27 01:58:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:58:05 - End Time 2025-03-27 01:58:05 [2025-03-27 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770954', 'tblTempUsageDetail_20' ) start [2025-03-27 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770954', 'tblTempUsageDetail_20' ) end [2025-03-27 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770954', 'tblTempVendorCDR_20' ) start [2025-03-27 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770954', 'tblTempVendorCDR_20' ) end [2025-03-27 01:58:18] Production.INFO: ProcessCDR(1,14770954,1,1,2) [2025-03-27 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770954', 'tblTempUsageDetail_20' ) start [2025-03-27 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770954', 'tblTempUsageDetail_20' ) end [2025-03-27 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:58:21] Production.INFO: ==9167== Releasing lock... [2025-03-27 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:58:21] Production.INFO: 33 MB #Memory Used# [2025-03-27 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 22:59:06 [end_date_ymd] => 2025-03-27 01:59:06 [RateCDR] => 1 ) [2025-03-27 01:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 22:59:06' and `end` < '2025-03-27 01:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 01:59:18] Production.INFO: count ==528 [2025-03-27 01:59:18] Production.ERROR: pbx CDR StartTime 2025-03-26 22:59:06 - End Time 2025-03-27 01:59:06 [2025-03-27 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770959', 'tblTempUsageDetail_20' ) start [2025-03-27 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770959', 'tblTempUsageDetail_20' ) end [2025-03-27 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770959', 'tblTempVendorCDR_20' ) start [2025-03-27 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770959', 'tblTempVendorCDR_20' ) end [2025-03-27 01:59:18] Production.INFO: ProcessCDR(1,14770959,1,1,2) [2025-03-27 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770959', 'tblTempUsageDetail_20' ) start [2025-03-27 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770959', 'tblTempUsageDetail_20' ) end [2025-03-27 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 01:59:22] Production.INFO: ==9298== Releasing lock... [2025-03-27 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 01:59:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:00:06 [end_date_ymd] => 2025-03-27 02:00:06 [RateCDR] => 1 ) [2025-03-27 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:00:06' and `end` < '2025-03-27 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:00:19] Production.INFO: count ==530 [2025-03-27 02:00:19] Production.ERROR: pbx CDR StartTime 2025-03-26 23:00:06 - End Time 2025-03-27 02:00:06 [2025-03-27 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770965', 'tblTempUsageDetail_20' ) start [2025-03-27 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770965', 'tblTempUsageDetail_20' ) end [2025-03-27 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770965', 'tblTempVendorCDR_20' ) start [2025-03-27 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770965', 'tblTempVendorCDR_20' ) end [2025-03-27 02:00:19] Production.INFO: ProcessCDR(1,14770965,1,1,2) [2025-03-27 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770965', 'tblTempUsageDetail_20' ) start [2025-03-27 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770965', 'tblTempUsageDetail_20' ) end [2025-03-27 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:00:22] Production.INFO: ==9395== Releasing lock... [2025-03-27 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:00:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:01:06 [end_date_ymd] => 2025-03-27 02:01:06 [RateCDR] => 1 ) [2025-03-27 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:01:06' and `end` < '2025-03-27 02:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:01:18] Production.INFO: count ==521 [2025-03-27 02:01:19] Production.ERROR: pbx CDR StartTime 2025-03-26 23:01:06 - End Time 2025-03-27 02:01:06 [2025-03-27 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770970', 'tblTempUsageDetail_20' ) start [2025-03-27 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770970', 'tblTempUsageDetail_20' ) end [2025-03-27 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770970', 'tblTempVendorCDR_20' ) start [2025-03-27 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770970', 'tblTempVendorCDR_20' ) end [2025-03-27 02:01:19] Production.INFO: ProcessCDR(1,14770970,1,1,2) [2025-03-27 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770970', 'tblTempUsageDetail_20' ) start [2025-03-27 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770970', 'tblTempUsageDetail_20' ) end [2025-03-27 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:01:22] Production.INFO: ==9530== Releasing lock... [2025-03-27 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:01:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-27 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:02:05 [end_date_ymd] => 2025-03-27 02:02:05 [RateCDR] => 1 ) [2025-03-27 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:02:05' and `end` < '2025-03-27 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:02:18] Production.INFO: count ==514 [2025-03-27 02:02:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:02:05 - End Time 2025-03-27 02:02:05 [2025-03-27 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770975', 'tblTempUsageDetail_20' ) start [2025-03-27 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770975', 'tblTempUsageDetail_20' ) end [2025-03-27 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770975', 'tblTempVendorCDR_20' ) start [2025-03-27 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770975', 'tblTempVendorCDR_20' ) end [2025-03-27 02:02:18] Production.INFO: ProcessCDR(1,14770975,1,1,2) [2025-03-27 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770975', 'tblTempUsageDetail_20' ) start [2025-03-27 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770975', 'tblTempUsageDetail_20' ) end [2025-03-27 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:02:21] Production.INFO: ==9709== Releasing lock... [2025-03-27 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:02:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:03:06 [end_date_ymd] => 2025-03-27 02:03:06 [RateCDR] => 1 ) [2025-03-27 02:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:03:06' and `end` < '2025-03-27 02:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:03:18] Production.INFO: count ==510 [2025-03-27 02:03:19] Production.ERROR: pbx CDR StartTime 2025-03-26 23:03:06 - End Time 2025-03-27 02:03:06 [2025-03-27 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770980', 'tblTempUsageDetail_20' ) start [2025-03-27 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770980', 'tblTempUsageDetail_20' ) end [2025-03-27 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770980', 'tblTempVendorCDR_20' ) start [2025-03-27 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770980', 'tblTempVendorCDR_20' ) end [2025-03-27 02:03:19] Production.INFO: ProcessCDR(1,14770980,1,1,2) [2025-03-27 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770980', 'tblTempUsageDetail_20' ) start [2025-03-27 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770980', 'tblTempUsageDetail_20' ) end [2025-03-27 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:03:22] Production.INFO: ==9827== Releasing lock... [2025-03-27 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:03:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:04:05 [end_date_ymd] => 2025-03-27 02:04:05 [RateCDR] => 1 ) [2025-03-27 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:04:05' and `end` < '2025-03-27 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:04:17] Production.INFO: count ==510 [2025-03-27 02:04:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:04:05 - End Time 2025-03-27 02:04:05 [2025-03-27 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770985', 'tblTempUsageDetail_20' ) start [2025-03-27 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770985', 'tblTempUsageDetail_20' ) end [2025-03-27 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770985', 'tblTempVendorCDR_20' ) start [2025-03-27 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770985', 'tblTempVendorCDR_20' ) end [2025-03-27 02:04:18] Production.INFO: ProcessCDR(1,14770985,1,1,2) [2025-03-27 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770985', 'tblTempUsageDetail_20' ) start [2025-03-27 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770985', 'tblTempUsageDetail_20' ) end [2025-03-27 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:04:21] Production.INFO: ==9932== Releasing lock... [2025-03-27 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:04:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:05:05 [end_date_ymd] => 2025-03-27 02:05:05 [RateCDR] => 1 ) [2025-03-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-03-26 23:05:05' and `end` < '2025-03-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-03-27 02:05:18] Production.INFO: count ==511 [2025-03-27 02:05:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:05:05 - End Time 2025-03-27 02:05:05 [2025-03-27 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770990', 'tblTempUsageDetail_20' ) start [2025-03-27 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770990', 'tblTempUsageDetail_20' ) end [2025-03-27 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770990', 'tblTempVendorCDR_20' ) start [2025-03-27 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770990', 'tblTempVendorCDR_20' ) end [2025-03-27 02:05:18] Production.INFO: ProcessCDR(1,14770990,1,1,2) [2025-03-27 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770990', 'tblTempUsageDetail_20' ) start [2025-03-27 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770990', 'tblTempUsageDetail_20' ) end [2025-03-27 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:05:21] Production.INFO: ==10030== Releasing lock... [2025-03-27 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:05:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:06:05 [end_date_ymd] => 2025-03-27 02:06:05 [RateCDR] => 1 ) [2025-03-27 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:06:05' and `end` < '2025-03-27 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:06:18] Production.INFO: count ==502 [2025-03-27 02:06:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:06:05 - End Time 2025-03-27 02:06:05 [2025-03-27 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770995', 'tblTempUsageDetail_20' ) start [2025-03-27 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14770995', 'tblTempUsageDetail_20' ) end [2025-03-27 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770995', 'tblTempVendorCDR_20' ) start [2025-03-27 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14770995', 'tblTempVendorCDR_20' ) end [2025-03-27 02:06:18] Production.INFO: ProcessCDR(1,14770995,1,1,2) [2025-03-27 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14770995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14770995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14770995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14770995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770995', 'tblTempUsageDetail_20' ) start [2025-03-27 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14770995', 'tblTempUsageDetail_20' ) end [2025-03-27 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:06:21] Production.INFO: ==10130== Releasing lock... [2025-03-27 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:06:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:07:05 [end_date_ymd] => 2025-03-27 02:07:05 [RateCDR] => 1 ) [2025-03-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-03-26 23:07:05' and `end` < '2025-03-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-03-27 02:07:18] Production.INFO: count ==501 [2025-03-27 02:07:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:07:05 - End Time 2025-03-27 02:07:05 [2025-03-27 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771000', 'tblTempUsageDetail_20' ) start [2025-03-27 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771000', 'tblTempUsageDetail_20' ) end [2025-03-27 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771000', 'tblTempVendorCDR_20' ) start [2025-03-27 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771000', 'tblTempVendorCDR_20' ) end [2025-03-27 02:07:18] Production.INFO: ProcessCDR(1,14771000,1,1,2) [2025-03-27 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771000', 'tblTempUsageDetail_20' ) start [2025-03-27 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771000', 'tblTempUsageDetail_20' ) end [2025-03-27 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:07:21] Production.INFO: ==10225== Releasing lock... [2025-03-27 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:07:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-27 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:08:05 [end_date_ymd] => 2025-03-27 02:08:05 [RateCDR] => 1 ) [2025-03-27 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:08:05' and `end` < '2025-03-27 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:08:17] Production.INFO: count ==498 [2025-03-27 02:08:17] Production.ERROR: pbx CDR StartTime 2025-03-26 23:08:05 - End Time 2025-03-27 02:08:05 [2025-03-27 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771005', 'tblTempUsageDetail_20' ) start [2025-03-27 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771005', 'tblTempUsageDetail_20' ) end [2025-03-27 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771005', 'tblTempVendorCDR_20' ) start [2025-03-27 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771005', 'tblTempVendorCDR_20' ) end [2025-03-27 02:08:17] Production.INFO: ProcessCDR(1,14771005,1,1,2) [2025-03-27 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771005', 'tblTempUsageDetail_20' ) start [2025-03-27 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771005', 'tblTempUsageDetail_20' ) end [2025-03-27 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:08:21] Production.INFO: ==10324== Releasing lock... [2025-03-27 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:08:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:09:05 [end_date_ymd] => 2025-03-27 02:09:05 [RateCDR] => 1 ) [2025-03-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-03-26 23:09:05' and `end` < '2025-03-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-03-27 02:09:17] Production.INFO: count ==492 [2025-03-27 02:09:17] Production.ERROR: pbx CDR StartTime 2025-03-26 23:09:05 - End Time 2025-03-27 02:09:05 [2025-03-27 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771010', 'tblTempUsageDetail_20' ) start [2025-03-27 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771010', 'tblTempUsageDetail_20' ) end [2025-03-27 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771010', 'tblTempVendorCDR_20' ) start [2025-03-27 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771010', 'tblTempVendorCDR_20' ) end [2025-03-27 02:09:17] Production.INFO: ProcessCDR(1,14771010,1,1,2) [2025-03-27 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771010', 'tblTempUsageDetail_20' ) start [2025-03-27 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771010', 'tblTempUsageDetail_20' ) end [2025-03-27 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:09:21] Production.INFO: ==10420== Releasing lock... [2025-03-27 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:09:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:10:06 [end_date_ymd] => 2025-03-27 02:10:06 [RateCDR] => 1 ) [2025-03-27 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:10:06' and `end` < '2025-03-27 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:10:19] Production.INFO: count ==496 [2025-03-27 02:10:19] Production.ERROR: pbx CDR StartTime 2025-03-26 23:10:06 - End Time 2025-03-27 02:10:06 [2025-03-27 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771015', 'tblTempUsageDetail_20' ) start [2025-03-27 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771015', 'tblTempUsageDetail_20' ) end [2025-03-27 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771015', 'tblTempVendorCDR_20' ) start [2025-03-27 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771015', 'tblTempVendorCDR_20' ) end [2025-03-27 02:10:19] Production.INFO: ProcessCDR(1,14771015,1,1,2) [2025-03-27 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771015', 'tblTempUsageDetail_20' ) start [2025-03-27 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771015', 'tblTempUsageDetail_20' ) end [2025-03-27 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:10:22] Production.INFO: ==10518== Releasing lock... [2025-03-27 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:10:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:11:05 [end_date_ymd] => 2025-03-27 02:11:05 [RateCDR] => 1 ) [2025-03-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-03-26 23:11:05' and `end` < '2025-03-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-03-27 02:11:18] Production.INFO: count ==504 [2025-03-27 02:11:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:11:05 - End Time 2025-03-27 02:11:05 [2025-03-27 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771021', 'tblTempUsageDetail_20' ) start [2025-03-27 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771021', 'tblTempUsageDetail_20' ) end [2025-03-27 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771021', 'tblTempVendorCDR_20' ) start [2025-03-27 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771021', 'tblTempVendorCDR_20' ) end [2025-03-27 02:11:18] Production.INFO: ProcessCDR(1,14771021,1,1,2) [2025-03-27 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771021', 'tblTempUsageDetail_20' ) start [2025-03-27 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771021', 'tblTempUsageDetail_20' ) end [2025-03-27 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:11:21] Production.INFO: ==10617== Releasing lock... [2025-03-27 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:11:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:12:06 [end_date_ymd] => 2025-03-27 02:12:06 [RateCDR] => 1 ) [2025-03-27 02:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:12:06' and `end` < '2025-03-27 02:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:12:19] Production.INFO: count ==510 [2025-03-27 02:12:19] Production.ERROR: pbx CDR StartTime 2025-03-26 23:12:06 - End Time 2025-03-27 02:12:06 [2025-03-27 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771026', 'tblTempUsageDetail_20' ) start [2025-03-27 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771026', 'tblTempUsageDetail_20' ) end [2025-03-27 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771026', 'tblTempVendorCDR_20' ) start [2025-03-27 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771026', 'tblTempVendorCDR_20' ) end [2025-03-27 02:12:19] Production.INFO: ProcessCDR(1,14771026,1,1,2) [2025-03-27 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771026', 'tblTempUsageDetail_20' ) start [2025-03-27 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771026', 'tblTempUsageDetail_20' ) end [2025-03-27 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:12:23] Production.INFO: ==10714== Releasing lock... [2025-03-27 02:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:12:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 02:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:13:06 [end_date_ymd] => 2025-03-27 02:13:06 [RateCDR] => 1 ) [2025-03-27 02:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:13:06' and `end` < '2025-03-27 02:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:13:18] Production.INFO: count ==509 [2025-03-27 02:13:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:13:06 - End Time 2025-03-27 02:13:06 [2025-03-27 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771031', 'tblTempUsageDetail_20' ) start [2025-03-27 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771031', 'tblTempUsageDetail_20' ) end [2025-03-27 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771031', 'tblTempVendorCDR_20' ) start [2025-03-27 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771031', 'tblTempVendorCDR_20' ) end [2025-03-27 02:13:18] Production.INFO: ProcessCDR(1,14771031,1,1,2) [2025-03-27 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771031', 'tblTempUsageDetail_20' ) start [2025-03-27 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771031', 'tblTempUsageDetail_20' ) end [2025-03-27 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:13:22] Production.INFO: ==10805== Releasing lock... [2025-03-27 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:13:22] Production.INFO: 32 MB #Memory Used# [2025-03-27 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:14:06 [end_date_ymd] => 2025-03-27 02:14:06 [RateCDR] => 1 ) [2025-03-27 02:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:14:06' and `end` < '2025-03-27 02:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:14:18] Production.INFO: count ==510 [2025-03-27 02:14:19] Production.ERROR: pbx CDR StartTime 2025-03-26 23:14:06 - End Time 2025-03-27 02:14:06 [2025-03-27 02:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771036', 'tblTempUsageDetail_20' ) start [2025-03-27 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771036', 'tblTempUsageDetail_20' ) end [2025-03-27 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771036', 'tblTempVendorCDR_20' ) start [2025-03-27 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771036', 'tblTempVendorCDR_20' ) end [2025-03-27 02:14:19] Production.INFO: ProcessCDR(1,14771036,1,1,2) [2025-03-27 02:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771036', 'tblTempUsageDetail_20' ) start [2025-03-27 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771036', 'tblTempUsageDetail_20' ) end [2025-03-27 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:14:22] Production.INFO: ==10903== Releasing lock... [2025-03-27 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:14:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:15:05 [end_date_ymd] => 2025-03-27 02:15:05 [RateCDR] => 1 ) [2025-03-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-03-26 23:15:05' and `end` < '2025-03-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-03-27 02:15:17] Production.INFO: count ==509 [2025-03-27 02:15:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:15:05 - End Time 2025-03-27 02:15:05 [2025-03-27 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771041', 'tblTempUsageDetail_20' ) start [2025-03-27 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771041', 'tblTempUsageDetail_20' ) end [2025-03-27 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771041', 'tblTempVendorCDR_20' ) start [2025-03-27 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771041', 'tblTempVendorCDR_20' ) end [2025-03-27 02:15:18] Production.INFO: ProcessCDR(1,14771041,1,1,2) [2025-03-27 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771041', 'tblTempUsageDetail_20' ) start [2025-03-27 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771041', 'tblTempUsageDetail_20' ) end [2025-03-27 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:15:21] Production.INFO: ==11037== Releasing lock... [2025-03-27 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:15:21] Production.INFO: 32 MB #Memory Used# [2025-03-27 02:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:16:06 [end_date_ymd] => 2025-03-27 02:16:06 [RateCDR] => 1 ) [2025-03-27 02:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:16:06' and `end` < '2025-03-27 02:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:16:18] Production.INFO: count ==509 [2025-03-27 02:16:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:16:06 - End Time 2025-03-27 02:16:06 [2025-03-27 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771046', 'tblTempUsageDetail_20' ) start [2025-03-27 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771046', 'tblTempUsageDetail_20' ) end [2025-03-27 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771046', 'tblTempVendorCDR_20' ) start [2025-03-27 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771046', 'tblTempVendorCDR_20' ) end [2025-03-27 02:16:18] Production.INFO: ProcessCDR(1,14771046,1,1,2) [2025-03-27 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771046', 'tblTempUsageDetail_20' ) start [2025-03-27 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771046', 'tblTempUsageDetail_20' ) end [2025-03-27 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:16:22] Production.INFO: ==11124== Releasing lock... [2025-03-27 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:16:22] Production.INFO: 32 MB #Memory Used# [2025-03-27 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:17:05 [end_date_ymd] => 2025-03-27 02:17:05 [RateCDR] => 1 ) [2025-03-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-03-26 23:17:05' and `end` < '2025-03-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-03-27 02:17:18] Production.INFO: count ==508 [2025-03-27 02:17:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:17:05 - End Time 2025-03-27 02:17:05 [2025-03-27 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771051', 'tblTempUsageDetail_20' ) start [2025-03-27 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771051', 'tblTempUsageDetail_20' ) end [2025-03-27 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771051', 'tblTempVendorCDR_20' ) start [2025-03-27 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771051', 'tblTempVendorCDR_20' ) end [2025-03-27 02:17:18] Production.INFO: ProcessCDR(1,14771051,1,1,2) [2025-03-27 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771051', 'tblTempUsageDetail_20' ) start [2025-03-27 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771051', 'tblTempUsageDetail_20' ) end [2025-03-27 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:17:21] Production.INFO: ==11217== Releasing lock... [2025-03-27 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:17:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:18:05 [end_date_ymd] => 2025-03-27 02:18:05 [RateCDR] => 1 ) [2025-03-27 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:18:05' and `end` < '2025-03-27 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:18:18] Production.INFO: count ==503 [2025-03-27 02:18:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:18:05 - End Time 2025-03-27 02:18:05 [2025-03-27 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771056', 'tblTempUsageDetail_20' ) start [2025-03-27 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771056', 'tblTempUsageDetail_20' ) end [2025-03-27 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771056', 'tblTempVendorCDR_20' ) start [2025-03-27 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771056', 'tblTempVendorCDR_20' ) end [2025-03-27 02:18:18] Production.INFO: ProcessCDR(1,14771056,1,1,2) [2025-03-27 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771056', 'tblTempUsageDetail_20' ) start [2025-03-27 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771056', 'tblTempUsageDetail_20' ) end [2025-03-27 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:18:21] Production.INFO: ==11311== Releasing lock... [2025-03-27 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:18:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:19:05 [end_date_ymd] => 2025-03-27 02:19:05 [RateCDR] => 1 ) [2025-03-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-03-26 23:19:05' and `end` < '2025-03-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-03-27 02:19:17] Production.INFO: count ==502 [2025-03-27 02:19:17] Production.ERROR: pbx CDR StartTime 2025-03-26 23:19:05 - End Time 2025-03-27 02:19:05 [2025-03-27 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771061', 'tblTempUsageDetail_20' ) start [2025-03-27 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771061', 'tblTempUsageDetail_20' ) end [2025-03-27 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771061', 'tblTempVendorCDR_20' ) start [2025-03-27 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771061', 'tblTempVendorCDR_20' ) end [2025-03-27 02:19:18] Production.INFO: ProcessCDR(1,14771061,1,1,2) [2025-03-27 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771061', 'tblTempUsageDetail_20' ) start [2025-03-27 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771061', 'tblTempUsageDetail_20' ) end [2025-03-27 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:19:21] Production.INFO: ==11407== Releasing lock... [2025-03-27 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:19:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:20:07 [end_date_ymd] => 2025-03-27 02:20:07 [RateCDR] => 1 ) [2025-03-27 02:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:20:07' and `end` < '2025-03-27 02:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:20:19] Production.INFO: count ==510 [2025-03-27 02:20:19] Production.ERROR: pbx CDR StartTime 2025-03-26 23:20:07 - End Time 2025-03-27 02:20:07 [2025-03-27 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771067', 'tblTempUsageDetail_20' ) start [2025-03-27 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771067', 'tblTempUsageDetail_20' ) end [2025-03-27 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771067', 'tblTempVendorCDR_20' ) start [2025-03-27 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771067', 'tblTempVendorCDR_20' ) end [2025-03-27 02:20:19] Production.INFO: ProcessCDR(1,14771067,1,1,2) [2025-03-27 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771067', 'tblTempUsageDetail_20' ) start [2025-03-27 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771067', 'tblTempUsageDetail_20' ) end [2025-03-27 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:20:23] Production.INFO: ==11505== Releasing lock... [2025-03-27 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:20:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:21:05 [end_date_ymd] => 2025-03-27 02:21:05 [RateCDR] => 1 ) [2025-03-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-03-26 23:21:05' and `end` < '2025-03-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-03-27 02:21:18] Production.INFO: count ==510 [2025-03-27 02:21:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:21:05 - End Time 2025-03-27 02:21:05 [2025-03-27 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771072', 'tblTempUsageDetail_20' ) start [2025-03-27 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771072', 'tblTempUsageDetail_20' ) end [2025-03-27 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771072', 'tblTempVendorCDR_20' ) start [2025-03-27 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771072', 'tblTempVendorCDR_20' ) end [2025-03-27 02:21:18] Production.INFO: ProcessCDR(1,14771072,1,1,2) [2025-03-27 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771072', 'tblTempUsageDetail_20' ) start [2025-03-27 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771072', 'tblTempUsageDetail_20' ) end [2025-03-27 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:21:21] Production.INFO: ==11597== Releasing lock... [2025-03-27 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:21:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:22:06 [end_date_ymd] => 2025-03-27 02:22:06 [RateCDR] => 1 ) [2025-03-27 02:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:22:06' and `end` < '2025-03-27 02:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:22:18] Production.INFO: count ==497 [2025-03-27 02:22:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:22:06 - End Time 2025-03-27 02:22:06 [2025-03-27 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771077', 'tblTempUsageDetail_20' ) start [2025-03-27 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771077', 'tblTempUsageDetail_20' ) end [2025-03-27 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771077', 'tblTempVendorCDR_20' ) start [2025-03-27 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771077', 'tblTempVendorCDR_20' ) end [2025-03-27 02:22:18] Production.INFO: ProcessCDR(1,14771077,1,1,2) [2025-03-27 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771077', 'tblTempUsageDetail_20' ) start [2025-03-27 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771077', 'tblTempUsageDetail_20' ) end [2025-03-27 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:22:21] Production.INFO: ==11688== Releasing lock... [2025-03-27 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:22:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:23:05 [end_date_ymd] => 2025-03-27 02:23:05 [RateCDR] => 1 ) [2025-03-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-03-26 23:23:05' and `end` < '2025-03-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-03-27 02:23:17] Production.INFO: count ==495 [2025-03-27 02:23:17] Production.ERROR: pbx CDR StartTime 2025-03-26 23:23:05 - End Time 2025-03-27 02:23:05 [2025-03-27 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771082', 'tblTempUsageDetail_20' ) start [2025-03-27 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771082', 'tblTempUsageDetail_20' ) end [2025-03-27 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771082', 'tblTempVendorCDR_20' ) start [2025-03-27 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771082', 'tblTempVendorCDR_20' ) end [2025-03-27 02:23:17] Production.INFO: ProcessCDR(1,14771082,1,1,2) [2025-03-27 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771082', 'tblTempUsageDetail_20' ) start [2025-03-27 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771082', 'tblTempUsageDetail_20' ) end [2025-03-27 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:23:21] Production.INFO: ==11787== Releasing lock... [2025-03-27 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:23:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:24:06 [end_date_ymd] => 2025-03-27 02:24:06 [RateCDR] => 1 ) [2025-03-27 02:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:24:06' and `end` < '2025-03-27 02:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:24:18] Production.INFO: count ==506 [2025-03-27 02:24:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:24:06 - End Time 2025-03-27 02:24:06 [2025-03-27 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771087', 'tblTempUsageDetail_20' ) start [2025-03-27 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771087', 'tblTempUsageDetail_20' ) end [2025-03-27 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771087', 'tblTempVendorCDR_20' ) start [2025-03-27 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771087', 'tblTempVendorCDR_20' ) end [2025-03-27 02:24:18] Production.INFO: ProcessCDR(1,14771087,1,1,2) [2025-03-27 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771087', 'tblTempUsageDetail_20' ) start [2025-03-27 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771087', 'tblTempUsageDetail_20' ) end [2025-03-27 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:24:22] Production.INFO: ==11884== Releasing lock... [2025-03-27 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:24:22] Production.INFO: 33 MB #Memory Used# [2025-03-27 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:25:05 [end_date_ymd] => 2025-03-27 02:25:05 [RateCDR] => 1 ) [2025-03-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-03-26 23:25:05' and `end` < '2025-03-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-03-27 02:25:17] Production.INFO: count ==509 [2025-03-27 02:25:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:25:05 - End Time 2025-03-27 02:25:05 [2025-03-27 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771092', 'tblTempUsageDetail_20' ) start [2025-03-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771092', 'tblTempUsageDetail_20' ) end [2025-03-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771092', 'tblTempVendorCDR_20' ) start [2025-03-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771092', 'tblTempVendorCDR_20' ) end [2025-03-27 02:25:18] Production.INFO: ProcessCDR(1,14771092,1,1,2) [2025-03-27 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771092', 'tblTempUsageDetail_20' ) start [2025-03-27 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771092', 'tblTempUsageDetail_20' ) end [2025-03-27 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:25:21] Production.INFO: ==11976== Releasing lock... [2025-03-27 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:25:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:26:06 [end_date_ymd] => 2025-03-27 02:26:06 [RateCDR] => 1 ) [2025-03-27 02:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:26:06' and `end` < '2025-03-27 02:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:26:18] Production.INFO: count ==508 [2025-03-27 02:26:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:26:06 - End Time 2025-03-27 02:26:06 [2025-03-27 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771097', 'tblTempUsageDetail_20' ) start [2025-03-27 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771097', 'tblTempUsageDetail_20' ) end [2025-03-27 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771097', 'tblTempVendorCDR_20' ) start [2025-03-27 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771097', 'tblTempVendorCDR_20' ) end [2025-03-27 02:26:18] Production.INFO: ProcessCDR(1,14771097,1,1,2) [2025-03-27 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771097', 'tblTempUsageDetail_20' ) start [2025-03-27 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771097', 'tblTempUsageDetail_20' ) end [2025-03-27 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:26:21] Production.INFO: ==12064== Releasing lock... [2025-03-27 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:26:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 02:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:27:04 [end_date_ymd] => 2025-03-27 02:27:04 [RateCDR] => 1 ) [2025-03-27 02: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-03-26 23:27:04' and `end` < '2025-03-27 02: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-03-27 02:27:17] Production.INFO: count ==498 [2025-03-27 02:27:17] Production.ERROR: pbx CDR StartTime 2025-03-26 23:27:04 - End Time 2025-03-27 02:27:04 [2025-03-27 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771102', 'tblTempUsageDetail_20' ) start [2025-03-27 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771102', 'tblTempUsageDetail_20' ) end [2025-03-27 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771102', 'tblTempVendorCDR_20' ) start [2025-03-27 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771102', 'tblTempVendorCDR_20' ) end [2025-03-27 02:27:17] Production.INFO: ProcessCDR(1,14771102,1,1,2) [2025-03-27 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771102', 'tblTempUsageDetail_20' ) start [2025-03-27 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771102', 'tblTempUsageDetail_20' ) end [2025-03-27 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:27:21] Production.INFO: ==12155== Releasing lock... [2025-03-27 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:27:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:28:06 [end_date_ymd] => 2025-03-27 02:28:06 [RateCDR] => 1 ) [2025-03-27 02:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:28:06' and `end` < '2025-03-27 02:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:28:19] Production.INFO: count ==493 [2025-03-27 02:28:19] Production.ERROR: pbx CDR StartTime 2025-03-26 23:28:06 - End Time 2025-03-27 02:28:06 [2025-03-27 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771107', 'tblTempUsageDetail_20' ) start [2025-03-27 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771107', 'tblTempUsageDetail_20' ) end [2025-03-27 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771107', 'tblTempVendorCDR_20' ) start [2025-03-27 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771107', 'tblTempVendorCDR_20' ) end [2025-03-27 02:28:19] Production.INFO: ProcessCDR(1,14771107,1,1,2) [2025-03-27 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771107', 'tblTempUsageDetail_20' ) start [2025-03-27 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771107', 'tblTempUsageDetail_20' ) end [2025-03-27 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:28:22] Production.INFO: ==12247== Releasing lock... [2025-03-27 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:28:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:29:04 [end_date_ymd] => 2025-03-27 02:29:04 [RateCDR] => 1 ) [2025-03-27 02: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-03-26 23:29:04' and `end` < '2025-03-27 02: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-03-27 02:29:17] Production.INFO: count ==491 [2025-03-27 02:29:17] Production.ERROR: pbx CDR StartTime 2025-03-26 23:29:04 - End Time 2025-03-27 02:29:04 [2025-03-27 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771112', 'tblTempUsageDetail_20' ) start [2025-03-27 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771112', 'tblTempUsageDetail_20' ) end [2025-03-27 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771112', 'tblTempVendorCDR_20' ) start [2025-03-27 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771112', 'tblTempVendorCDR_20' ) end [2025-03-27 02:29:17] Production.INFO: ProcessCDR(1,14771112,1,1,2) [2025-03-27 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771112', 'tblTempUsageDetail_20' ) start [2025-03-27 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771112', 'tblTempUsageDetail_20' ) end [2025-03-27 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:29:21] Production.INFO: ==12333== Releasing lock... [2025-03-27 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:29:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:30:06 [end_date_ymd] => 2025-03-27 02:30:06 [RateCDR] => 1 ) [2025-03-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-03-26 23:30:06' and `end` < '2025-03-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-03-27 02:30:19] Production.INFO: count ==497 [2025-03-27 02:30:19] Production.ERROR: pbx CDR StartTime 2025-03-26 23:30:06 - End Time 2025-03-27 02:30:06 [2025-03-27 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771118', 'tblTempUsageDetail_20' ) start [2025-03-27 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771118', 'tblTempUsageDetail_20' ) end [2025-03-27 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771118', 'tblTempVendorCDR_20' ) start [2025-03-27 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771118', 'tblTempVendorCDR_20' ) end [2025-03-27 02:30:19] Production.INFO: ProcessCDR(1,14771118,1,1,2) [2025-03-27 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771118', 'tblTempUsageDetail_20' ) start [2025-03-27 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771118', 'tblTempUsageDetail_20' ) end [2025-03-27 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:30:22] Production.INFO: ==12467== Releasing lock... [2025-03-27 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:30:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:31:05 [end_date_ymd] => 2025-03-27 02:31:05 [RateCDR] => 1 ) [2025-03-27 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:31:05' and `end` < '2025-03-27 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:31:17] Production.INFO: count ==494 [2025-03-27 02:31:17] Production.ERROR: pbx CDR StartTime 2025-03-26 23:31:05 - End Time 2025-03-27 02:31:05 [2025-03-27 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771123', 'tblTempUsageDetail_20' ) start [2025-03-27 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771123', 'tblTempUsageDetail_20' ) end [2025-03-27 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771123', 'tblTempVendorCDR_20' ) start [2025-03-27 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771123', 'tblTempVendorCDR_20' ) end [2025-03-27 02:31:17] Production.INFO: ProcessCDR(1,14771123,1,1,2) [2025-03-27 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771123', 'tblTempUsageDetail_20' ) start [2025-03-27 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771123', 'tblTempUsageDetail_20' ) end [2025-03-27 02:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:31:20] Production.INFO: ==12557== Releasing lock... [2025-03-27 02:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:31:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 02:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:32:06 [end_date_ymd] => 2025-03-27 02:32:06 [RateCDR] => 1 ) [2025-03-27 02:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:32:06' and `end` < '2025-03-27 02:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:32:18] Production.INFO: count ==493 [2025-03-27 02:32:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:32:06 - End Time 2025-03-27 02:32:06 [2025-03-27 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771128', 'tblTempUsageDetail_20' ) start [2025-03-27 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771128', 'tblTempUsageDetail_20' ) end [2025-03-27 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771128', 'tblTempVendorCDR_20' ) start [2025-03-27 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771128', 'tblTempVendorCDR_20' ) end [2025-03-27 02:32:18] Production.INFO: ProcessCDR(1,14771128,1,1,2) [2025-03-27 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771128', 'tblTempUsageDetail_20' ) start [2025-03-27 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771128', 'tblTempUsageDetail_20' ) end [2025-03-27 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:32:22] Production.INFO: ==12650== Releasing lock... [2025-03-27 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:32:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:33:05 [end_date_ymd] => 2025-03-27 02:33:05 [RateCDR] => 1 ) [2025-03-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-03-26 23:33:05' and `end` < '2025-03-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-03-27 02:33:17] Production.INFO: count ==490 [2025-03-27 02:33:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:33:05 - End Time 2025-03-27 02:33:05 [2025-03-27 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771133', 'tblTempUsageDetail_20' ) start [2025-03-27 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771133', 'tblTempUsageDetail_20' ) end [2025-03-27 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771133', 'tblTempVendorCDR_20' ) start [2025-03-27 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771133', 'tblTempVendorCDR_20' ) end [2025-03-27 02:33:18] Production.INFO: ProcessCDR(1,14771133,1,1,2) [2025-03-27 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771133', 'tblTempUsageDetail_20' ) start [2025-03-27 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771133', 'tblTempUsageDetail_20' ) end [2025-03-27 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:33:21] Production.INFO: ==12746== Releasing lock... [2025-03-27 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:33:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:34:05 [end_date_ymd] => 2025-03-27 02:34:05 [RateCDR] => 1 ) [2025-03-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-03-26 23:34:05' and `end` < '2025-03-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-03-27 02:34:18] Production.INFO: count ==490 [2025-03-27 02:34:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:34:05 - End Time 2025-03-27 02:34:05 [2025-03-27 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771138', 'tblTempUsageDetail_20' ) start [2025-03-27 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771138', 'tblTempUsageDetail_20' ) end [2025-03-27 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771138', 'tblTempVendorCDR_20' ) start [2025-03-27 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771138', 'tblTempVendorCDR_20' ) end [2025-03-27 02:34:18] Production.INFO: ProcessCDR(1,14771138,1,1,2) [2025-03-27 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771138', 'tblTempUsageDetail_20' ) start [2025-03-27 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771138', 'tblTempUsageDetail_20' ) end [2025-03-27 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:34:22] Production.INFO: ==12834== Releasing lock... [2025-03-27 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:34:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:35:05 [end_date_ymd] => 2025-03-27 02:35:05 [RateCDR] => 1 ) [2025-03-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-03-26 23:35:05' and `end` < '2025-03-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-03-27 02:35:18] Production.INFO: count ==490 [2025-03-27 02:35:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:35:05 - End Time 2025-03-27 02:35:05 [2025-03-27 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771143', 'tblTempUsageDetail_20' ) start [2025-03-27 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771143', 'tblTempUsageDetail_20' ) end [2025-03-27 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771143', 'tblTempVendorCDR_20' ) start [2025-03-27 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771143', 'tblTempVendorCDR_20' ) end [2025-03-27 02:35:18] Production.INFO: ProcessCDR(1,14771143,1,1,2) [2025-03-27 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771143', 'tblTempUsageDetail_20' ) start [2025-03-27 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771143', 'tblTempUsageDetail_20' ) end [2025-03-27 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:35:22] Production.INFO: ==12920== Releasing lock... [2025-03-27 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:35:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:36:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:36:06 [end_date_ymd] => 2025-03-27 02:36:06 [RateCDR] => 1 ) [2025-03-27 02:36:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:36:06' and `end` < '2025-03-27 02:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:36:19] Production.INFO: count ==490 [2025-03-27 02:36:19] Production.ERROR: pbx CDR StartTime 2025-03-26 23:36:06 - End Time 2025-03-27 02:36:06 [2025-03-27 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771148', 'tblTempUsageDetail_20' ) start [2025-03-27 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771148', 'tblTempUsageDetail_20' ) end [2025-03-27 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771148', 'tblTempVendorCDR_20' ) start [2025-03-27 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771148', 'tblTempVendorCDR_20' ) end [2025-03-27 02:36:19] Production.INFO: ProcessCDR(1,14771148,1,1,2) [2025-03-27 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771148', 'tblTempUsageDetail_20' ) start [2025-03-27 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771148', 'tblTempUsageDetail_20' ) end [2025-03-27 02:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:36:23] Production.INFO: ==13009== Releasing lock... [2025-03-27 02:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:36:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:37:06 [end_date_ymd] => 2025-03-27 02:37:06 [RateCDR] => 1 ) [2025-03-27 02:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:37:06' and `end` < '2025-03-27 02:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:37:18] Production.INFO: count ==490 [2025-03-27 02:37:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:37:06 - End Time 2025-03-27 02:37:06 [2025-03-27 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771153', 'tblTempUsageDetail_20' ) start [2025-03-27 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771153', 'tblTempUsageDetail_20' ) end [2025-03-27 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771153', 'tblTempVendorCDR_20' ) start [2025-03-27 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771153', 'tblTempVendorCDR_20' ) end [2025-03-27 02:37:18] Production.INFO: ProcessCDR(1,14771153,1,1,2) [2025-03-27 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771153', 'tblTempUsageDetail_20' ) start [2025-03-27 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771153', 'tblTempUsageDetail_20' ) end [2025-03-27 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:37:22] Production.INFO: ==13094== Releasing lock... [2025-03-27 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:37:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:38:06 [end_date_ymd] => 2025-03-27 02:38:06 [RateCDR] => 1 ) [2025-03-27 02:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:38:06' and `end` < '2025-03-27 02:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:38:19] Production.INFO: count ==490 [2025-03-27 02:38:19] Production.ERROR: pbx CDR StartTime 2025-03-26 23:38:06 - End Time 2025-03-27 02:38:06 [2025-03-27 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771158', 'tblTempUsageDetail_20' ) start [2025-03-27 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771158', 'tblTempUsageDetail_20' ) end [2025-03-27 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771158', 'tblTempVendorCDR_20' ) start [2025-03-27 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771158', 'tblTempVendorCDR_20' ) end [2025-03-27 02:38:19] Production.INFO: ProcessCDR(1,14771158,1,1,2) [2025-03-27 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771158', 'tblTempUsageDetail_20' ) start [2025-03-27 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771158', 'tblTempUsageDetail_20' ) end [2025-03-27 02:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:38:23] Production.INFO: ==13183== Releasing lock... [2025-03-27 02:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:38:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:39:06 [end_date_ymd] => 2025-03-27 02:39:06 [RateCDR] => 1 ) [2025-03-27 02:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:39:06' and `end` < '2025-03-27 02:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:39:18] Production.INFO: count ==489 [2025-03-27 02:39:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:39:06 - End Time 2025-03-27 02:39:06 [2025-03-27 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771163', 'tblTempUsageDetail_20' ) start [2025-03-27 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771163', 'tblTempUsageDetail_20' ) end [2025-03-27 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771163', 'tblTempVendorCDR_20' ) start [2025-03-27 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771163', 'tblTempVendorCDR_20' ) end [2025-03-27 02:39:18] Production.INFO: ProcessCDR(1,14771163,1,1,2) [2025-03-27 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771163', 'tblTempUsageDetail_20' ) start [2025-03-27 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771163', 'tblTempUsageDetail_20' ) end [2025-03-27 02:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:39:23] Production.INFO: ==13265== Releasing lock... [2025-03-27 02:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:39:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:40:07 [end_date_ymd] => 2025-03-27 02:40:07 [RateCDR] => 1 ) [2025-03-27 02:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:40:07' and `end` < '2025-03-27 02:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:40:19] Production.INFO: count ==491 [2025-03-27 02:40:19] Production.ERROR: pbx CDR StartTime 2025-03-26 23:40:07 - End Time 2025-03-27 02:40:07 [2025-03-27 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771168', 'tblTempUsageDetail_20' ) start [2025-03-27 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771168', 'tblTempUsageDetail_20' ) end [2025-03-27 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771168', 'tblTempVendorCDR_20' ) start [2025-03-27 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771168', 'tblTempVendorCDR_20' ) end [2025-03-27 02:40:19] Production.INFO: ProcessCDR(1,14771168,1,1,2) [2025-03-27 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771168', 'tblTempUsageDetail_20' ) start [2025-03-27 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771168', 'tblTempUsageDetail_20' ) end [2025-03-27 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:40:23] Production.INFO: ==13356== Releasing lock... [2025-03-27 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:40:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:41:05 [end_date_ymd] => 2025-03-27 02:41:05 [RateCDR] => 1 ) [2025-03-27 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:41:05' and `end` < '2025-03-27 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:41:18] Production.INFO: count ==491 [2025-03-27 02:41:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:41:05 - End Time 2025-03-27 02:41:05 [2025-03-27 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771174', 'tblTempUsageDetail_20' ) start [2025-03-27 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771174', 'tblTempUsageDetail_20' ) end [2025-03-27 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771174', 'tblTempVendorCDR_20' ) start [2025-03-27 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771174', 'tblTempVendorCDR_20' ) end [2025-03-27 02:41:18] Production.INFO: ProcessCDR(1,14771174,1,1,2) [2025-03-27 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771174', 'tblTempUsageDetail_20' ) start [2025-03-27 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771174', 'tblTempUsageDetail_20' ) end [2025-03-27 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:41:22] Production.INFO: ==13444== Releasing lock... [2025-03-27 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:41:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:42:06 [end_date_ymd] => 2025-03-27 02:42:06 [RateCDR] => 1 ) [2025-03-27 02:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:42:06' and `end` < '2025-03-27 02:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:42:19] Production.INFO: count ==484 [2025-03-27 02:42:19] Production.ERROR: pbx CDR StartTime 2025-03-26 23:42:06 - End Time 2025-03-27 02:42:06 [2025-03-27 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771179', 'tblTempUsageDetail_20' ) start [2025-03-27 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771179', 'tblTempUsageDetail_20' ) end [2025-03-27 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771179', 'tblTempVendorCDR_20' ) start [2025-03-27 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771179', 'tblTempVendorCDR_20' ) end [2025-03-27 02:42:19] Production.INFO: ProcessCDR(1,14771179,1,1,2) [2025-03-27 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771179', 'tblTempUsageDetail_20' ) start [2025-03-27 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771179', 'tblTempUsageDetail_20' ) end [2025-03-27 02:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:42:23] Production.INFO: ==13530== Releasing lock... [2025-03-27 02:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:42:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:43:06 [end_date_ymd] => 2025-03-27 02:43:06 [RateCDR] => 1 ) [2025-03-27 02:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:43:06' and `end` < '2025-03-27 02:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:43:18] Production.INFO: count ==481 [2025-03-27 02:43:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:43:06 - End Time 2025-03-27 02:43:06 [2025-03-27 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771184', 'tblTempUsageDetail_20' ) start [2025-03-27 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771184', 'tblTempUsageDetail_20' ) end [2025-03-27 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771184', 'tblTempVendorCDR_20' ) start [2025-03-27 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771184', 'tblTempVendorCDR_20' ) end [2025-03-27 02:43:18] Production.INFO: ProcessCDR(1,14771184,1,1,2) [2025-03-27 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771184', 'tblTempUsageDetail_20' ) start [2025-03-27 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771184', 'tblTempUsageDetail_20' ) end [2025-03-27 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:43:22] Production.INFO: ==13618== Releasing lock... [2025-03-27 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:43:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:44:06 [end_date_ymd] => 2025-03-27 02:44:06 [RateCDR] => 1 ) [2025-03-27 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:44:06' and `end` < '2025-03-27 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:44:18] Production.INFO: count ==478 [2025-03-27 02:44:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:44:06 - End Time 2025-03-27 02:44:06 [2025-03-27 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771189', 'tblTempUsageDetail_20' ) start [2025-03-27 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771189', 'tblTempUsageDetail_20' ) end [2025-03-27 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771189', 'tblTempVendorCDR_20' ) start [2025-03-27 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771189', 'tblTempVendorCDR_20' ) end [2025-03-27 02:44:18] Production.INFO: ProcessCDR(1,14771189,1,1,2) [2025-03-27 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771189', 'tblTempUsageDetail_20' ) start [2025-03-27 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771189', 'tblTempUsageDetail_20' ) end [2025-03-27 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:44:22] Production.INFO: ==13705== Releasing lock... [2025-03-27 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:44:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 02:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:45:06 [end_date_ymd] => 2025-03-27 02:45:06 [RateCDR] => 1 ) [2025-03-27 02:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:45:06' and `end` < '2025-03-27 02:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:45:18] Production.INFO: count ==461 [2025-03-27 02:45:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:45:06 - End Time 2025-03-27 02:45:06 [2025-03-27 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771194', 'tblTempUsageDetail_20' ) start [2025-03-27 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771194', 'tblTempUsageDetail_20' ) end [2025-03-27 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771194', 'tblTempVendorCDR_20' ) start [2025-03-27 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771194', 'tblTempVendorCDR_20' ) end [2025-03-27 02:45:18] Production.INFO: ProcessCDR(1,14771194,1,1,2) [2025-03-27 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771194', 'tblTempUsageDetail_20' ) start [2025-03-27 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771194', 'tblTempUsageDetail_20' ) end [2025-03-27 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:45:22] Production.INFO: ==13791== Releasing lock... [2025-03-27 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:45:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:46:06 [end_date_ymd] => 2025-03-27 02:46:06 [RateCDR] => 1 ) [2025-03-27 02:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:46:06' and `end` < '2025-03-27 02:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:46:19] Production.INFO: count ==456 [2025-03-27 02:46:19] Production.ERROR: pbx CDR StartTime 2025-03-26 23:46:06 - End Time 2025-03-27 02:46:06 [2025-03-27 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771199', 'tblTempUsageDetail_20' ) start [2025-03-27 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771199', 'tblTempUsageDetail_20' ) end [2025-03-27 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771199', 'tblTempVendorCDR_20' ) start [2025-03-27 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771199', 'tblTempVendorCDR_20' ) end [2025-03-27 02:46:19] Production.INFO: ProcessCDR(1,14771199,1,1,2) [2025-03-27 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771199', 'tblTempUsageDetail_20' ) start [2025-03-27 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771199', 'tblTempUsageDetail_20' ) end [2025-03-27 02:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:46:23] Production.INFO: ==13914== Releasing lock... [2025-03-27 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:46:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:47:06 [end_date_ymd] => 2025-03-27 02:47:06 [RateCDR] => 1 ) [2025-03-27 02:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:47:06' and `end` < '2025-03-27 02:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:47:18] Production.INFO: count ==452 [2025-03-27 02:47:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:47:06 - End Time 2025-03-27 02:47:06 [2025-03-27 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771204', 'tblTempUsageDetail_20' ) start [2025-03-27 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771204', 'tblTempUsageDetail_20' ) end [2025-03-27 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771204', 'tblTempVendorCDR_20' ) start [2025-03-27 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771204', 'tblTempVendorCDR_20' ) end [2025-03-27 02:47:18] Production.INFO: ProcessCDR(1,14771204,1,1,2) [2025-03-27 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771204', 'tblTempUsageDetail_20' ) start [2025-03-27 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771204', 'tblTempUsageDetail_20' ) end [2025-03-27 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:47:22] Production.INFO: ==14002== Releasing lock... [2025-03-27 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:47:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:48:06 [end_date_ymd] => 2025-03-27 02:48:06 [RateCDR] => 1 ) [2025-03-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-03-26 23:48:06' and `end` < '2025-03-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-03-27 02:48:18] Production.INFO: count ==452 [2025-03-27 02:48:19] Production.ERROR: pbx CDR StartTime 2025-03-26 23:48:06 - End Time 2025-03-27 02:48:06 [2025-03-27 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771209', 'tblTempUsageDetail_20' ) start [2025-03-27 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771209', 'tblTempUsageDetail_20' ) end [2025-03-27 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771209', 'tblTempVendorCDR_20' ) start [2025-03-27 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771209', 'tblTempVendorCDR_20' ) end [2025-03-27 02:48:19] Production.INFO: ProcessCDR(1,14771209,1,1,2) [2025-03-27 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771209', 'tblTempUsageDetail_20' ) start [2025-03-27 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771209', 'tblTempUsageDetail_20' ) end [2025-03-27 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:48:22] Production.INFO: ==14093== Releasing lock... [2025-03-27 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:48:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:49:06 [end_date_ymd] => 2025-03-27 02:49:06 [RateCDR] => 1 ) [2025-03-27 02:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:49:06' and `end` < '2025-03-27 02:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:49:18] Production.INFO: count ==437 [2025-03-27 02:49:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:49:06 - End Time 2025-03-27 02:49:06 [2025-03-27 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771214', 'tblTempUsageDetail_20' ) start [2025-03-27 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771214', 'tblTempUsageDetail_20' ) end [2025-03-27 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771214', 'tblTempVendorCDR_20' ) start [2025-03-27 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771214', 'tblTempVendorCDR_20' ) end [2025-03-27 02:49:18] Production.INFO: ProcessCDR(1,14771214,1,1,2) [2025-03-27 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771214', 'tblTempUsageDetail_20' ) start [2025-03-27 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771214', 'tblTempUsageDetail_20' ) end [2025-03-27 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:49:22] Production.INFO: ==14177== Releasing lock... [2025-03-27 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:49:22] Production.INFO: 32 MB #Memory Used# [2025-03-27 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:50:07 [end_date_ymd] => 2025-03-27 02:50:07 [RateCDR] => 1 ) [2025-03-27 02:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:50:07' and `end` < '2025-03-27 02:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:50:19] Production.INFO: count ==452 [2025-03-27 02:50:19] Production.ERROR: pbx CDR StartTime 2025-03-26 23:50:07 - End Time 2025-03-27 02:50:07 [2025-03-27 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771219', 'tblTempUsageDetail_20' ) start [2025-03-27 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771219', 'tblTempUsageDetail_20' ) end [2025-03-27 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771219', 'tblTempVendorCDR_20' ) start [2025-03-27 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771219', 'tblTempVendorCDR_20' ) end [2025-03-27 02:50:19] Production.INFO: ProcessCDR(1,14771219,1,1,2) [2025-03-27 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771219', 'tblTempUsageDetail_20' ) start [2025-03-27 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771219', 'tblTempUsageDetail_20' ) end [2025-03-27 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:50:23] Production.INFO: ==14263== Releasing lock... [2025-03-27 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:50:23] Production.INFO: 32 MB #Memory Used# [2025-03-27 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:51:05 [end_date_ymd] => 2025-03-27 02:51:05 [RateCDR] => 1 ) [2025-03-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-03-26 23:51:05' and `end` < '2025-03-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-03-27 02:51:18] Production.INFO: count ==459 [2025-03-27 02:51:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:51:05 - End Time 2025-03-27 02:51:05 [2025-03-27 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771225', 'tblTempUsageDetail_20' ) start [2025-03-27 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771225', 'tblTempUsageDetail_20' ) end [2025-03-27 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771225', 'tblTempVendorCDR_20' ) start [2025-03-27 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771225', 'tblTempVendorCDR_20' ) end [2025-03-27 02:51:18] Production.INFO: ProcessCDR(1,14771225,1,1,2) [2025-03-27 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771225', 'tblTempUsageDetail_20' ) start [2025-03-27 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771225', 'tblTempUsageDetail_20' ) end [2025-03-27 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:51:22] Production.INFO: ==14355== Releasing lock... [2025-03-27 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:51:22] Production.INFO: 32 MB #Memory Used# [2025-03-27 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:52:06 [end_date_ymd] => 2025-03-27 02:52:06 [RateCDR] => 1 ) [2025-03-27 02:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:52:06' and `end` < '2025-03-27 02:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:52:18] Production.INFO: count ==459 [2025-03-27 02:52:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:52:06 - End Time 2025-03-27 02:52:06 [2025-03-27 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771230', 'tblTempUsageDetail_20' ) start [2025-03-27 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771230', 'tblTempUsageDetail_20' ) end [2025-03-27 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771230', 'tblTempVendorCDR_20' ) start [2025-03-27 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771230', 'tblTempVendorCDR_20' ) end [2025-03-27 02:52:19] Production.INFO: ProcessCDR(1,14771230,1,1,2) [2025-03-27 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771230', 'tblTempUsageDetail_20' ) start [2025-03-27 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771230', 'tblTempUsageDetail_20' ) end [2025-03-27 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:52:22] Production.INFO: ==14443== Releasing lock... [2025-03-27 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:52:22] Production.INFO: 32 MB #Memory Used# [2025-03-27 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:53:05 [end_date_ymd] => 2025-03-27 02:53:05 [RateCDR] => 1 ) [2025-03-27 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:53:05' and `end` < '2025-03-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-03-27 02:53:18] Production.INFO: count ==459 [2025-03-27 02:53:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:53:05 - End Time 2025-03-27 02:53:05 [2025-03-27 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771235', 'tblTempUsageDetail_20' ) start [2025-03-27 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771235', 'tblTempUsageDetail_20' ) end [2025-03-27 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771235', 'tblTempVendorCDR_20' ) start [2025-03-27 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771235', 'tblTempVendorCDR_20' ) end [2025-03-27 02:53:18] Production.INFO: ProcessCDR(1,14771235,1,1,2) [2025-03-27 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771235', 'tblTempUsageDetail_20' ) start [2025-03-27 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771235', 'tblTempUsageDetail_20' ) end [2025-03-27 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:53:22] Production.INFO: ==14531== Releasing lock... [2025-03-27 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:53:22] Production.INFO: 32 MB #Memory Used# [2025-03-27 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:54:05 [end_date_ymd] => 2025-03-27 02:54:05 [RateCDR] => 1 ) [2025-03-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-03-26 23:54:05' and `end` < '2025-03-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-03-27 02:54:17] Production.INFO: count ==459 [2025-03-27 02:54:17] Production.ERROR: pbx CDR StartTime 2025-03-26 23:54:05 - End Time 2025-03-27 02:54:05 [2025-03-27 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771240', 'tblTempUsageDetail_20' ) start [2025-03-27 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771240', 'tblTempUsageDetail_20' ) end [2025-03-27 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771240', 'tblTempVendorCDR_20' ) start [2025-03-27 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771240', 'tblTempVendorCDR_20' ) end [2025-03-27 02:54:17] Production.INFO: ProcessCDR(1,14771240,1,1,2) [2025-03-27 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771240', 'tblTempUsageDetail_20' ) start [2025-03-27 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771240', 'tblTempUsageDetail_20' ) end [2025-03-27 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:54:21] Production.INFO: ==14615== Releasing lock... [2025-03-27 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:54:21] Production.INFO: 32 MB #Memory Used# [2025-03-27 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:55:05 [end_date_ymd] => 2025-03-27 02:55:05 [RateCDR] => 1 ) [2025-03-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-03-26 23:55:05' and `end` < '2025-03-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-03-27 02:55:18] Production.INFO: count ==459 [2025-03-27 02:55:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:55:05 - End Time 2025-03-27 02:55:05 [2025-03-27 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771245', 'tblTempUsageDetail_20' ) start [2025-03-27 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771245', 'tblTempUsageDetail_20' ) end [2025-03-27 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771245', 'tblTempVendorCDR_20' ) start [2025-03-27 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771245', 'tblTempVendorCDR_20' ) end [2025-03-27 02:55:18] Production.INFO: ProcessCDR(1,14771245,1,1,2) [2025-03-27 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771245', 'tblTempUsageDetail_20' ) start [2025-03-27 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771245', 'tblTempUsageDetail_20' ) end [2025-03-27 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:55:22] Production.INFO: ==14703== Releasing lock... [2025-03-27 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:55:22] Production.INFO: 32 MB #Memory Used# [2025-03-27 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:56:05 [end_date_ymd] => 2025-03-27 02:56:05 [RateCDR] => 1 ) [2025-03-27 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:56:05' and `end` < '2025-03-27 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:56:18] Production.INFO: count ==459 [2025-03-27 02:56:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:56:05 - End Time 2025-03-27 02:56:05 [2025-03-27 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771250', 'tblTempUsageDetail_20' ) start [2025-03-27 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771250', 'tblTempUsageDetail_20' ) end [2025-03-27 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771250', 'tblTempVendorCDR_20' ) start [2025-03-27 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771250', 'tblTempVendorCDR_20' ) end [2025-03-27 02:56:18] Production.INFO: ProcessCDR(1,14771250,1,1,2) [2025-03-27 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771250', 'tblTempUsageDetail_20' ) start [2025-03-27 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771250', 'tblTempUsageDetail_20' ) end [2025-03-27 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:56:22] Production.INFO: ==14789== Releasing lock... [2025-03-27 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:56:22] Production.INFO: 32 MB #Memory Used# [2025-03-27 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:57:05 [end_date_ymd] => 2025-03-27 02:57:05 [RateCDR] => 1 ) [2025-03-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-03-26 23:57:05' and `end` < '2025-03-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-03-27 02:57:18] Production.INFO: count ==459 [2025-03-27 02:57:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:57:05 - End Time 2025-03-27 02:57:05 [2025-03-27 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771255', 'tblTempUsageDetail_20' ) start [2025-03-27 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771255', 'tblTempUsageDetail_20' ) end [2025-03-27 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771255', 'tblTempVendorCDR_20' ) start [2025-03-27 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771255', 'tblTempVendorCDR_20' ) end [2025-03-27 02:57:18] Production.INFO: ProcessCDR(1,14771255,1,1,2) [2025-03-27 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771255', 'tblTempUsageDetail_20' ) start [2025-03-27 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771255', 'tblTempUsageDetail_20' ) end [2025-03-27 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:57:22] Production.INFO: ==14898== Releasing lock... [2025-03-27 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:57:22] Production.INFO: 32 MB #Memory Used# [2025-03-27 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:58:05 [end_date_ymd] => 2025-03-27 02:58:05 [RateCDR] => 1 ) [2025-03-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-03-26 23:58:05' and `end` < '2025-03-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-03-27 02:58:18] Production.INFO: count ==468 [2025-03-27 02:58:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:58:05 - End Time 2025-03-27 02:58:05 [2025-03-27 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771260', 'tblTempUsageDetail_20' ) start [2025-03-27 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771260', 'tblTempUsageDetail_20' ) end [2025-03-27 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771260', 'tblTempVendorCDR_20' ) start [2025-03-27 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771260', 'tblTempVendorCDR_20' ) end [2025-03-27 02:58:18] Production.INFO: ProcessCDR(1,14771260,1,1,2) [2025-03-27 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771260', 'tblTempUsageDetail_20' ) start [2025-03-27 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771260', 'tblTempUsageDetail_20' ) end [2025-03-27 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:58:22] Production.INFO: ==14980== Releasing lock... [2025-03-27 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:58:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-26 23:59:06 [end_date_ymd] => 2025-03-27 02:59:06 [RateCDR] => 1 ) [2025-03-27 02:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-26 23:59:06' and `end` < '2025-03-27 02:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 02:59:18] Production.INFO: count ==473 [2025-03-27 02:59:18] Production.ERROR: pbx CDR StartTime 2025-03-26 23:59:06 - End Time 2025-03-27 02:59:06 [2025-03-27 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771265', 'tblTempUsageDetail_20' ) start [2025-03-27 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771265', 'tblTempUsageDetail_20' ) end [2025-03-27 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771265', 'tblTempVendorCDR_20' ) start [2025-03-27 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771265', 'tblTempVendorCDR_20' ) end [2025-03-27 02:59:18] Production.INFO: ProcessCDR(1,14771265,1,1,2) [2025-03-27 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771265', 'tblTempUsageDetail_20' ) start [2025-03-27 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771265', 'tblTempUsageDetail_20' ) end [2025-03-27 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 02:59:22] Production.INFO: ==15064== Releasing lock... [2025-03-27 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 02:59:22] Production.INFO: 32 MB #Memory Used# [2025-03-27 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:00:06 [end_date_ymd] => 2025-03-27 03:00:06 [RateCDR] => 1 ) [2025-03-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-03-27 00:00:06' and `end` < '2025-03-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-03-27 03:00:19] Production.INFO: count ==470 [2025-03-27 03:00:19] Production.ERROR: pbx CDR StartTime 2025-03-27 00:00:06 - End Time 2025-03-27 03:00:06 [2025-03-27 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771270', 'tblTempUsageDetail_20' ) start [2025-03-27 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771270', 'tblTempUsageDetail_20' ) end [2025-03-27 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771270', 'tblTempVendorCDR_20' ) start [2025-03-27 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771270', 'tblTempVendorCDR_20' ) end [2025-03-27 03:00:19] Production.INFO: ProcessCDR(1,14771270,1,1,2) [2025-03-27 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771270', 'tblTempUsageDetail_20' ) start [2025-03-27 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771270', 'tblTempUsageDetail_20' ) end [2025-03-27 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:00:23] Production.INFO: ==15151== Releasing lock... [2025-03-27 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:00:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:01:06 [end_date_ymd] => 2025-03-27 03:01:06 [RateCDR] => 1 ) [2025-03-27 03:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:01:06' and `end` < '2025-03-27 03:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:01:18] Production.INFO: count ==470 [2025-03-27 03:01:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:01:06 - End Time 2025-03-27 03:01:06 [2025-03-27 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771276', 'tblTempUsageDetail_20' ) start [2025-03-27 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771276', 'tblTempUsageDetail_20' ) end [2025-03-27 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771276', 'tblTempVendorCDR_20' ) start [2025-03-27 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771276', 'tblTempVendorCDR_20' ) end [2025-03-27 03:01:18] Production.INFO: ProcessCDR(1,14771276,1,1,2) [2025-03-27 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771276', 'tblTempUsageDetail_20' ) start [2025-03-27 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771276', 'tblTempUsageDetail_20' ) end [2025-03-27 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:01:22] Production.INFO: ==15286== Releasing lock... [2025-03-27 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:01:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:02:05 [end_date_ymd] => 2025-03-27 03:02:05 [RateCDR] => 1 ) [2025-03-27 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:02:05' and `end` < '2025-03-27 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:02:18] Production.INFO: count ==470 [2025-03-27 03:02:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:02:05 - End Time 2025-03-27 03:02:05 [2025-03-27 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771281', 'tblTempUsageDetail_20' ) start [2025-03-27 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771281', 'tblTempUsageDetail_20' ) end [2025-03-27 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771281', 'tblTempVendorCDR_20' ) start [2025-03-27 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771281', 'tblTempVendorCDR_20' ) end [2025-03-27 03:02:18] Production.INFO: ProcessCDR(1,14771281,1,1,2) [2025-03-27 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771281', 'tblTempUsageDetail_20' ) start [2025-03-27 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771281', 'tblTempUsageDetail_20' ) end [2025-03-27 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:02:22] Production.INFO: ==15451== Releasing lock... [2025-03-27 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:02:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:03:05 [end_date_ymd] => 2025-03-27 03:03:05 [RateCDR] => 1 ) [2025-03-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-03-27 00:03:05' and `end` < '2025-03-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-03-27 03:03:18] Production.INFO: count ==470 [2025-03-27 03:03:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:03:05 - End Time 2025-03-27 03:03:05 [2025-03-27 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771286', 'tblTempUsageDetail_20' ) start [2025-03-27 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771286', 'tblTempUsageDetail_20' ) end [2025-03-27 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771286', 'tblTempVendorCDR_20' ) start [2025-03-27 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771286', 'tblTempVendorCDR_20' ) end [2025-03-27 03:03:18] Production.INFO: ProcessCDR(1,14771286,1,1,2) [2025-03-27 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771286', 'tblTempUsageDetail_20' ) start [2025-03-27 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771286', 'tblTempUsageDetail_20' ) end [2025-03-27 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:03:22] Production.INFO: ==15533== Releasing lock... [2025-03-27 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:03:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:04:05 [end_date_ymd] => 2025-03-27 03:04:05 [RateCDR] => 1 ) [2025-03-27 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:04:05' and `end` < '2025-03-27 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:04:18] Production.INFO: count ==469 [2025-03-27 03:04:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:04:05 - End Time 2025-03-27 03:04:05 [2025-03-27 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771291', 'tblTempUsageDetail_20' ) start [2025-03-27 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771291', 'tblTempUsageDetail_20' ) end [2025-03-27 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771291', 'tblTempVendorCDR_20' ) start [2025-03-27 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771291', 'tblTempVendorCDR_20' ) end [2025-03-27 03:04:18] Production.INFO: ProcessCDR(1,14771291,1,1,2) [2025-03-27 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771291', 'tblTempUsageDetail_20' ) start [2025-03-27 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771291', 'tblTempUsageDetail_20' ) end [2025-03-27 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:04:22] Production.INFO: ==15626== Releasing lock... [2025-03-27 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:04:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:05:05 [end_date_ymd] => 2025-03-27 03:05:05 [RateCDR] => 1 ) [2025-03-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-03-27 00:05:05' and `end` < '2025-03-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-03-27 03:05:17] Production.INFO: count ==468 [2025-03-27 03:05:17] Production.ERROR: pbx CDR StartTime 2025-03-27 00:05:05 - End Time 2025-03-27 03:05:05 [2025-03-27 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771296', 'tblTempUsageDetail_20' ) start [2025-03-27 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771296', 'tblTempUsageDetail_20' ) end [2025-03-27 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771296', 'tblTempVendorCDR_20' ) start [2025-03-27 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771296', 'tblTempVendorCDR_20' ) end [2025-03-27 03:05:18] Production.INFO: ProcessCDR(1,14771296,1,1,2) [2025-03-27 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771296', 'tblTempUsageDetail_20' ) start [2025-03-27 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771296', 'tblTempUsageDetail_20' ) end [2025-03-27 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:05:21] Production.INFO: ==15708== Releasing lock... [2025-03-27 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:05:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:06:06 [end_date_ymd] => 2025-03-27 03:06:06 [RateCDR] => 1 ) [2025-03-27 03:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:06:06' and `end` < '2025-03-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-03-27 03:06:19] Production.INFO: count ==466 [2025-03-27 03:06:19] Production.ERROR: pbx CDR StartTime 2025-03-27 00:06:06 - End Time 2025-03-27 03:06:06 [2025-03-27 03:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771301', 'tblTempUsageDetail_20' ) start [2025-03-27 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771301', 'tblTempUsageDetail_20' ) end [2025-03-27 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771301', 'tblTempVendorCDR_20' ) start [2025-03-27 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771301', 'tblTempVendorCDR_20' ) end [2025-03-27 03:06:19] Production.INFO: ProcessCDR(1,14771301,1,1,2) [2025-03-27 03:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771301', 'tblTempUsageDetail_20' ) start [2025-03-27 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771301', 'tblTempUsageDetail_20' ) end [2025-03-27 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:06:22] Production.INFO: ==15863== Releasing lock... [2025-03-27 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:06:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 03:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:07:06 [end_date_ymd] => 2025-03-27 03:07:06 [RateCDR] => 1 ) [2025-03-27 03:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:07:06' and `end` < '2025-03-27 03:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:07:18] Production.INFO: count ==462 [2025-03-27 03:07:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:07:06 - End Time 2025-03-27 03:07:06 [2025-03-27 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771306', 'tblTempUsageDetail_20' ) start [2025-03-27 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771306', 'tblTempUsageDetail_20' ) end [2025-03-27 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771306', 'tblTempVendorCDR_20' ) start [2025-03-27 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771306', 'tblTempVendorCDR_20' ) end [2025-03-27 03:07:18] Production.INFO: ProcessCDR(1,14771306,1,1,2) [2025-03-27 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771306', 'tblTempUsageDetail_20' ) start [2025-03-27 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771306', 'tblTempUsageDetail_20' ) end [2025-03-27 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:07:21] Production.INFO: ==15944== Releasing lock... [2025-03-27 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:07:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:08:05 [end_date_ymd] => 2025-03-27 03:08:05 [RateCDR] => 1 ) [2025-03-27 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:08:05' and `end` < '2025-03-27 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:08:18] Production.INFO: count ==487 [2025-03-27 03:08:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:08:05 - End Time 2025-03-27 03:08:05 [2025-03-27 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771311', 'tblTempUsageDetail_20' ) start [2025-03-27 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771311', 'tblTempUsageDetail_20' ) end [2025-03-27 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771311', 'tblTempVendorCDR_20' ) start [2025-03-27 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771311', 'tblTempVendorCDR_20' ) end [2025-03-27 03:08:18] Production.INFO: ProcessCDR(1,14771311,1,1,2) [2025-03-27 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771311', 'tblTempUsageDetail_20' ) start [2025-03-27 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771311', 'tblTempUsageDetail_20' ) end [2025-03-27 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:08:21] Production.INFO: ==16029== Releasing lock... [2025-03-27 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:08:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 03:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:09:06 [end_date_ymd] => 2025-03-27 03:09:06 [RateCDR] => 1 ) [2025-03-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-03-27 00:09:06' and `end` < '2025-03-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-03-27 03:09:18] Production.INFO: count ==501 [2025-03-27 03:09:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:09:06 - End Time 2025-03-27 03:09:06 [2025-03-27 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771316', 'tblTempUsageDetail_20' ) start [2025-03-27 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771316', 'tblTempUsageDetail_20' ) end [2025-03-27 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771316', 'tblTempVendorCDR_20' ) start [2025-03-27 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771316', 'tblTempVendorCDR_20' ) end [2025-03-27 03:09:18] Production.INFO: ProcessCDR(1,14771316,1,1,2) [2025-03-27 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771316', 'tblTempUsageDetail_20' ) start [2025-03-27 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771316', 'tblTempUsageDetail_20' ) end [2025-03-27 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:09:22] Production.INFO: ==16205== Releasing lock... [2025-03-27 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:09:22] Production.INFO: 32 MB #Memory Used# [2025-03-27 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:10:06 [end_date_ymd] => 2025-03-27 03:10:06 [RateCDR] => 1 ) [2025-03-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-03-27 00:10:06' and `end` < '2025-03-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-03-27 03:10:19] Production.INFO: count ==491 [2025-03-27 03:10:19] Production.ERROR: pbx CDR StartTime 2025-03-27 00:10:06 - End Time 2025-03-27 03:10:06 [2025-03-27 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771322', 'tblTempUsageDetail_20' ) start [2025-03-27 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771322', 'tblTempUsageDetail_20' ) end [2025-03-27 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771322', 'tblTempVendorCDR_20' ) start [2025-03-27 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771322', 'tblTempVendorCDR_20' ) end [2025-03-27 03:10:19] Production.INFO: ProcessCDR(1,14771322,1,1,2) [2025-03-27 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771322', 'tblTempUsageDetail_20' ) start [2025-03-27 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771322', 'tblTempUsageDetail_20' ) end [2025-03-27 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:10:22] Production.INFO: ==16310== Releasing lock... [2025-03-27 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:10:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:11:05 [end_date_ymd] => 2025-03-27 03:11:05 [RateCDR] => 1 ) [2025-03-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-03-27 00:11:05' and `end` < '2025-03-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-03-27 03:11:18] Production.INFO: count ==487 [2025-03-27 03:11:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:11:05 - End Time 2025-03-27 03:11:05 [2025-03-27 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771327', 'tblTempUsageDetail_20' ) start [2025-03-27 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771327', 'tblTempUsageDetail_20' ) end [2025-03-27 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771327', 'tblTempVendorCDR_20' ) start [2025-03-27 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771327', 'tblTempVendorCDR_20' ) end [2025-03-27 03:11:18] Production.INFO: ProcessCDR(1,14771327,1,1,2) [2025-03-27 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771327', 'tblTempUsageDetail_20' ) start [2025-03-27 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771327', 'tblTempUsageDetail_20' ) end [2025-03-27 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:11:21] Production.INFO: ==16414== Releasing lock... [2025-03-27 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:11:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:12:06 [end_date_ymd] => 2025-03-27 03:12:06 [RateCDR] => 1 ) [2025-03-27 03:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:12:06' and `end` < '2025-03-27 03:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:12:18] Production.INFO: count ==487 [2025-03-27 03:12:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:12:06 - End Time 2025-03-27 03:12:06 [2025-03-27 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771332', 'tblTempUsageDetail_20' ) start [2025-03-27 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771332', 'tblTempUsageDetail_20' ) end [2025-03-27 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771332', 'tblTempVendorCDR_20' ) start [2025-03-27 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771332', 'tblTempVendorCDR_20' ) end [2025-03-27 03:12:18] Production.INFO: ProcessCDR(1,14771332,1,1,2) [2025-03-27 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771332', 'tblTempUsageDetail_20' ) start [2025-03-27 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771332', 'tblTempUsageDetail_20' ) end [2025-03-27 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:12:22] Production.INFO: ==16517== Releasing lock... [2025-03-27 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:12:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:13:05 [end_date_ymd] => 2025-03-27 03:13:05 [RateCDR] => 1 ) [2025-03-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-03-27 00:13:05' and `end` < '2025-03-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-03-27 03:13:18] Production.INFO: count ==487 [2025-03-27 03:13:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:13:05 - End Time 2025-03-27 03:13:05 [2025-03-27 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771337', 'tblTempUsageDetail_20' ) start [2025-03-27 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771337', 'tblTempUsageDetail_20' ) end [2025-03-27 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771337', 'tblTempVendorCDR_20' ) start [2025-03-27 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771337', 'tblTempVendorCDR_20' ) end [2025-03-27 03:13:18] Production.INFO: ProcessCDR(1,14771337,1,1,2) [2025-03-27 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771337', 'tblTempUsageDetail_20' ) start [2025-03-27 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771337', 'tblTempUsageDetail_20' ) end [2025-03-27 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:13:21] Production.INFO: ==16682== Releasing lock... [2025-03-27 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:13:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 03:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:14:06 [end_date_ymd] => 2025-03-27 03:14:06 [RateCDR] => 1 ) [2025-03-27 03:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:14:06' and `end` < '2025-03-27 03:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:14:18] Production.INFO: count ==487 [2025-03-27 03:14:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:14:06 - End Time 2025-03-27 03:14:06 [2025-03-27 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771342', 'tblTempUsageDetail_20' ) start [2025-03-27 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771342', 'tblTempUsageDetail_20' ) end [2025-03-27 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771342', 'tblTempVendorCDR_20' ) start [2025-03-27 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771342', 'tblTempVendorCDR_20' ) end [2025-03-27 03:14:18] Production.INFO: ProcessCDR(1,14771342,1,1,2) [2025-03-27 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771342', 'tblTempUsageDetail_20' ) start [2025-03-27 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771342', 'tblTempUsageDetail_20' ) end [2025-03-27 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:14:22] Production.INFO: ==16765== Releasing lock... [2025-03-27 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:14:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:15:05 [end_date_ymd] => 2025-03-27 03:15:05 [RateCDR] => 1 ) [2025-03-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-03-27 00:15:05' and `end` < '2025-03-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-03-27 03:15:18] Production.INFO: count ==487 [2025-03-27 03:15:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:15:05 - End Time 2025-03-27 03:15:05 [2025-03-27 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771347', 'tblTempUsageDetail_20' ) start [2025-03-27 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771347', 'tblTempUsageDetail_20' ) end [2025-03-27 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771347', 'tblTempVendorCDR_20' ) start [2025-03-27 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771347', 'tblTempVendorCDR_20' ) end [2025-03-27 03:15:18] Production.INFO: ProcessCDR(1,14771347,1,1,2) [2025-03-27 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771347', 'tblTempUsageDetail_20' ) start [2025-03-27 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771347', 'tblTempUsageDetail_20' ) end [2025-03-27 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:15:21] Production.INFO: ==16851== Releasing lock... [2025-03-27 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:15:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:16:05 [end_date_ymd] => 2025-03-27 03:16:05 [RateCDR] => 1 ) [2025-03-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-03-27 00:16:05' and `end` < '2025-03-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-03-27 03:16:18] Production.INFO: count ==473 [2025-03-27 03:16:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:16:05 - End Time 2025-03-27 03:16:05 [2025-03-27 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771352', 'tblTempUsageDetail_20' ) start [2025-03-27 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771352', 'tblTempUsageDetail_20' ) end [2025-03-27 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771352', 'tblTempVendorCDR_20' ) start [2025-03-27 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771352', 'tblTempVendorCDR_20' ) end [2025-03-27 03:16:18] Production.INFO: ProcessCDR(1,14771352,1,1,2) [2025-03-27 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771352', 'tblTempUsageDetail_20' ) start [2025-03-27 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771352', 'tblTempUsageDetail_20' ) end [2025-03-27 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:16:21] Production.INFO: ==16930== Releasing lock... [2025-03-27 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:16:21] Production.INFO: 32 MB #Memory Used# [2025-03-27 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:17:05 [end_date_ymd] => 2025-03-27 03:17:05 [RateCDR] => 1 ) [2025-03-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-03-27 00:17:05' and `end` < '2025-03-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-03-27 03:17:17] Production.INFO: count ==476 [2025-03-27 03:17:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:17:05 - End Time 2025-03-27 03:17:05 [2025-03-27 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771357', 'tblTempUsageDetail_20' ) start [2025-03-27 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771357', 'tblTempUsageDetail_20' ) end [2025-03-27 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771357', 'tblTempVendorCDR_20' ) start [2025-03-27 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771357', 'tblTempVendorCDR_20' ) end [2025-03-27 03:17:18] Production.INFO: ProcessCDR(1,14771357,1,1,2) [2025-03-27 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771357', 'tblTempUsageDetail_20' ) start [2025-03-27 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771357', 'tblTempUsageDetail_20' ) end [2025-03-27 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:17:21] Production.INFO: ==17088== Releasing lock... [2025-03-27 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:17:21] Production.INFO: 32 MB #Memory Used# [2025-03-27 03:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:18:06 [end_date_ymd] => 2025-03-27 03:18:06 [RateCDR] => 1 ) [2025-03-27 03:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:18:06' and `end` < '2025-03-27 03:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:18:18] Production.INFO: count ==476 [2025-03-27 03:18:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:18:06 - End Time 2025-03-27 03:18:06 [2025-03-27 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771362', 'tblTempUsageDetail_20' ) start [2025-03-27 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771362', 'tblTempUsageDetail_20' ) end [2025-03-27 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771362', 'tblTempVendorCDR_20' ) start [2025-03-27 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771362', 'tblTempVendorCDR_20' ) end [2025-03-27 03:18:18] Production.INFO: ProcessCDR(1,14771362,1,1,2) [2025-03-27 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771362', 'tblTempUsageDetail_20' ) start [2025-03-27 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771362', 'tblTempUsageDetail_20' ) end [2025-03-27 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:18:22] Production.INFO: ==17239== Releasing lock... [2025-03-27 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:18:22] Production.INFO: 32 MB #Memory Used# [2025-03-27 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:19:05 [end_date_ymd] => 2025-03-27 03:19:05 [RateCDR] => 1 ) [2025-03-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-03-27 00:19:05' and `end` < '2025-03-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-03-27 03:19:17] Production.INFO: count ==476 [2025-03-27 03:19:17] Production.ERROR: pbx CDR StartTime 2025-03-27 00:19:05 - End Time 2025-03-27 03:19:05 [2025-03-27 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771367', 'tblTempUsageDetail_20' ) start [2025-03-27 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771367', 'tblTempUsageDetail_20' ) end [2025-03-27 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771367', 'tblTempVendorCDR_20' ) start [2025-03-27 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771367', 'tblTempVendorCDR_20' ) end [2025-03-27 03:19:17] Production.INFO: ProcessCDR(1,14771367,1,1,2) [2025-03-27 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771367', 'tblTempUsageDetail_20' ) start [2025-03-27 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771367', 'tblTempUsageDetail_20' ) end [2025-03-27 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:19:21] Production.INFO: ==17369== Releasing lock... [2025-03-27 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:19:21] Production.INFO: 32 MB #Memory Used# [2025-03-27 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:20:06 [end_date_ymd] => 2025-03-27 03:20:06 [RateCDR] => 1 ) [2025-03-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-03-27 00:20:06' and `end` < '2025-03-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-03-27 03:20:18] Production.INFO: count ==474 [2025-03-27 03:20:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:20:06 - End Time 2025-03-27 03:20:06 [2025-03-27 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771373', 'tblTempUsageDetail_20' ) start [2025-03-27 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771373', 'tblTempUsageDetail_20' ) end [2025-03-27 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771373', 'tblTempVendorCDR_20' ) start [2025-03-27 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771373', 'tblTempVendorCDR_20' ) end [2025-03-27 03:20:18] Production.INFO: ProcessCDR(1,14771373,1,1,2) [2025-03-27 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771373', 'tblTempUsageDetail_20' ) start [2025-03-27 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771373', 'tblTempUsageDetail_20' ) end [2025-03-27 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:20:22] Production.INFO: ==17479== Releasing lock... [2025-03-27 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:20:22] Production.INFO: 32 MB #Memory Used# [2025-03-27 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:21:05 [end_date_ymd] => 2025-03-27 03:21:05 [RateCDR] => 1 ) [2025-03-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-03-27 00:21:05' and `end` < '2025-03-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-03-27 03:21:17] Production.INFO: count ==470 [2025-03-27 03:21:17] Production.ERROR: pbx CDR StartTime 2025-03-27 00:21:05 - End Time 2025-03-27 03:21:05 [2025-03-27 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771378', 'tblTempUsageDetail_20' ) start [2025-03-27 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771378', 'tblTempUsageDetail_20' ) end [2025-03-27 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771378', 'tblTempVendorCDR_20' ) start [2025-03-27 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771378', 'tblTempVendorCDR_20' ) end [2025-03-27 03:21:17] Production.INFO: ProcessCDR(1,14771378,1,1,2) [2025-03-27 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771378', 'tblTempUsageDetail_20' ) start [2025-03-27 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771378', 'tblTempUsageDetail_20' ) end [2025-03-27 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:21:21] Production.INFO: ==17586== Releasing lock... [2025-03-27 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:21:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-27 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:22:05 [end_date_ymd] => 2025-03-27 03:22:05 [RateCDR] => 1 ) [2025-03-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-03-27 00:22:05' and `end` < '2025-03-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-03-27 03:22:18] Production.INFO: count ==467 [2025-03-27 03:22:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:22:05 - End Time 2025-03-27 03:22:05 [2025-03-27 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771383', 'tblTempUsageDetail_20' ) start [2025-03-27 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771383', 'tblTempUsageDetail_20' ) end [2025-03-27 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771383', 'tblTempVendorCDR_20' ) start [2025-03-27 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771383', 'tblTempVendorCDR_20' ) end [2025-03-27 03:22:18] Production.INFO: ProcessCDR(1,14771383,1,1,2) [2025-03-27 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771383', 'tblTempUsageDetail_20' ) start [2025-03-27 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771383', 'tblTempUsageDetail_20' ) end [2025-03-27 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:22:22] Production.INFO: ==17694== Releasing lock... [2025-03-27 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:22:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:23:05 [end_date_ymd] => 2025-03-27 03:23:05 [RateCDR] => 1 ) [2025-03-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-03-27 00:23:05' and `end` < '2025-03-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-03-27 03:23:17] Production.INFO: count ==467 [2025-03-27 03:23:17] Production.ERROR: pbx CDR StartTime 2025-03-27 00:23:05 - End Time 2025-03-27 03:23:05 [2025-03-27 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771388', 'tblTempUsageDetail_20' ) start [2025-03-27 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771388', 'tblTempUsageDetail_20' ) end [2025-03-27 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771388', 'tblTempVendorCDR_20' ) start [2025-03-27 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771388', 'tblTempVendorCDR_20' ) end [2025-03-27 03:23:17] Production.INFO: ProcessCDR(1,14771388,1,1,2) [2025-03-27 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771388', 'tblTempUsageDetail_20' ) start [2025-03-27 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771388', 'tblTempUsageDetail_20' ) end [2025-03-27 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:23:21] Production.INFO: ==17801== Releasing lock... [2025-03-27 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:23:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:24:05 [end_date_ymd] => 2025-03-27 03:24:05 [RateCDR] => 1 ) [2025-03-27 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:24:05' and `end` < '2025-03-27 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:24:18] Production.INFO: count ==467 [2025-03-27 03:24:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:24:05 - End Time 2025-03-27 03:24:05 [2025-03-27 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771393', 'tblTempUsageDetail_20' ) start [2025-03-27 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771393', 'tblTempUsageDetail_20' ) end [2025-03-27 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771393', 'tblTempVendorCDR_20' ) start [2025-03-27 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771393', 'tblTempVendorCDR_20' ) end [2025-03-27 03:24:18] Production.INFO: ProcessCDR(1,14771393,1,1,2) [2025-03-27 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771393', 'tblTempUsageDetail_20' ) start [2025-03-27 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771393', 'tblTempUsageDetail_20' ) end [2025-03-27 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:24:21] Production.INFO: ==17915== Releasing lock... [2025-03-27 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:24:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:25:05 [end_date_ymd] => 2025-03-27 03:25:05 [RateCDR] => 1 ) [2025-03-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-03-27 00:25:05' and `end` < '2025-03-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-03-27 03:25:18] Production.INFO: count ==467 [2025-03-27 03:25:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:25:05 - End Time 2025-03-27 03:25:05 [2025-03-27 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771398', 'tblTempUsageDetail_20' ) start [2025-03-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771398', 'tblTempUsageDetail_20' ) end [2025-03-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771398', 'tblTempVendorCDR_20' ) start [2025-03-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771398', 'tblTempVendorCDR_20' ) end [2025-03-27 03:25:18] Production.INFO: ProcessCDR(1,14771398,1,1,2) [2025-03-27 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771398', 'tblTempUsageDetail_20' ) start [2025-03-27 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771398', 'tblTempUsageDetail_20' ) end [2025-03-27 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:25:21] Production.INFO: ==18027== Releasing lock... [2025-03-27 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:25:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:26:05 [end_date_ymd] => 2025-03-27 03:26:05 [RateCDR] => 1 ) [2025-03-27 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:26:05' and `end` < '2025-03-27 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:26:17] Production.INFO: count ==467 [2025-03-27 03:26:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:26:05 - End Time 2025-03-27 03:26:05 [2025-03-27 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771403', 'tblTempUsageDetail_20' ) start [2025-03-27 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771403', 'tblTempUsageDetail_20' ) end [2025-03-27 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771403', 'tblTempVendorCDR_20' ) start [2025-03-27 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771403', 'tblTempVendorCDR_20' ) end [2025-03-27 03:26:18] Production.INFO: ProcessCDR(1,14771403,1,1,2) [2025-03-27 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771403', 'tblTempUsageDetail_20' ) start [2025-03-27 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771403', 'tblTempUsageDetail_20' ) end [2025-03-27 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:26:21] Production.INFO: ==18135== Releasing lock... [2025-03-27 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:26:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 03:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:27:06 [end_date_ymd] => 2025-03-27 03:27:06 [RateCDR] => 1 ) [2025-03-27 03:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:27:06' and `end` < '2025-03-27 03:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:27:18] Production.INFO: count ==461 [2025-03-27 03:27:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:27:06 - End Time 2025-03-27 03:27:06 [2025-03-27 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771408', 'tblTempUsageDetail_20' ) start [2025-03-27 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771408', 'tblTempUsageDetail_20' ) end [2025-03-27 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771408', 'tblTempVendorCDR_20' ) start [2025-03-27 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771408', 'tblTempVendorCDR_20' ) end [2025-03-27 03:27:18] Production.INFO: ProcessCDR(1,14771408,1,1,2) [2025-03-27 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771408', 'tblTempUsageDetail_20' ) start [2025-03-27 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771408', 'tblTempUsageDetail_20' ) end [2025-03-27 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:27:22] Production.INFO: ==18243== Releasing lock... [2025-03-27 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:27:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:28:05 [end_date_ymd] => 2025-03-27 03:28:05 [RateCDR] => 1 ) [2025-03-27 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:28:05' and `end` < '2025-03-27 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:28:17] Production.INFO: count ==456 [2025-03-27 03:28:17] Production.ERROR: pbx CDR StartTime 2025-03-27 00:28:05 - End Time 2025-03-27 03:28:05 [2025-03-27 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771413', 'tblTempUsageDetail_20' ) start [2025-03-27 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771413', 'tblTempUsageDetail_20' ) end [2025-03-27 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771413', 'tblTempVendorCDR_20' ) start [2025-03-27 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771413', 'tblTempVendorCDR_20' ) end [2025-03-27 03:28:17] Production.INFO: ProcessCDR(1,14771413,1,1,2) [2025-03-27 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771413', 'tblTempUsageDetail_20' ) start [2025-03-27 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771413', 'tblTempUsageDetail_20' ) end [2025-03-27 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:28:21] Production.INFO: ==18345== Releasing lock... [2025-03-27 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:28:21] Production.INFO: 32 MB #Memory Used# [2025-03-27 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:29:05 [end_date_ymd] => 2025-03-27 03:29:05 [RateCDR] => 1 ) [2025-03-27 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:29:05' and `end` < '2025-03-27 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:29:18] Production.INFO: count ==456 [2025-03-27 03:29:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:29:05 - End Time 2025-03-27 03:29:05 [2025-03-27 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771418', 'tblTempUsageDetail_20' ) start [2025-03-27 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771418', 'tblTempUsageDetail_20' ) end [2025-03-27 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771418', 'tblTempVendorCDR_20' ) start [2025-03-27 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771418', 'tblTempVendorCDR_20' ) end [2025-03-27 03:29:18] Production.INFO: ProcessCDR(1,14771418,1,1,2) [2025-03-27 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771418', 'tblTempUsageDetail_20' ) start [2025-03-27 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771418', 'tblTempUsageDetail_20' ) end [2025-03-27 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:29:21] Production.INFO: ==18441== Releasing lock... [2025-03-27 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:29:21] Production.INFO: 32 MB #Memory Used# [2025-03-27 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:30:06 [end_date_ymd] => 2025-03-27 03:30:06 [RateCDR] => 1 ) [2025-03-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-03-27 00:30:06' and `end` < '2025-03-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-03-27 03:30:19] Production.INFO: count ==447 [2025-03-27 03:30:19] Production.ERROR: pbx CDR StartTime 2025-03-27 00:30:06 - End Time 2025-03-27 03:30:06 [2025-03-27 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771424', 'tblTempUsageDetail_20' ) start [2025-03-27 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771424', 'tblTempUsageDetail_20' ) end [2025-03-27 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771424', 'tblTempVendorCDR_20' ) start [2025-03-27 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771424', 'tblTempVendorCDR_20' ) end [2025-03-27 03:30:19] Production.INFO: ProcessCDR(1,14771424,1,1,2) [2025-03-27 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771424', 'tblTempUsageDetail_20' ) start [2025-03-27 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771424', 'tblTempUsageDetail_20' ) end [2025-03-27 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:30:23] Production.INFO: ==18544== Releasing lock... [2025-03-27 03:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:30:23] Production.INFO: 32 MB #Memory Used# [2025-03-27 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:31:06 [end_date_ymd] => 2025-03-27 03:31:06 [RateCDR] => 1 ) [2025-03-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-03-27 00:31:06' and `end` < '2025-03-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-03-27 03:31:18] Production.INFO: count ==438 [2025-03-27 03:31:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:31:06 - End Time 2025-03-27 03:31:06 [2025-03-27 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771429', 'tblTempUsageDetail_20' ) start [2025-03-27 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771429', 'tblTempUsageDetail_20' ) end [2025-03-27 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771429', 'tblTempVendorCDR_20' ) start [2025-03-27 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771429', 'tblTempVendorCDR_20' ) end [2025-03-27 03:31:18] Production.INFO: ProcessCDR(1,14771429,1,1,2) [2025-03-27 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771429', 'tblTempUsageDetail_20' ) start [2025-03-27 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771429', 'tblTempUsageDetail_20' ) end [2025-03-27 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:31:22] Production.INFO: ==18645== Releasing lock... [2025-03-27 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:31:22] Production.INFO: 32 MB #Memory Used# [2025-03-27 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:32:06 [end_date_ymd] => 2025-03-27 03:32:06 [RateCDR] => 1 ) [2025-03-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-03-27 00:32:06' and `end` < '2025-03-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-03-27 03:32:19] Production.INFO: count ==432 [2025-03-27 03:32:19] Production.ERROR: pbx CDR StartTime 2025-03-27 00:32:06 - End Time 2025-03-27 03:32:06 [2025-03-27 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771434', 'tblTempUsageDetail_20' ) start [2025-03-27 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771434', 'tblTempUsageDetail_20' ) end [2025-03-27 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771434', 'tblTempVendorCDR_20' ) start [2025-03-27 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771434', 'tblTempVendorCDR_20' ) end [2025-03-27 03:32:19] Production.INFO: ProcessCDR(1,14771434,1,1,2) [2025-03-27 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771434', 'tblTempUsageDetail_20' ) start [2025-03-27 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771434', 'tblTempUsageDetail_20' ) end [2025-03-27 03:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:32:23] Production.INFO: ==18745== Releasing lock... [2025-03-27 03:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:32:23] Production.INFO: 32 MB #Memory Used# [2025-03-27 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:33:06 [end_date_ymd] => 2025-03-27 03:33:06 [RateCDR] => 1 ) [2025-03-27 03:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:33:06' and `end` < '2025-03-27 03:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:33:18] Production.INFO: count ==429 [2025-03-27 03:33:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:33:06 - End Time 2025-03-27 03:33:06 [2025-03-27 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771439', 'tblTempUsageDetail_20' ) start [2025-03-27 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771439', 'tblTempUsageDetail_20' ) end [2025-03-27 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771439', 'tblTempVendorCDR_20' ) start [2025-03-27 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771439', 'tblTempVendorCDR_20' ) end [2025-03-27 03:33:18] Production.INFO: ProcessCDR(1,14771439,1,1,2) [2025-03-27 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771439', 'tblTempUsageDetail_20' ) start [2025-03-27 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771439', 'tblTempUsageDetail_20' ) end [2025-03-27 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:33:22] Production.INFO: ==18842== Releasing lock... [2025-03-27 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:33:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:34:05 [end_date_ymd] => 2025-03-27 03:34:05 [RateCDR] => 1 ) [2025-03-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-03-27 00:34:05' and `end` < '2025-03-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-03-27 03:34:18] Production.INFO: count ==429 [2025-03-27 03:34:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:34:05 - End Time 2025-03-27 03:34:05 [2025-03-27 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771444', 'tblTempUsageDetail_20' ) start [2025-03-27 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771444', 'tblTempUsageDetail_20' ) end [2025-03-27 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771444', 'tblTempVendorCDR_20' ) start [2025-03-27 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771444', 'tblTempVendorCDR_20' ) end [2025-03-27 03:34:18] Production.INFO: ProcessCDR(1,14771444,1,1,2) [2025-03-27 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771444', 'tblTempUsageDetail_20' ) start [2025-03-27 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771444', 'tblTempUsageDetail_20' ) end [2025-03-27 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:34:22] Production.INFO: ==18980== Releasing lock... [2025-03-27 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:34:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:35:05 [end_date_ymd] => 2025-03-27 03:35:05 [RateCDR] => 1 ) [2025-03-27 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:35:05' and `end` < '2025-03-27 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:35:18] Production.INFO: count ==429 [2025-03-27 03:35:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:35:05 - End Time 2025-03-27 03:35:05 [2025-03-27 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771449', 'tblTempUsageDetail_20' ) start [2025-03-27 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771449', 'tblTempUsageDetail_20' ) end [2025-03-27 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771449', 'tblTempVendorCDR_20' ) start [2025-03-27 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771449', 'tblTempVendorCDR_20' ) end [2025-03-27 03:35:18] Production.INFO: ProcessCDR(1,14771449,1,1,2) [2025-03-27 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771449', 'tblTempUsageDetail_20' ) start [2025-03-27 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771449', 'tblTempUsageDetail_20' ) end [2025-03-27 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:35:22] Production.INFO: ==19085== Releasing lock... [2025-03-27 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:35:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:36:06 [end_date_ymd] => 2025-03-27 03:36:06 [RateCDR] => 1 ) [2025-03-27 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:36:06' and `end` < '2025-03-27 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:36:19] Production.INFO: count ==424 [2025-03-27 03:36:19] Production.ERROR: pbx CDR StartTime 2025-03-27 00:36:06 - End Time 2025-03-27 03:36:06 [2025-03-27 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771454', 'tblTempUsageDetail_20' ) start [2025-03-27 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771454', 'tblTempUsageDetail_20' ) end [2025-03-27 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771454', 'tblTempVendorCDR_20' ) start [2025-03-27 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771454', 'tblTempVendorCDR_20' ) end [2025-03-27 03:36:19] Production.INFO: ProcessCDR(1,14771454,1,1,2) [2025-03-27 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771454', 'tblTempUsageDetail_20' ) start [2025-03-27 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771454', 'tblTempUsageDetail_20' ) end [2025-03-27 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:36:22] Production.INFO: ==19166== Releasing lock... [2025-03-27 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:36:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-27 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:37:06 [end_date_ymd] => 2025-03-27 03:37:06 [RateCDR] => 1 ) [2025-03-27 03:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:37:06' and `end` < '2025-03-27 03:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:37:18] Production.INFO: count ==424 [2025-03-27 03:37:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:37:06 - End Time 2025-03-27 03:37:06 [2025-03-27 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771459', 'tblTempUsageDetail_20' ) start [2025-03-27 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771459', 'tblTempUsageDetail_20' ) end [2025-03-27 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771459', 'tblTempVendorCDR_20' ) start [2025-03-27 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771459', 'tblTempVendorCDR_20' ) end [2025-03-27 03:37:18] Production.INFO: ProcessCDR(1,14771459,1,1,2) [2025-03-27 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771459', 'tblTempUsageDetail_20' ) start [2025-03-27 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771459', 'tblTempUsageDetail_20' ) end [2025-03-27 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:37:22] Production.INFO: ==19236== Releasing lock... [2025-03-27 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:37:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-27 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:38:05 [end_date_ymd] => 2025-03-27 03:38:05 [RateCDR] => 1 ) [2025-03-27 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:38:05' and `end` < '2025-03-27 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:38:18] Production.INFO: count ==424 [2025-03-27 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:38:05 - End Time 2025-03-27 03:38:05 [2025-03-27 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771464', 'tblTempUsageDetail_20' ) start [2025-03-27 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771464', 'tblTempUsageDetail_20' ) end [2025-03-27 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771464', 'tblTempVendorCDR_20' ) start [2025-03-27 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771464', 'tblTempVendorCDR_20' ) end [2025-03-27 03:38:18] Production.INFO: ProcessCDR(1,14771464,1,1,2) [2025-03-27 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771464', 'tblTempUsageDetail_20' ) start [2025-03-27 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771464', 'tblTempUsageDetail_20' ) end [2025-03-27 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:38:22] Production.INFO: ==19308== Releasing lock... [2025-03-27 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:38:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-27 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:39:06 [end_date_ymd] => 2025-03-27 03:39:06 [RateCDR] => 1 ) [2025-03-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-03-27 00:39:06' and `end` < '2025-03-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-03-27 03:39:19] Production.INFO: count ==421 [2025-03-27 03:39:19] Production.ERROR: pbx CDR StartTime 2025-03-27 00:39:06 - End Time 2025-03-27 03:39:06 [2025-03-27 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771469', 'tblTempUsageDetail_20' ) start [2025-03-27 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771469', 'tblTempUsageDetail_20' ) end [2025-03-27 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771469', 'tblTempVendorCDR_20' ) start [2025-03-27 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771469', 'tblTempVendorCDR_20' ) end [2025-03-27 03:39:19] Production.INFO: ProcessCDR(1,14771469,1,1,2) [2025-03-27 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771469', 'tblTempUsageDetail_20' ) start [2025-03-27 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771469', 'tblTempUsageDetail_20' ) end [2025-03-27 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:39:22] Production.INFO: ==19379== Releasing lock... [2025-03-27 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:39:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-27 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:40:06 [end_date_ymd] => 2025-03-27 03:40:06 [RateCDR] => 1 ) [2025-03-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-03-27 00:40:06' and `end` < '2025-03-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-03-27 03:40:19] Production.INFO: count ==430 [2025-03-27 03:40:19] Production.ERROR: pbx CDR StartTime 2025-03-27 00:40:06 - End Time 2025-03-27 03:40:06 [2025-03-27 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771470', 'tblTempUsageDetail_20' ) start [2025-03-27 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771470', 'tblTempUsageDetail_20' ) end [2025-03-27 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771470', 'tblTempVendorCDR_20' ) start [2025-03-27 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771470', 'tblTempVendorCDR_20' ) end [2025-03-27 03:40:19] Production.INFO: ProcessCDR(1,14771470,1,1,2) [2025-03-27 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771470', 'tblTempUsageDetail_20' ) start [2025-03-27 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771470', 'tblTempUsageDetail_20' ) end [2025-03-27 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:40:23] Production.INFO: ==19453== Releasing lock... [2025-03-27 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:40:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-27 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:41:06 [end_date_ymd] => 2025-03-27 03:41:06 [RateCDR] => 1 ) [2025-03-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-03-27 00:41:06' and `end` < '2025-03-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-03-27 03:41:18] Production.INFO: count ==429 [2025-03-27 03:41:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:41:06 - End Time 2025-03-27 03:41:06 [2025-03-27 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771480', 'tblTempUsageDetail_20' ) start [2025-03-27 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771480', 'tblTempUsageDetail_20' ) end [2025-03-27 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771480', 'tblTempVendorCDR_20' ) start [2025-03-27 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771480', 'tblTempVendorCDR_20' ) end [2025-03-27 03:41:18] Production.INFO: ProcessCDR(1,14771480,1,1,2) [2025-03-27 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771480', 'tblTempUsageDetail_20' ) start [2025-03-27 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771480', 'tblTempUsageDetail_20' ) end [2025-03-27 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:41:22] Production.INFO: ==19527== Releasing lock... [2025-03-27 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:41:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-27 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:42:05 [end_date_ymd] => 2025-03-27 03:42:05 [RateCDR] => 1 ) [2025-03-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-03-27 00:42:05' and `end` < '2025-03-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-03-27 03:42:18] Production.INFO: count ==425 [2025-03-27 03:42:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:42:05 - End Time 2025-03-27 03:42:05 [2025-03-27 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771485', 'tblTempUsageDetail_20' ) start [2025-03-27 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771485', 'tblTempUsageDetail_20' ) end [2025-03-27 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771485', 'tblTempVendorCDR_20' ) start [2025-03-27 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771485', 'tblTempVendorCDR_20' ) end [2025-03-27 03:42:18] Production.INFO: ProcessCDR(1,14771485,1,1,2) [2025-03-27 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771485', 'tblTempUsageDetail_20' ) start [2025-03-27 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771485', 'tblTempUsageDetail_20' ) end [2025-03-27 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:42:22] Production.INFO: ==19597== Releasing lock... [2025-03-27 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:42:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-27 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:43:06 [end_date_ymd] => 2025-03-27 03:43:06 [RateCDR] => 1 ) [2025-03-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-03-27 00:43:06' and `end` < '2025-03-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-03-27 03:43:19] Production.INFO: count ==426 [2025-03-27 03:43:19] Production.ERROR: pbx CDR StartTime 2025-03-27 00:43:06 - End Time 2025-03-27 03:43:06 [2025-03-27 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771490', 'tblTempUsageDetail_20' ) start [2025-03-27 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771490', 'tblTempUsageDetail_20' ) end [2025-03-27 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771490', 'tblTempVendorCDR_20' ) start [2025-03-27 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771490', 'tblTempVendorCDR_20' ) end [2025-03-27 03:43:19] Production.INFO: ProcessCDR(1,14771490,1,1,2) [2025-03-27 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771490', 'tblTempUsageDetail_20' ) start [2025-03-27 03:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771490', 'tblTempUsageDetail_20' ) end [2025-03-27 03:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:43:25] Production.INFO: ==19668== Releasing lock... [2025-03-27 03:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:43:25] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:44:05 [end_date_ymd] => 2025-03-27 03:44:05 [RateCDR] => 1 ) [2025-03-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-03-27 00:44:05' and `end` < '2025-03-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-03-27 03:44:18] Production.INFO: count ==424 [2025-03-27 03:44:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:44:05 - End Time 2025-03-27 03:44:05 [2025-03-27 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771495', 'tblTempUsageDetail_20' ) start [2025-03-27 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771495', 'tblTempUsageDetail_20' ) end [2025-03-27 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771495', 'tblTempVendorCDR_20' ) start [2025-03-27 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771495', 'tblTempVendorCDR_20' ) end [2025-03-27 03:44:18] Production.INFO: ProcessCDR(1,14771495,1,1,2) [2025-03-27 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771495', 'tblTempUsageDetail_20' ) start [2025-03-27 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771495', 'tblTempUsageDetail_20' ) end [2025-03-27 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:44:22] Production.INFO: ==19738== Releasing lock... [2025-03-27 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:44:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-27 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:45:06 [end_date_ymd] => 2025-03-27 03:45:06 [RateCDR] => 1 ) [2025-03-27 03:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:45:06' and `end` < '2025-03-27 03:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:45:19] Production.INFO: count ==424 [2025-03-27 03:45:19] Production.ERROR: pbx CDR StartTime 2025-03-27 00:45:06 - End Time 2025-03-27 03:45:06 [2025-03-27 03:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771500', 'tblTempUsageDetail_20' ) start [2025-03-27 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771500', 'tblTempUsageDetail_20' ) end [2025-03-27 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771500', 'tblTempVendorCDR_20' ) start [2025-03-27 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771500', 'tblTempVendorCDR_20' ) end [2025-03-27 03:45:19] Production.INFO: ProcessCDR(1,14771500,1,1,2) [2025-03-27 03:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771500', 'tblTempUsageDetail_20' ) start [2025-03-27 03:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771500', 'tblTempUsageDetail_20' ) end [2025-03-27 03:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:45:23] Production.INFO: ==19811== Releasing lock... [2025-03-27 03:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:45:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-27 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:46:06 [end_date_ymd] => 2025-03-27 03:46:06 [RateCDR] => 1 ) [2025-03-27 03:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:46:06' and `end` < '2025-03-27 03:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:46:18] Production.INFO: count ==424 [2025-03-27 03:46:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:46:06 - End Time 2025-03-27 03:46:06 [2025-03-27 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771505', 'tblTempUsageDetail_20' ) start [2025-03-27 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771505', 'tblTempUsageDetail_20' ) end [2025-03-27 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771505', 'tblTempVendorCDR_20' ) start [2025-03-27 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771505', 'tblTempVendorCDR_20' ) end [2025-03-27 03:46:18] Production.INFO: ProcessCDR(1,14771505,1,1,2) [2025-03-27 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771505', 'tblTempUsageDetail_20' ) start [2025-03-27 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771505', 'tblTempUsageDetail_20' ) end [2025-03-27 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:46:22] Production.INFO: ==19885== Releasing lock... [2025-03-27 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:46:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-27 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:47:05 [end_date_ymd] => 2025-03-27 03:47:05 [RateCDR] => 1 ) [2025-03-27 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:47:05' and `end` < '2025-03-27 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:47:17] Production.INFO: count ==424 [2025-03-27 03:47:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:47:05 - End Time 2025-03-27 03:47:05 [2025-03-27 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771510', 'tblTempUsageDetail_20' ) start [2025-03-27 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771510', 'tblTempUsageDetail_20' ) end [2025-03-27 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771510', 'tblTempVendorCDR_20' ) start [2025-03-27 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771510', 'tblTempVendorCDR_20' ) end [2025-03-27 03:47:18] Production.INFO: ProcessCDR(1,14771510,1,1,2) [2025-03-27 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771510', 'tblTempUsageDetail_20' ) start [2025-03-27 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771510', 'tblTempUsageDetail_20' ) end [2025-03-27 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:47:22] Production.INFO: ==19958== Releasing lock... [2025-03-27 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:47:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-27 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:48:06 [end_date_ymd] => 2025-03-27 03:48:06 [RateCDR] => 1 ) [2025-03-27 03:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:48:06' and `end` < '2025-03-27 03:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:48:18] Production.INFO: count ==419 [2025-03-27 03:48:19] Production.ERROR: pbx CDR StartTime 2025-03-27 00:48:06 - End Time 2025-03-27 03:48:06 [2025-03-27 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771515', 'tblTempUsageDetail_20' ) start [2025-03-27 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771515', 'tblTempUsageDetail_20' ) end [2025-03-27 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771515', 'tblTempVendorCDR_20' ) start [2025-03-27 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771515', 'tblTempVendorCDR_20' ) end [2025-03-27 03:48:19] Production.INFO: ProcessCDR(1,14771515,1,1,2) [2025-03-27 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771515', 'tblTempUsageDetail_20' ) start [2025-03-27 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771515', 'tblTempUsageDetail_20' ) end [2025-03-27 03:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:48:23] Production.INFO: ==20031== Releasing lock... [2025-03-27 03:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:48:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-27 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:49:05 [end_date_ymd] => 2025-03-27 03:49:05 [RateCDR] => 1 ) [2025-03-27 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:49:05' and `end` < '2025-03-27 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:49:18] Production.INFO: count ==417 [2025-03-27 03:49:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:49:05 - End Time 2025-03-27 03:49:05 [2025-03-27 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771520', 'tblTempUsageDetail_20' ) start [2025-03-27 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771520', 'tblTempUsageDetail_20' ) end [2025-03-27 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771520', 'tblTempVendorCDR_20' ) start [2025-03-27 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771520', 'tblTempVendorCDR_20' ) end [2025-03-27 03:49:18] Production.INFO: ProcessCDR(1,14771520,1,1,2) [2025-03-27 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771520', 'tblTempUsageDetail_20' ) start [2025-03-27 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771520', 'tblTempUsageDetail_20' ) end [2025-03-27 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:49:22] Production.INFO: ==20146== Releasing lock... [2025-03-27 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:49:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-27 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:50:07 [end_date_ymd] => 2025-03-27 03:50:07 [RateCDR] => 1 ) [2025-03-27 03:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:50:07' and `end` < '2025-03-27 03:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:50:19] Production.INFO: count ==407 [2025-03-27 03:50:19] Production.ERROR: pbx CDR StartTime 2025-03-27 00:50:07 - End Time 2025-03-27 03:50:07 [2025-03-27 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771526', 'tblTempUsageDetail_20' ) start [2025-03-27 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771526', 'tblTempUsageDetail_20' ) end [2025-03-27 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771526', 'tblTempVendorCDR_20' ) start [2025-03-27 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771526', 'tblTempVendorCDR_20' ) end [2025-03-27 03:50:19] Production.INFO: ProcessCDR(1,14771526,1,1,2) [2025-03-27 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771526', 'tblTempUsageDetail_20' ) start [2025-03-27 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771526', 'tblTempUsageDetail_20' ) end [2025-03-27 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:50:23] Production.INFO: ==20220== Releasing lock... [2025-03-27 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:50:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-27 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:51:06 [end_date_ymd] => 2025-03-27 03:51:06 [RateCDR] => 1 ) [2025-03-27 03:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:51:06' and `end` < '2025-03-27 03:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:51:18] Production.INFO: count ==407 [2025-03-27 03:51:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:51:06 - End Time 2025-03-27 03:51:06 [2025-03-27 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771531', 'tblTempUsageDetail_20' ) start [2025-03-27 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771531', 'tblTempUsageDetail_20' ) end [2025-03-27 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771531', 'tblTempVendorCDR_20' ) start [2025-03-27 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771531', 'tblTempVendorCDR_20' ) end [2025-03-27 03:51:18] Production.INFO: ProcessCDR(1,14771531,1,1,2) [2025-03-27 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771531', 'tblTempUsageDetail_20' ) start [2025-03-27 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771531', 'tblTempUsageDetail_20' ) end [2025-03-27 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:51:22] Production.INFO: ==20291== Releasing lock... [2025-03-27 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:51:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-27 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:52:06 [end_date_ymd] => 2025-03-27 03:52:06 [RateCDR] => 1 ) [2025-03-27 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:52:06' and `end` < '2025-03-27 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:52:18] Production.INFO: count ==407 [2025-03-27 03:52:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:52:06 - End Time 2025-03-27 03:52:06 [2025-03-27 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771536', 'tblTempUsageDetail_20' ) start [2025-03-27 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771536', 'tblTempUsageDetail_20' ) end [2025-03-27 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771536', 'tblTempVendorCDR_20' ) start [2025-03-27 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771536', 'tblTempVendorCDR_20' ) end [2025-03-27 03:52:18] Production.INFO: ProcessCDR(1,14771536,1,1,2) [2025-03-27 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771536', 'tblTempUsageDetail_20' ) start [2025-03-27 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771536', 'tblTempUsageDetail_20' ) end [2025-03-27 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:52:22] Production.INFO: ==20363== Releasing lock... [2025-03-27 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:52:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-27 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:53:05 [end_date_ymd] => 2025-03-27 03:53:05 [RateCDR] => 1 ) [2025-03-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-03-27 00:53:05' and `end` < '2025-03-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-03-27 03:53:18] Production.INFO: count ==407 [2025-03-27 03:53:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:53:05 - End Time 2025-03-27 03:53:05 [2025-03-27 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771541', 'tblTempUsageDetail_20' ) start [2025-03-27 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771541', 'tblTempUsageDetail_20' ) end [2025-03-27 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771541', 'tblTempVendorCDR_20' ) start [2025-03-27 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771541', 'tblTempVendorCDR_20' ) end [2025-03-27 03:53:18] Production.INFO: ProcessCDR(1,14771541,1,1,2) [2025-03-27 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771541', 'tblTempUsageDetail_20' ) start [2025-03-27 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771541', 'tblTempUsageDetail_20' ) end [2025-03-27 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:53:22] Production.INFO: ==20440== Releasing lock... [2025-03-27 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:53:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-27 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:54:06 [end_date_ymd] => 2025-03-27 03:54:06 [RateCDR] => 1 ) [2025-03-27 03:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:54:06' and `end` < '2025-03-27 03:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:54:19] Production.INFO: count ==407 [2025-03-27 03:54:19] Production.ERROR: pbx CDR StartTime 2025-03-27 00:54:06 - End Time 2025-03-27 03:54:06 [2025-03-27 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771546', 'tblTempUsageDetail_20' ) start [2025-03-27 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771546', 'tblTempUsageDetail_20' ) end [2025-03-27 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771546', 'tblTempVendorCDR_20' ) start [2025-03-27 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771546', 'tblTempVendorCDR_20' ) end [2025-03-27 03:54:19] Production.INFO: ProcessCDR(1,14771546,1,1,2) [2025-03-27 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771546', 'tblTempUsageDetail_20' ) start [2025-03-27 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771546', 'tblTempUsageDetail_20' ) end [2025-03-27 03:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:54:23] Production.INFO: ==20512== Releasing lock... [2025-03-27 03:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:54:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-27 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:55:05 [end_date_ymd] => 2025-03-27 03:55:05 [RateCDR] => 1 ) [2025-03-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-03-27 00:55:05' and `end` < '2025-03-27 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:55:18] Production.INFO: count ==407 [2025-03-27 03:55:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:55:05 - End Time 2025-03-27 03:55:05 [2025-03-27 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771551', 'tblTempUsageDetail_20' ) start [2025-03-27 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771551', 'tblTempUsageDetail_20' ) end [2025-03-27 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771551', 'tblTempVendorCDR_20' ) start [2025-03-27 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771551', 'tblTempVendorCDR_20' ) end [2025-03-27 03:55:18] Production.INFO: ProcessCDR(1,14771551,1,1,2) [2025-03-27 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771551', 'tblTempUsageDetail_20' ) start [2025-03-27 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771551', 'tblTempUsageDetail_20' ) end [2025-03-27 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:55:22] Production.INFO: ==20583== Releasing lock... [2025-03-27 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:55:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-27 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:56:06 [end_date_ymd] => 2025-03-27 03:56:06 [RateCDR] => 1 ) [2025-03-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-03-27 00:56:06' and `end` < '2025-03-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-03-27 03:56:18] Production.INFO: count ==394 [2025-03-27 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:56:06 - End Time 2025-03-27 03:56:06 [2025-03-27 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771556', 'tblTempUsageDetail_20' ) start [2025-03-27 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771556', 'tblTempUsageDetail_20' ) end [2025-03-27 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771556', 'tblTempVendorCDR_20' ) start [2025-03-27 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771556', 'tblTempVendorCDR_20' ) end [2025-03-27 03:56:19] Production.INFO: ProcessCDR(1,14771556,1,1,2) [2025-03-27 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771556', 'tblTempUsageDetail_20' ) start [2025-03-27 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771556', 'tblTempUsageDetail_20' ) end [2025-03-27 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:56:22] Production.INFO: ==20655== Releasing lock... [2025-03-27 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:56:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-27 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:57:05 [end_date_ymd] => 2025-03-27 03:57:05 [RateCDR] => 1 ) [2025-03-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-03-27 00:57:05' and `end` < '2025-03-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-03-27 03:57:18] Production.INFO: count ==394 [2025-03-27 03:57:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:57:05 - End Time 2025-03-27 03:57:05 [2025-03-27 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771561', 'tblTempUsageDetail_20' ) start [2025-03-27 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771561', 'tblTempUsageDetail_20' ) end [2025-03-27 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771561', 'tblTempVendorCDR_20' ) start [2025-03-27 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771561', 'tblTempVendorCDR_20' ) end [2025-03-27 03:57:18] Production.INFO: ProcessCDR(1,14771561,1,1,2) [2025-03-27 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771561', 'tblTempUsageDetail_20' ) start [2025-03-27 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771561', 'tblTempUsageDetail_20' ) end [2025-03-27 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:57:22] Production.INFO: ==20729== Releasing lock... [2025-03-27 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:57:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-27 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:58:06 [end_date_ymd] => 2025-03-27 03:58:06 [RateCDR] => 1 ) [2025-03-27 03:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:58:06' and `end` < '2025-03-27 03:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:58:18] Production.INFO: count ==393 [2025-03-27 03:58:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:58:06 - End Time 2025-03-27 03:58:06 [2025-03-27 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771566', 'tblTempUsageDetail_20' ) start [2025-03-27 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771566', 'tblTempUsageDetail_20' ) end [2025-03-27 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771566', 'tblTempVendorCDR_20' ) start [2025-03-27 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771566', 'tblTempVendorCDR_20' ) end [2025-03-27 03:58:18] Production.INFO: ProcessCDR(1,14771566,1,1,2) [2025-03-27 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771566', 'tblTempUsageDetail_20' ) start [2025-03-27 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771566', 'tblTempUsageDetail_20' ) end [2025-03-27 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:58:22] Production.INFO: ==20802== Releasing lock... [2025-03-27 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:58:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-27 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 00:59:05 [end_date_ymd] => 2025-03-27 03:59:05 [RateCDR] => 1 ) [2025-03-27 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 00:59:05' and `end` < '2025-03-27 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 03:59:17] Production.INFO: count ==387 [2025-03-27 03:59:18] Production.ERROR: pbx CDR StartTime 2025-03-27 00:59:05 - End Time 2025-03-27 03:59:05 [2025-03-27 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771571', 'tblTempUsageDetail_20' ) start [2025-03-27 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771571', 'tblTempUsageDetail_20' ) end [2025-03-27 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771571', 'tblTempVendorCDR_20' ) start [2025-03-27 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771571', 'tblTempVendorCDR_20' ) end [2025-03-27 03:59:18] Production.INFO: ProcessCDR(1,14771571,1,1,2) [2025-03-27 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771571', 'tblTempUsageDetail_20' ) start [2025-03-27 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771571', 'tblTempUsageDetail_20' ) end [2025-03-27 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 03:59:21] Production.INFO: ==20877== Releasing lock... [2025-03-27 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 03:59:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-27 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:00:07 [end_date_ymd] => 2025-03-27 04:00:07 [RateCDR] => 1 ) [2025-03-27 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:00:07' and `end` < '2025-03-27 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:00:19] Production.INFO: count ==358 [2025-03-27 04:00:20] Production.ERROR: pbx CDR StartTime 2025-03-27 01:00:07 - End Time 2025-03-27 04:00:07 [2025-03-27 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771577', 'tblTempUsageDetail_20' ) start [2025-03-27 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771577', 'tblTempUsageDetail_20' ) end [2025-03-27 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771577', 'tblTempVendorCDR_20' ) start [2025-03-27 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771577', 'tblTempVendorCDR_20' ) end [2025-03-27 04:00:20] Production.INFO: ProcessCDR(1,14771577,1,1,2) [2025-03-27 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771577', 'tblTempUsageDetail_20' ) start [2025-03-27 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771577', 'tblTempUsageDetail_20' ) end [2025-03-27 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:00:23] Production.INFO: ==20958== Releasing lock... [2025-03-27 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:00:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-27 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:01:06 [end_date_ymd] => 2025-03-27 04:01:06 [RateCDR] => 1 ) [2025-03-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-03-27 01:01:06' and `end` < '2025-03-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-03-27 04:01:18] Production.INFO: count ==338 [2025-03-27 04:01:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:01:06 - End Time 2025-03-27 04:01:06 [2025-03-27 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771583', 'tblTempUsageDetail_20' ) start [2025-03-27 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771583', 'tblTempUsageDetail_20' ) end [2025-03-27 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771583', 'tblTempVendorCDR_20' ) start [2025-03-27 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771583', 'tblTempVendorCDR_20' ) end [2025-03-27 04:01:18] Production.INFO: ProcessCDR(1,14771583,1,1,2) [2025-03-27 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771583', 'tblTempUsageDetail_20' ) start [2025-03-27 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771583', 'tblTempUsageDetail_20' ) end [2025-03-27 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:01:22] Production.INFO: ==21051== Releasing lock... [2025-03-27 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:01:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-27 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:02:06 [end_date_ymd] => 2025-03-27 04:02:06 [RateCDR] => 1 ) [2025-03-27 04:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:02:06' and `end` < '2025-03-27 04:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:02:18] Production.INFO: count ==338 [2025-03-27 04:02:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:02:06 - End Time 2025-03-27 04:02:06 [2025-03-27 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771588', 'tblTempUsageDetail_20' ) start [2025-03-27 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771588', 'tblTempUsageDetail_20' ) end [2025-03-27 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771588', 'tblTempVendorCDR_20' ) start [2025-03-27 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771588', 'tblTempVendorCDR_20' ) end [2025-03-27 04:02:18] Production.INFO: ProcessCDR(1,14771588,1,1,2) [2025-03-27 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771588', 'tblTempUsageDetail_20' ) start [2025-03-27 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771588', 'tblTempUsageDetail_20' ) end [2025-03-27 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:02:22] Production.INFO: ==21128== Releasing lock... [2025-03-27 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:02:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-27 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:03:05 [end_date_ymd] => 2025-03-27 04:03:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:03:05' and `end` < '2025-03-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-03-27 04:03:18] Production.INFO: count ==324 [2025-03-27 04:03:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:03:05 - End Time 2025-03-27 04:03:05 [2025-03-27 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771593', 'tblTempUsageDetail_20' ) start [2025-03-27 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771593', 'tblTempUsageDetail_20' ) end [2025-03-27 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771593', 'tblTempVendorCDR_20' ) start [2025-03-27 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771593', 'tblTempVendorCDR_20' ) end [2025-03-27 04:03:18] Production.INFO: ProcessCDR(1,14771593,1,1,2) [2025-03-27 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771593', 'tblTempUsageDetail_20' ) start [2025-03-27 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771593', 'tblTempUsageDetail_20' ) end [2025-03-27 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:03:22] Production.INFO: ==21205== Releasing lock... [2025-03-27 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:03:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-27 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:04:05 [end_date_ymd] => 2025-03-27 04:04:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:04:05' and `end` < '2025-03-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-03-27 04:04:18] Production.INFO: count ==324 [2025-03-27 04:04:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:04:05 - End Time 2025-03-27 04:04:05 [2025-03-27 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771598', 'tblTempUsageDetail_20' ) start [2025-03-27 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771598', 'tblTempUsageDetail_20' ) end [2025-03-27 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771598', 'tblTempVendorCDR_20' ) start [2025-03-27 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771598', 'tblTempVendorCDR_20' ) end [2025-03-27 04:04:18] Production.INFO: ProcessCDR(1,14771598,1,1,2) [2025-03-27 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771598', 'tblTempUsageDetail_20' ) start [2025-03-27 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771598', 'tblTempUsageDetail_20' ) end [2025-03-27 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:04:21] Production.INFO: ==21283== Releasing lock... [2025-03-27 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:04:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-27 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:05:05 [end_date_ymd] => 2025-03-27 04:05:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:05:05' and `end` < '2025-03-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-03-27 04:05:17] Production.INFO: count ==322 [2025-03-27 04:05:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:05:05 - End Time 2025-03-27 04:05:05 [2025-03-27 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771603', 'tblTempUsageDetail_20' ) start [2025-03-27 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771603', 'tblTempUsageDetail_20' ) end [2025-03-27 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771603', 'tblTempVendorCDR_20' ) start [2025-03-27 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771603', 'tblTempVendorCDR_20' ) end [2025-03-27 04:05:18] Production.INFO: ProcessCDR(1,14771603,1,1,2) [2025-03-27 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771603', 'tblTempUsageDetail_20' ) start [2025-03-27 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771603', 'tblTempUsageDetail_20' ) end [2025-03-27 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:05:21] Production.INFO: ==21402== Releasing lock... [2025-03-27 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:05:21] Production.INFO: 31 MB #Memory Used# [2025-03-27 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:06:06 [end_date_ymd] => 2025-03-27 04:06:06 [RateCDR] => 1 ) [2025-03-27 04:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:06:06' and `end` < '2025-03-27 04:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:06:18] Production.INFO: count ==322 [2025-03-27 04:06:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:06:06 - End Time 2025-03-27 04:06:06 [2025-03-27 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771608', 'tblTempUsageDetail_20' ) start [2025-03-27 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771608', 'tblTempUsageDetail_20' ) end [2025-03-27 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771608', 'tblTempVendorCDR_20' ) start [2025-03-27 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771608', 'tblTempVendorCDR_20' ) end [2025-03-27 04:06:18] Production.INFO: ProcessCDR(1,14771608,1,1,2) [2025-03-27 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771608', 'tblTempUsageDetail_20' ) start [2025-03-27 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771608', 'tblTempUsageDetail_20' ) end [2025-03-27 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:06:22] Production.INFO: ==21479== Releasing lock... [2025-03-27 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:06:22] Production.INFO: 31 MB #Memory Used# [2025-03-27 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:07:05 [end_date_ymd] => 2025-03-27 04:07:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:07:05' and `end` < '2025-03-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-03-27 04:07:18] Production.INFO: count ==321 [2025-03-27 04:07:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:07:05 - End Time 2025-03-27 04:07:05 [2025-03-27 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771613', 'tblTempUsageDetail_20' ) start [2025-03-27 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771613', 'tblTempUsageDetail_20' ) end [2025-03-27 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771613', 'tblTempVendorCDR_20' ) start [2025-03-27 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771613', 'tblTempVendorCDR_20' ) end [2025-03-27 04:07:18] Production.INFO: ProcessCDR(1,14771613,1,1,2) [2025-03-27 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771613', 'tblTempUsageDetail_20' ) start [2025-03-27 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771613', 'tblTempUsageDetail_20' ) end [2025-03-27 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:07:21] Production.INFO: ==21556== Releasing lock... [2025-03-27 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:07:21] Production.INFO: 31 MB #Memory Used# [2025-03-27 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:08:06 [end_date_ymd] => 2025-03-27 04:08:06 [RateCDR] => 1 ) [2025-03-27 04:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:08:06' and `end` < '2025-03-27 04:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:08:19] Production.INFO: count ==321 [2025-03-27 04:08:19] Production.ERROR: pbx CDR StartTime 2025-03-27 01:08:06 - End Time 2025-03-27 04:08:06 [2025-03-27 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771618', 'tblTempUsageDetail_20' ) start [2025-03-27 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771618', 'tblTempUsageDetail_20' ) end [2025-03-27 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771618', 'tblTempVendorCDR_20' ) start [2025-03-27 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771618', 'tblTempVendorCDR_20' ) end [2025-03-27 04:08:19] Production.INFO: ProcessCDR(1,14771618,1,1,2) [2025-03-27 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771618', 'tblTempUsageDetail_20' ) start [2025-03-27 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771618', 'tblTempUsageDetail_20' ) end [2025-03-27 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:08:22] Production.INFO: ==21637== Releasing lock... [2025-03-27 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:08:22] Production.INFO: 31 MB #Memory Used# [2025-03-27 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:09:05 [end_date_ymd] => 2025-03-27 04:09:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:09:05' and `end` < '2025-03-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-03-27 04:09:18] Production.INFO: count ==316 [2025-03-27 04:09:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:09:05 - End Time 2025-03-27 04:09:05 [2025-03-27 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771623', 'tblTempUsageDetail_20' ) start [2025-03-27 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771623', 'tblTempUsageDetail_20' ) end [2025-03-27 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771623', 'tblTempVendorCDR_20' ) start [2025-03-27 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771623', 'tblTempVendorCDR_20' ) end [2025-03-27 04:09:18] Production.INFO: ProcessCDR(1,14771623,1,1,2) [2025-03-27 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771623', 'tblTempUsageDetail_20' ) start [2025-03-27 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771623', 'tblTempUsageDetail_20' ) end [2025-03-27 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:09:21] Production.INFO: ==21713== Releasing lock... [2025-03-27 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:09:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-27 04:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:10:07 [end_date_ymd] => 2025-03-27 04:10:07 [RateCDR] => 1 ) [2025-03-27 04:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:10:07' and `end` < '2025-03-27 04:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:10:19] Production.INFO: count ==310 [2025-03-27 04:10:19] Production.ERROR: pbx CDR StartTime 2025-03-27 01:10:07 - End Time 2025-03-27 04:10:07 [2025-03-27 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771629', 'tblTempUsageDetail_20' ) start [2025-03-27 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771629', 'tblTempUsageDetail_20' ) end [2025-03-27 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771629', 'tblTempVendorCDR_20' ) start [2025-03-27 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771629', 'tblTempVendorCDR_20' ) end [2025-03-27 04:10:19] Production.INFO: ProcessCDR(1,14771629,1,1,2) [2025-03-27 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771629', 'tblTempUsageDetail_20' ) start [2025-03-27 04:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771629', 'tblTempUsageDetail_20' ) end [2025-03-27 04:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:10:24] Production.INFO: ==21792== Releasing lock... [2025-03-27 04:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:10:24] Production.INFO: 30.75 MB #Memory Used# [2025-03-27 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:11:05 [end_date_ymd] => 2025-03-27 04:11:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:11:05' and `end` < '2025-03-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-03-27 04:11:17] Production.INFO: count ==300 [2025-03-27 04:11:17] Production.ERROR: pbx CDR StartTime 2025-03-27 01:11:05 - End Time 2025-03-27 04:11:05 [2025-03-27 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771634', 'tblTempUsageDetail_20' ) start [2025-03-27 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771634', 'tblTempUsageDetail_20' ) end [2025-03-27 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771634', 'tblTempVendorCDR_20' ) start [2025-03-27 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771634', 'tblTempVendorCDR_20' ) end [2025-03-27 04:11:18] Production.INFO: ProcessCDR(1,14771634,1,1,2) [2025-03-27 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771634', 'tblTempUsageDetail_20' ) start [2025-03-27 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771634', 'tblTempUsageDetail_20' ) end [2025-03-27 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:11:22] Production.INFO: ==21870== Releasing lock... [2025-03-27 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:11:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-27 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:12:05 [end_date_ymd] => 2025-03-27 04:12:05 [RateCDR] => 1 ) [2025-03-27 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:12:05' and `end` < '2025-03-27 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:12:18] Production.INFO: count ==300 [2025-03-27 04:12:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:12:05 - End Time 2025-03-27 04:12:05 [2025-03-27 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771639', 'tblTempUsageDetail_20' ) start [2025-03-27 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771639', 'tblTempUsageDetail_20' ) end [2025-03-27 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771639', 'tblTempVendorCDR_20' ) start [2025-03-27 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771639', 'tblTempVendorCDR_20' ) end [2025-03-27 04:12:18] Production.INFO: ProcessCDR(1,14771639,1,1,2) [2025-03-27 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771639', 'tblTempUsageDetail_20' ) start [2025-03-27 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771639', 'tblTempUsageDetail_20' ) end [2025-03-27 04:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:12:23] Production.INFO: ==21947== Releasing lock... [2025-03-27 04:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:12:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-27 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:13:05 [end_date_ymd] => 2025-03-27 04:13:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:13:05' and `end` < '2025-03-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-03-27 04:13:17] Production.INFO: count ==300 [2025-03-27 04:13:17] Production.ERROR: pbx CDR StartTime 2025-03-27 01:13:05 - End Time 2025-03-27 04:13:05 [2025-03-27 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771644', 'tblTempUsageDetail_20' ) start [2025-03-27 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771644', 'tblTempUsageDetail_20' ) end [2025-03-27 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771644', 'tblTempVendorCDR_20' ) start [2025-03-27 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771644', 'tblTempVendorCDR_20' ) end [2025-03-27 04:13:17] Production.INFO: ProcessCDR(1,14771644,1,1,2) [2025-03-27 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771644', 'tblTempUsageDetail_20' ) start [2025-03-27 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771644', 'tblTempUsageDetail_20' ) end [2025-03-27 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:13:21] Production.INFO: ==22027== Releasing lock... [2025-03-27 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:13:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-27 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:14:05 [end_date_ymd] => 2025-03-27 04:14:05 [RateCDR] => 1 ) [2025-03-27 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:14:05' and `end` < '2025-03-27 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:14:18] Production.INFO: count ==300 [2025-03-27 04:14:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:14:05 - End Time 2025-03-27 04:14:05 [2025-03-27 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771649', 'tblTempUsageDetail_20' ) start [2025-03-27 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771649', 'tblTempUsageDetail_20' ) end [2025-03-27 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771649', 'tblTempVendorCDR_20' ) start [2025-03-27 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771649', 'tblTempVendorCDR_20' ) end [2025-03-27 04:14:18] Production.INFO: ProcessCDR(1,14771649,1,1,2) [2025-03-27 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771649', 'tblTempUsageDetail_20' ) start [2025-03-27 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771649', 'tblTempUsageDetail_20' ) end [2025-03-27 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:14:21] Production.INFO: ==22105== Releasing lock... [2025-03-27 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-27 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:15:05 [end_date_ymd] => 2025-03-27 04:15:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:15:05' and `end` < '2025-03-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-03-27 04:15:18] Production.INFO: count ==301 [2025-03-27 04:15:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:15:05 - End Time 2025-03-27 04:15:05 [2025-03-27 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771654', 'tblTempUsageDetail_20' ) start [2025-03-27 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771654', 'tblTempUsageDetail_20' ) end [2025-03-27 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771654', 'tblTempVendorCDR_20' ) start [2025-03-27 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771654', 'tblTempVendorCDR_20' ) end [2025-03-27 04:15:18] Production.INFO: ProcessCDR(1,14771654,1,1,2) [2025-03-27 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771654', 'tblTempUsageDetail_20' ) start [2025-03-27 04:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771654', 'tblTempUsageDetail_20' ) end [2025-03-27 04:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:15:23] Production.INFO: ==22182== Releasing lock... [2025-03-27 04:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:15:23] Production.INFO: 31 MB #Memory Used# [2025-03-27 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:16:06 [end_date_ymd] => 2025-03-27 04:16:06 [RateCDR] => 1 ) [2025-03-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-03-27 01:16:06' and `end` < '2025-03-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-03-27 04:16:18] Production.INFO: count ==288 [2025-03-27 04:16:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:16:06 - End Time 2025-03-27 04:16:06 [2025-03-27 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771659', 'tblTempUsageDetail_20' ) start [2025-03-27 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771659', 'tblTempUsageDetail_20' ) end [2025-03-27 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771659', 'tblTempVendorCDR_20' ) start [2025-03-27 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771659', 'tblTempVendorCDR_20' ) end [2025-03-27 04:16:18] Production.INFO: ProcessCDR(1,14771659,1,1,2) [2025-03-27 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771659', 'tblTempUsageDetail_20' ) start [2025-03-27 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771659', 'tblTempUsageDetail_20' ) end [2025-03-27 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:16:22] Production.INFO: ==22259== Releasing lock... [2025-03-27 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:16:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-27 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:17:05 [end_date_ymd] => 2025-03-27 04:17:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:17:05' and `end` < '2025-03-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-03-27 04:17:18] Production.INFO: count ==286 [2025-03-27 04:17:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:17:05 - End Time 2025-03-27 04:17:05 [2025-03-27 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771664', 'tblTempUsageDetail_20' ) start [2025-03-27 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771664', 'tblTempUsageDetail_20' ) end [2025-03-27 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771664', 'tblTempVendorCDR_20' ) start [2025-03-27 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771664', 'tblTempVendorCDR_20' ) end [2025-03-27 04:17:18] Production.INFO: ProcessCDR(1,14771664,1,1,2) [2025-03-27 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771664', 'tblTempUsageDetail_20' ) start [2025-03-27 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771664', 'tblTempUsageDetail_20' ) end [2025-03-27 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:17:21] Production.INFO: ==22336== Releasing lock... [2025-03-27 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:17:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-27 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:18:06 [end_date_ymd] => 2025-03-27 04:18:06 [RateCDR] => 1 ) [2025-03-27 04:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:18:06' and `end` < '2025-03-27 04:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:18:18] Production.INFO: count ==283 [2025-03-27 04:18:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:18:06 - End Time 2025-03-27 04:18:06 [2025-03-27 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771669', 'tblTempUsageDetail_20' ) start [2025-03-27 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771669', 'tblTempUsageDetail_20' ) end [2025-03-27 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771669', 'tblTempVendorCDR_20' ) start [2025-03-27 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771669', 'tblTempVendorCDR_20' ) end [2025-03-27 04:18:18] Production.INFO: ProcessCDR(1,14771669,1,1,2) [2025-03-27 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771669', 'tblTempUsageDetail_20' ) start [2025-03-27 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771669', 'tblTempUsageDetail_20' ) end [2025-03-27 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:18:22] Production.INFO: ==22411== Releasing lock... [2025-03-27 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:18:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:19:05 [end_date_ymd] => 2025-03-27 04:19:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:19:05' and `end` < '2025-03-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-03-27 04:19:18] Production.INFO: count ==282 [2025-03-27 04:19:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:19:05 - End Time 2025-03-27 04:19:05 [2025-03-27 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771674', 'tblTempUsageDetail_20' ) start [2025-03-27 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771674', 'tblTempUsageDetail_20' ) end [2025-03-27 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771674', 'tblTempVendorCDR_20' ) start [2025-03-27 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771674', 'tblTempVendorCDR_20' ) end [2025-03-27 04:19:18] Production.INFO: ProcessCDR(1,14771674,1,1,2) [2025-03-27 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771674', 'tblTempUsageDetail_20' ) start [2025-03-27 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771674', 'tblTempUsageDetail_20' ) end [2025-03-27 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:19:22] Production.INFO: ==22487== Releasing lock... [2025-03-27 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:19:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-27 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:20:06 [end_date_ymd] => 2025-03-27 04:20:06 [RateCDR] => 1 ) [2025-03-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-03-27 01:20:06' and `end` < '2025-03-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-03-27 04:20:19] Production.INFO: count ==268 [2025-03-27 04:20:19] Production.ERROR: pbx CDR StartTime 2025-03-27 01:20:06 - End Time 2025-03-27 04:20:06 [2025-03-27 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771679', 'tblTempUsageDetail_20' ) start [2025-03-27 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771679', 'tblTempUsageDetail_20' ) end [2025-03-27 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771679', 'tblTempVendorCDR_20' ) start [2025-03-27 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771679', 'tblTempVendorCDR_20' ) end [2025-03-27 04:20:19] Production.INFO: ProcessCDR(1,14771679,1,1,2) [2025-03-27 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771679', 'tblTempUsageDetail_20' ) start [2025-03-27 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771679', 'tblTempUsageDetail_20' ) end [2025-03-27 04:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:20:23] Production.INFO: ==22604== Releasing lock... [2025-03-27 04:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:20:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-27 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:21:05 [end_date_ymd] => 2025-03-27 04:21:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:21:05' and `end` < '2025-03-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-03-27 04:21:18] Production.INFO: count ==247 [2025-03-27 04:21:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:21:05 - End Time 2025-03-27 04:21:05 [2025-03-27 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771685', 'tblTempUsageDetail_20' ) start [2025-03-27 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771685', 'tblTempUsageDetail_20' ) end [2025-03-27 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771685', 'tblTempVendorCDR_20' ) start [2025-03-27 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771685', 'tblTempVendorCDR_20' ) end [2025-03-27 04:21:18] Production.INFO: ProcessCDR(1,14771685,1,1,2) [2025-03-27 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771685', 'tblTempUsageDetail_20' ) start [2025-03-27 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771685', 'tblTempUsageDetail_20' ) end [2025-03-27 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:21:22] Production.INFO: ==22685== Releasing lock... [2025-03-27 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:21:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:22:05 [end_date_ymd] => 2025-03-27 04:22:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:22:05' and `end` < '2025-03-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-03-27 04:22:18] Production.INFO: count ==244 [2025-03-27 04:22:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:22:05 - End Time 2025-03-27 04:22:05 [2025-03-27 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771690', 'tblTempUsageDetail_20' ) start [2025-03-27 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771690', 'tblTempUsageDetail_20' ) end [2025-03-27 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771690', 'tblTempVendorCDR_20' ) start [2025-03-27 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771690', 'tblTempVendorCDR_20' ) end [2025-03-27 04:22:18] Production.INFO: ProcessCDR(1,14771690,1,1,2) [2025-03-27 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771690', 'tblTempUsageDetail_20' ) start [2025-03-27 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771690', 'tblTempUsageDetail_20' ) end [2025-03-27 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:22:22] Production.INFO: ==22759== Releasing lock... [2025-03-27 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:22:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:23:05 [end_date_ymd] => 2025-03-27 04:23:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:23:05' and `end` < '2025-03-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-03-27 04:23:17] Production.INFO: count ==243 [2025-03-27 04:23:17] Production.ERROR: pbx CDR StartTime 2025-03-27 01:23:05 - End Time 2025-03-27 04:23:05 [2025-03-27 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771695', 'tblTempUsageDetail_20' ) start [2025-03-27 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771695', 'tblTempUsageDetail_20' ) end [2025-03-27 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771695', 'tblTempVendorCDR_20' ) start [2025-03-27 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771695', 'tblTempVendorCDR_20' ) end [2025-03-27 04:23:17] Production.INFO: ProcessCDR(1,14771695,1,1,2) [2025-03-27 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771695', 'tblTempUsageDetail_20' ) start [2025-03-27 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771695', 'tblTempUsageDetail_20' ) end [2025-03-27 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:23:21] Production.INFO: ==22839== Releasing lock... [2025-03-27 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:23:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:24:06 [end_date_ymd] => 2025-03-27 04:24:06 [RateCDR] => 1 ) [2025-03-27 04:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:24:06' and `end` < '2025-03-27 04:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:24:18] Production.INFO: count ==243 [2025-03-27 04:24:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:24:06 - End Time 2025-03-27 04:24:06 [2025-03-27 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771700', 'tblTempUsageDetail_20' ) start [2025-03-27 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771700', 'tblTempUsageDetail_20' ) end [2025-03-27 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771700', 'tblTempVendorCDR_20' ) start [2025-03-27 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771700', 'tblTempVendorCDR_20' ) end [2025-03-27 04:24:18] Production.INFO: ProcessCDR(1,14771700,1,1,2) [2025-03-27 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771700', 'tblTempUsageDetail_20' ) start [2025-03-27 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771700', 'tblTempUsageDetail_20' ) end [2025-03-27 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:24:22] Production.INFO: ==22914== Releasing lock... [2025-03-27 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:24:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:25:05 [end_date_ymd] => 2025-03-27 04:25:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:25:05' and `end` < '2025-03-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-03-27 04:25:18] Production.INFO: count ==243 [2025-03-27 04:25:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:25:05 - End Time 2025-03-27 04:25:05 [2025-03-27 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771705', 'tblTempUsageDetail_20' ) start [2025-03-27 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771705', 'tblTempUsageDetail_20' ) end [2025-03-27 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771705', 'tblTempVendorCDR_20' ) start [2025-03-27 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771705', 'tblTempVendorCDR_20' ) end [2025-03-27 04:25:18] Production.INFO: ProcessCDR(1,14771705,1,1,2) [2025-03-27 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771705', 'tblTempUsageDetail_20' ) start [2025-03-27 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771705', 'tblTempUsageDetail_20' ) end [2025-03-27 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:25:22] Production.INFO: ==22991== Releasing lock... [2025-03-27 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:25:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:26:05 [end_date_ymd] => 2025-03-27 04:26:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:26:05' and `end` < '2025-03-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-03-27 04:26:18] Production.INFO: count ==243 [2025-03-27 04:26:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:26:05 - End Time 2025-03-27 04:26:05 [2025-03-27 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771710', 'tblTempUsageDetail_20' ) start [2025-03-27 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771710', 'tblTempUsageDetail_20' ) end [2025-03-27 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771710', 'tblTempVendorCDR_20' ) start [2025-03-27 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771710', 'tblTempVendorCDR_20' ) end [2025-03-27 04:26:18] Production.INFO: ProcessCDR(1,14771710,1,1,2) [2025-03-27 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771710', 'tblTempUsageDetail_20' ) start [2025-03-27 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771710', 'tblTempUsageDetail_20' ) end [2025-03-27 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:26:21] Production.INFO: ==23072== Releasing lock... [2025-03-27 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:27:05 [end_date_ymd] => 2025-03-27 04:27:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:27:05' and `end` < '2025-03-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-03-27 04:27:17] Production.INFO: count ==243 [2025-03-27 04:27:17] Production.ERROR: pbx CDR StartTime 2025-03-27 01:27:05 - End Time 2025-03-27 04:27:05 [2025-03-27 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771715', 'tblTempUsageDetail_20' ) start [2025-03-27 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771715', 'tblTempUsageDetail_20' ) end [2025-03-27 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771715', 'tblTempVendorCDR_20' ) start [2025-03-27 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771715', 'tblTempVendorCDR_20' ) end [2025-03-27 04:27:17] Production.INFO: ProcessCDR(1,14771715,1,1,2) [2025-03-27 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771715', 'tblTempUsageDetail_20' ) start [2025-03-27 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771715', 'tblTempUsageDetail_20' ) end [2025-03-27 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:27:21] Production.INFO: ==23155== Releasing lock... [2025-03-27 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:28:06 [end_date_ymd] => 2025-03-27 04:28:06 [RateCDR] => 1 ) [2025-03-27 04:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:28:06' and `end` < '2025-03-27 04:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:28:18] Production.INFO: count ==243 [2025-03-27 04:28:19] Production.ERROR: pbx CDR StartTime 2025-03-27 01:28:06 - End Time 2025-03-27 04:28:06 [2025-03-27 04:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771720', 'tblTempUsageDetail_20' ) start [2025-03-27 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771720', 'tblTempUsageDetail_20' ) end [2025-03-27 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771720', 'tblTempVendorCDR_20' ) start [2025-03-27 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771720', 'tblTempVendorCDR_20' ) end [2025-03-27 04:28:19] Production.INFO: ProcessCDR(1,14771720,1,1,2) [2025-03-27 04:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771720', 'tblTempUsageDetail_20' ) start [2025-03-27 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771720', 'tblTempUsageDetail_20' ) end [2025-03-27 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:28:22] Production.INFO: ==23238== Releasing lock... [2025-03-27 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:28:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:29:05 [end_date_ymd] => 2025-03-27 04:29:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:29:05' and `end` < '2025-03-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-03-27 04:29:17] Production.INFO: count ==243 [2025-03-27 04:29:17] Production.ERROR: pbx CDR StartTime 2025-03-27 01:29:05 - End Time 2025-03-27 04:29:05 [2025-03-27 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771725', 'tblTempUsageDetail_20' ) start [2025-03-27 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771725', 'tblTempUsageDetail_20' ) end [2025-03-27 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771725', 'tblTempVendorCDR_20' ) start [2025-03-27 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771725', 'tblTempVendorCDR_20' ) end [2025-03-27 04:29:17] Production.INFO: ProcessCDR(1,14771725,1,1,2) [2025-03-27 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771725', 'tblTempUsageDetail_20' ) start [2025-03-27 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771725', 'tblTempUsageDetail_20' ) end [2025-03-27 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:29:21] Production.INFO: ==23318== Releasing lock... [2025-03-27 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:30:07 [end_date_ymd] => 2025-03-27 04:30:07 [RateCDR] => 1 ) [2025-03-27 04:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:30:07' and `end` < '2025-03-27 04:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:30:20] Production.INFO: count ==247 [2025-03-27 04:30:20] Production.ERROR: pbx CDR StartTime 2025-03-27 01:30:07 - End Time 2025-03-27 04:30:07 [2025-03-27 04:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771732', 'tblTempUsageDetail_20' ) start [2025-03-27 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771732', 'tblTempUsageDetail_20' ) end [2025-03-27 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771732', 'tblTempVendorCDR_20' ) start [2025-03-27 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771732', 'tblTempVendorCDR_20' ) end [2025-03-27 04:30:20] Production.INFO: ProcessCDR(1,14771732,1,1,2) [2025-03-27 04:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771732', 'tblTempUsageDetail_20' ) start [2025-03-27 04:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771732', 'tblTempUsageDetail_20' ) end [2025-03-27 04:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:30:25] Production.INFO: ==23401== Releasing lock... [2025-03-27 04:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:30:25] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:31:05 [end_date_ymd] => 2025-03-27 04:31:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:31:05' and `end` < '2025-03-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-03-27 04:31:17] Production.INFO: count ==248 [2025-03-27 04:31:17] Production.ERROR: pbx CDR StartTime 2025-03-27 01:31:05 - End Time 2025-03-27 04:31:05 [2025-03-27 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771737', 'tblTempUsageDetail_20' ) start [2025-03-27 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771737', 'tblTempUsageDetail_20' ) end [2025-03-27 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771737', 'tblTempVendorCDR_20' ) start [2025-03-27 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771737', 'tblTempVendorCDR_20' ) end [2025-03-27 04:31:17] Production.INFO: ProcessCDR(1,14771737,1,1,2) [2025-03-27 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771737', 'tblTempUsageDetail_20' ) start [2025-03-27 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771737', 'tblTempUsageDetail_20' ) end [2025-03-27 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:31:22] Production.INFO: ==23561== Releasing lock... [2025-03-27 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:31:22] Production.INFO: 30 MB #Memory Used# [2025-03-27 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:32:05 [end_date_ymd] => 2025-03-27 04:32:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:32:05' and `end` < '2025-03-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-03-27 04:32:18] Production.INFO: count ==248 [2025-03-27 04:32:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:32:05 - End Time 2025-03-27 04:32:05 [2025-03-27 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771742', 'tblTempUsageDetail_20' ) start [2025-03-27 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771742', 'tblTempUsageDetail_20' ) end [2025-03-27 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771742', 'tblTempVendorCDR_20' ) start [2025-03-27 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771742', 'tblTempVendorCDR_20' ) end [2025-03-27 04:32:18] Production.INFO: ProcessCDR(1,14771742,1,1,2) [2025-03-27 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771742', 'tblTempUsageDetail_20' ) start [2025-03-27 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771742', 'tblTempUsageDetail_20' ) end [2025-03-27 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:32:21] Production.INFO: ==23639== Releasing lock... [2025-03-27 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:32:21] Production.INFO: 30 MB #Memory Used# [2025-03-27 04:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:33:06 [end_date_ymd] => 2025-03-27 04:33:06 [RateCDR] => 1 ) [2025-03-27 04:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:33:06' and `end` < '2025-03-27 04:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:33:18] Production.INFO: count ==248 [2025-03-27 04:33:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:33:06 - End Time 2025-03-27 04:33:06 [2025-03-27 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771747', 'tblTempUsageDetail_20' ) start [2025-03-27 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771747', 'tblTempUsageDetail_20' ) end [2025-03-27 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771747', 'tblTempVendorCDR_20' ) start [2025-03-27 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771747', 'tblTempVendorCDR_20' ) end [2025-03-27 04:33:18] Production.INFO: ProcessCDR(1,14771747,1,1,2) [2025-03-27 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771747', 'tblTempUsageDetail_20' ) start [2025-03-27 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771747', 'tblTempUsageDetail_20' ) end [2025-03-27 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:33:22] Production.INFO: ==23723== Releasing lock... [2025-03-27 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:33:22] Production.INFO: 30 MB #Memory Used# [2025-03-27 04:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:34:06 [end_date_ymd] => 2025-03-27 04:34:06 [RateCDR] => 1 ) [2025-03-27 04:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:34:06' and `end` < '2025-03-27 04:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:34:18] Production.INFO: count ==252 [2025-03-27 04:34:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:34:06 - End Time 2025-03-27 04:34:06 [2025-03-27 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771752', 'tblTempUsageDetail_20' ) start [2025-03-27 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771752', 'tblTempUsageDetail_20' ) end [2025-03-27 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771752', 'tblTempVendorCDR_20' ) start [2025-03-27 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771752', 'tblTempVendorCDR_20' ) end [2025-03-27 04:34:18] Production.INFO: ProcessCDR(1,14771752,1,1,2) [2025-03-27 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771752', 'tblTempUsageDetail_20' ) start [2025-03-27 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771752', 'tblTempUsageDetail_20' ) end [2025-03-27 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:34:22] Production.INFO: ==23801== Releasing lock... [2025-03-27 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:34:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-27 04:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:35:06 [end_date_ymd] => 2025-03-27 04:35:06 [RateCDR] => 1 ) [2025-03-27 04:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:35:06' and `end` < '2025-03-27 04:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:35:18] Production.INFO: count ==256 [2025-03-27 04:35:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:35:06 - End Time 2025-03-27 04:35:06 [2025-03-27 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771757', 'tblTempUsageDetail_20' ) start [2025-03-27 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771757', 'tblTempUsageDetail_20' ) end [2025-03-27 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771757', 'tblTempVendorCDR_20' ) start [2025-03-27 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771757', 'tblTempVendorCDR_20' ) end [2025-03-27 04:35:18] Production.INFO: ProcessCDR(1,14771757,1,1,2) [2025-03-27 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771757', 'tblTempUsageDetail_20' ) start [2025-03-27 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771757', 'tblTempUsageDetail_20' ) end [2025-03-27 04:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:35:22] Production.INFO: ==23922== Releasing lock... [2025-03-27 04:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:35:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:36:05 [end_date_ymd] => 2025-03-27 04:36:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:36:05' and `end` < '2025-03-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-03-27 04:36:18] Production.INFO: count ==256 [2025-03-27 04:36:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:36:05 - End Time 2025-03-27 04:36:05 [2025-03-27 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771762', 'tblTempUsageDetail_20' ) start [2025-03-27 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771762', 'tblTempUsageDetail_20' ) end [2025-03-27 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771762', 'tblTempVendorCDR_20' ) start [2025-03-27 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771762', 'tblTempVendorCDR_20' ) end [2025-03-27 04:36:18] Production.INFO: ProcessCDR(1,14771762,1,1,2) [2025-03-27 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771762', 'tblTempUsageDetail_20' ) start [2025-03-27 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771762', 'tblTempUsageDetail_20' ) end [2025-03-27 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:36:21] Production.INFO: ==24001== Releasing lock... [2025-03-27 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:36:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:37:05 [end_date_ymd] => 2025-03-27 04:37:05 [RateCDR] => 1 ) [2025-03-27 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:37:05' and `end` < '2025-03-27 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:37:18] Production.INFO: count ==256 [2025-03-27 04:37:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:37:05 - End Time 2025-03-27 04:37:05 [2025-03-27 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771767', 'tblTempUsageDetail_20' ) start [2025-03-27 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771767', 'tblTempUsageDetail_20' ) end [2025-03-27 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771767', 'tblTempVendorCDR_20' ) start [2025-03-27 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771767', 'tblTempVendorCDR_20' ) end [2025-03-27 04:37:18] Production.INFO: ProcessCDR(1,14771767,1,1,2) [2025-03-27 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771767', 'tblTempUsageDetail_20' ) start [2025-03-27 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771767', 'tblTempUsageDetail_20' ) end [2025-03-27 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:37:21] Production.INFO: ==24082== Releasing lock... [2025-03-27 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:37:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:38:05 [end_date_ymd] => 2025-03-27 04:38:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:38:05' and `end` < '2025-03-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-03-27 04:38:18] Production.INFO: count ==256 [2025-03-27 04:38:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:38:05 - End Time 2025-03-27 04:38:05 [2025-03-27 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771772', 'tblTempUsageDetail_20' ) start [2025-03-27 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771772', 'tblTempUsageDetail_20' ) end [2025-03-27 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771772', 'tblTempVendorCDR_20' ) start [2025-03-27 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771772', 'tblTempVendorCDR_20' ) end [2025-03-27 04:38:18] Production.INFO: ProcessCDR(1,14771772,1,1,2) [2025-03-27 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771772', 'tblTempUsageDetail_20' ) start [2025-03-27 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771772', 'tblTempUsageDetail_20' ) end [2025-03-27 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:38:21] Production.INFO: ==24161== Releasing lock... [2025-03-27 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:38:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:39:05 [end_date_ymd] => 2025-03-27 04:39:05 [RateCDR] => 1 ) [2025-03-27 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:39:05' and `end` < '2025-03-27 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:39:18] Production.INFO: count ==256 [2025-03-27 04:39:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:39:05 - End Time 2025-03-27 04:39:05 [2025-03-27 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771777', 'tblTempUsageDetail_20' ) start [2025-03-27 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771777', 'tblTempUsageDetail_20' ) end [2025-03-27 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771777', 'tblTempVendorCDR_20' ) start [2025-03-27 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771777', 'tblTempVendorCDR_20' ) end [2025-03-27 04:39:18] Production.INFO: ProcessCDR(1,14771777,1,1,2) [2025-03-27 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771777', 'tblTempUsageDetail_20' ) start [2025-03-27 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771777', 'tblTempUsageDetail_20' ) end [2025-03-27 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:39:21] Production.INFO: ==24240== Releasing lock... [2025-03-27 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:40:06 [end_date_ymd] => 2025-03-27 04:40:06 [RateCDR] => 1 ) [2025-03-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-03-27 01:40:06' and `end` < '2025-03-27 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:40:18] Production.INFO: count ==256 [2025-03-27 04:40:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:40:06 - End Time 2025-03-27 04:40:06 [2025-03-27 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771783', 'tblTempUsageDetail_20' ) start [2025-03-27 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771783', 'tblTempUsageDetail_20' ) end [2025-03-27 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771783', 'tblTempVendorCDR_20' ) start [2025-03-27 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771783', 'tblTempVendorCDR_20' ) end [2025-03-27 04:40:19] Production.INFO: ProcessCDR(1,14771783,1,1,2) [2025-03-27 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771783', 'tblTempUsageDetail_20' ) start [2025-03-27 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771783', 'tblTempUsageDetail_20' ) end [2025-03-27 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:40:22] Production.INFO: ==24317== Releasing lock... [2025-03-27 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:41:05 [end_date_ymd] => 2025-03-27 04:41:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:41:05' and `end` < '2025-03-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-03-27 04:41:18] Production.INFO: count ==240 [2025-03-27 04:41:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:41:05 - End Time 2025-03-27 04:41:05 [2025-03-27 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771788', 'tblTempUsageDetail_20' ) start [2025-03-27 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771788', 'tblTempUsageDetail_20' ) end [2025-03-27 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771788', 'tblTempVendorCDR_20' ) start [2025-03-27 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771788', 'tblTempVendorCDR_20' ) end [2025-03-27 04:41:18] Production.INFO: ProcessCDR(1,14771788,1,1,2) [2025-03-27 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771788', 'tblTempUsageDetail_20' ) start [2025-03-27 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771788', 'tblTempUsageDetail_20' ) end [2025-03-27 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:41:21] Production.INFO: ==24404== Releasing lock... [2025-03-27 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:41:21] Production.INFO: 30 MB #Memory Used# [2025-03-27 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:42:05 [end_date_ymd] => 2025-03-27 04:42:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:42:05' and `end` < '2025-03-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-03-27 04:42:17] Production.INFO: count ==240 [2025-03-27 04:42:17] Production.ERROR: pbx CDR StartTime 2025-03-27 01:42:05 - End Time 2025-03-27 04:42:05 [2025-03-27 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771793', 'tblTempUsageDetail_20' ) start [2025-03-27 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771793', 'tblTempUsageDetail_20' ) end [2025-03-27 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771793', 'tblTempVendorCDR_20' ) start [2025-03-27 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771793', 'tblTempVendorCDR_20' ) end [2025-03-27 04:42:17] Production.INFO: ProcessCDR(1,14771793,1,1,2) [2025-03-27 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771793', 'tblTempUsageDetail_20' ) start [2025-03-27 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771793', 'tblTempUsageDetail_20' ) end [2025-03-27 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:42:21] Production.INFO: ==24479== Releasing lock... [2025-03-27 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:42:21] Production.INFO: 30 MB #Memory Used# [2025-03-27 04:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:43:06 [end_date_ymd] => 2025-03-27 04:43:06 [RateCDR] => 1 ) [2025-03-27 04:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:43:06' and `end` < '2025-03-27 04:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:43:18] Production.INFO: count ==238 [2025-03-27 04:43:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:43:06 - End Time 2025-03-27 04:43:06 [2025-03-27 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771798', 'tblTempUsageDetail_20' ) start [2025-03-27 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771798', 'tblTempUsageDetail_20' ) end [2025-03-27 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771798', 'tblTempVendorCDR_20' ) start [2025-03-27 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771798', 'tblTempVendorCDR_20' ) end [2025-03-27 04:43:18] Production.INFO: ProcessCDR(1,14771798,1,1,2) [2025-03-27 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771798', 'tblTempUsageDetail_20' ) start [2025-03-27 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771798', 'tblTempUsageDetail_20' ) end [2025-03-27 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:43:22] Production.INFO: ==24560== Releasing lock... [2025-03-27 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:43:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-27 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:44:05 [end_date_ymd] => 2025-03-27 04:44:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:44:05' and `end` < '2025-03-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-03-27 04:44:17] Production.INFO: count ==238 [2025-03-27 04:44:17] Production.ERROR: pbx CDR StartTime 2025-03-27 01:44:05 - End Time 2025-03-27 04:44:05 [2025-03-27 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771803', 'tblTempUsageDetail_20' ) start [2025-03-27 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771803', 'tblTempUsageDetail_20' ) end [2025-03-27 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771803', 'tblTempVendorCDR_20' ) start [2025-03-27 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771803', 'tblTempVendorCDR_20' ) end [2025-03-27 04:44:17] Production.INFO: ProcessCDR(1,14771803,1,1,2) [2025-03-27 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771803', 'tblTempUsageDetail_20' ) start [2025-03-27 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771803', 'tblTempUsageDetail_20' ) end [2025-03-27 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:44:21] Production.INFO: ==24634== Releasing lock... [2025-03-27 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:44:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-27 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:45:05 [end_date_ymd] => 2025-03-27 04:45:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:45:05' and `end` < '2025-03-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-03-27 04:45:18] Production.INFO: count ==237 [2025-03-27 04:45:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:45:05 - End Time 2025-03-27 04:45:05 [2025-03-27 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771808', 'tblTempUsageDetail_20' ) start [2025-03-27 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771808', 'tblTempUsageDetail_20' ) end [2025-03-27 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771808', 'tblTempVendorCDR_20' ) start [2025-03-27 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771808', 'tblTempVendorCDR_20' ) end [2025-03-27 04:45:18] Production.INFO: ProcessCDR(1,14771808,1,1,2) [2025-03-27 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771808', 'tblTempUsageDetail_20' ) start [2025-03-27 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771808', 'tblTempUsageDetail_20' ) end [2025-03-27 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:45:21] Production.INFO: ==24718== Releasing lock... [2025-03-27 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-27 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:46:06 [end_date_ymd] => 2025-03-27 04:46:06 [RateCDR] => 1 ) [2025-03-27 04:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:46:06' and `end` < '2025-03-27 04:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:46:18] Production.INFO: count ==235 [2025-03-27 04:46:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:46:06 - End Time 2025-03-27 04:46:06 [2025-03-27 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771813', 'tblTempUsageDetail_20' ) start [2025-03-27 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771813', 'tblTempUsageDetail_20' ) end [2025-03-27 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771813', 'tblTempVendorCDR_20' ) start [2025-03-27 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771813', 'tblTempVendorCDR_20' ) end [2025-03-27 04:46:18] Production.INFO: ProcessCDR(1,14771813,1,1,2) [2025-03-27 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771813', 'tblTempUsageDetail_20' ) start [2025-03-27 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771813', 'tblTempUsageDetail_20' ) end [2025-03-27 04:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:46:22] Production.INFO: ==24794== Releasing lock... [2025-03-27 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:46:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:47:05 [end_date_ymd] => 2025-03-27 04:47:05 [RateCDR] => 1 ) [2025-03-27 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:47:05' and `end` < '2025-03-27 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:47:18] Production.INFO: count ==235 [2025-03-27 04:47:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:47:05 - End Time 2025-03-27 04:47:05 [2025-03-27 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771818', 'tblTempUsageDetail_20' ) start [2025-03-27 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771818', 'tblTempUsageDetail_20' ) end [2025-03-27 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771818', 'tblTempVendorCDR_20' ) start [2025-03-27 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771818', 'tblTempVendorCDR_20' ) end [2025-03-27 04:47:18] Production.INFO: ProcessCDR(1,14771818,1,1,2) [2025-03-27 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771818', 'tblTempUsageDetail_20' ) start [2025-03-27 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771818', 'tblTempUsageDetail_20' ) end [2025-03-27 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:47:22] Production.INFO: ==24885== Releasing lock... [2025-03-27 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:47:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:48:06 [end_date_ymd] => 2025-03-27 04:48:06 [RateCDR] => 1 ) [2025-03-27 04:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:48:06' and `end` < '2025-03-27 04:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:48:19] Production.INFO: count ==234 [2025-03-27 04:48:19] Production.ERROR: pbx CDR StartTime 2025-03-27 01:48:06 - End Time 2025-03-27 04:48:06 [2025-03-27 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771823', 'tblTempUsageDetail_20' ) start [2025-03-27 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771823', 'tblTempUsageDetail_20' ) end [2025-03-27 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771823', 'tblTempVendorCDR_20' ) start [2025-03-27 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771823', 'tblTempVendorCDR_20' ) end [2025-03-27 04:48:19] Production.INFO: ProcessCDR(1,14771823,1,1,2) [2025-03-27 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771823', 'tblTempUsageDetail_20' ) start [2025-03-27 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771823', 'tblTempUsageDetail_20' ) end [2025-03-27 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:48:22] Production.INFO: ==24965== Releasing lock... [2025-03-27 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:48:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:49:05 [end_date_ymd] => 2025-03-27 04:49:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:49:05' and `end` < '2025-03-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-03-27 04:49:18] Production.INFO: count ==234 [2025-03-27 04:49:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:49:05 - End Time 2025-03-27 04:49:05 [2025-03-27 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771828', 'tblTempUsageDetail_20' ) start [2025-03-27 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771828', 'tblTempUsageDetail_20' ) end [2025-03-27 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771828', 'tblTempVendorCDR_20' ) start [2025-03-27 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771828', 'tblTempVendorCDR_20' ) end [2025-03-27 04:49:18] Production.INFO: ProcessCDR(1,14771828,1,1,2) [2025-03-27 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771828', 'tblTempUsageDetail_20' ) start [2025-03-27 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771828', 'tblTempUsageDetail_20' ) end [2025-03-27 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:49:22] Production.INFO: ==25041== Releasing lock... [2025-03-27 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:49:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:50:06 [end_date_ymd] => 2025-03-27 04:50:06 [RateCDR] => 1 ) [2025-03-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-03-27 01:50:06' and `end` < '2025-03-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-03-27 04:50:19] Production.INFO: count ==226 [2025-03-27 04:50:19] Production.ERROR: pbx CDR StartTime 2025-03-27 01:50:06 - End Time 2025-03-27 04:50:06 [2025-03-27 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771834', 'tblTempUsageDetail_20' ) start [2025-03-27 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771834', 'tblTempUsageDetail_20' ) end [2025-03-27 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771834', 'tblTempVendorCDR_20' ) start [2025-03-27 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771834', 'tblTempVendorCDR_20' ) end [2025-03-27 04:50:19] Production.INFO: ProcessCDR(1,14771834,1,1,2) [2025-03-27 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771834', 'tblTempUsageDetail_20' ) start [2025-03-27 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771834', 'tblTempUsageDetail_20' ) end [2025-03-27 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:50:23] Production.INFO: ==25116== Releasing lock... [2025-03-27 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:50:23] Production.INFO: 30 MB #Memory Used# [2025-03-27 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:51:05 [end_date_ymd] => 2025-03-27 04:51:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:51:05' and `end` < '2025-03-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-03-27 04:51:18] Production.INFO: count ==226 [2025-03-27 04:51:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:51:05 - End Time 2025-03-27 04:51:05 [2025-03-27 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771839', 'tblTempUsageDetail_20' ) start [2025-03-27 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771839', 'tblTempUsageDetail_20' ) end [2025-03-27 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771839', 'tblTempVendorCDR_20' ) start [2025-03-27 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771839', 'tblTempVendorCDR_20' ) end [2025-03-27 04:51:18] Production.INFO: ProcessCDR(1,14771839,1,1,2) [2025-03-27 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771839', 'tblTempUsageDetail_20' ) start [2025-03-27 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771839', 'tblTempUsageDetail_20' ) end [2025-03-27 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:51:22] Production.INFO: ==25235== Releasing lock... [2025-03-27 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:51:22] Production.INFO: 30 MB #Memory Used# [2025-03-27 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:52:05 [end_date_ymd] => 2025-03-27 04:52:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:52:05' and `end` < '2025-03-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-03-27 04:52:18] Production.INFO: count ==226 [2025-03-27 04:52:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:52:05 - End Time 2025-03-27 04:52:05 [2025-03-27 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771844', 'tblTempUsageDetail_20' ) start [2025-03-27 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771844', 'tblTempUsageDetail_20' ) end [2025-03-27 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771844', 'tblTempVendorCDR_20' ) start [2025-03-27 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771844', 'tblTempVendorCDR_20' ) end [2025-03-27 04:52:18] Production.INFO: ProcessCDR(1,14771844,1,1,2) [2025-03-27 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771844', 'tblTempUsageDetail_20' ) start [2025-03-27 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771844', 'tblTempUsageDetail_20' ) end [2025-03-27 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:52:21] Production.INFO: ==25309== Releasing lock... [2025-03-27 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:52:21] Production.INFO: 30 MB #Memory Used# [2025-03-27 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:53:05 [end_date_ymd] => 2025-03-27 04:53:05 [RateCDR] => 1 ) [2025-03-27 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:53:05' and `end` < '2025-03-27 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:53:18] Production.INFO: count ==226 [2025-03-27 04:53:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:53:05 - End Time 2025-03-27 04:53:05 [2025-03-27 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771849', 'tblTempUsageDetail_20' ) start [2025-03-27 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771849', 'tblTempUsageDetail_20' ) end [2025-03-27 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771849', 'tblTempVendorCDR_20' ) start [2025-03-27 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771849', 'tblTempVendorCDR_20' ) end [2025-03-27 04:53:18] Production.INFO: ProcessCDR(1,14771849,1,1,2) [2025-03-27 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771849', 'tblTempUsageDetail_20' ) start [2025-03-27 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771849', 'tblTempUsageDetail_20' ) end [2025-03-27 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:53:22] Production.INFO: ==25406== Releasing lock... [2025-03-27 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:53:22] Production.INFO: 30 MB #Memory Used# [2025-03-27 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:54:05 [end_date_ymd] => 2025-03-27 04:54:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:54:05' and `end` < '2025-03-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-03-27 04:54:19] Production.INFO: count ==226 [2025-03-27 04:54:19] Production.ERROR: pbx CDR StartTime 2025-03-27 01:54:05 - End Time 2025-03-27 04:54:05 [2025-03-27 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771854', 'tblTempUsageDetail_20' ) start [2025-03-27 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771854', 'tblTempUsageDetail_20' ) end [2025-03-27 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771854', 'tblTempVendorCDR_20' ) start [2025-03-27 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771854', 'tblTempVendorCDR_20' ) end [2025-03-27 04:54:19] Production.INFO: ProcessCDR(1,14771854,1,1,2) [2025-03-27 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771854', 'tblTempUsageDetail_20' ) start [2025-03-27 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771854', 'tblTempUsageDetail_20' ) end [2025-03-27 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:54:22] Production.INFO: ==25481== Releasing lock... [2025-03-27 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:54:22] Production.INFO: 30 MB #Memory Used# [2025-03-27 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:55:05 [end_date_ymd] => 2025-03-27 04:55:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:55:05' and `end` < '2025-03-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-03-27 04:55:18] Production.INFO: count ==226 [2025-03-27 04:55:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:55:05 - End Time 2025-03-27 04:55:05 [2025-03-27 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771859', 'tblTempUsageDetail_20' ) start [2025-03-27 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771859', 'tblTempUsageDetail_20' ) end [2025-03-27 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771859', 'tblTempVendorCDR_20' ) start [2025-03-27 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771859', 'tblTempVendorCDR_20' ) end [2025-03-27 04:55:18] Production.INFO: ProcessCDR(1,14771859,1,1,2) [2025-03-27 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771859', 'tblTempUsageDetail_20' ) start [2025-03-27 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771859', 'tblTempUsageDetail_20' ) end [2025-03-27 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:55:21] Production.INFO: ==25558== Releasing lock... [2025-03-27 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:55:21] Production.INFO: 30 MB #Memory Used# [2025-03-27 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:56:06 [end_date_ymd] => 2025-03-27 04:56:06 [RateCDR] => 1 ) [2025-03-27 04:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:56:06' and `end` < '2025-03-27 04:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:56:18] Production.INFO: count ==221 [2025-03-27 04:56:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:56:06 - End Time 2025-03-27 04:56:06 [2025-03-27 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771864', 'tblTempUsageDetail_20' ) start [2025-03-27 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771864', 'tblTempUsageDetail_20' ) end [2025-03-27 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771864', 'tblTempVendorCDR_20' ) start [2025-03-27 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771864', 'tblTempVendorCDR_20' ) end [2025-03-27 04:56:18] Production.INFO: ProcessCDR(1,14771864,1,1,2) [2025-03-27 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771864', 'tblTempUsageDetail_20' ) start [2025-03-27 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771864', 'tblTempUsageDetail_20' ) end [2025-03-27 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:56:22] Production.INFO: ==25631== Releasing lock... [2025-03-27 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:56:22] Production.INFO: 30 MB #Memory Used# [2025-03-27 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:57:05 [end_date_ymd] => 2025-03-27 04:57:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:57:05' and `end` < '2025-03-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-03-27 04:57:18] Production.INFO: count ==221 [2025-03-27 04:57:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:57:05 - End Time 2025-03-27 04:57:05 [2025-03-27 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771869', 'tblTempUsageDetail_20' ) start [2025-03-27 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771869', 'tblTempUsageDetail_20' ) end [2025-03-27 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771869', 'tblTempVendorCDR_20' ) start [2025-03-27 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771869', 'tblTempVendorCDR_20' ) end [2025-03-27 04:57:18] Production.INFO: ProcessCDR(1,14771869,1,1,2) [2025-03-27 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771869', 'tblTempUsageDetail_20' ) start [2025-03-27 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771869', 'tblTempUsageDetail_20' ) end [2025-03-27 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:57:21] Production.INFO: ==25706== Releasing lock... [2025-03-27 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:57:21] Production.INFO: 30 MB #Memory Used# [2025-03-27 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:58:06 [end_date_ymd] => 2025-03-27 04:58:06 [RateCDR] => 1 ) [2025-03-27 04:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 01:58:06' and `end` < '2025-03-27 04:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 04:58:19] Production.INFO: count ==220 [2025-03-27 04:58:19] Production.ERROR: pbx CDR StartTime 2025-03-27 01:58:06 - End Time 2025-03-27 04:58:06 [2025-03-27 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771874', 'tblTempUsageDetail_20' ) start [2025-03-27 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771874', 'tblTempUsageDetail_20' ) end [2025-03-27 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771874', 'tblTempVendorCDR_20' ) start [2025-03-27 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771874', 'tblTempVendorCDR_20' ) end [2025-03-27 04:58:19] Production.INFO: ProcessCDR(1,14771874,1,1,2) [2025-03-27 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771874', 'tblTempUsageDetail_20' ) start [2025-03-27 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771874', 'tblTempUsageDetail_20' ) end [2025-03-27 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:58:23] Production.INFO: ==25780== Releasing lock... [2025-03-27 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:58:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-27 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 01:59:05 [end_date_ymd] => 2025-03-27 04:59:05 [RateCDR] => 1 ) [2025-03-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-03-27 01:59:05' and `end` < '2025-03-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-03-27 04:59:18] Production.INFO: count ==219 [2025-03-27 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-27 01:59:05 - End Time 2025-03-27 04:59:05 [2025-03-27 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771879', 'tblTempUsageDetail_20' ) start [2025-03-27 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771879', 'tblTempUsageDetail_20' ) end [2025-03-27 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771879', 'tblTempVendorCDR_20' ) start [2025-03-27 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771879', 'tblTempVendorCDR_20' ) end [2025-03-27 04:59:18] Production.INFO: ProcessCDR(1,14771879,1,1,2) [2025-03-27 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771879', 'tblTempUsageDetail_20' ) start [2025-03-27 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771879', 'tblTempUsageDetail_20' ) end [2025-03-27 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 04:59:21] Production.INFO: ==25870== Releasing lock... [2025-03-27 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 04:59:21] Production.INFO: 30 MB #Memory Used# [2025-03-27 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:00:06 [end_date_ymd] => 2025-03-27 05:00:06 [RateCDR] => 1 ) [2025-03-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-03-27 02:00:06' and `end` < '2025-03-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-03-27 05:00:20] Production.INFO: count ==216 [2025-03-27 05:00:20] Production.ERROR: pbx CDR StartTime 2025-03-27 02:00:06 - End Time 2025-03-27 05:00:06 [2025-03-27 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771884', 'tblTempUsageDetail_20' ) start [2025-03-27 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771884', 'tblTempUsageDetail_20' ) end [2025-03-27 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771884', 'tblTempVendorCDR_20' ) start [2025-03-27 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771884', 'tblTempVendorCDR_20' ) end [2025-03-27 05:00:20] Production.INFO: ProcessCDR(1,14771884,1,1,2) [2025-03-27 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771884', 'tblTempUsageDetail_20' ) start [2025-03-27 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771884', 'tblTempUsageDetail_20' ) end [2025-03-27 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:00:23] Production.INFO: ==25953== Releasing lock... [2025-03-27 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:00:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:01:05 [end_date_ymd] => 2025-03-27 05:01:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:01:05' and `end` < '2025-03-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-03-27 05:01:18] Production.INFO: count ==212 [2025-03-27 05:01:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:01:05 - End Time 2025-03-27 05:01:05 [2025-03-27 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771890', 'tblTempUsageDetail_20' ) start [2025-03-27 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771890', 'tblTempUsageDetail_20' ) end [2025-03-27 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771890', 'tblTempVendorCDR_20' ) start [2025-03-27 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771890', 'tblTempVendorCDR_20' ) end [2025-03-27 05:01:18] Production.INFO: ProcessCDR(1,14771890,1,1,2) [2025-03-27 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771890', 'tblTempUsageDetail_20' ) start [2025-03-27 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771890', 'tblTempUsageDetail_20' ) end [2025-03-27 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:01:22] Production.INFO: ==26054== Releasing lock... [2025-03-27 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:01:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-27 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:02:05 [end_date_ymd] => 2025-03-27 05:02:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:02:05' and `end` < '2025-03-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-03-27 05:02:18] Production.INFO: count ==212 [2025-03-27 05:02:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:02:05 - End Time 2025-03-27 05:02:05 [2025-03-27 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771895', 'tblTempUsageDetail_20' ) start [2025-03-27 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771895', 'tblTempUsageDetail_20' ) end [2025-03-27 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771895', 'tblTempVendorCDR_20' ) start [2025-03-27 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771895', 'tblTempVendorCDR_20' ) end [2025-03-27 05:02:18] Production.INFO: ProcessCDR(1,14771895,1,1,2) [2025-03-27 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771895', 'tblTempUsageDetail_20' ) start [2025-03-27 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771895', 'tblTempUsageDetail_20' ) end [2025-03-27 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:02:21] Production.INFO: ==26133== Releasing lock... [2025-03-27 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:02:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-27 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:03:05 [end_date_ymd] => 2025-03-27 05:03:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:03:05' and `end` < '2025-03-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-03-27 05:03:17] Production.INFO: count ==212 [2025-03-27 05:03:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:03:05 - End Time 2025-03-27 05:03:05 [2025-03-27 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771900', 'tblTempUsageDetail_20' ) start [2025-03-27 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771900', 'tblTempUsageDetail_20' ) end [2025-03-27 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771900', 'tblTempVendorCDR_20' ) start [2025-03-27 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771900', 'tblTempVendorCDR_20' ) end [2025-03-27 05:03:17] Production.INFO: ProcessCDR(1,14771900,1,1,2) [2025-03-27 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771900', 'tblTempUsageDetail_20' ) start [2025-03-27 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771900', 'tblTempUsageDetail_20' ) end [2025-03-27 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:03:21] Production.INFO: ==26215== Releasing lock... [2025-03-27 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:03:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-27 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:04:05 [end_date_ymd] => 2025-03-27 05:04:05 [RateCDR] => 1 ) [2025-03-27 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:04:05' and `end` < '2025-03-27 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:04:18] Production.INFO: count ==209 [2025-03-27 05:04:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:04:05 - End Time 2025-03-27 05:04:05 [2025-03-27 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771905', 'tblTempUsageDetail_20' ) start [2025-03-27 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771905', 'tblTempUsageDetail_20' ) end [2025-03-27 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771905', 'tblTempVendorCDR_20' ) start [2025-03-27 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771905', 'tblTempVendorCDR_20' ) end [2025-03-27 05:04:18] Production.INFO: ProcessCDR(1,14771905,1,1,2) [2025-03-27 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771905', 'tblTempUsageDetail_20' ) start [2025-03-27 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771905', 'tblTempUsageDetail_20' ) end [2025-03-27 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:04:22] Production.INFO: ==26298== Releasing lock... [2025-03-27 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:04:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-27 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:05:05 [end_date_ymd] => 2025-03-27 05:05:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:05:05' and `end` < '2025-03-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-03-27 05:05:17] Production.INFO: count ==213 [2025-03-27 05:05:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:05:05 - End Time 2025-03-27 05:05:05 [2025-03-27 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771910', 'tblTempUsageDetail_20' ) start [2025-03-27 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771910', 'tblTempUsageDetail_20' ) end [2025-03-27 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771910', 'tblTempVendorCDR_20' ) start [2025-03-27 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771910', 'tblTempVendorCDR_20' ) end [2025-03-27 05:05:17] Production.INFO: ProcessCDR(1,14771910,1,1,2) [2025-03-27 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771910', 'tblTempUsageDetail_20' ) start [2025-03-27 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771910', 'tblTempUsageDetail_20' ) end [2025-03-27 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:05:21] Production.INFO: ==26378== Releasing lock... [2025-03-27 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:05:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-27 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:06:05 [end_date_ymd] => 2025-03-27 05:06:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:06:05' and `end` < '2025-03-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-03-27 05:06:18] Production.INFO: count ==213 [2025-03-27 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:06:05 - End Time 2025-03-27 05:06:05 [2025-03-27 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771915', 'tblTempUsageDetail_20' ) start [2025-03-27 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771915', 'tblTempUsageDetail_20' ) end [2025-03-27 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771915', 'tblTempVendorCDR_20' ) start [2025-03-27 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771915', 'tblTempVendorCDR_20' ) end [2025-03-27 05:06:18] Production.INFO: ProcessCDR(1,14771915,1,1,2) [2025-03-27 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771915', 'tblTempUsageDetail_20' ) start [2025-03-27 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771915', 'tblTempUsageDetail_20' ) end [2025-03-27 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:06:21] Production.INFO: ==26496== Releasing lock... [2025-03-27 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:06:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-27 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:07:05 [end_date_ymd] => 2025-03-27 05:07:05 [RateCDR] => 1 ) [2025-03-27 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:07:05' and `end` < '2025-03-27 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:07:18] Production.INFO: count ==213 [2025-03-27 05:07:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:07:05 - End Time 2025-03-27 05:07:05 [2025-03-27 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771920', 'tblTempUsageDetail_20' ) start [2025-03-27 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771920', 'tblTempUsageDetail_20' ) end [2025-03-27 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771920', 'tblTempVendorCDR_20' ) start [2025-03-27 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771920', 'tblTempVendorCDR_20' ) end [2025-03-27 05:07:18] Production.INFO: ProcessCDR(1,14771920,1,1,2) [2025-03-27 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771920', 'tblTempUsageDetail_20' ) start [2025-03-27 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771920', 'tblTempUsageDetail_20' ) end [2025-03-27 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:07:21] Production.INFO: ==26583== Releasing lock... [2025-03-27 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:07:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-27 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:08:05 [end_date_ymd] => 2025-03-27 05:08:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:08:05' and `end` < '2025-03-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-03-27 05:08:18] Production.INFO: count ==213 [2025-03-27 05:08:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:08:05 - End Time 2025-03-27 05:08:05 [2025-03-27 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771925', 'tblTempUsageDetail_20' ) start [2025-03-27 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771925', 'tblTempUsageDetail_20' ) end [2025-03-27 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771925', 'tblTempVendorCDR_20' ) start [2025-03-27 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771925', 'tblTempVendorCDR_20' ) end [2025-03-27 05:08:18] Production.INFO: ProcessCDR(1,14771925,1,1,2) [2025-03-27 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771925', 'tblTempUsageDetail_20' ) start [2025-03-27 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771925', 'tblTempUsageDetail_20' ) end [2025-03-27 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:08:21] Production.INFO: ==26669== Releasing lock... [2025-03-27 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:08:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-27 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:09:05 [end_date_ymd] => 2025-03-27 05:09:05 [RateCDR] => 1 ) [2025-03-27 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:09:05' and `end` < '2025-03-27 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:09:17] Production.INFO: count ==213 [2025-03-27 05:09:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:09:05 - End Time 2025-03-27 05:09:05 [2025-03-27 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771930', 'tblTempUsageDetail_20' ) start [2025-03-27 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771930', 'tblTempUsageDetail_20' ) end [2025-03-27 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771930', 'tblTempVendorCDR_20' ) start [2025-03-27 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771930', 'tblTempVendorCDR_20' ) end [2025-03-27 05:09:17] Production.INFO: ProcessCDR(1,14771930,1,1,2) [2025-03-27 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771930', 'tblTempUsageDetail_20' ) start [2025-03-27 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771930', 'tblTempUsageDetail_20' ) end [2025-03-27 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:09:20] Production.INFO: ==26755== Releasing lock... [2025-03-27 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:09:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-27 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:10:05 [end_date_ymd] => 2025-03-27 05:10:05 [RateCDR] => 1 ) [2025-03-27 05:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:10:05' and `end` < '2025-03-27 05:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:10:18] Production.INFO: count ==206 [2025-03-27 05:10:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:10:05 - End Time 2025-03-27 05:10:05 [2025-03-27 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771936', 'tblTempUsageDetail_20' ) start [2025-03-27 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771936', 'tblTempUsageDetail_20' ) end [2025-03-27 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771936', 'tblTempVendorCDR_20' ) start [2025-03-27 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771936', 'tblTempVendorCDR_20' ) end [2025-03-27 05:10:18] Production.INFO: ProcessCDR(1,14771936,1,1,2) [2025-03-27 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771936', 'tblTempUsageDetail_20' ) start [2025-03-27 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771936', 'tblTempUsageDetail_20' ) end [2025-03-27 05:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:10:23] Production.INFO: ==26835== Releasing lock... [2025-03-27 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:10:23] Production.INFO: 30 MB #Memory Used# [2025-03-27 05:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:11:06 [end_date_ymd] => 2025-03-27 05:11:06 [RateCDR] => 1 ) [2025-03-27 05:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:11:06' and `end` < '2025-03-27 05:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:11:18] Production.INFO: count ==193 [2025-03-27 05:11:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:11:06 - End Time 2025-03-27 05:11:06 [2025-03-27 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771941', 'tblTempUsageDetail_20' ) start [2025-03-27 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771941', 'tblTempUsageDetail_20' ) end [2025-03-27 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771941', 'tblTempVendorCDR_20' ) start [2025-03-27 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771941', 'tblTempVendorCDR_20' ) end [2025-03-27 05:11:18] Production.INFO: ProcessCDR(1,14771941,1,1,2) [2025-03-27 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771941', 'tblTempUsageDetail_20' ) start [2025-03-27 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771941', 'tblTempUsageDetail_20' ) end [2025-03-27 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:11:22] Production.INFO: ==26912== Releasing lock... [2025-03-27 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:11:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-27 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:12:05 [end_date_ymd] => 2025-03-27 05:12:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:12:05' and `end` < '2025-03-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-03-27 05:12:18] Production.INFO: count ==191 [2025-03-27 05:12:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:12:05 - End Time 2025-03-27 05:12:05 [2025-03-27 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771946', 'tblTempUsageDetail_20' ) start [2025-03-27 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771946', 'tblTempUsageDetail_20' ) end [2025-03-27 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771946', 'tblTempVendorCDR_20' ) start [2025-03-27 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771946', 'tblTempVendorCDR_20' ) end [2025-03-27 05:12:18] Production.INFO: ProcessCDR(1,14771946,1,1,2) [2025-03-27 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771946', 'tblTempUsageDetail_20' ) start [2025-03-27 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771946', 'tblTempUsageDetail_20' ) end [2025-03-27 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:12:21] Production.INFO: ==26983== Releasing lock... [2025-03-27 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:13:05 [end_date_ymd] => 2025-03-27 05:13:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:13:05' and `end` < '2025-03-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-03-27 05:13:18] Production.INFO: count ==191 [2025-03-27 05:13:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:13:05 - End Time 2025-03-27 05:13:05 [2025-03-27 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771951', 'tblTempUsageDetail_20' ) start [2025-03-27 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771951', 'tblTempUsageDetail_20' ) end [2025-03-27 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771951', 'tblTempVendorCDR_20' ) start [2025-03-27 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771951', 'tblTempVendorCDR_20' ) end [2025-03-27 05:13:18] Production.INFO: ProcessCDR(1,14771951,1,1,2) [2025-03-27 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771951', 'tblTempUsageDetail_20' ) start [2025-03-27 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771951', 'tblTempUsageDetail_20' ) end [2025-03-27 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:13:21] Production.INFO: ==27056== Releasing lock... [2025-03-27 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:14:05 [end_date_ymd] => 2025-03-27 05:14:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:14:05' and `end` < '2025-03-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-03-27 05:14:17] Production.INFO: count ==190 [2025-03-27 05:14:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:14:05 - End Time 2025-03-27 05:14:05 [2025-03-27 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771956', 'tblTempUsageDetail_20' ) start [2025-03-27 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771956', 'tblTempUsageDetail_20' ) end [2025-03-27 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771956', 'tblTempVendorCDR_20' ) start [2025-03-27 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771956', 'tblTempVendorCDR_20' ) end [2025-03-27 05:14:17] Production.INFO: ProcessCDR(1,14771956,1,1,2) [2025-03-27 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771956', 'tblTempUsageDetail_20' ) start [2025-03-27 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771956', 'tblTempUsageDetail_20' ) end [2025-03-27 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:14:21] Production.INFO: ==27127== Releasing lock... [2025-03-27 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:15:05 [end_date_ymd] => 2025-03-27 05:15:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:15:05' and `end` < '2025-03-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-03-27 05:15:17] Production.INFO: count ==190 [2025-03-27 05:15:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:15:05 - End Time 2025-03-27 05:15:05 [2025-03-27 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771961', 'tblTempUsageDetail_20' ) start [2025-03-27 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771961', 'tblTempUsageDetail_20' ) end [2025-03-27 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771961', 'tblTempVendorCDR_20' ) start [2025-03-27 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771961', 'tblTempVendorCDR_20' ) end [2025-03-27 05:15:17] Production.INFO: ProcessCDR(1,14771961,1,1,2) [2025-03-27 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771961', 'tblTempUsageDetail_20' ) start [2025-03-27 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771961', 'tblTempUsageDetail_20' ) end [2025-03-27 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:15:21] Production.INFO: ==27200== Releasing lock... [2025-03-27 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:15:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:16:05 [end_date_ymd] => 2025-03-27 05:16:05 [RateCDR] => 1 ) [2025-03-27 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:16:05' and `end` < '2025-03-27 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:16:17] Production.INFO: count ==190 [2025-03-27 05:16:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:16:05 - End Time 2025-03-27 05:16:05 [2025-03-27 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771966', 'tblTempUsageDetail_20' ) start [2025-03-27 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771966', 'tblTempUsageDetail_20' ) end [2025-03-27 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771966', 'tblTempVendorCDR_20' ) start [2025-03-27 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771966', 'tblTempVendorCDR_20' ) end [2025-03-27 05:16:17] Production.INFO: ProcessCDR(1,14771966,1,1,2) [2025-03-27 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771966', 'tblTempUsageDetail_20' ) start [2025-03-27 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771966', 'tblTempUsageDetail_20' ) end [2025-03-27 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:16:21] Production.INFO: ==27272== Releasing lock... [2025-03-27 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:17:05 [end_date_ymd] => 2025-03-27 05:17:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:17:05' and `end` < '2025-03-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-03-27 05:17:17] Production.INFO: count ==190 [2025-03-27 05:17:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:17:05 - End Time 2025-03-27 05:17:05 [2025-03-27 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771971', 'tblTempUsageDetail_20' ) start [2025-03-27 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771971', 'tblTempUsageDetail_20' ) end [2025-03-27 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771971', 'tblTempVendorCDR_20' ) start [2025-03-27 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771971', 'tblTempVendorCDR_20' ) end [2025-03-27 05:17:17] Production.INFO: ProcessCDR(1,14771971,1,1,2) [2025-03-27 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771971', 'tblTempUsageDetail_20' ) start [2025-03-27 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771971', 'tblTempUsageDetail_20' ) end [2025-03-27 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:17:21] Production.INFO: ==27345== Releasing lock... [2025-03-27 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:17:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:18:05 [end_date_ymd] => 2025-03-27 05:18:05 [RateCDR] => 1 ) [2025-03-27 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:18:05' and `end` < '2025-03-27 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:18:18] Production.INFO: count ==190 [2025-03-27 05:18:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:18:05 - End Time 2025-03-27 05:18:05 [2025-03-27 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771976', 'tblTempUsageDetail_20' ) start [2025-03-27 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771976', 'tblTempUsageDetail_20' ) end [2025-03-27 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771976', 'tblTempVendorCDR_20' ) start [2025-03-27 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771976', 'tblTempVendorCDR_20' ) end [2025-03-27 05:18:18] Production.INFO: ProcessCDR(1,14771976,1,1,2) [2025-03-27 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771976', 'tblTempUsageDetail_20' ) start [2025-03-27 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771976', 'tblTempUsageDetail_20' ) end [2025-03-27 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:18:21] Production.INFO: ==27426== Releasing lock... [2025-03-27 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:18:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:19:05 [end_date_ymd] => 2025-03-27 05:19:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:19:05' and `end` < '2025-03-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-03-27 05:19:17] Production.INFO: count ==190 [2025-03-27 05:19:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:19:05 - End Time 2025-03-27 05:19:05 [2025-03-27 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771981', 'tblTempUsageDetail_20' ) start [2025-03-27 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771981', 'tblTempUsageDetail_20' ) end [2025-03-27 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771981', 'tblTempVendorCDR_20' ) start [2025-03-27 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771981', 'tblTempVendorCDR_20' ) end [2025-03-27 05:19:17] Production.INFO: ProcessCDR(1,14771981,1,1,2) [2025-03-27 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771981', 'tblTempUsageDetail_20' ) start [2025-03-27 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771981', 'tblTempUsageDetail_20' ) end [2025-03-27 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:19:21] Production.INFO: ==27500== Releasing lock... [2025-03-27 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:19:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:20:06 [end_date_ymd] => 2025-03-27 05:20:06 [RateCDR] => 1 ) [2025-03-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-03-27 02:20:06' and `end` < '2025-03-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-03-27 05:20:18] Production.INFO: count ==182 [2025-03-27 05:20:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:20:06 - End Time 2025-03-27 05:20:06 [2025-03-27 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771987', 'tblTempUsageDetail_20' ) start [2025-03-27 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771987', 'tblTempUsageDetail_20' ) end [2025-03-27 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771987', 'tblTempVendorCDR_20' ) start [2025-03-27 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771987', 'tblTempVendorCDR_20' ) end [2025-03-27 05:20:18] Production.INFO: ProcessCDR(1,14771987,1,1,2) [2025-03-27 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771987', 'tblTempUsageDetail_20' ) start [2025-03-27 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771987', 'tblTempUsageDetail_20' ) end [2025-03-27 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:20:21] Production.INFO: ==27574== Releasing lock... [2025-03-27 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:20:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-27 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:21:05 [end_date_ymd] => 2025-03-27 05:21:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:21:05' and `end` < '2025-03-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-03-27 05:21:18] Production.INFO: count ==182 [2025-03-27 05:21:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:21:05 - End Time 2025-03-27 05:21:05 [2025-03-27 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771992', 'tblTempUsageDetail_20' ) start [2025-03-27 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771992', 'tblTempUsageDetail_20' ) end [2025-03-27 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771992', 'tblTempVendorCDR_20' ) start [2025-03-27 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771992', 'tblTempVendorCDR_20' ) end [2025-03-27 05:21:18] Production.INFO: ProcessCDR(1,14771992,1,1,2) [2025-03-27 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771992', 'tblTempUsageDetail_20' ) start [2025-03-27 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771992', 'tblTempUsageDetail_20' ) end [2025-03-27 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:21:21] Production.INFO: ==27650== Releasing lock... [2025-03-27 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:21:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-27 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:22:05 [end_date_ymd] => 2025-03-27 05:22:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:22:05' and `end` < '2025-03-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-03-27 05:22:17] Production.INFO: count ==182 [2025-03-27 05:22:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:22:05 - End Time 2025-03-27 05:22:05 [2025-03-27 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771997', 'tblTempUsageDetail_20' ) start [2025-03-27 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14771997', 'tblTempUsageDetail_20' ) end [2025-03-27 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771997', 'tblTempVendorCDR_20' ) start [2025-03-27 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14771997', 'tblTempVendorCDR_20' ) end [2025-03-27 05:22:17] Production.INFO: ProcessCDR(1,14771997,1,1,2) [2025-03-27 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14771997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14771997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14771997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14771997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771997', 'tblTempUsageDetail_20' ) start [2025-03-27 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14771997', 'tblTempUsageDetail_20' ) end [2025-03-27 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:22:21] Production.INFO: ==27767== Releasing lock... [2025-03-27 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:22:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-27 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:23:05 [end_date_ymd] => 2025-03-27 05:23:05 [RateCDR] => 1 ) [2025-03-27 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:23:05' and `end` < '2025-03-27 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:23:18] Production.INFO: count ==182 [2025-03-27 05:23:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:23:05 - End Time 2025-03-27 05:23:05 [2025-03-27 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772002', 'tblTempUsageDetail_20' ) start [2025-03-27 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772002', 'tblTempUsageDetail_20' ) end [2025-03-27 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772002', 'tblTempVendorCDR_20' ) start [2025-03-27 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772002', 'tblTempVendorCDR_20' ) end [2025-03-27 05:23:18] Production.INFO: ProcessCDR(1,14772002,1,1,2) [2025-03-27 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772002', 'tblTempUsageDetail_20' ) start [2025-03-27 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772002', 'tblTempUsageDetail_20' ) end [2025-03-27 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:23:21] Production.INFO: ==27842== Releasing lock... [2025-03-27 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-27 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:24:06 [end_date_ymd] => 2025-03-27 05:24:06 [RateCDR] => 1 ) [2025-03-27 05:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:24:06' and `end` < '2025-03-27 05:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:24:18] Production.INFO: count ==167 [2025-03-27 05:24:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:24:06 - End Time 2025-03-27 05:24:06 [2025-03-27 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772007', 'tblTempUsageDetail_20' ) start [2025-03-27 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772007', 'tblTempUsageDetail_20' ) end [2025-03-27 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772007', 'tblTempVendorCDR_20' ) start [2025-03-27 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772007', 'tblTempVendorCDR_20' ) end [2025-03-27 05:24:18] Production.INFO: ProcessCDR(1,14772007,1,1,2) [2025-03-27 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772007', 'tblTempUsageDetail_20' ) start [2025-03-27 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772007', 'tblTempUsageDetail_20' ) end [2025-03-27 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:24:21] Production.INFO: ==27918== Releasing lock... [2025-03-27 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:25:05 [end_date_ymd] => 2025-03-27 05:25:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:25:05' and `end` < '2025-03-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-03-27 05:25:18] Production.INFO: count ==163 [2025-03-27 05:25:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:25:05 - End Time 2025-03-27 05:25:05 [2025-03-27 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772012', 'tblTempUsageDetail_20' ) start [2025-03-27 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772012', 'tblTempUsageDetail_20' ) end [2025-03-27 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772012', 'tblTempVendorCDR_20' ) start [2025-03-27 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772012', 'tblTempVendorCDR_20' ) end [2025-03-27 05:25:18] Production.INFO: ProcessCDR(1,14772012,1,1,2) [2025-03-27 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772012', 'tblTempUsageDetail_20' ) start [2025-03-27 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772012', 'tblTempUsageDetail_20' ) end [2025-03-27 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:25:21] Production.INFO: ==27987== Releasing lock... [2025-03-27 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:26:05 [end_date_ymd] => 2025-03-27 05:26:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:26:05' and `end` < '2025-03-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-03-27 05:26:18] Production.INFO: count ==163 [2025-03-27 05:26:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:26:05 - End Time 2025-03-27 05:26:05 [2025-03-27 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772017', 'tblTempUsageDetail_20' ) start [2025-03-27 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772017', 'tblTempUsageDetail_20' ) end [2025-03-27 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772017', 'tblTempVendorCDR_20' ) start [2025-03-27 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772017', 'tblTempVendorCDR_20' ) end [2025-03-27 05:26:18] Production.INFO: ProcessCDR(1,14772017,1,1,2) [2025-03-27 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772017', 'tblTempUsageDetail_20' ) start [2025-03-27 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772017', 'tblTempUsageDetail_20' ) end [2025-03-27 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:26:21] Production.INFO: ==28065== Releasing lock... [2025-03-27 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:27:05 [end_date_ymd] => 2025-03-27 05:27:05 [RateCDR] => 1 ) [2025-03-27 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:27:05' and `end` < '2025-03-27 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:27:18] Production.INFO: count ==163 [2025-03-27 05:27:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:27:05 - End Time 2025-03-27 05:27:05 [2025-03-27 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772022', 'tblTempUsageDetail_20' ) start [2025-03-27 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772022', 'tblTempUsageDetail_20' ) end [2025-03-27 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772022', 'tblTempVendorCDR_20' ) start [2025-03-27 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772022', 'tblTempVendorCDR_20' ) end [2025-03-27 05:27:18] Production.INFO: ProcessCDR(1,14772022,1,1,2) [2025-03-27 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772022', 'tblTempUsageDetail_20' ) start [2025-03-27 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772022', 'tblTempUsageDetail_20' ) end [2025-03-27 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:27:21] Production.INFO: ==28136== Releasing lock... [2025-03-27 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:28:06 [end_date_ymd] => 2025-03-27 05:28:06 [RateCDR] => 1 ) [2025-03-27 05:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:28:06' and `end` < '2025-03-27 05:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:28:18] Production.INFO: count ==163 [2025-03-27 05:28:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:28:06 - End Time 2025-03-27 05:28:06 [2025-03-27 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772027', 'tblTempUsageDetail_20' ) start [2025-03-27 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772027', 'tblTempUsageDetail_20' ) end [2025-03-27 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772027', 'tblTempVendorCDR_20' ) start [2025-03-27 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772027', 'tblTempVendorCDR_20' ) end [2025-03-27 05:28:18] Production.INFO: ProcessCDR(1,14772027,1,1,2) [2025-03-27 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772027', 'tblTempUsageDetail_20' ) start [2025-03-27 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772027', 'tblTempUsageDetail_20' ) end [2025-03-27 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:28:22] Production.INFO: ==28209== Releasing lock... [2025-03-27 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:28:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:29:05 [end_date_ymd] => 2025-03-27 05:29:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:29:05' and `end` < '2025-03-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-03-27 05:29:18] Production.INFO: count ==163 [2025-03-27 05:29:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:29:05 - End Time 2025-03-27 05:29:05 [2025-03-27 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772032', 'tblTempUsageDetail_20' ) start [2025-03-27 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772032', 'tblTempUsageDetail_20' ) end [2025-03-27 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772032', 'tblTempVendorCDR_20' ) start [2025-03-27 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772032', 'tblTempVendorCDR_20' ) end [2025-03-27 05:29:18] Production.INFO: ProcessCDR(1,14772032,1,1,2) [2025-03-27 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772032', 'tblTempUsageDetail_20' ) start [2025-03-27 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772032', 'tblTempUsageDetail_20' ) end [2025-03-27 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:29:21] Production.INFO: ==28282== Releasing lock... [2025-03-27 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:29:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:30:06 [end_date_ymd] => 2025-03-27 05:30:06 [RateCDR] => 1 ) [2025-03-27 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:30:06' and `end` < '2025-03-27 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:30:19] Production.INFO: count ==155 [2025-03-27 05:30:19] Production.ERROR: pbx CDR StartTime 2025-03-27 02:30:06 - End Time 2025-03-27 05:30:06 [2025-03-27 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772038', 'tblTempUsageDetail_20' ) start [2025-03-27 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772038', 'tblTempUsageDetail_20' ) end [2025-03-27 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772038', 'tblTempVendorCDR_20' ) start [2025-03-27 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772038', 'tblTempVendorCDR_20' ) end [2025-03-27 05:30:19] Production.INFO: ProcessCDR(1,14772038,1,1,2) [2025-03-27 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772038', 'tblTempUsageDetail_20' ) start [2025-03-27 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772038', 'tblTempUsageDetail_20' ) end [2025-03-27 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:30:22] Production.INFO: ==28359== Releasing lock... [2025-03-27 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:30:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:31:05 [end_date_ymd] => 2025-03-27 05:31:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:31:05' and `end` < '2025-03-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-03-27 05:31:17] Production.INFO: count ==153 [2025-03-27 05:31:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:31:05 - End Time 2025-03-27 05:31:05 [2025-03-27 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772043', 'tblTempUsageDetail_20' ) start [2025-03-27 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772043', 'tblTempUsageDetail_20' ) end [2025-03-27 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772043', 'tblTempVendorCDR_20' ) start [2025-03-27 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772043', 'tblTempVendorCDR_20' ) end [2025-03-27 05:31:17] Production.INFO: ProcessCDR(1,14772043,1,1,2) [2025-03-27 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772043', 'tblTempUsageDetail_20' ) start [2025-03-27 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772043', 'tblTempUsageDetail_20' ) end [2025-03-27 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:31:21] Production.INFO: ==28434== Releasing lock... [2025-03-27 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:32:05 [end_date_ymd] => 2025-03-27 05:32:05 [RateCDR] => 1 ) [2025-03-27 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:32:05' and `end` < '2025-03-27 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:32:18] Production.INFO: count ==153 [2025-03-27 05:32:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:32:05 - End Time 2025-03-27 05:32:05 [2025-03-27 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772048', 'tblTempUsageDetail_20' ) start [2025-03-27 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772048', 'tblTempUsageDetail_20' ) end [2025-03-27 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772048', 'tblTempVendorCDR_20' ) start [2025-03-27 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772048', 'tblTempVendorCDR_20' ) end [2025-03-27 05:32:18] Production.INFO: ProcessCDR(1,14772048,1,1,2) [2025-03-27 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772048', 'tblTempUsageDetail_20' ) start [2025-03-27 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772048', 'tblTempUsageDetail_20' ) end [2025-03-27 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:32:21] Production.INFO: ==28509== Releasing lock... [2025-03-27 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:32:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:33:05 [end_date_ymd] => 2025-03-27 05:33:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:33:05' and `end` < '2025-03-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-03-27 05:33:17] Production.INFO: count ==153 [2025-03-27 05:33:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:33:05 - End Time 2025-03-27 05:33:05 [2025-03-27 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772053', 'tblTempUsageDetail_20' ) start [2025-03-27 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772053', 'tblTempUsageDetail_20' ) end [2025-03-27 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772053', 'tblTempVendorCDR_20' ) start [2025-03-27 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772053', 'tblTempVendorCDR_20' ) end [2025-03-27 05:33:17] Production.INFO: ProcessCDR(1,14772053,1,1,2) [2025-03-27 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772053', 'tblTempUsageDetail_20' ) start [2025-03-27 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772053', 'tblTempUsageDetail_20' ) end [2025-03-27 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:33:21] Production.INFO: ==28584== Releasing lock... [2025-03-27 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:34:05 [end_date_ymd] => 2025-03-27 05:34:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:34:05' and `end` < '2025-03-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-03-27 05:34:18] Production.INFO: count ==153 [2025-03-27 05:34:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:34:05 - End Time 2025-03-27 05:34:05 [2025-03-27 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772058', 'tblTempUsageDetail_20' ) start [2025-03-27 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772058', 'tblTempUsageDetail_20' ) end [2025-03-27 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772058', 'tblTempVendorCDR_20' ) start [2025-03-27 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772058', 'tblTempVendorCDR_20' ) end [2025-03-27 05:34:18] Production.INFO: ProcessCDR(1,14772058,1,1,2) [2025-03-27 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772058', 'tblTempUsageDetail_20' ) start [2025-03-27 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772058', 'tblTempUsageDetail_20' ) end [2025-03-27 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:34:21] Production.INFO: ==28656== Releasing lock... [2025-03-27 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:34:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:35:05 [end_date_ymd] => 2025-03-27 05:35:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:35:05' and `end` < '2025-03-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-03-27 05:35:17] Production.INFO: count ==153 [2025-03-27 05:35:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:35:05 - End Time 2025-03-27 05:35:05 [2025-03-27 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772063', 'tblTempUsageDetail_20' ) start [2025-03-27 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772063', 'tblTempUsageDetail_20' ) end [2025-03-27 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772063', 'tblTempVendorCDR_20' ) start [2025-03-27 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772063', 'tblTempVendorCDR_20' ) end [2025-03-27 05:35:17] Production.INFO: ProcessCDR(1,14772063,1,1,2) [2025-03-27 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772063', 'tblTempUsageDetail_20' ) start [2025-03-27 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772063', 'tblTempUsageDetail_20' ) end [2025-03-27 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:35:21] Production.INFO: ==28734== Releasing lock... [2025-03-27 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:35:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:36:06 [end_date_ymd] => 2025-03-27 05:36:06 [RateCDR] => 1 ) [2025-03-27 05:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:36:06' and `end` < '2025-03-27 05:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:36:18] Production.INFO: count ==153 [2025-03-27 05:36:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:36:06 - End Time 2025-03-27 05:36:06 [2025-03-27 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772068', 'tblTempUsageDetail_20' ) start [2025-03-27 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772068', 'tblTempUsageDetail_20' ) end [2025-03-27 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772068', 'tblTempVendorCDR_20' ) start [2025-03-27 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772068', 'tblTempVendorCDR_20' ) end [2025-03-27 05:36:18] Production.INFO: ProcessCDR(1,14772068,1,1,2) [2025-03-27 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772068', 'tblTempUsageDetail_20' ) start [2025-03-27 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772068', 'tblTempUsageDetail_20' ) end [2025-03-27 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:36:22] Production.INFO: ==28811== Releasing lock... [2025-03-27 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:36:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:37:05 [end_date_ymd] => 2025-03-27 05:37:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:37:05' and `end` < '2025-03-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-03-27 05:37:17] Production.INFO: count ==153 [2025-03-27 05:37:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:37:05 - End Time 2025-03-27 05:37:05 [2025-03-27 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772073', 'tblTempUsageDetail_20' ) start [2025-03-27 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772073', 'tblTempUsageDetail_20' ) end [2025-03-27 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772073', 'tblTempVendorCDR_20' ) start [2025-03-27 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772073', 'tblTempVendorCDR_20' ) end [2025-03-27 05:37:17] Production.INFO: ProcessCDR(1,14772073,1,1,2) [2025-03-27 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772073', 'tblTempUsageDetail_20' ) start [2025-03-27 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772073', 'tblTempUsageDetail_20' ) end [2025-03-27 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:37:21] Production.INFO: ==28925== Releasing lock... [2025-03-27 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:38:06 [end_date_ymd] => 2025-03-27 05:38:06 [RateCDR] => 1 ) [2025-03-27 05:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:38:06' and `end` < '2025-03-27 05:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:38:19] Production.INFO: count ==153 [2025-03-27 05:38:19] Production.ERROR: pbx CDR StartTime 2025-03-27 02:38:06 - End Time 2025-03-27 05:38:06 [2025-03-27 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772078', 'tblTempUsageDetail_20' ) start [2025-03-27 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772078', 'tblTempUsageDetail_20' ) end [2025-03-27 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772078', 'tblTempVendorCDR_20' ) start [2025-03-27 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772078', 'tblTempVendorCDR_20' ) end [2025-03-27 05:38:19] Production.INFO: ProcessCDR(1,14772078,1,1,2) [2025-03-27 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772078', 'tblTempUsageDetail_20' ) start [2025-03-27 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772078', 'tblTempUsageDetail_20' ) end [2025-03-27 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:38:22] Production.INFO: ==29007== Releasing lock... [2025-03-27 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:38:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:39:05 [end_date_ymd] => 2025-03-27 05:39:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:39:05' and `end` < '2025-03-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-03-27 05:39:17] Production.INFO: count ==153 [2025-03-27 05:39:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:39:05 - End Time 2025-03-27 05:39:05 [2025-03-27 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772083', 'tblTempUsageDetail_20' ) start [2025-03-27 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772083', 'tblTempUsageDetail_20' ) end [2025-03-27 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772083', 'tblTempVendorCDR_20' ) start [2025-03-27 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772083', 'tblTempVendorCDR_20' ) end [2025-03-27 05:39:17] Production.INFO: ProcessCDR(1,14772083,1,1,2) [2025-03-27 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772083', 'tblTempUsageDetail_20' ) start [2025-03-27 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772083', 'tblTempUsageDetail_20' ) end [2025-03-27 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:39:21] Production.INFO: ==29084== Releasing lock... [2025-03-27 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:40:06 [end_date_ymd] => 2025-03-27 05:40:06 [RateCDR] => 1 ) [2025-03-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-03-27 02:40:06' and `end` < '2025-03-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-03-27 05:40:18] Production.INFO: count ==151 [2025-03-27 05:40:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:40:06 - End Time 2025-03-27 05:40:06 [2025-03-27 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772089', 'tblTempUsageDetail_20' ) start [2025-03-27 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772089', 'tblTempUsageDetail_20' ) end [2025-03-27 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772089', 'tblTempVendorCDR_20' ) start [2025-03-27 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772089', 'tblTempVendorCDR_20' ) end [2025-03-27 05:40:19] Production.INFO: ProcessCDR(1,14772089,1,1,2) [2025-03-27 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772089', 'tblTempUsageDetail_20' ) start [2025-03-27 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772089', 'tblTempUsageDetail_20' ) end [2025-03-27 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:40:22] Production.INFO: ==29164== Releasing lock... [2025-03-27 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:41:04 [end_date_ymd] => 2025-03-27 05:41:04 [RateCDR] => 1 ) [2025-03-27 05: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-03-27 02:41:04' and `end` < '2025-03-27 05: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-03-27 05:41:17] Production.INFO: count ==151 [2025-03-27 05:41:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:41:04 - End Time 2025-03-27 05:41:04 [2025-03-27 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772094', 'tblTempUsageDetail_20' ) start [2025-03-27 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772094', 'tblTempUsageDetail_20' ) end [2025-03-27 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772094', 'tblTempVendorCDR_20' ) start [2025-03-27 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772094', 'tblTempVendorCDR_20' ) end [2025-03-27 05:41:17] Production.INFO: ProcessCDR(1,14772094,1,1,2) [2025-03-27 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772094', 'tblTempUsageDetail_20' ) start [2025-03-27 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772094', 'tblTempUsageDetail_20' ) end [2025-03-27 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:41:20] Production.INFO: ==29249== Releasing lock... [2025-03-27 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:41:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:42:05 [end_date_ymd] => 2025-03-27 05:42:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:42:05' and `end` < '2025-03-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-03-27 05:42:17] Production.INFO: count ==151 [2025-03-27 05:42:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:42:05 - End Time 2025-03-27 05:42:05 [2025-03-27 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772099', 'tblTempUsageDetail_20' ) start [2025-03-27 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772099', 'tblTempUsageDetail_20' ) end [2025-03-27 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772099', 'tblTempVendorCDR_20' ) start [2025-03-27 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772099', 'tblTempVendorCDR_20' ) end [2025-03-27 05:42:17] Production.INFO: ProcessCDR(1,14772099,1,1,2) [2025-03-27 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772099', 'tblTempUsageDetail_20' ) start [2025-03-27 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772099', 'tblTempUsageDetail_20' ) end [2025-03-27 05:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:42:20] Production.INFO: ==29328== Releasing lock... [2025-03-27 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:42:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:43:05 [end_date_ymd] => 2025-03-27 05:43:05 [RateCDR] => 1 ) [2025-03-27 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:43:05' and `end` < '2025-03-27 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:43:17] Production.INFO: count ==151 [2025-03-27 05:43:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:43:05 - End Time 2025-03-27 05:43:05 [2025-03-27 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772104', 'tblTempUsageDetail_20' ) start [2025-03-27 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772104', 'tblTempUsageDetail_20' ) end [2025-03-27 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772104', 'tblTempVendorCDR_20' ) start [2025-03-27 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772104', 'tblTempVendorCDR_20' ) end [2025-03-27 05:43:17] Production.INFO: ProcessCDR(1,14772104,1,1,2) [2025-03-27 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772104', 'tblTempUsageDetail_20' ) start [2025-03-27 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772104', 'tblTempUsageDetail_20' ) end [2025-03-27 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:43:20] Production.INFO: ==29407== Releasing lock... [2025-03-27 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:43:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:44:05 [end_date_ymd] => 2025-03-27 05:44:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:44:05' and `end` < '2025-03-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-03-27 05:44:17] Production.INFO: count ==151 [2025-03-27 05:44:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:44:05 - End Time 2025-03-27 05:44:05 [2025-03-27 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772109', 'tblTempUsageDetail_20' ) start [2025-03-27 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772109', 'tblTempUsageDetail_20' ) end [2025-03-27 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772109', 'tblTempVendorCDR_20' ) start [2025-03-27 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772109', 'tblTempVendorCDR_20' ) end [2025-03-27 05:44:17] Production.INFO: ProcessCDR(1,14772109,1,1,2) [2025-03-27 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772109', 'tblTempUsageDetail_20' ) start [2025-03-27 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772109', 'tblTempUsageDetail_20' ) end [2025-03-27 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:44:21] Production.INFO: ==29482== Releasing lock... [2025-03-27 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:45:06 [end_date_ymd] => 2025-03-27 05:45:06 [RateCDR] => 1 ) [2025-03-27 05:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:45:06' and `end` < '2025-03-27 05:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:45:18] Production.INFO: count ==151 [2025-03-27 05:45:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:45:06 - End Time 2025-03-27 05:45:06 [2025-03-27 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772114', 'tblTempUsageDetail_20' ) start [2025-03-27 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772114', 'tblTempUsageDetail_20' ) end [2025-03-27 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772114', 'tblTempVendorCDR_20' ) start [2025-03-27 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772114', 'tblTempVendorCDR_20' ) end [2025-03-27 05:45:18] Production.INFO: ProcessCDR(1,14772114,1,1,2) [2025-03-27 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772114', 'tblTempUsageDetail_20' ) start [2025-03-27 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772114', 'tblTempUsageDetail_20' ) end [2025-03-27 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:45:21] Production.INFO: ==29566== Releasing lock... [2025-03-27 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:46:05 [end_date_ymd] => 2025-03-27 05:46:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:46:05' and `end` < '2025-03-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-03-27 05:46:17] Production.INFO: count ==152 [2025-03-27 05:46:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:46:05 - End Time 2025-03-27 05:46:05 [2025-03-27 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772119', 'tblTempUsageDetail_20' ) start [2025-03-27 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772119', 'tblTempUsageDetail_20' ) end [2025-03-27 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772119', 'tblTempVendorCDR_20' ) start [2025-03-27 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772119', 'tblTempVendorCDR_20' ) end [2025-03-27 05:46:18] Production.INFO: ProcessCDR(1,14772119,1,1,2) [2025-03-27 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772119', 'tblTempUsageDetail_20' ) start [2025-03-27 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772119', 'tblTempUsageDetail_20' ) end [2025-03-27 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:46:22] Production.INFO: ==29646== Releasing lock... [2025-03-27 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:46:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:47:05 [end_date_ymd] => 2025-03-27 05:47:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:47:05' and `end` < '2025-03-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-03-27 05:47:18] Production.INFO: count ==152 [2025-03-27 05:47:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:47:05 - End Time 2025-03-27 05:47:05 [2025-03-27 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772124', 'tblTempUsageDetail_20' ) start [2025-03-27 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772124', 'tblTempUsageDetail_20' ) end [2025-03-27 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772124', 'tblTempVendorCDR_20' ) start [2025-03-27 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772124', 'tblTempVendorCDR_20' ) end [2025-03-27 05:47:18] Production.INFO: ProcessCDR(1,14772124,1,1,2) [2025-03-27 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772124', 'tblTempUsageDetail_20' ) start [2025-03-27 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772124', 'tblTempUsageDetail_20' ) end [2025-03-27 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:47:21] Production.INFO: ==29728== Releasing lock... [2025-03-27 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:48:05 [end_date_ymd] => 2025-03-27 05:48:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:48:05' and `end` < '2025-03-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-03-27 05:48:17] Production.INFO: count ==153 [2025-03-27 05:48:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:48:05 - End Time 2025-03-27 05:48:05 [2025-03-27 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772129', 'tblTempUsageDetail_20' ) start [2025-03-27 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772129', 'tblTempUsageDetail_20' ) end [2025-03-27 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772129', 'tblTempVendorCDR_20' ) start [2025-03-27 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772129', 'tblTempVendorCDR_20' ) end [2025-03-27 05:48:17] Production.INFO: ProcessCDR(1,14772129,1,1,2) [2025-03-27 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772129', 'tblTempUsageDetail_20' ) start [2025-03-27 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772129', 'tblTempUsageDetail_20' ) end [2025-03-27 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:48:22] Production.INFO: ==29809== Releasing lock... [2025-03-27 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:48:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 05:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:49:06 [end_date_ymd] => 2025-03-27 05:49:06 [RateCDR] => 1 ) [2025-03-27 05:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:49:06' and `end` < '2025-03-27 05:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:49:18] Production.INFO: count ==146 [2025-03-27 05:49:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:49:06 - End Time 2025-03-27 05:49:06 [2025-03-27 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772134', 'tblTempUsageDetail_20' ) start [2025-03-27 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772134', 'tblTempUsageDetail_20' ) end [2025-03-27 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772134', 'tblTempVendorCDR_20' ) start [2025-03-27 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772134', 'tblTempVendorCDR_20' ) end [2025-03-27 05:49:18] Production.INFO: ProcessCDR(1,14772134,1,1,2) [2025-03-27 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772134', 'tblTempUsageDetail_20' ) start [2025-03-27 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772134', 'tblTempUsageDetail_20' ) end [2025-03-27 05:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:49:22] Production.INFO: ==29888== Releasing lock... [2025-03-27 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:49:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-27 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:50:05 [end_date_ymd] => 2025-03-27 05:50:05 [RateCDR] => 1 ) [2025-03-27 05:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:50:05' and `end` < '2025-03-27 05:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:50:18] Production.INFO: count ==133 [2025-03-27 05:50:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:50:05 - End Time 2025-03-27 05:50:05 [2025-03-27 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772140', 'tblTempUsageDetail_20' ) start [2025-03-27 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772140', 'tblTempUsageDetail_20' ) end [2025-03-27 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772140', 'tblTempVendorCDR_20' ) start [2025-03-27 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772140', 'tblTempVendorCDR_20' ) end [2025-03-27 05:50:18] Production.INFO: ProcessCDR(1,14772140,1,1,2) [2025-03-27 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772140', 'tblTempUsageDetail_20' ) start [2025-03-27 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772140', 'tblTempUsageDetail_20' ) end [2025-03-27 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:50:21] Production.INFO: ==29966== Releasing lock... [2025-03-27 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-27 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:51:05 [end_date_ymd] => 2025-03-27 05:51:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:51:05' and `end` < '2025-03-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-03-27 05:51:18] Production.INFO: count ==124 [2025-03-27 05:51:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:51:05 - End Time 2025-03-27 05:51:05 [2025-03-27 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772145', 'tblTempUsageDetail_20' ) start [2025-03-27 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772145', 'tblTempUsageDetail_20' ) end [2025-03-27 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772145', 'tblTempVendorCDR_20' ) start [2025-03-27 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772145', 'tblTempVendorCDR_20' ) end [2025-03-27 05:51:18] Production.INFO: ProcessCDR(1,14772145,1,1,2) [2025-03-27 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772145', 'tblTempUsageDetail_20' ) start [2025-03-27 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772145', 'tblTempUsageDetail_20' ) end [2025-03-27 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:51:21] Production.INFO: ==30046== Releasing lock... [2025-03-27 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:51:21] Production.INFO: 29 MB #Memory Used# [2025-03-27 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:52:05 [end_date_ymd] => 2025-03-27 05:52:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:52:05' and `end` < '2025-03-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-03-27 05:52:17] Production.INFO: count ==124 [2025-03-27 05:52:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:52:05 - End Time 2025-03-27 05:52:05 [2025-03-27 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772150', 'tblTempUsageDetail_20' ) start [2025-03-27 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772150', 'tblTempUsageDetail_20' ) end [2025-03-27 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772150', 'tblTempVendorCDR_20' ) start [2025-03-27 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772150', 'tblTempVendorCDR_20' ) end [2025-03-27 05:52:18] Production.INFO: ProcessCDR(1,14772150,1,1,2) [2025-03-27 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772150', 'tblTempUsageDetail_20' ) start [2025-03-27 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772150', 'tblTempUsageDetail_20' ) end [2025-03-27 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:52:21] Production.INFO: ==30125== Releasing lock... [2025-03-27 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:52:21] Production.INFO: 29 MB #Memory Used# [2025-03-27 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:53:05 [end_date_ymd] => 2025-03-27 05:53:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:53:05' and `end` < '2025-03-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-03-27 05:53:18] Production.INFO: count ==124 [2025-03-27 05:53:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:53:05 - End Time 2025-03-27 05:53:05 [2025-03-27 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772155', 'tblTempUsageDetail_20' ) start [2025-03-27 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772155', 'tblTempUsageDetail_20' ) end [2025-03-27 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772155', 'tblTempVendorCDR_20' ) start [2025-03-27 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772155', 'tblTempVendorCDR_20' ) end [2025-03-27 05:53:18] Production.INFO: ProcessCDR(1,14772155,1,1,2) [2025-03-27 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772155', 'tblTempUsageDetail_20' ) start [2025-03-27 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772155', 'tblTempUsageDetail_20' ) end [2025-03-27 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:53:21] Production.INFO: ==30239== Releasing lock... [2025-03-27 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:53:21] Production.INFO: 29 MB #Memory Used# [2025-03-27 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:54:05 [end_date_ymd] => 2025-03-27 05:54:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:54:05' and `end` < '2025-03-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-03-27 05:54:17] Production.INFO: count ==124 [2025-03-27 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:54:05 - End Time 2025-03-27 05:54:05 [2025-03-27 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772160', 'tblTempUsageDetail_20' ) start [2025-03-27 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772160', 'tblTempUsageDetail_20' ) end [2025-03-27 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772160', 'tblTempVendorCDR_20' ) start [2025-03-27 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772160', 'tblTempVendorCDR_20' ) end [2025-03-27 05:54:17] Production.INFO: ProcessCDR(1,14772160,1,1,2) [2025-03-27 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772160', 'tblTempUsageDetail_20' ) start [2025-03-27 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772160', 'tblTempUsageDetail_20' ) end [2025-03-27 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:54:20] Production.INFO: ==30315== Releasing lock... [2025-03-27 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:54:20] Production.INFO: 29 MB #Memory Used# [2025-03-27 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:55:05 [end_date_ymd] => 2025-03-27 05:55:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:55:05' and `end` < '2025-03-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-03-27 05:55:18] Production.INFO: count ==124 [2025-03-27 05:55:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:55:05 - End Time 2025-03-27 05:55:05 [2025-03-27 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772165', 'tblTempUsageDetail_20' ) start [2025-03-27 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772165', 'tblTempUsageDetail_20' ) end [2025-03-27 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772165', 'tblTempVendorCDR_20' ) start [2025-03-27 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772165', 'tblTempVendorCDR_20' ) end [2025-03-27 05:55:18] Production.INFO: ProcessCDR(1,14772165,1,1,2) [2025-03-27 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772165', 'tblTempUsageDetail_20' ) start [2025-03-27 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772165', 'tblTempUsageDetail_20' ) end [2025-03-27 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:55:21] Production.INFO: ==30398== Releasing lock... [2025-03-27 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:55:21] Production.INFO: 29 MB #Memory Used# [2025-03-27 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:56:05 [end_date_ymd] => 2025-03-27 05:56:05 [RateCDR] => 1 ) [2025-03-27 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:56:05' and `end` < '2025-03-27 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:56:17] Production.INFO: count ==124 [2025-03-27 05:56:17] Production.ERROR: pbx CDR StartTime 2025-03-27 02:56:05 - End Time 2025-03-27 05:56:05 [2025-03-27 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772170', 'tblTempUsageDetail_20' ) start [2025-03-27 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772170', 'tblTempUsageDetail_20' ) end [2025-03-27 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772170', 'tblTempVendorCDR_20' ) start [2025-03-27 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772170', 'tblTempVendorCDR_20' ) end [2025-03-27 05:56:17] Production.INFO: ProcessCDR(1,14772170,1,1,2) [2025-03-27 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772170', 'tblTempUsageDetail_20' ) start [2025-03-27 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772170', 'tblTempUsageDetail_20' ) end [2025-03-27 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:56:21] Production.INFO: ==30478== Releasing lock... [2025-03-27 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:56:21] Production.INFO: 29 MB #Memory Used# [2025-03-27 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:57:05 [end_date_ymd] => 2025-03-27 05:57:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:57:05' and `end` < '2025-03-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-03-27 05:57:18] Production.INFO: count ==124 [2025-03-27 05:57:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:57:05 - End Time 2025-03-27 05:57:05 [2025-03-27 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772175', 'tblTempUsageDetail_20' ) start [2025-03-27 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772175', 'tblTempUsageDetail_20' ) end [2025-03-27 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772175', 'tblTempVendorCDR_20' ) start [2025-03-27 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772175', 'tblTempVendorCDR_20' ) end [2025-03-27 05:57:18] Production.INFO: ProcessCDR(1,14772175,1,1,2) [2025-03-27 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772175', 'tblTempUsageDetail_20' ) start [2025-03-27 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772175', 'tblTempUsageDetail_20' ) end [2025-03-27 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:57:21] Production.INFO: ==30555== Releasing lock... [2025-03-27 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:57:21] Production.INFO: 29 MB #Memory Used# [2025-03-27 05:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:58:06 [end_date_ymd] => 2025-03-27 05:58:06 [RateCDR] => 1 ) [2025-03-27 05:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 02:58:06' and `end` < '2025-03-27 05:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 05:58:18] Production.INFO: count ==112 [2025-03-27 05:58:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:58:06 - End Time 2025-03-27 05:58:06 [2025-03-27 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772180', 'tblTempUsageDetail_20' ) start [2025-03-27 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772180', 'tblTempUsageDetail_20' ) end [2025-03-27 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772180', 'tblTempVendorCDR_20' ) start [2025-03-27 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772180', 'tblTempVendorCDR_20' ) end [2025-03-27 05:58:18] Production.INFO: ProcessCDR(1,14772180,1,1,2) [2025-03-27 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772180', 'tblTempUsageDetail_20' ) start [2025-03-27 05:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772180', 'tblTempUsageDetail_20' ) end [2025-03-27 05:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:58:23] Production.INFO: ==30634== Releasing lock... [2025-03-27 05:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:58:23] Production.INFO: 29 MB #Memory Used# [2025-03-27 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 02:59:05 [end_date_ymd] => 2025-03-27 05:59:05 [RateCDR] => 1 ) [2025-03-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-03-27 02:59:05' and `end` < '2025-03-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-03-27 05:59:18] Production.INFO: count ==110 [2025-03-27 05:59:18] Production.ERROR: pbx CDR StartTime 2025-03-27 02:59:05 - End Time 2025-03-27 05:59:05 [2025-03-27 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772185', 'tblTempUsageDetail_20' ) start [2025-03-27 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772185', 'tblTempUsageDetail_20' ) end [2025-03-27 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772185', 'tblTempVendorCDR_20' ) start [2025-03-27 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772185', 'tblTempVendorCDR_20' ) end [2025-03-27 05:59:18] Production.INFO: ProcessCDR(1,14772185,1,1,2) [2025-03-27 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772185', 'tblTempUsageDetail_20' ) start [2025-03-27 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772185', 'tblTempUsageDetail_20' ) end [2025-03-27 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 05:59:21] Production.INFO: ==30712== Releasing lock... [2025-03-27 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 05:59:21] Production.INFO: 29 MB #Memory Used# [2025-03-27 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:00:06 [end_date_ymd] => 2025-03-27 06:00:06 [RateCDR] => 1 ) [2025-03-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-03-27 03:00:06' and `end` < '2025-03-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-03-27 06:00:19] Production.INFO: count ==106 [2025-03-27 06:00:19] Production.ERROR: pbx CDR StartTime 2025-03-27 03:00:06 - End Time 2025-03-27 06:00:06 [2025-03-27 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772191', 'tblTempUsageDetail_20' ) start [2025-03-27 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772191', 'tblTempUsageDetail_20' ) end [2025-03-27 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772191', 'tblTempVendorCDR_20' ) start [2025-03-27 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772191', 'tblTempVendorCDR_20' ) end [2025-03-27 06:00:19] Production.INFO: ProcessCDR(1,14772191,1,1,2) [2025-03-27 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772191', 'tblTempUsageDetail_20' ) start [2025-03-27 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772191', 'tblTempUsageDetail_20' ) end [2025-03-27 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:00:22] Production.INFO: ==30794== Releasing lock... [2025-03-27 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:00:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:01:05 [end_date_ymd] => 2025-03-27 06:01:05 [RateCDR] => 1 ) [2025-03-27 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:01:05' and `end` < '2025-03-27 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:01:17] Production.INFO: count ==106 [2025-03-27 06:01:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:01:05 - End Time 2025-03-27 06:01:05 [2025-03-27 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772196', 'tblTempUsageDetail_20' ) start [2025-03-27 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772196', 'tblTempUsageDetail_20' ) end [2025-03-27 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772196', 'tblTempVendorCDR_20' ) start [2025-03-27 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772196', 'tblTempVendorCDR_20' ) end [2025-03-27 06:01:17] Production.INFO: ProcessCDR(1,14772196,1,1,2) [2025-03-27 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772196', 'tblTempUsageDetail_20' ) start [2025-03-27 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772196', 'tblTempUsageDetail_20' ) end [2025-03-27 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:01:21] Production.INFO: ==30894== Releasing lock... [2025-03-27 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:02:05 [end_date_ymd] => 2025-03-27 06:02:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:02:05' and `end` < '2025-03-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-03-27 06:02:18] Production.INFO: count ==106 [2025-03-27 06:02:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:02:05 - End Time 2025-03-27 06:02:05 [2025-03-27 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772201', 'tblTempUsageDetail_20' ) start [2025-03-27 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772201', 'tblTempUsageDetail_20' ) end [2025-03-27 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772201', 'tblTempVendorCDR_20' ) start [2025-03-27 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772201', 'tblTempVendorCDR_20' ) end [2025-03-27 06:02:18] Production.INFO: ProcessCDR(1,14772201,1,1,2) [2025-03-27 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772201', 'tblTempUsageDetail_20' ) start [2025-03-27 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772201', 'tblTempUsageDetail_20' ) end [2025-03-27 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:02:21] Production.INFO: ==30982== Releasing lock... [2025-03-27 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:03:05 [end_date_ymd] => 2025-03-27 06:03:05 [RateCDR] => 1 ) [2025-03-27 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:03:05' and `end` < '2025-03-27 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:03:17] Production.INFO: count ==106 [2025-03-27 06:03:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:03:05 - End Time 2025-03-27 06:03:05 [2025-03-27 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772206', 'tblTempUsageDetail_20' ) start [2025-03-27 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772206', 'tblTempUsageDetail_20' ) end [2025-03-27 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772206', 'tblTempVendorCDR_20' ) start [2025-03-27 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772206', 'tblTempVendorCDR_20' ) end [2025-03-27 06:03:17] Production.INFO: ProcessCDR(1,14772206,1,1,2) [2025-03-27 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772206', 'tblTempUsageDetail_20' ) start [2025-03-27 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772206', 'tblTempUsageDetail_20' ) end [2025-03-27 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:03:21] Production.INFO: ==31057== Releasing lock... [2025-03-27 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:04:06 [end_date_ymd] => 2025-03-27 06:04:06 [RateCDR] => 1 ) [2025-03-27 06:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:04:06' and `end` < '2025-03-27 06:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:04:18] Production.INFO: count ==106 [2025-03-27 06:04:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:04:06 - End Time 2025-03-27 06:04:06 [2025-03-27 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772211', 'tblTempUsageDetail_20' ) start [2025-03-27 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772211', 'tblTempUsageDetail_20' ) end [2025-03-27 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772211', 'tblTempVendorCDR_20' ) start [2025-03-27 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772211', 'tblTempVendorCDR_20' ) end [2025-03-27 06:04:18] Production.INFO: ProcessCDR(1,14772211,1,1,2) [2025-03-27 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772211', 'tblTempUsageDetail_20' ) start [2025-03-27 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772211', 'tblTempUsageDetail_20' ) end [2025-03-27 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:04:22] Production.INFO: ==31139== Releasing lock... [2025-03-27 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:04:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:05:05 [end_date_ymd] => 2025-03-27 06:05:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:05:05' and `end` < '2025-03-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-03-27 06:05:17] Production.INFO: count ==106 [2025-03-27 06:05:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:05:05 - End Time 2025-03-27 06:05:05 [2025-03-27 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772216', 'tblTempUsageDetail_20' ) start [2025-03-27 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772216', 'tblTempUsageDetail_20' ) end [2025-03-27 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772216', 'tblTempVendorCDR_20' ) start [2025-03-27 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772216', 'tblTempVendorCDR_20' ) end [2025-03-27 06:05:17] Production.INFO: ProcessCDR(1,14772216,1,1,2) [2025-03-27 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772216', 'tblTempUsageDetail_20' ) start [2025-03-27 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772216', 'tblTempUsageDetail_20' ) end [2025-03-27 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:05:21] Production.INFO: ==31222== Releasing lock... [2025-03-27 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:05:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:06:06 [end_date_ymd] => 2025-03-27 06:06:06 [RateCDR] => 1 ) [2025-03-27 06:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:06:06' and `end` < '2025-03-27 06:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:06:18] Production.INFO: count ==106 [2025-03-27 06:06:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:06:06 - End Time 2025-03-27 06:06:06 [2025-03-27 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772221', 'tblTempUsageDetail_20' ) start [2025-03-27 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772221', 'tblTempUsageDetail_20' ) end [2025-03-27 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772221', 'tblTempVendorCDR_20' ) start [2025-03-27 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772221', 'tblTempVendorCDR_20' ) end [2025-03-27 06:06:18] Production.INFO: ProcessCDR(1,14772221,1,1,2) [2025-03-27 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772221', 'tblTempUsageDetail_20' ) start [2025-03-27 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772221', 'tblTempUsageDetail_20' ) end [2025-03-27 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:06:22] Production.INFO: ==31300== Releasing lock... [2025-03-27 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:06:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 06:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:07:04 [end_date_ymd] => 2025-03-27 06:07:04 [RateCDR] => 1 ) [2025-03-27 06: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-03-27 03:07:04' and `end` < '2025-03-27 06: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-03-27 06:07:17] Production.INFO: count ==106 [2025-03-27 06:07:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:07:04 - End Time 2025-03-27 06:07:04 [2025-03-27 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772226', 'tblTempUsageDetail_20' ) start [2025-03-27 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772226', 'tblTempUsageDetail_20' ) end [2025-03-27 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772226', 'tblTempVendorCDR_20' ) start [2025-03-27 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772226', 'tblTempVendorCDR_20' ) end [2025-03-27 06:07:17] Production.INFO: ProcessCDR(1,14772226,1,1,2) [2025-03-27 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772226', 'tblTempUsageDetail_20' ) start [2025-03-27 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772226', 'tblTempUsageDetail_20' ) end [2025-03-27 06:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:07:20] Production.INFO: ==31378== Releasing lock... [2025-03-27 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:07:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:08:05 [end_date_ymd] => 2025-03-27 06:08:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:08:05' and `end` < '2025-03-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-03-27 06:08:18] Production.INFO: count ==73 [2025-03-27 06:08:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:08:05 - End Time 2025-03-27 06:08:05 [2025-03-27 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772231', 'tblTempUsageDetail_20' ) start [2025-03-27 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772231', 'tblTempUsageDetail_20' ) end [2025-03-27 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772231', 'tblTempVendorCDR_20' ) start [2025-03-27 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772231', 'tblTempVendorCDR_20' ) end [2025-03-27 06:08:18] Production.INFO: ProcessCDR(1,14772231,1,1,2) [2025-03-27 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772231', 'tblTempUsageDetail_20' ) start [2025-03-27 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772231', 'tblTempUsageDetail_20' ) end [2025-03-27 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:08:21] Production.INFO: ==31497== Releasing lock... [2025-03-27 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-27 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:09:05 [end_date_ymd] => 2025-03-27 06:09:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:09:05' and `end` < '2025-03-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-03-27 06:09:17] Production.INFO: count ==67 [2025-03-27 06:09:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:09:05 - End Time 2025-03-27 06:09:05 [2025-03-27 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772236', 'tblTempUsageDetail_20' ) start [2025-03-27 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772236', 'tblTempUsageDetail_20' ) end [2025-03-27 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772236', 'tblTempVendorCDR_20' ) start [2025-03-27 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772236', 'tblTempVendorCDR_20' ) end [2025-03-27 06:09:17] Production.INFO: ProcessCDR(1,14772236,1,1,2) [2025-03-27 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772236', 'tblTempUsageDetail_20' ) start [2025-03-27 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772236', 'tblTempUsageDetail_20' ) end [2025-03-27 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:09:20] Production.INFO: ==31579== Releasing lock... [2025-03-27 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:09:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-27 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:10:06 [end_date_ymd] => 2025-03-27 06:10:06 [RateCDR] => 1 ) [2025-03-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-03-27 03:10:06' and `end` < '2025-03-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-03-27 06:10:19] Production.INFO: count ==71 [2025-03-27 06:10:19] Production.ERROR: pbx CDR StartTime 2025-03-27 03:10:06 - End Time 2025-03-27 06:10:06 [2025-03-27 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772242', 'tblTempUsageDetail_20' ) start [2025-03-27 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772242', 'tblTempUsageDetail_20' ) end [2025-03-27 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772242', 'tblTempVendorCDR_20' ) start [2025-03-27 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772242', 'tblTempVendorCDR_20' ) end [2025-03-27 06:10:19] Production.INFO: ProcessCDR(1,14772242,1,1,2) [2025-03-27 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772242', 'tblTempUsageDetail_20' ) start [2025-03-27 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772242', 'tblTempUsageDetail_20' ) end [2025-03-27 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:10:22] Production.INFO: ==31659== Releasing lock... [2025-03-27 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:10:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-27 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:11:05 [end_date_ymd] => 2025-03-27 06:11:05 [RateCDR] => 1 ) [2025-03-27 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:11:05' and `end` < '2025-03-27 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:11:17] Production.INFO: count ==71 [2025-03-27 06:11:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:11:05 - End Time 2025-03-27 06:11:05 [2025-03-27 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772247', 'tblTempUsageDetail_20' ) start [2025-03-27 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772247', 'tblTempUsageDetail_20' ) end [2025-03-27 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772247', 'tblTempVendorCDR_20' ) start [2025-03-27 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772247', 'tblTempVendorCDR_20' ) end [2025-03-27 06:11:17] Production.INFO: ProcessCDR(1,14772247,1,1,2) [2025-03-27 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772247', 'tblTempUsageDetail_20' ) start [2025-03-27 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772247', 'tblTempUsageDetail_20' ) end [2025-03-27 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:11:21] Production.INFO: ==31741== Releasing lock... [2025-03-27 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-27 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:12:06 [end_date_ymd] => 2025-03-27 06:12:06 [RateCDR] => 1 ) [2025-03-27 06:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:12:06' and `end` < '2025-03-27 06:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:12:18] Production.INFO: count ==71 [2025-03-27 06:12:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:12:06 - End Time 2025-03-27 06:12:06 [2025-03-27 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772252', 'tblTempUsageDetail_20' ) start [2025-03-27 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772252', 'tblTempUsageDetail_20' ) end [2025-03-27 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772252', 'tblTempVendorCDR_20' ) start [2025-03-27 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772252', 'tblTempVendorCDR_20' ) end [2025-03-27 06:12:18] Production.INFO: ProcessCDR(1,14772252,1,1,2) [2025-03-27 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772252', 'tblTempUsageDetail_20' ) start [2025-03-27 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772252', 'tblTempUsageDetail_20' ) end [2025-03-27 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:12:22] Production.INFO: ==31819== Releasing lock... [2025-03-27 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:12:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-27 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:13:05 [end_date_ymd] => 2025-03-27 06:13:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:13:05' and `end` < '2025-03-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-03-27 06:13:18] Production.INFO: count ==71 [2025-03-27 06:13:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:13:05 - End Time 2025-03-27 06:13:05 [2025-03-27 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772257', 'tblTempUsageDetail_20' ) start [2025-03-27 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772257', 'tblTempUsageDetail_20' ) end [2025-03-27 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772257', 'tblTempVendorCDR_20' ) start [2025-03-27 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772257', 'tblTempVendorCDR_20' ) end [2025-03-27 06:13:18] Production.INFO: ProcessCDR(1,14772257,1,1,2) [2025-03-27 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772257', 'tblTempUsageDetail_20' ) start [2025-03-27 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772257', 'tblTempUsageDetail_20' ) end [2025-03-27 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:13:21] Production.INFO: ==31896== Releasing lock... [2025-03-27 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-27 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:14:05 [end_date_ymd] => 2025-03-27 06:14:05 [RateCDR] => 1 ) [2025-03-27 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:14:05' and `end` < '2025-03-27 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:14:18] Production.INFO: count ==71 [2025-03-27 06:14:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:14:05 - End Time 2025-03-27 06:14:05 [2025-03-27 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772262', 'tblTempUsageDetail_20' ) start [2025-03-27 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772262', 'tblTempUsageDetail_20' ) end [2025-03-27 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772262', 'tblTempVendorCDR_20' ) start [2025-03-27 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772262', 'tblTempVendorCDR_20' ) end [2025-03-27 06:14:18] Production.INFO: ProcessCDR(1,14772262,1,1,2) [2025-03-27 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772262', 'tblTempUsageDetail_20' ) start [2025-03-27 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772262', 'tblTempUsageDetail_20' ) end [2025-03-27 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:14:21] Production.INFO: ==31981== Releasing lock... [2025-03-27 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-27 06:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:15:06 [end_date_ymd] => 2025-03-27 06:15:06 [RateCDR] => 1 ) [2025-03-27 06:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:15:06' and `end` < '2025-03-27 06:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:15:18] Production.INFO: count ==71 [2025-03-27 06:15:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:15:06 - End Time 2025-03-27 06:15:06 [2025-03-27 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772267', 'tblTempUsageDetail_20' ) start [2025-03-27 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772267', 'tblTempUsageDetail_20' ) end [2025-03-27 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772267', 'tblTempVendorCDR_20' ) start [2025-03-27 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772267', 'tblTempVendorCDR_20' ) end [2025-03-27 06:15:18] Production.INFO: ProcessCDR(1,14772267,1,1,2) [2025-03-27 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772267', 'tblTempUsageDetail_20' ) start [2025-03-27 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772267', 'tblTempUsageDetail_20' ) end [2025-03-27 06:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:15:22] Production.INFO: ==32065== Releasing lock... [2025-03-27 06:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:15:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-27 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:16:05 [end_date_ymd] => 2025-03-27 06:16:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:16:05' and `end` < '2025-03-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-03-27 06:16:18] Production.INFO: count ==71 [2025-03-27 06:16:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:16:05 - End Time 2025-03-27 06:16:05 [2025-03-27 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772272', 'tblTempUsageDetail_20' ) start [2025-03-27 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772272', 'tblTempUsageDetail_20' ) end [2025-03-27 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772272', 'tblTempVendorCDR_20' ) start [2025-03-27 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772272', 'tblTempVendorCDR_20' ) end [2025-03-27 06:16:18] Production.INFO: ProcessCDR(1,14772272,1,1,2) [2025-03-27 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772272', 'tblTempUsageDetail_20' ) start [2025-03-27 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772272', 'tblTempUsageDetail_20' ) end [2025-03-27 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:16:21] Production.INFO: ==32140== Releasing lock... [2025-03-27 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-27 06:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:17:06 [end_date_ymd] => 2025-03-27 06:17:06 [RateCDR] => 1 ) [2025-03-27 06:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:17:06' and `end` < '2025-03-27 06:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:17:18] Production.INFO: count ==74 [2025-03-27 06:17:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:17:06 - End Time 2025-03-27 06:17:06 [2025-03-27 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772277', 'tblTempUsageDetail_20' ) start [2025-03-27 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772277', 'tblTempUsageDetail_20' ) end [2025-03-27 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772277', 'tblTempVendorCDR_20' ) start [2025-03-27 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772277', 'tblTempVendorCDR_20' ) end [2025-03-27 06:17:18] Production.INFO: ProcessCDR(1,14772277,1,1,2) [2025-03-27 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772277', 'tblTempUsageDetail_20' ) start [2025-03-27 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772277', 'tblTempUsageDetail_20' ) end [2025-03-27 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:17:22] Production.INFO: ==32216== Releasing lock... [2025-03-27 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:17:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-27 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:18:05 [end_date_ymd] => 2025-03-27 06:18:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:18:05' and `end` < '2025-03-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-03-27 06:18:17] Production.INFO: count ==75 [2025-03-27 06:18:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:18:05 - End Time 2025-03-27 06:18:05 [2025-03-27 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772282', 'tblTempUsageDetail_20' ) start [2025-03-27 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772282', 'tblTempUsageDetail_20' ) end [2025-03-27 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772282', 'tblTempVendorCDR_20' ) start [2025-03-27 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772282', 'tblTempVendorCDR_20' ) end [2025-03-27 06:18:17] Production.INFO: ProcessCDR(1,14772282,1,1,2) [2025-03-27 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772282', 'tblTempUsageDetail_20' ) start [2025-03-27 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772282', 'tblTempUsageDetail_20' ) end [2025-03-27 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:18:21] Production.INFO: ==32294== Releasing lock... [2025-03-27 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-27 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:19:05 [end_date_ymd] => 2025-03-27 06:19:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:19:05' and `end` < '2025-03-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-03-27 06:19:18] Production.INFO: count ==79 [2025-03-27 06:19:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:19:05 - End Time 2025-03-27 06:19:05 [2025-03-27 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772287', 'tblTempUsageDetail_20' ) start [2025-03-27 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772287', 'tblTempUsageDetail_20' ) end [2025-03-27 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772287', 'tblTempVendorCDR_20' ) start [2025-03-27 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772287', 'tblTempVendorCDR_20' ) end [2025-03-27 06:19:18] Production.INFO: ProcessCDR(1,14772287,1,1,2) [2025-03-27 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772287', 'tblTempUsageDetail_20' ) start [2025-03-27 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772287', 'tblTempUsageDetail_20' ) end [2025-03-27 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:19:21] Production.INFO: ==32369== Releasing lock... [2025-03-27 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:20:05 [end_date_ymd] => 2025-03-27 06:20:05 [RateCDR] => 1 ) [2025-03-27 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:20:05' and `end` < '2025-03-27 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:20:18] Production.INFO: count ==73 [2025-03-27 06:20:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:20:05 - End Time 2025-03-27 06:20:05 [2025-03-27 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772292', 'tblTempUsageDetail_20' ) start [2025-03-27 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772292', 'tblTempUsageDetail_20' ) end [2025-03-27 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772292', 'tblTempVendorCDR_20' ) start [2025-03-27 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772292', 'tblTempVendorCDR_20' ) end [2025-03-27 06:20:18] Production.INFO: ProcessCDR(1,14772292,1,1,2) [2025-03-27 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772292', 'tblTempUsageDetail_20' ) start [2025-03-27 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772292', 'tblTempUsageDetail_20' ) end [2025-03-27 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:20:21] Production.INFO: ==32445== Releasing lock... [2025-03-27 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:20:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-27 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:21:05 [end_date_ymd] => 2025-03-27 06:21:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:21:05' and `end` < '2025-03-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-03-27 06:21:17] Production.INFO: count ==75 [2025-03-27 06:21:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:21:05 - End Time 2025-03-27 06:21:05 [2025-03-27 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772298', 'tblTempUsageDetail_20' ) start [2025-03-27 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772298', 'tblTempUsageDetail_20' ) end [2025-03-27 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772298', 'tblTempVendorCDR_20' ) start [2025-03-27 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772298', 'tblTempVendorCDR_20' ) end [2025-03-27 06:21:17] Production.INFO: ProcessCDR(1,14772298,1,1,2) [2025-03-27 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772298', 'tblTempUsageDetail_20' ) start [2025-03-27 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772298', 'tblTempUsageDetail_20' ) end [2025-03-27 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:21:21] Production.INFO: ==32532== Releasing lock... [2025-03-27 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:22:05 [end_date_ymd] => 2025-03-27 06:22:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:22:05' and `end` < '2025-03-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-03-27 06:22:17] Production.INFO: count ==75 [2025-03-27 06:22:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:22:05 - End Time 2025-03-27 06:22:05 [2025-03-27 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772303', 'tblTempUsageDetail_20' ) start [2025-03-27 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772303', 'tblTempUsageDetail_20' ) end [2025-03-27 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772303', 'tblTempVendorCDR_20' ) start [2025-03-27 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772303', 'tblTempVendorCDR_20' ) end [2025-03-27 06:22:17] Production.INFO: ProcessCDR(1,14772303,1,1,2) [2025-03-27 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772303', 'tblTempUsageDetail_20' ) start [2025-03-27 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772303', 'tblTempUsageDetail_20' ) end [2025-03-27 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:22:21] Production.INFO: ==32629== Releasing lock... [2025-03-27 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:22:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:23:06 [end_date_ymd] => 2025-03-27 06:23:06 [RateCDR] => 1 ) [2025-03-27 06:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:23:06' and `end` < '2025-03-27 06:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:23:18] Production.INFO: count ==75 [2025-03-27 06:23:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:23:06 - End Time 2025-03-27 06:23:06 [2025-03-27 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772308', 'tblTempUsageDetail_20' ) start [2025-03-27 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772308', 'tblTempUsageDetail_20' ) end [2025-03-27 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772308', 'tblTempVendorCDR_20' ) start [2025-03-27 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772308', 'tblTempVendorCDR_20' ) end [2025-03-27 06:23:18] Production.INFO: ProcessCDR(1,14772308,1,1,2) [2025-03-27 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772308', 'tblTempUsageDetail_20' ) start [2025-03-27 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772308', 'tblTempUsageDetail_20' ) end [2025-03-27 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:23:22] Production.INFO: ==32728== Releasing lock... [2025-03-27 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:23:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:24:05 [end_date_ymd] => 2025-03-27 06:24:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:24:05' and `end` < '2025-03-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-03-27 06:24:18] Production.INFO: count ==75 [2025-03-27 06:24:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:24:05 - End Time 2025-03-27 06:24:05 [2025-03-27 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772313', 'tblTempUsageDetail_20' ) start [2025-03-27 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772313', 'tblTempUsageDetail_20' ) end [2025-03-27 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772313', 'tblTempVendorCDR_20' ) start [2025-03-27 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772313', 'tblTempVendorCDR_20' ) end [2025-03-27 06:24:18] Production.INFO: ProcessCDR(1,14772313,1,1,2) [2025-03-27 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772313', 'tblTempUsageDetail_20' ) start [2025-03-27 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772313', 'tblTempUsageDetail_20' ) end [2025-03-27 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:24:21] Production.INFO: ==422== Releasing lock... [2025-03-27 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:25:05 [end_date_ymd] => 2025-03-27 06:25:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:25:05' and `end` < '2025-03-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-03-27 06:25:17] Production.INFO: count ==75 [2025-03-27 06:25:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:25:05 - End Time 2025-03-27 06:25:05 [2025-03-27 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772318', 'tblTempUsageDetail_20' ) start [2025-03-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772318', 'tblTempUsageDetail_20' ) end [2025-03-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772318', 'tblTempVendorCDR_20' ) start [2025-03-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772318', 'tblTempVendorCDR_20' ) end [2025-03-27 06:25:17] Production.INFO: ProcessCDR(1,14772318,1,1,2) [2025-03-27 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772318', 'tblTempUsageDetail_20' ) start [2025-03-27 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772318', 'tblTempUsageDetail_20' ) end [2025-03-27 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:25:21] Production.INFO: ==506== Releasing lock... [2025-03-27 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:26:04 [end_date_ymd] => 2025-03-27 06:26:04 [RateCDR] => 1 ) [2025-03-27 06:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:26:04' and `end` < '2025-03-27 06:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:26:17] Production.INFO: count ==75 [2025-03-27 06:26:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:26:04 - End Time 2025-03-27 06:26:04 [2025-03-27 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772323', 'tblTempUsageDetail_20' ) start [2025-03-27 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772323', 'tblTempUsageDetail_20' ) end [2025-03-27 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772323', 'tblTempVendorCDR_20' ) start [2025-03-27 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772323', 'tblTempVendorCDR_20' ) end [2025-03-27 06:26:17] Production.INFO: ProcessCDR(1,14772323,1,1,2) [2025-03-27 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772323', 'tblTempUsageDetail_20' ) start [2025-03-27 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772323', 'tblTempUsageDetail_20' ) end [2025-03-27 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:26:20] Production.INFO: ==585== Releasing lock... [2025-03-27 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:26:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:27:05 [end_date_ymd] => 2025-03-27 06:27:05 [RateCDR] => 1 ) [2025-03-27 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:27:05' and `end` < '2025-03-27 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:27:17] Production.INFO: count ==75 [2025-03-27 06:27:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:27:05 - End Time 2025-03-27 06:27:05 [2025-03-27 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772328', 'tblTempUsageDetail_20' ) start [2025-03-27 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772328', 'tblTempUsageDetail_20' ) end [2025-03-27 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772328', 'tblTempVendorCDR_20' ) start [2025-03-27 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772328', 'tblTempVendorCDR_20' ) end [2025-03-27 06:27:17] Production.INFO: ProcessCDR(1,14772328,1,1,2) [2025-03-27 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772328', 'tblTempUsageDetail_20' ) start [2025-03-27 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772328', 'tblTempUsageDetail_20' ) end [2025-03-27 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:27:21] Production.INFO: ==673== Releasing lock... [2025-03-27 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:28:04 [end_date_ymd] => 2025-03-27 06:28:04 [RateCDR] => 1 ) [2025-03-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-03-27 03:28:04' and `end` < '2025-03-27 06:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:28:17] Production.INFO: count ==79 [2025-03-27 06:28:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:28:04 - End Time 2025-03-27 06:28:04 [2025-03-27 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772333', 'tblTempUsageDetail_20' ) start [2025-03-27 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772333', 'tblTempUsageDetail_20' ) end [2025-03-27 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772333', 'tblTempVendorCDR_20' ) start [2025-03-27 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772333', 'tblTempVendorCDR_20' ) end [2025-03-27 06:28:17] Production.INFO: ProcessCDR(1,14772333,1,1,2) [2025-03-27 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772333', 'tblTempUsageDetail_20' ) start [2025-03-27 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772333', 'tblTempUsageDetail_20' ) end [2025-03-27 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:28:20] Production.INFO: ==763== Releasing lock... [2025-03-27 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:28:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:29:05 [end_date_ymd] => 2025-03-27 06:29:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:29:05' and `end` < '2025-03-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-03-27 06:29:17] Production.INFO: count ==79 [2025-03-27 06:29:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:29:05 - End Time 2025-03-27 06:29:05 [2025-03-27 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772338', 'tblTempUsageDetail_20' ) start [2025-03-27 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772338', 'tblTempUsageDetail_20' ) end [2025-03-27 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772338', 'tblTempVendorCDR_20' ) start [2025-03-27 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772338', 'tblTempVendorCDR_20' ) end [2025-03-27 06:29:17] Production.INFO: ProcessCDR(1,14772338,1,1,2) [2025-03-27 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772338', 'tblTempUsageDetail_20' ) start [2025-03-27 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772338', 'tblTempUsageDetail_20' ) end [2025-03-27 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:29:21] Production.INFO: ==836== Releasing lock... [2025-03-27 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:30:07 [end_date_ymd] => 2025-03-27 06:30:07 [RateCDR] => 1 ) [2025-03-27 06:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:30:07' and `end` < '2025-03-27 06:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:30:19] Production.INFO: count ==82 [2025-03-27 06:30:19] Production.ERROR: pbx CDR StartTime 2025-03-27 03:30:07 - End Time 2025-03-27 06:30:07 [2025-03-27 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772344', 'tblTempUsageDetail_20' ) start [2025-03-27 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772344', 'tblTempUsageDetail_20' ) end [2025-03-27 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772344', 'tblTempVendorCDR_20' ) start [2025-03-27 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772344', 'tblTempVendorCDR_20' ) end [2025-03-27 06:30:19] Production.INFO: ProcessCDR(1,14772344,1,1,2) [2025-03-27 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772344', 'tblTempUsageDetail_20' ) start [2025-03-27 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772344', 'tblTempUsageDetail_20' ) end [2025-03-27 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:30:22] Production.INFO: ==911== Releasing lock... [2025-03-27 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:31:05 [end_date_ymd] => 2025-03-27 06:31:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:31:05' and `end` < '2025-03-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-03-27 06:31:17] Production.INFO: count ==82 [2025-03-27 06:31:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:31:05 - End Time 2025-03-27 06:31:05 [2025-03-27 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772349', 'tblTempUsageDetail_20' ) start [2025-03-27 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772349', 'tblTempUsageDetail_20' ) end [2025-03-27 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772349', 'tblTempVendorCDR_20' ) start [2025-03-27 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772349', 'tblTempVendorCDR_20' ) end [2025-03-27 06:31:17] Production.INFO: ProcessCDR(1,14772349,1,1,2) [2025-03-27 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772349', 'tblTempUsageDetail_20' ) start [2025-03-27 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772349', 'tblTempUsageDetail_20' ) end [2025-03-27 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:31:21] Production.INFO: ==987== Releasing lock... [2025-03-27 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:32:05 [end_date_ymd] => 2025-03-27 06:32:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:32:05' and `end` < '2025-03-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-03-27 06:32:18] Production.INFO: count ==82 [2025-03-27 06:32:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:32:05 - End Time 2025-03-27 06:32:05 [2025-03-27 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772354', 'tblTempUsageDetail_20' ) start [2025-03-27 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772354', 'tblTempUsageDetail_20' ) end [2025-03-27 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772354', 'tblTempVendorCDR_20' ) start [2025-03-27 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772354', 'tblTempVendorCDR_20' ) end [2025-03-27 06:32:18] Production.INFO: ProcessCDR(1,14772354,1,1,2) [2025-03-27 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772354', 'tblTempUsageDetail_20' ) start [2025-03-27 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772354', 'tblTempUsageDetail_20' ) end [2025-03-27 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:32:21] Production.INFO: ==1059== Releasing lock... [2025-03-27 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:33:05 [end_date_ymd] => 2025-03-27 06:33:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:33:05' and `end` < '2025-03-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-03-27 06:33:18] Production.INFO: count ==82 [2025-03-27 06:33:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:33:05 - End Time 2025-03-27 06:33:05 [2025-03-27 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772359', 'tblTempUsageDetail_20' ) start [2025-03-27 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772359', 'tblTempUsageDetail_20' ) end [2025-03-27 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772359', 'tblTempVendorCDR_20' ) start [2025-03-27 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772359', 'tblTempVendorCDR_20' ) end [2025-03-27 06:33:18] Production.INFO: ProcessCDR(1,14772359,1,1,2) [2025-03-27 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772359', 'tblTempUsageDetail_20' ) start [2025-03-27 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772359', 'tblTempUsageDetail_20' ) end [2025-03-27 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:33:21] Production.INFO: ==1130== Releasing lock... [2025-03-27 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:34:05 [end_date_ymd] => 2025-03-27 06:34:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:34:05' and `end` < '2025-03-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-03-27 06:34:18] Production.INFO: count ==82 [2025-03-27 06:34:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:34:05 - End Time 2025-03-27 06:34:05 [2025-03-27 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772364', 'tblTempUsageDetail_20' ) start [2025-03-27 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772364', 'tblTempUsageDetail_20' ) end [2025-03-27 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772364', 'tblTempVendorCDR_20' ) start [2025-03-27 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772364', 'tblTempVendorCDR_20' ) end [2025-03-27 06:34:18] Production.INFO: ProcessCDR(1,14772364,1,1,2) [2025-03-27 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772364', 'tblTempUsageDetail_20' ) start [2025-03-27 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772364', 'tblTempUsageDetail_20' ) end [2025-03-27 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:34:21] Production.INFO: ==1212== Releasing lock... [2025-03-27 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:35:05 [end_date_ymd] => 2025-03-27 06:35:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:35:05' and `end` < '2025-03-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-03-27 06:35:18] Production.INFO: count ==82 [2025-03-27 06:35:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:35:05 - End Time 2025-03-27 06:35:05 [2025-03-27 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772369', 'tblTempUsageDetail_20' ) start [2025-03-27 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772369', 'tblTempUsageDetail_20' ) end [2025-03-27 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772369', 'tblTempVendorCDR_20' ) start [2025-03-27 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772369', 'tblTempVendorCDR_20' ) end [2025-03-27 06:35:18] Production.INFO: ProcessCDR(1,14772369,1,1,2) [2025-03-27 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772369', 'tblTempUsageDetail_20' ) start [2025-03-27 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772369', 'tblTempUsageDetail_20' ) end [2025-03-27 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:35:21] Production.INFO: ==1294== Releasing lock... [2025-03-27 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:36:06 [end_date_ymd] => 2025-03-27 06:36:06 [RateCDR] => 1 ) [2025-03-27 06:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:36:06' and `end` < '2025-03-27 06:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:36:18] Production.INFO: count ==82 [2025-03-27 06:36:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:36:06 - End Time 2025-03-27 06:36:06 [2025-03-27 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772374', 'tblTempUsageDetail_20' ) start [2025-03-27 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772374', 'tblTempUsageDetail_20' ) end [2025-03-27 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772374', 'tblTempVendorCDR_20' ) start [2025-03-27 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772374', 'tblTempVendorCDR_20' ) end [2025-03-27 06:36:18] Production.INFO: ProcessCDR(1,14772374,1,1,2) [2025-03-27 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772374', 'tblTempUsageDetail_20' ) start [2025-03-27 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772374', 'tblTempUsageDetail_20' ) end [2025-03-27 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:36:22] Production.INFO: ==1367== Releasing lock... [2025-03-27 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:36:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:37:05 [end_date_ymd] => 2025-03-27 06:37:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:37:05' and `end` < '2025-03-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-03-27 06:37:17] Production.INFO: count ==82 [2025-03-27 06:37:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:37:05 - End Time 2025-03-27 06:37:05 [2025-03-27 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772379', 'tblTempUsageDetail_20' ) start [2025-03-27 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772379', 'tblTempUsageDetail_20' ) end [2025-03-27 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772379', 'tblTempVendorCDR_20' ) start [2025-03-27 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772379', 'tblTempVendorCDR_20' ) end [2025-03-27 06:37:17] Production.INFO: ProcessCDR(1,14772379,1,1,2) [2025-03-27 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772379', 'tblTempUsageDetail_20' ) start [2025-03-27 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772379', 'tblTempUsageDetail_20' ) end [2025-03-27 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:37:21] Production.INFO: ==1444== Releasing lock... [2025-03-27 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:38:05 [end_date_ymd] => 2025-03-27 06:38:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:38:05' and `end` < '2025-03-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-03-27 06:38:18] Production.INFO: count ==82 [2025-03-27 06:38:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:38:05 - End Time 2025-03-27 06:38:05 [2025-03-27 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772384', 'tblTempUsageDetail_20' ) start [2025-03-27 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772384', 'tblTempUsageDetail_20' ) end [2025-03-27 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772384', 'tblTempVendorCDR_20' ) start [2025-03-27 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772384', 'tblTempVendorCDR_20' ) end [2025-03-27 06:38:18] Production.INFO: ProcessCDR(1,14772384,1,1,2) [2025-03-27 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772384', 'tblTempUsageDetail_20' ) start [2025-03-27 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772384', 'tblTempUsageDetail_20' ) end [2025-03-27 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:38:21] Production.INFO: ==1554== Releasing lock... [2025-03-27 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:39:05 [end_date_ymd] => 2025-03-27 06:39:05 [RateCDR] => 1 ) [2025-03-27 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:39:05' and `end` < '2025-03-27 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:39:17] Production.INFO: count ==82 [2025-03-27 06:39:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:39:05 - End Time 2025-03-27 06:39:05 [2025-03-27 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772389', 'tblTempUsageDetail_20' ) start [2025-03-27 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772389', 'tblTempUsageDetail_20' ) end [2025-03-27 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772389', 'tblTempVendorCDR_20' ) start [2025-03-27 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772389', 'tblTempVendorCDR_20' ) end [2025-03-27 06:39:17] Production.INFO: ProcessCDR(1,14772389,1,1,2) [2025-03-27 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772389', 'tblTempUsageDetail_20' ) start [2025-03-27 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772389', 'tblTempUsageDetail_20' ) end [2025-03-27 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:39:21] Production.INFO: ==1678== Releasing lock... [2025-03-27 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:40:06 [end_date_ymd] => 2025-03-27 06:40:06 [RateCDR] => 1 ) [2025-03-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-03-27 03:40:06' and `end` < '2025-03-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-03-27 06:40:18] Production.INFO: count ==72 [2025-03-27 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:40:06 - End Time 2025-03-27 06:40:06 [2025-03-27 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772394', 'tblTempUsageDetail_20' ) start [2025-03-27 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772394', 'tblTempUsageDetail_20' ) end [2025-03-27 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772394', 'tblTempVendorCDR_20' ) start [2025-03-27 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772394', 'tblTempVendorCDR_20' ) end [2025-03-27 06:40:18] Production.INFO: ProcessCDR(1,14772394,1,1,2) [2025-03-27 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772394', 'tblTempUsageDetail_20' ) start [2025-03-27 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772394', 'tblTempUsageDetail_20' ) end [2025-03-27 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:40:22] Production.INFO: ==1765== Releasing lock... [2025-03-27 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:40:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:41:05 [end_date_ymd] => 2025-03-27 06:41:05 [RateCDR] => 1 ) [2025-03-27 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:41:05' and `end` < '2025-03-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-03-27 06:41:17] Production.INFO: count ==72 [2025-03-27 06:41:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:41:05 - End Time 2025-03-27 06:41:05 [2025-03-27 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772400', 'tblTempUsageDetail_20' ) start [2025-03-27 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772400', 'tblTempUsageDetail_20' ) end [2025-03-27 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772400', 'tblTempVendorCDR_20' ) start [2025-03-27 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772400', 'tblTempVendorCDR_20' ) end [2025-03-27 06:41:17] Production.INFO: ProcessCDR(1,14772400,1,1,2) [2025-03-27 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772400', 'tblTempUsageDetail_20' ) start [2025-03-27 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772400', 'tblTempUsageDetail_20' ) end [2025-03-27 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:41:21] Production.INFO: ==1853== Releasing lock... [2025-03-27 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:42:05 [end_date_ymd] => 2025-03-27 06:42:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:42:05' and `end` < '2025-03-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-03-27 06:42:17] Production.INFO: count ==72 [2025-03-27 06:42:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:42:05 - End Time 2025-03-27 06:42:05 [2025-03-27 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772405', 'tblTempUsageDetail_20' ) start [2025-03-27 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772405', 'tblTempUsageDetail_20' ) end [2025-03-27 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772405', 'tblTempVendorCDR_20' ) start [2025-03-27 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772405', 'tblTempVendorCDR_20' ) end [2025-03-27 06:42:17] Production.INFO: ProcessCDR(1,14772405,1,1,2) [2025-03-27 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772405', 'tblTempUsageDetail_20' ) start [2025-03-27 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772405', 'tblTempUsageDetail_20' ) end [2025-03-27 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:42:21] Production.INFO: ==1931== Releasing lock... [2025-03-27 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:43:05 [end_date_ymd] => 2025-03-27 06:43:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:43:05' and `end` < '2025-03-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-03-27 06:43:18] Production.INFO: count ==71 [2025-03-27 06:43:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:43:05 - End Time 2025-03-27 06:43:05 [2025-03-27 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772410', 'tblTempUsageDetail_20' ) start [2025-03-27 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772410', 'tblTempUsageDetail_20' ) end [2025-03-27 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772410', 'tblTempVendorCDR_20' ) start [2025-03-27 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772410', 'tblTempVendorCDR_20' ) end [2025-03-27 06:43:18] Production.INFO: ProcessCDR(1,14772410,1,1,2) [2025-03-27 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772410', 'tblTempUsageDetail_20' ) start [2025-03-27 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772410', 'tblTempUsageDetail_20' ) end [2025-03-27 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:43:21] Production.INFO: ==2010== Releasing lock... [2025-03-27 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:44:05 [end_date_ymd] => 2025-03-27 06:44:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:44:05' and `end` < '2025-03-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-03-27 06:44:17] Production.INFO: count ==71 [2025-03-27 06:44:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:44:05 - End Time 2025-03-27 06:44:05 [2025-03-27 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772415', 'tblTempUsageDetail_20' ) start [2025-03-27 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772415', 'tblTempUsageDetail_20' ) end [2025-03-27 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772415', 'tblTempVendorCDR_20' ) start [2025-03-27 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772415', 'tblTempVendorCDR_20' ) end [2025-03-27 06:44:17] Production.INFO: ProcessCDR(1,14772415,1,1,2) [2025-03-27 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772415', 'tblTempUsageDetail_20' ) start [2025-03-27 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772415', 'tblTempUsageDetail_20' ) end [2025-03-27 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:44:21] Production.INFO: ==2085== Releasing lock... [2025-03-27 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:45:05 [end_date_ymd] => 2025-03-27 06:45:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:45:05' and `end` < '2025-03-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-03-27 06:45:17] Production.INFO: count ==71 [2025-03-27 06:45:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:45:05 - End Time 2025-03-27 06:45:05 [2025-03-27 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772420', 'tblTempUsageDetail_20' ) start [2025-03-27 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772420', 'tblTempUsageDetail_20' ) end [2025-03-27 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772420', 'tblTempVendorCDR_20' ) start [2025-03-27 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772420', 'tblTempVendorCDR_20' ) end [2025-03-27 06:45:17] Production.INFO: ProcessCDR(1,14772420,1,1,2) [2025-03-27 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772420', 'tblTempUsageDetail_20' ) start [2025-03-27 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772420', 'tblTempUsageDetail_20' ) end [2025-03-27 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:45:20] Production.INFO: ==2166== Releasing lock... [2025-03-27 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:45:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:46:05 [end_date_ymd] => 2025-03-27 06:46:05 [RateCDR] => 1 ) [2025-03-27 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:46:05' and `end` < '2025-03-27 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:46:17] Production.INFO: count ==71 [2025-03-27 06:46:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:46:05 - End Time 2025-03-27 06:46:05 [2025-03-27 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772425', 'tblTempUsageDetail_20' ) start [2025-03-27 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772425', 'tblTempUsageDetail_20' ) end [2025-03-27 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772425', 'tblTempVendorCDR_20' ) start [2025-03-27 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772425', 'tblTempVendorCDR_20' ) end [2025-03-27 06:46:17] Production.INFO: ProcessCDR(1,14772425,1,1,2) [2025-03-27 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772425', 'tblTempUsageDetail_20' ) start [2025-03-27 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772425', 'tblTempUsageDetail_20' ) end [2025-03-27 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:46:21] Production.INFO: ==2246== Releasing lock... [2025-03-27 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:47:05 [end_date_ymd] => 2025-03-27 06:47:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:47:05' and `end` < '2025-03-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-03-27 06:47:18] Production.INFO: count ==71 [2025-03-27 06:47:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:47:05 - End Time 2025-03-27 06:47:05 [2025-03-27 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772430', 'tblTempUsageDetail_20' ) start [2025-03-27 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772430', 'tblTempUsageDetail_20' ) end [2025-03-27 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772430', 'tblTempVendorCDR_20' ) start [2025-03-27 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772430', 'tblTempVendorCDR_20' ) end [2025-03-27 06:47:18] Production.INFO: ProcessCDR(1,14772430,1,1,2) [2025-03-27 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772430', 'tblTempUsageDetail_20' ) start [2025-03-27 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772430', 'tblTempUsageDetail_20' ) end [2025-03-27 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:47:21] Production.INFO: ==2323== Releasing lock... [2025-03-27 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:48:05 [end_date_ymd] => 2025-03-27 06:48:05 [RateCDR] => 1 ) [2025-03-27 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:48:05' and `end` < '2025-03-27 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:48:17] Production.INFO: count ==71 [2025-03-27 06:48:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:48:05 - End Time 2025-03-27 06:48:05 [2025-03-27 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772435', 'tblTempUsageDetail_20' ) start [2025-03-27 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772435', 'tblTempUsageDetail_20' ) end [2025-03-27 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772435', 'tblTempVendorCDR_20' ) start [2025-03-27 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772435', 'tblTempVendorCDR_20' ) end [2025-03-27 06:48:17] Production.INFO: ProcessCDR(1,14772435,1,1,2) [2025-03-27 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772435', 'tblTempUsageDetail_20' ) start [2025-03-27 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772435', 'tblTempUsageDetail_20' ) end [2025-03-27 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:48:21] Production.INFO: ==2401== Releasing lock... [2025-03-27 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:49:06 [end_date_ymd] => 2025-03-27 06:49:06 [RateCDR] => 1 ) [2025-03-27 06:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:49:06' and `end` < '2025-03-27 06:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:49:18] Production.INFO: count ==71 [2025-03-27 06:49:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:49:06 - End Time 2025-03-27 06:49:06 [2025-03-27 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772440', 'tblTempUsageDetail_20' ) start [2025-03-27 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772440', 'tblTempUsageDetail_20' ) end [2025-03-27 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772440', 'tblTempVendorCDR_20' ) start [2025-03-27 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772440', 'tblTempVendorCDR_20' ) end [2025-03-27 06:49:18] Production.INFO: ProcessCDR(1,14772440,1,1,2) [2025-03-27 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772440', 'tblTempUsageDetail_20' ) start [2025-03-27 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772440', 'tblTempUsageDetail_20' ) end [2025-03-27 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:49:21] Production.INFO: ==2484== Releasing lock... [2025-03-27 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:50:06 [end_date_ymd] => 2025-03-27 06:50:06 [RateCDR] => 1 ) [2025-03-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-03-27 03:50:06' and `end` < '2025-03-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-03-27 06:50:19] Production.INFO: count ==81 [2025-03-27 06:50:19] Production.ERROR: pbx CDR StartTime 2025-03-27 03:50:06 - End Time 2025-03-27 06:50:06 [2025-03-27 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772446', 'tblTempUsageDetail_20' ) start [2025-03-27 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772446', 'tblTempUsageDetail_20' ) end [2025-03-27 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772446', 'tblTempVendorCDR_20' ) start [2025-03-27 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772446', 'tblTempVendorCDR_20' ) end [2025-03-27 06:50:19] Production.INFO: ProcessCDR(1,14772446,1,1,2) [2025-03-27 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772446', 'tblTempUsageDetail_20' ) start [2025-03-27 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772446', 'tblTempUsageDetail_20' ) end [2025-03-27 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:50:22] Production.INFO: ==2559== Releasing lock... [2025-03-27 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:50:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:51:05 [end_date_ymd] => 2025-03-27 06:51:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:51:05' and `end` < '2025-03-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-03-27 06:51:17] Production.INFO: count ==83 [2025-03-27 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:51:05 - End Time 2025-03-27 06:51:05 [2025-03-27 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772451', 'tblTempUsageDetail_20' ) start [2025-03-27 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772451', 'tblTempUsageDetail_20' ) end [2025-03-27 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772451', 'tblTempVendorCDR_20' ) start [2025-03-27 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772451', 'tblTempVendorCDR_20' ) end [2025-03-27 06:51:17] Production.INFO: ProcessCDR(1,14772451,1,1,2) [2025-03-27 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772451', 'tblTempUsageDetail_20' ) start [2025-03-27 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772451', 'tblTempUsageDetail_20' ) end [2025-03-27 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:51:21] Production.INFO: ==2640== Releasing lock... [2025-03-27 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:52:05 [end_date_ymd] => 2025-03-27 06:52:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:52:05' and `end` < '2025-03-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-03-27 06:52:17] Production.INFO: count ==87 [2025-03-27 06:52:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:52:05 - End Time 2025-03-27 06:52:05 [2025-03-27 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772456', 'tblTempUsageDetail_20' ) start [2025-03-27 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772456', 'tblTempUsageDetail_20' ) end [2025-03-27 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772456', 'tblTempVendorCDR_20' ) start [2025-03-27 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772456', 'tblTempVendorCDR_20' ) end [2025-03-27 06:52:17] Production.INFO: ProcessCDR(1,14772456,1,1,2) [2025-03-27 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772456', 'tblTempUsageDetail_20' ) start [2025-03-27 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772456', 'tblTempUsageDetail_20' ) end [2025-03-27 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:52:22] Production.INFO: ==2721== Releasing lock... [2025-03-27 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:52:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:53:05 [end_date_ymd] => 2025-03-27 06:53:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:53:05' and `end` < '2025-03-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-03-27 06:53:17] Production.INFO: count ==87 [2025-03-27 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:53:05 - End Time 2025-03-27 06:53:05 [2025-03-27 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772461', 'tblTempUsageDetail_20' ) start [2025-03-27 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772461', 'tblTempUsageDetail_20' ) end [2025-03-27 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772461', 'tblTempVendorCDR_20' ) start [2025-03-27 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772461', 'tblTempVendorCDR_20' ) end [2025-03-27 06:53:17] Production.INFO: ProcessCDR(1,14772461,1,1,2) [2025-03-27 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772461', 'tblTempUsageDetail_20' ) start [2025-03-27 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772461', 'tblTempUsageDetail_20' ) end [2025-03-27 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:53:21] Production.INFO: ==2802== Releasing lock... [2025-03-27 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:54:05 [end_date_ymd] => 2025-03-27 06:54:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:54:05' and `end` < '2025-03-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-03-27 06:54:17] Production.INFO: count ==87 [2025-03-27 06:54:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:54:05 - End Time 2025-03-27 06:54:05 [2025-03-27 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772466', 'tblTempUsageDetail_20' ) start [2025-03-27 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772466', 'tblTempUsageDetail_20' ) end [2025-03-27 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772466', 'tblTempVendorCDR_20' ) start [2025-03-27 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772466', 'tblTempVendorCDR_20' ) end [2025-03-27 06:54:17] Production.INFO: ProcessCDR(1,14772466,1,1,2) [2025-03-27 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772466', 'tblTempUsageDetail_20' ) start [2025-03-27 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772466', 'tblTempUsageDetail_20' ) end [2025-03-27 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:54:21] Production.INFO: ==2878== Releasing lock... [2025-03-27 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:55:05 [end_date_ymd] => 2025-03-27 06:55:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:55:05' and `end` < '2025-03-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-03-27 06:55:18] Production.INFO: count ==87 [2025-03-27 06:55:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:55:05 - End Time 2025-03-27 06:55:05 [2025-03-27 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772471', 'tblTempUsageDetail_20' ) start [2025-03-27 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772471', 'tblTempUsageDetail_20' ) end [2025-03-27 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772471', 'tblTempVendorCDR_20' ) start [2025-03-27 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772471', 'tblTempVendorCDR_20' ) end [2025-03-27 06:55:18] Production.INFO: ProcessCDR(1,14772471,1,1,2) [2025-03-27 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772471', 'tblTempUsageDetail_20' ) start [2025-03-27 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772471', 'tblTempUsageDetail_20' ) end [2025-03-27 06:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:55:22] Production.INFO: ==2997== Releasing lock... [2025-03-27 06:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:55:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:56:06 [end_date_ymd] => 2025-03-27 06:56:06 [RateCDR] => 1 ) [2025-03-27 06:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:56:06' and `end` < '2025-03-27 06:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:56:18] Production.INFO: count ==87 [2025-03-27 06:56:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:56:06 - End Time 2025-03-27 06:56:06 [2025-03-27 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772476', 'tblTempUsageDetail_20' ) start [2025-03-27 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772476', 'tblTempUsageDetail_20' ) end [2025-03-27 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772476', 'tblTempVendorCDR_20' ) start [2025-03-27 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772476', 'tblTempVendorCDR_20' ) end [2025-03-27 06:56:18] Production.INFO: ProcessCDR(1,14772476,1,1,2) [2025-03-27 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772476', 'tblTempUsageDetail_20' ) start [2025-03-27 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772476', 'tblTempUsageDetail_20' ) end [2025-03-27 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:56:22] Production.INFO: ==3078== Releasing lock... [2025-03-27 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:56:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:57:05 [end_date_ymd] => 2025-03-27 06:57:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:57:05' and `end` < '2025-03-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-03-27 06:57:18] Production.INFO: count ==87 [2025-03-27 06:57:18] Production.ERROR: pbx CDR StartTime 2025-03-27 03:57:05 - End Time 2025-03-27 06:57:05 [2025-03-27 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772481', 'tblTempUsageDetail_20' ) start [2025-03-27 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772481', 'tblTempUsageDetail_20' ) end [2025-03-27 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772481', 'tblTempVendorCDR_20' ) start [2025-03-27 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772481', 'tblTempVendorCDR_20' ) end [2025-03-27 06:57:18] Production.INFO: ProcessCDR(1,14772481,1,1,2) [2025-03-27 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772481', 'tblTempUsageDetail_20' ) start [2025-03-27 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772481', 'tblTempUsageDetail_20' ) end [2025-03-27 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:57:21] Production.INFO: ==3157== Releasing lock... [2025-03-27 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:58:05 [end_date_ymd] => 2025-03-27 06:58:05 [RateCDR] => 1 ) [2025-03-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-03-27 03:58:05' and `end` < '2025-03-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-03-27 06:58:17] Production.INFO: count ==87 [2025-03-27 06:58:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:58:05 - End Time 2025-03-27 06:58:05 [2025-03-27 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772486', 'tblTempUsageDetail_20' ) start [2025-03-27 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772486', 'tblTempUsageDetail_20' ) end [2025-03-27 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772486', 'tblTempVendorCDR_20' ) start [2025-03-27 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772486', 'tblTempVendorCDR_20' ) end [2025-03-27 06:58:18] Production.INFO: ProcessCDR(1,14772486,1,1,2) [2025-03-27 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772486', 'tblTempUsageDetail_20' ) start [2025-03-27 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772486', 'tblTempUsageDetail_20' ) end [2025-03-27 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:58:21] Production.INFO: ==3232== Releasing lock... [2025-03-27 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 03:59:05 [end_date_ymd] => 2025-03-27 06:59:05 [RateCDR] => 1 ) [2025-03-27 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 03:59:05' and `end` < '2025-03-27 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 06:59:17] Production.INFO: count ==87 [2025-03-27 06:59:17] Production.ERROR: pbx CDR StartTime 2025-03-27 03:59:05 - End Time 2025-03-27 06:59:05 [2025-03-27 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772491', 'tblTempUsageDetail_20' ) start [2025-03-27 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772491', 'tblTempUsageDetail_20' ) end [2025-03-27 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772491', 'tblTempVendorCDR_20' ) start [2025-03-27 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772491', 'tblTempVendorCDR_20' ) end [2025-03-27 06:59:17] Production.INFO: ProcessCDR(1,14772491,1,1,2) [2025-03-27 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772491', 'tblTempUsageDetail_20' ) start [2025-03-27 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772491', 'tblTempUsageDetail_20' ) end [2025-03-27 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 06:59:21] Production.INFO: ==3310== Releasing lock... [2025-03-27 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 06:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:00:06 [end_date_ymd] => 2025-03-27 07:00:06 [RateCDR] => 1 ) [2025-03-27 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:00:06' and `end` < '2025-03-27 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:00:19] Production.INFO: count ==87 [2025-03-27 07:00:19] Production.ERROR: pbx CDR StartTime 2025-03-27 04:00:06 - End Time 2025-03-27 07:00:06 [2025-03-27 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772497', 'tblTempUsageDetail_20' ) start [2025-03-27 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772497', 'tblTempUsageDetail_20' ) end [2025-03-27 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772497', 'tblTempVendorCDR_20' ) start [2025-03-27 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772497', 'tblTempVendorCDR_20' ) end [2025-03-27 07:00:19] Production.INFO: ProcessCDR(1,14772497,1,1,2) [2025-03-27 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772497', 'tblTempUsageDetail_20' ) start [2025-03-27 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772497', 'tblTempUsageDetail_20' ) end [2025-03-27 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:00:22] Production.INFO: ==3393== Releasing lock... [2025-03-27 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:01:06 [end_date_ymd] => 2025-03-27 07:01:06 [RateCDR] => 1 ) [2025-03-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-03-27 04:01:06' and `end` < '2025-03-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-03-27 07:01:19] Production.INFO: count ==87 [2025-03-27 07:01:19] Production.ERROR: pbx CDR StartTime 2025-03-27 04:01:06 - End Time 2025-03-27 07:01:06 [2025-03-27 07:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772502', 'tblTempUsageDetail_20' ) start [2025-03-27 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772502', 'tblTempUsageDetail_20' ) end [2025-03-27 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772502', 'tblTempVendorCDR_20' ) start [2025-03-27 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772502', 'tblTempVendorCDR_20' ) end [2025-03-27 07:01:19] Production.INFO: ProcessCDR(1,14772502,1,1,2) [2025-03-27 07:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772502', 'tblTempUsageDetail_20' ) start [2025-03-27 07:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772502', 'tblTempUsageDetail_20' ) end [2025-03-27 07:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:01:24] Production.INFO: ==3560== Releasing lock... [2025-03-27 07:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:01:24] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:02:06 [end_date_ymd] => 2025-03-27 07:02:06 [RateCDR] => 1 ) [2025-03-27 07:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:02:06' and `end` < '2025-03-27 07:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:02:19] Production.INFO: count ==87 [2025-03-27 07:02:19] Production.ERROR: pbx CDR StartTime 2025-03-27 04:02:06 - End Time 2025-03-27 07:02:06 [2025-03-27 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772507', 'tblTempUsageDetail_20' ) start [2025-03-27 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772507', 'tblTempUsageDetail_20' ) end [2025-03-27 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772507', 'tblTempVendorCDR_20' ) start [2025-03-27 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772507', 'tblTempVendorCDR_20' ) end [2025-03-27 07:02:19] Production.INFO: ProcessCDR(1,14772507,1,1,2) [2025-03-27 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772507', 'tblTempUsageDetail_20' ) start [2025-03-27 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772507', 'tblTempUsageDetail_20' ) end [2025-03-27 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:02:22] Production.INFO: ==3666== Releasing lock... [2025-03-27 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:02:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:03:05 [end_date_ymd] => 2025-03-27 07:03:05 [RateCDR] => 1 ) [2025-03-27 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:03:05' and `end` < '2025-03-27 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:03:18] Production.INFO: count ==87 [2025-03-27 07:03:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:03:05 - End Time 2025-03-27 07:03:05 [2025-03-27 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772512', 'tblTempUsageDetail_20' ) start [2025-03-27 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772512', 'tblTempUsageDetail_20' ) end [2025-03-27 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772512', 'tblTempVendorCDR_20' ) start [2025-03-27 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772512', 'tblTempVendorCDR_20' ) end [2025-03-27 07:03:18] Production.INFO: ProcessCDR(1,14772512,1,1,2) [2025-03-27 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772512', 'tblTempUsageDetail_20' ) start [2025-03-27 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772512', 'tblTempUsageDetail_20' ) end [2025-03-27 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:03:22] Production.INFO: ==3748== Releasing lock... [2025-03-27 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:03:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:04:06 [end_date_ymd] => 2025-03-27 07:04:06 [RateCDR] => 1 ) [2025-03-27 07:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:04:06' and `end` < '2025-03-27 07:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:04:18] Production.INFO: count ==87 [2025-03-27 07:04:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:04:06 - End Time 2025-03-27 07:04:06 [2025-03-27 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772517', 'tblTempUsageDetail_20' ) start [2025-03-27 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772517', 'tblTempUsageDetail_20' ) end [2025-03-27 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772517', 'tblTempVendorCDR_20' ) start [2025-03-27 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772517', 'tblTempVendorCDR_20' ) end [2025-03-27 07:04:18] Production.INFO: ProcessCDR(1,14772517,1,1,2) [2025-03-27 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772517', 'tblTempUsageDetail_20' ) start [2025-03-27 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772517', 'tblTempUsageDetail_20' ) end [2025-03-27 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:04:22] Production.INFO: ==3826== Releasing lock... [2025-03-27 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:04:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:05:05 [end_date_ymd] => 2025-03-27 07:05:05 [RateCDR] => 1 ) [2025-03-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-03-27 04:05:05' and `end` < '2025-03-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-03-27 07:05:18] Production.INFO: count ==87 [2025-03-27 07:05:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:05:05 - End Time 2025-03-27 07:05:05 [2025-03-27 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772522', 'tblTempUsageDetail_20' ) start [2025-03-27 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772522', 'tblTempUsageDetail_20' ) end [2025-03-27 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772522', 'tblTempVendorCDR_20' ) start [2025-03-27 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772522', 'tblTempVendorCDR_20' ) end [2025-03-27 07:05:18] Production.INFO: ProcessCDR(1,14772522,1,1,2) [2025-03-27 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772522', 'tblTempUsageDetail_20' ) start [2025-03-27 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772522', 'tblTempUsageDetail_20' ) end [2025-03-27 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:05:21] Production.INFO: ==3983== Releasing lock... [2025-03-27 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:06:05 [end_date_ymd] => 2025-03-27 07:06:05 [RateCDR] => 1 ) [2025-03-27 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:06:05' and `end` < '2025-03-27 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:06:20] Production.INFO: count ==87 [2025-03-27 07:06:20] Production.ERROR: pbx CDR StartTime 2025-03-27 04:06:05 - End Time 2025-03-27 07:06:05 [2025-03-27 07:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772527', 'tblTempUsageDetail_20' ) start [2025-03-27 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772527', 'tblTempUsageDetail_20' ) end [2025-03-27 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772527', 'tblTempVendorCDR_20' ) start [2025-03-27 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772527', 'tblTempVendorCDR_20' ) end [2025-03-27 07:06:20] Production.INFO: ProcessCDR(1,14772527,1,1,2) [2025-03-27 07:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772527', 'tblTempUsageDetail_20' ) start [2025-03-27 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772527', 'tblTempUsageDetail_20' ) end [2025-03-27 07:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:06:23] Production.INFO: ==4062== Releasing lock... [2025-03-27 07:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:06:23] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:07:05 [end_date_ymd] => 2025-03-27 07:07:05 [RateCDR] => 1 ) [2025-03-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-03-27 04:07:05' and `end` < '2025-03-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-03-27 07:07:18] Production.INFO: count ==87 [2025-03-27 07:07:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:07:05 - End Time 2025-03-27 07:07:05 [2025-03-27 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772532', 'tblTempUsageDetail_20' ) start [2025-03-27 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772532', 'tblTempUsageDetail_20' ) end [2025-03-27 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772532', 'tblTempVendorCDR_20' ) start [2025-03-27 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772532', 'tblTempVendorCDR_20' ) end [2025-03-27 07:07:18] Production.INFO: ProcessCDR(1,14772532,1,1,2) [2025-03-27 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772532', 'tblTempUsageDetail_20' ) start [2025-03-27 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772532', 'tblTempUsageDetail_20' ) end [2025-03-27 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:07:21] Production.INFO: ==4138== Releasing lock... [2025-03-27 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:07:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:08:05 [end_date_ymd] => 2025-03-27 07:08:05 [RateCDR] => 1 ) [2025-03-27 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:08:05' and `end` < '2025-03-27 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:08:19] Production.INFO: count ==87 [2025-03-27 07:08:19] Production.ERROR: pbx CDR StartTime 2025-03-27 04:08:05 - End Time 2025-03-27 07:08:05 [2025-03-27 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772537', 'tblTempUsageDetail_20' ) start [2025-03-27 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772537', 'tblTempUsageDetail_20' ) end [2025-03-27 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772537', 'tblTempVendorCDR_20' ) start [2025-03-27 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772537', 'tblTempVendorCDR_20' ) end [2025-03-27 07:08:19] Production.INFO: ProcessCDR(1,14772537,1,1,2) [2025-03-27 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772537', 'tblTempUsageDetail_20' ) start [2025-03-27 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772537', 'tblTempUsageDetail_20' ) end [2025-03-27 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:08:22] Production.INFO: ==4296== Releasing lock... [2025-03-27 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:08:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:09:05 [end_date_ymd] => 2025-03-27 07:09:05 [RateCDR] => 1 ) [2025-03-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-03-27 04:09:05' and `end` < '2025-03-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-03-27 07:09:18] Production.INFO: count ==87 [2025-03-27 07:09:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:09:05 - End Time 2025-03-27 07:09:05 [2025-03-27 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772542', 'tblTempUsageDetail_20' ) start [2025-03-27 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772542', 'tblTempUsageDetail_20' ) end [2025-03-27 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772542', 'tblTempVendorCDR_20' ) start [2025-03-27 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772542', 'tblTempVendorCDR_20' ) end [2025-03-27 07:09:18] Production.INFO: ProcessCDR(1,14772542,1,1,2) [2025-03-27 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772542', 'tblTempUsageDetail_20' ) start [2025-03-27 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772542', 'tblTempUsageDetail_20' ) end [2025-03-27 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:09:21] Production.INFO: ==4372== Releasing lock... [2025-03-27 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:09:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:10:06 [end_date_ymd] => 2025-03-27 07:10:06 [RateCDR] => 1 ) [2025-03-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-03-27 04:10:06' and `end` < '2025-03-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-03-27 07:10:19] Production.INFO: count ==78 [2025-03-27 07:10:19] Production.ERROR: pbx CDR StartTime 2025-03-27 04:10:06 - End Time 2025-03-27 07:10:06 [2025-03-27 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772548', 'tblTempUsageDetail_20' ) start [2025-03-27 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772548', 'tblTempUsageDetail_20' ) end [2025-03-27 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772548', 'tblTempVendorCDR_20' ) start [2025-03-27 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772548', 'tblTempVendorCDR_20' ) end [2025-03-27 07:10:19] Production.INFO: ProcessCDR(1,14772548,1,1,2) [2025-03-27 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772548', 'tblTempUsageDetail_20' ) start [2025-03-27 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772548', 'tblTempUsageDetail_20' ) end [2025-03-27 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:10:22] Production.INFO: ==4494== Releasing lock... [2025-03-27 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:10:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:11:04 [end_date_ymd] => 2025-03-27 07:11:04 [RateCDR] => 1 ) [2025-03-27 07:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:11:04' and `end` < '2025-03-27 07:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:11:17] Production.INFO: count ==77 [2025-03-27 07:11:17] Production.ERROR: pbx CDR StartTime 2025-03-27 04:11:04 - End Time 2025-03-27 07:11:04 [2025-03-27 07:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772553', 'tblTempUsageDetail_20' ) start [2025-03-27 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772553', 'tblTempUsageDetail_20' ) end [2025-03-27 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772553', 'tblTempVendorCDR_20' ) start [2025-03-27 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772553', 'tblTempVendorCDR_20' ) end [2025-03-27 07:11:17] Production.INFO: ProcessCDR(1,14772553,1,1,2) [2025-03-27 07:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772553', 'tblTempUsageDetail_20' ) start [2025-03-27 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772553', 'tblTempUsageDetail_20' ) end [2025-03-27 07:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:11:20] Production.INFO: ==4593== Releasing lock... [2025-03-27 07:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:11:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:12:05 [end_date_ymd] => 2025-03-27 07:12:05 [RateCDR] => 1 ) [2025-03-27 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:12:05' and `end` < '2025-03-27 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:12:18] Production.INFO: count ==76 [2025-03-27 07:12:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:12:05 - End Time 2025-03-27 07:12:05 [2025-03-27 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772558', 'tblTempUsageDetail_20' ) start [2025-03-27 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772558', 'tblTempUsageDetail_20' ) end [2025-03-27 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772558', 'tblTempVendorCDR_20' ) start [2025-03-27 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772558', 'tblTempVendorCDR_20' ) end [2025-03-27 07:12:18] Production.INFO: ProcessCDR(1,14772558,1,1,2) [2025-03-27 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772558', 'tblTempUsageDetail_20' ) start [2025-03-27 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772558', 'tblTempUsageDetail_20' ) end [2025-03-27 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:12:22] Production.INFO: ==4756== Releasing lock... [2025-03-27 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:12:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:13:06 [end_date_ymd] => 2025-03-27 07:13:06 [RateCDR] => 1 ) [2025-03-27 07:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:13:06' and `end` < '2025-03-27 07:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:13:19] Production.INFO: count ==76 [2025-03-27 07:13:19] Production.ERROR: pbx CDR StartTime 2025-03-27 04:13:06 - End Time 2025-03-27 07:13:06 [2025-03-27 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772563', 'tblTempUsageDetail_20' ) start [2025-03-27 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772563', 'tblTempUsageDetail_20' ) end [2025-03-27 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772563', 'tblTempVendorCDR_20' ) start [2025-03-27 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772563', 'tblTempVendorCDR_20' ) end [2025-03-27 07:13:19] Production.INFO: ProcessCDR(1,14772563,1,1,2) [2025-03-27 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772563', 'tblTempUsageDetail_20' ) start [2025-03-27 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772563', 'tblTempUsageDetail_20' ) end [2025-03-27 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:13:23] Production.INFO: ==4856== Releasing lock... [2025-03-27 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:13:23] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:14:05 [end_date_ymd] => 2025-03-27 07:14:05 [RateCDR] => 1 ) [2025-03-27 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:14:05' and `end` < '2025-03-27 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:14:20] Production.INFO: count ==76 [2025-03-27 07:14:20] Production.ERROR: pbx CDR StartTime 2025-03-27 04:14:05 - End Time 2025-03-27 07:14:05 [2025-03-27 07:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772568', 'tblTempUsageDetail_20' ) start [2025-03-27 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772568', 'tblTempUsageDetail_20' ) end [2025-03-27 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772568', 'tblTempVendorCDR_20' ) start [2025-03-27 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772568', 'tblTempVendorCDR_20' ) end [2025-03-27 07:14:20] Production.INFO: ProcessCDR(1,14772568,1,1,2) [2025-03-27 07:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772568', 'tblTempUsageDetail_20' ) start [2025-03-27 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772568', 'tblTempUsageDetail_20' ) end [2025-03-27 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:14:23] Production.INFO: ==4942== Releasing lock... [2025-03-27 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:14:23] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:15:06 [end_date_ymd] => 2025-03-27 07:15:06 [RateCDR] => 1 ) [2025-03-27 07:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:15:06' and `end` < '2025-03-27 07:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:15:21] Production.INFO: count ==75 [2025-03-27 07:15:21] Production.ERROR: pbx CDR StartTime 2025-03-27 04:15:06 - End Time 2025-03-27 07:15:06 [2025-03-27 07:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772573', 'tblTempUsageDetail_20' ) start [2025-03-27 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772573', 'tblTempUsageDetail_20' ) end [2025-03-27 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772573', 'tblTempVendorCDR_20' ) start [2025-03-27 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772573', 'tblTempVendorCDR_20' ) end [2025-03-27 07:15:21] Production.INFO: ProcessCDR(1,14772573,1,1,2) [2025-03-27 07:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772573', 'tblTempUsageDetail_20' ) start [2025-03-27 07:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772573', 'tblTempUsageDetail_20' ) end [2025-03-27 07:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:15:25] Production.INFO: ==5118== Releasing lock... [2025-03-27 07:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:15:25] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:16:05 [end_date_ymd] => 2025-03-27 07:16:05 [RateCDR] => 1 ) [2025-03-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-03-27 04:16:05' and `end` < '2025-03-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-03-27 07:16:18] Production.INFO: count ==75 [2025-03-27 07:16:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:16:05 - End Time 2025-03-27 07:16:05 [2025-03-27 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772578', 'tblTempUsageDetail_20' ) start [2025-03-27 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772578', 'tblTempUsageDetail_20' ) end [2025-03-27 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772578', 'tblTempVendorCDR_20' ) start [2025-03-27 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772578', 'tblTempVendorCDR_20' ) end [2025-03-27 07:16:18] Production.INFO: ProcessCDR(1,14772578,1,1,2) [2025-03-27 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772578', 'tblTempUsageDetail_20' ) start [2025-03-27 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772578', 'tblTempUsageDetail_20' ) end [2025-03-27 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:16:21] Production.INFO: ==5239== Releasing lock... [2025-03-27 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:17:05 [end_date_ymd] => 2025-03-27 07:17:05 [RateCDR] => 1 ) [2025-03-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-03-27 04:17:05' and `end` < '2025-03-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-03-27 07:17:18] Production.INFO: count ==75 [2025-03-27 07:17:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:17:05 - End Time 2025-03-27 07:17:05 [2025-03-27 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772583', 'tblTempUsageDetail_20' ) start [2025-03-27 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772583', 'tblTempUsageDetail_20' ) end [2025-03-27 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772583', 'tblTempVendorCDR_20' ) start [2025-03-27 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772583', 'tblTempVendorCDR_20' ) end [2025-03-27 07:17:18] Production.INFO: ProcessCDR(1,14772583,1,1,2) [2025-03-27 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772583', 'tblTempUsageDetail_20' ) start [2025-03-27 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772583', 'tblTempUsageDetail_20' ) end [2025-03-27 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:17:22] Production.INFO: ==5329== Releasing lock... [2025-03-27 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:17:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:18:05 [end_date_ymd] => 2025-03-27 07:18:05 [RateCDR] => 1 ) [2025-03-27 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:18:05' and `end` < '2025-03-27 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:18:18] Production.INFO: count ==79 [2025-03-27 07:18:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:18:05 - End Time 2025-03-27 07:18:05 [2025-03-27 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772588', 'tblTempUsageDetail_20' ) start [2025-03-27 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772588', 'tblTempUsageDetail_20' ) end [2025-03-27 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772588', 'tblTempVendorCDR_20' ) start [2025-03-27 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772588', 'tblTempVendorCDR_20' ) end [2025-03-27 07:18:18] Production.INFO: ProcessCDR(1,14772588,1,1,2) [2025-03-27 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772588', 'tblTempUsageDetail_20' ) start [2025-03-27 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772588', 'tblTempUsageDetail_20' ) end [2025-03-27 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:18:21] Production.INFO: ==5424== Releasing lock... [2025-03-27 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:19:05 [end_date_ymd] => 2025-03-27 07:19:05 [RateCDR] => 1 ) [2025-03-27 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:19:05' and `end` < '2025-03-27 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:19:18] Production.INFO: count ==79 [2025-03-27 07:19:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:19:05 - End Time 2025-03-27 07:19:05 [2025-03-27 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772593', 'tblTempUsageDetail_20' ) start [2025-03-27 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772593', 'tblTempUsageDetail_20' ) end [2025-03-27 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772593', 'tblTempVendorCDR_20' ) start [2025-03-27 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772593', 'tblTempVendorCDR_20' ) end [2025-03-27 07:19:18] Production.INFO: ProcessCDR(1,14772593,1,1,2) [2025-03-27 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772593', 'tblTempUsageDetail_20' ) start [2025-03-27 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772593', 'tblTempUsageDetail_20' ) end [2025-03-27 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:19:22] Production.INFO: ==5506== Releasing lock... [2025-03-27 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:19:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:20:06 [end_date_ymd] => 2025-03-27 07:20:06 [RateCDR] => 1 ) [2025-03-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-03-27 04:20:06' and `end` < '2025-03-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-03-27 07:20:18] Production.INFO: count ==79 [2025-03-27 07:20:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:20:06 - End Time 2025-03-27 07:20:06 [2025-03-27 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772599', 'tblTempUsageDetail_20' ) start [2025-03-27 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772599', 'tblTempUsageDetail_20' ) end [2025-03-27 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772599', 'tblTempVendorCDR_20' ) start [2025-03-27 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772599', 'tblTempVendorCDR_20' ) end [2025-03-27 07:20:18] Production.INFO: ProcessCDR(1,14772599,1,1,2) [2025-03-27 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772599', 'tblTempUsageDetail_20' ) start [2025-03-27 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772599', 'tblTempUsageDetail_20' ) end [2025-03-27 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:20:22] Production.INFO: ==5598== Releasing lock... [2025-03-27 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:20:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:21:05 [end_date_ymd] => 2025-03-27 07:21:05 [RateCDR] => 1 ) [2025-03-27 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:21:05' and `end` < '2025-03-27 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:21:19] Production.INFO: count ==79 [2025-03-27 07:21:19] Production.ERROR: pbx CDR StartTime 2025-03-27 04:21:05 - End Time 2025-03-27 07:21:05 [2025-03-27 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772604', 'tblTempUsageDetail_20' ) start [2025-03-27 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772604', 'tblTempUsageDetail_20' ) end [2025-03-27 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772604', 'tblTempVendorCDR_20' ) start [2025-03-27 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772604', 'tblTempVendorCDR_20' ) end [2025-03-27 07:21:19] Production.INFO: ProcessCDR(1,14772604,1,1,2) [2025-03-27 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772604', 'tblTempUsageDetail_20' ) start [2025-03-27 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772604', 'tblTempUsageDetail_20' ) end [2025-03-27 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:21:22] Production.INFO: ==5689== Releasing lock... [2025-03-27 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:21:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:22:05 [end_date_ymd] => 2025-03-27 07:22:05 [RateCDR] => 1 ) [2025-03-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-03-27 04:22:05' and `end` < '2025-03-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-03-27 07:22:18] Production.INFO: count ==82 [2025-03-27 07:22:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:22:05 - End Time 2025-03-27 07:22:05 [2025-03-27 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772609', 'tblTempUsageDetail_20' ) start [2025-03-27 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772609', 'tblTempUsageDetail_20' ) end [2025-03-27 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772609', 'tblTempVendorCDR_20' ) start [2025-03-27 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772609', 'tblTempVendorCDR_20' ) end [2025-03-27 07:22:18] Production.INFO: ProcessCDR(1,14772609,1,1,2) [2025-03-27 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772609', 'tblTempUsageDetail_20' ) start [2025-03-27 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772609', 'tblTempUsageDetail_20' ) end [2025-03-27 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:22:23] Production.INFO: ==5781== Releasing lock... [2025-03-27 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:22:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:23:05 [end_date_ymd] => 2025-03-27 07:23:05 [RateCDR] => 1 ) [2025-03-27 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:23:05' and `end` < '2025-03-27 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:23:18] Production.INFO: count ==89 [2025-03-27 07:23:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:23:05 - End Time 2025-03-27 07:23:05 [2025-03-27 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772614', 'tblTempUsageDetail_20' ) start [2025-03-27 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772614', 'tblTempUsageDetail_20' ) end [2025-03-27 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772614', 'tblTempVendorCDR_20' ) start [2025-03-27 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772614', 'tblTempVendorCDR_20' ) end [2025-03-27 07:23:18] Production.INFO: ProcessCDR(1,14772614,1,1,2) [2025-03-27 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772614', 'tblTempUsageDetail_20' ) start [2025-03-27 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772614', 'tblTempUsageDetail_20' ) end [2025-03-27 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:23:21] Production.INFO: ==5878== Releasing lock... [2025-03-27 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:24:06 [end_date_ymd] => 2025-03-27 07:24:06 [RateCDR] => 1 ) [2025-03-27 07:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:24:06' and `end` < '2025-03-27 07:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:24:18] Production.INFO: count ==89 [2025-03-27 07:24:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:24:06 - End Time 2025-03-27 07:24:06 [2025-03-27 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772619', 'tblTempUsageDetail_20' ) start [2025-03-27 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772619', 'tblTempUsageDetail_20' ) end [2025-03-27 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772619', 'tblTempVendorCDR_20' ) start [2025-03-27 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772619', 'tblTempVendorCDR_20' ) end [2025-03-27 07:24:18] Production.INFO: ProcessCDR(1,14772619,1,1,2) [2025-03-27 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772619', 'tblTempUsageDetail_20' ) start [2025-03-27 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772619', 'tblTempUsageDetail_20' ) end [2025-03-27 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:24:22] Production.INFO: ==5958== Releasing lock... [2025-03-27 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:24:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:25:06 [end_date_ymd] => 2025-03-27 07:25:06 [RateCDR] => 1 ) [2025-03-27 07:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:25:06' and `end` < '2025-03-27 07:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:25:18] Production.INFO: count ==89 [2025-03-27 07:25:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:25:06 - End Time 2025-03-27 07:25:06 [2025-03-27 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772624', 'tblTempUsageDetail_20' ) start [2025-03-27 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772624', 'tblTempUsageDetail_20' ) end [2025-03-27 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772624', 'tblTempVendorCDR_20' ) start [2025-03-27 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772624', 'tblTempVendorCDR_20' ) end [2025-03-27 07:25:18] Production.INFO: ProcessCDR(1,14772624,1,1,2) [2025-03-27 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772624', 'tblTempUsageDetail_20' ) start [2025-03-27 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772624', 'tblTempUsageDetail_20' ) end [2025-03-27 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:25:22] Production.INFO: ==6046== Releasing lock... [2025-03-27 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:25:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:26:05 [end_date_ymd] => 2025-03-27 07:26:05 [RateCDR] => 1 ) [2025-03-27 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:26:05' and `end` < '2025-03-27 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:26:18] Production.INFO: count ==93 [2025-03-27 07:26:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:26:05 - End Time 2025-03-27 07:26:05 [2025-03-27 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772629', 'tblTempUsageDetail_20' ) start [2025-03-27 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772629', 'tblTempUsageDetail_20' ) end [2025-03-27 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772629', 'tblTempVendorCDR_20' ) start [2025-03-27 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772629', 'tblTempVendorCDR_20' ) end [2025-03-27 07:26:18] Production.INFO: ProcessCDR(1,14772629,1,1,2) [2025-03-27 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772629', 'tblTempUsageDetail_20' ) start [2025-03-27 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772629', 'tblTempUsageDetail_20' ) end [2025-03-27 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:26:21] Production.INFO: ==6169== Releasing lock... [2025-03-27 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:27:05 [end_date_ymd] => 2025-03-27 07:27:05 [RateCDR] => 1 ) [2025-03-27 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:27:05' and `end` < '2025-03-27 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:27:18] Production.INFO: count ==93 [2025-03-27 07:27:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:27:05 - End Time 2025-03-27 07:27:05 [2025-03-27 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772634', 'tblTempUsageDetail_20' ) start [2025-03-27 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772634', 'tblTempUsageDetail_20' ) end [2025-03-27 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772634', 'tblTempVendorCDR_20' ) start [2025-03-27 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772634', 'tblTempVendorCDR_20' ) end [2025-03-27 07:27:18] Production.INFO: ProcessCDR(1,14772634,1,1,2) [2025-03-27 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772634', 'tblTempUsageDetail_20' ) start [2025-03-27 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772634', 'tblTempUsageDetail_20' ) end [2025-03-27 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:27:21] Production.INFO: ==6253== Releasing lock... [2025-03-27 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:28:05 [end_date_ymd] => 2025-03-27 07:28:05 [RateCDR] => 1 ) [2025-03-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-03-27 04:28:05' and `end` < '2025-03-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-03-27 07:28:17] Production.INFO: count ==93 [2025-03-27 07:28:17] Production.ERROR: pbx CDR StartTime 2025-03-27 04:28:05 - End Time 2025-03-27 07:28:05 [2025-03-27 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772639', 'tblTempUsageDetail_20' ) start [2025-03-27 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772639', 'tblTempUsageDetail_20' ) end [2025-03-27 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772639', 'tblTempVendorCDR_20' ) start [2025-03-27 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772639', 'tblTempVendorCDR_20' ) end [2025-03-27 07:28:17] Production.INFO: ProcessCDR(1,14772639,1,1,2) [2025-03-27 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772639', 'tblTempUsageDetail_20' ) start [2025-03-27 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772639', 'tblTempUsageDetail_20' ) end [2025-03-27 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:28:21] Production.INFO: ==6335== Releasing lock... [2025-03-27 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:29:05 [end_date_ymd] => 2025-03-27 07:29:05 [RateCDR] => 1 ) [2025-03-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-03-27 04:29:05' and `end` < '2025-03-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-03-27 07:29:18] Production.INFO: count ==93 [2025-03-27 07:29:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:29:05 - End Time 2025-03-27 07:29:05 [2025-03-27 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772644', 'tblTempUsageDetail_20' ) start [2025-03-27 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772644', 'tblTempUsageDetail_20' ) end [2025-03-27 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772644', 'tblTempVendorCDR_20' ) start [2025-03-27 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772644', 'tblTempVendorCDR_20' ) end [2025-03-27 07:29:18] Production.INFO: ProcessCDR(1,14772644,1,1,2) [2025-03-27 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772644', 'tblTempUsageDetail_20' ) start [2025-03-27 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772644', 'tblTempUsageDetail_20' ) end [2025-03-27 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:29:21] Production.INFO: ==6418== Releasing lock... [2025-03-27 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:30:06 [end_date_ymd] => 2025-03-27 07:30:06 [RateCDR] => 1 ) [2025-03-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-03-27 04:30:06' and `end` < '2025-03-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-03-27 07:30:19] Production.INFO: count ==88 [2025-03-27 07:30:19] Production.ERROR: pbx CDR StartTime 2025-03-27 04:30:06 - End Time 2025-03-27 07:30:06 [2025-03-27 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772649', 'tblTempUsageDetail_20' ) start [2025-03-27 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772649', 'tblTempUsageDetail_20' ) end [2025-03-27 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772649', 'tblTempVendorCDR_20' ) start [2025-03-27 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772649', 'tblTempVendorCDR_20' ) end [2025-03-27 07:30:19] Production.INFO: ProcessCDR(1,14772649,1,1,2) [2025-03-27 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772649', 'tblTempUsageDetail_20' ) start [2025-03-27 07:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772649', 'tblTempUsageDetail_20' ) end [2025-03-27 07:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:30:24] Production.INFO: ==6505== Releasing lock... [2025-03-27 07:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:30:24] Production.INFO: 29 MB #Memory Used# [2025-03-27 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:31:05 [end_date_ymd] => 2025-03-27 07:31:05 [RateCDR] => 1 ) [2025-03-27 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:31:05' and `end` < '2025-03-27 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:31:18] Production.INFO: count ==87 [2025-03-27 07:31:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:31:05 - End Time 2025-03-27 07:31:05 [2025-03-27 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772655', 'tblTempUsageDetail_20' ) start [2025-03-27 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772655', 'tblTempUsageDetail_20' ) end [2025-03-27 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772655', 'tblTempVendorCDR_20' ) start [2025-03-27 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772655', 'tblTempVendorCDR_20' ) end [2025-03-27 07:31:18] Production.INFO: ProcessCDR(1,14772655,1,1,2) [2025-03-27 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772655', 'tblTempUsageDetail_20' ) start [2025-03-27 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772655', 'tblTempUsageDetail_20' ) end [2025-03-27 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:31:21] Production.INFO: ==6589== Releasing lock... [2025-03-27 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:31:21] Production.INFO: 29 MB #Memory Used# [2025-03-27 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:32:06 [end_date_ymd] => 2025-03-27 07:32:06 [RateCDR] => 1 ) [2025-03-27 07:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:32:06' and `end` < '2025-03-27 07:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:32:19] Production.INFO: count ==87 [2025-03-27 07:32:19] Production.ERROR: pbx CDR StartTime 2025-03-27 04:32:06 - End Time 2025-03-27 07:32:06 [2025-03-27 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772660', 'tblTempUsageDetail_20' ) start [2025-03-27 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772660', 'tblTempUsageDetail_20' ) end [2025-03-27 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772660', 'tblTempVendorCDR_20' ) start [2025-03-27 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772660', 'tblTempVendorCDR_20' ) end [2025-03-27 07:32:19] Production.INFO: ProcessCDR(1,14772660,1,1,2) [2025-03-27 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772660', 'tblTempUsageDetail_20' ) start [2025-03-27 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772660', 'tblTempUsageDetail_20' ) end [2025-03-27 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:32:22] Production.INFO: ==6673== Releasing lock... [2025-03-27 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:32:22] Production.INFO: 29 MB #Memory Used# [2025-03-27 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:33:05 [end_date_ymd] => 2025-03-27 07:33:05 [RateCDR] => 1 ) [2025-03-27 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:33:05' and `end` < '2025-03-27 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:33:18] Production.INFO: count ==87 [2025-03-27 07:33:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:33:05 - End Time 2025-03-27 07:33:05 [2025-03-27 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772665', 'tblTempUsageDetail_20' ) start [2025-03-27 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772665', 'tblTempUsageDetail_20' ) end [2025-03-27 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772665', 'tblTempVendorCDR_20' ) start [2025-03-27 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772665', 'tblTempVendorCDR_20' ) end [2025-03-27 07:33:18] Production.INFO: ProcessCDR(1,14772665,1,1,2) [2025-03-27 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772665', 'tblTempUsageDetail_20' ) start [2025-03-27 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772665', 'tblTempUsageDetail_20' ) end [2025-03-27 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:33:21] Production.INFO: ==6759== Releasing lock... [2025-03-27 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:33:21] Production.INFO: 29 MB #Memory Used# [2025-03-27 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:34:06 [end_date_ymd] => 2025-03-27 07:34:06 [RateCDR] => 1 ) [2025-03-27 07:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:34:06' and `end` < '2025-03-27 07:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:34:18] Production.INFO: count ==84 [2025-03-27 07:34:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:34:06 - End Time 2025-03-27 07:34:06 [2025-03-27 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772670', 'tblTempUsageDetail_20' ) start [2025-03-27 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772670', 'tblTempUsageDetail_20' ) end [2025-03-27 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772670', 'tblTempVendorCDR_20' ) start [2025-03-27 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772670', 'tblTempVendorCDR_20' ) end [2025-03-27 07:34:18] Production.INFO: ProcessCDR(1,14772670,1,1,2) [2025-03-27 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772670', 'tblTempUsageDetail_20' ) start [2025-03-27 07:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772670', 'tblTempUsageDetail_20' ) end [2025-03-27 07:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:34:23] Production.INFO: ==6842== Releasing lock... [2025-03-27 07:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:34:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:35:05 [end_date_ymd] => 2025-03-27 07:35:05 [RateCDR] => 1 ) [2025-03-27 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:35:05' and `end` < '2025-03-27 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:35:18] Production.INFO: count ==80 [2025-03-27 07:35:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:35:05 - End Time 2025-03-27 07:35:05 [2025-03-27 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772675', 'tblTempUsageDetail_20' ) start [2025-03-27 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772675', 'tblTempUsageDetail_20' ) end [2025-03-27 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772675', 'tblTempVendorCDR_20' ) start [2025-03-27 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772675', 'tblTempVendorCDR_20' ) end [2025-03-27 07:35:18] Production.INFO: ProcessCDR(1,14772675,1,1,2) [2025-03-27 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772675', 'tblTempUsageDetail_20' ) start [2025-03-27 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772675', 'tblTempUsageDetail_20' ) end [2025-03-27 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:35:21] Production.INFO: ==6925== Releasing lock... [2025-03-27 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:36:06 [end_date_ymd] => 2025-03-27 07:36:06 [RateCDR] => 1 ) [2025-03-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-03-27 04:36:06' and `end` < '2025-03-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-03-27 07:36:18] Production.INFO: count ==84 [2025-03-27 07:36:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:36:06 - End Time 2025-03-27 07:36:06 [2025-03-27 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772680', 'tblTempUsageDetail_20' ) start [2025-03-27 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772680', 'tblTempUsageDetail_20' ) end [2025-03-27 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772680', 'tblTempVendorCDR_20' ) start [2025-03-27 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772680', 'tblTempVendorCDR_20' ) end [2025-03-27 07:36:18] Production.INFO: ProcessCDR(1,14772680,1,1,2) [2025-03-27 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772680', 'tblTempUsageDetail_20' ) start [2025-03-27 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772680', 'tblTempUsageDetail_20' ) end [2025-03-27 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:36:22] Production.INFO: ==7009== Releasing lock... [2025-03-27 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:36:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:37:05 [end_date_ymd] => 2025-03-27 07:37:05 [RateCDR] => 1 ) [2025-03-27 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:37:05' and `end` < '2025-03-27 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:37:18] Production.INFO: count ==84 [2025-03-27 07:37:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:37:05 - End Time 2025-03-27 07:37:05 [2025-03-27 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772685', 'tblTempUsageDetail_20' ) start [2025-03-27 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772685', 'tblTempUsageDetail_20' ) end [2025-03-27 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772685', 'tblTempVendorCDR_20' ) start [2025-03-27 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772685', 'tblTempVendorCDR_20' ) end [2025-03-27 07:37:18] Production.INFO: ProcessCDR(1,14772685,1,1,2) [2025-03-27 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772685', 'tblTempUsageDetail_20' ) start [2025-03-27 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772685', 'tblTempUsageDetail_20' ) end [2025-03-27 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:37:21] Production.INFO: ==7095== Releasing lock... [2025-03-27 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:38:05 [end_date_ymd] => 2025-03-27 07:38:05 [RateCDR] => 1 ) [2025-03-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-03-27 04:38:05' and `end` < '2025-03-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-03-27 07:38:18] Production.INFO: count ==84 [2025-03-27 07:38:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:38:05 - End Time 2025-03-27 07:38:05 [2025-03-27 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772690', 'tblTempUsageDetail_20' ) start [2025-03-27 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772690', 'tblTempUsageDetail_20' ) end [2025-03-27 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772690', 'tblTempVendorCDR_20' ) start [2025-03-27 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772690', 'tblTempVendorCDR_20' ) end [2025-03-27 07:38:18] Production.INFO: ProcessCDR(1,14772690,1,1,2) [2025-03-27 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772690', 'tblTempUsageDetail_20' ) start [2025-03-27 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772690', 'tblTempUsageDetail_20' ) end [2025-03-27 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:38:21] Production.INFO: ==7178== Releasing lock... [2025-03-27 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:39:05 [end_date_ymd] => 2025-03-27 07:39:05 [RateCDR] => 1 ) [2025-03-27 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:39:05' and `end` < '2025-03-27 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:39:17] Production.INFO: count ==84 [2025-03-27 07:39:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:39:05 - End Time 2025-03-27 07:39:05 [2025-03-27 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772695', 'tblTempUsageDetail_20' ) start [2025-03-27 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772695', 'tblTempUsageDetail_20' ) end [2025-03-27 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772695', 'tblTempVendorCDR_20' ) start [2025-03-27 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772695', 'tblTempVendorCDR_20' ) end [2025-03-27 07:39:18] Production.INFO: ProcessCDR(1,14772695,1,1,2) [2025-03-27 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772695', 'tblTempUsageDetail_20' ) start [2025-03-27 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772695', 'tblTempUsageDetail_20' ) end [2025-03-27 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:39:21] Production.INFO: ==7265== Releasing lock... [2025-03-27 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:40:06 [end_date_ymd] => 2025-03-27 07:40:06 [RateCDR] => 1 ) [2025-03-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-03-27 04:40:06' and `end` < '2025-03-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-03-27 07:40:19] Production.INFO: count ==84 [2025-03-27 07:40:19] Production.ERROR: pbx CDR StartTime 2025-03-27 04:40:06 - End Time 2025-03-27 07:40:06 [2025-03-27 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772701', 'tblTempUsageDetail_20' ) start [2025-03-27 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772701', 'tblTempUsageDetail_20' ) end [2025-03-27 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772701', 'tblTempVendorCDR_20' ) start [2025-03-27 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772701', 'tblTempVendorCDR_20' ) end [2025-03-27 07:40:19] Production.INFO: ProcessCDR(1,14772701,1,1,2) [2025-03-27 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772701', 'tblTempUsageDetail_20' ) start [2025-03-27 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772701', 'tblTempUsageDetail_20' ) end [2025-03-27 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:40:22] Production.INFO: ==7376== Releasing lock... [2025-03-27 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:41:05 [end_date_ymd] => 2025-03-27 07:41:05 [RateCDR] => 1 ) [2025-03-27 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:41:05' and `end` < '2025-03-27 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:41:17] Production.INFO: count ==84 [2025-03-27 07:41:17] Production.ERROR: pbx CDR StartTime 2025-03-27 04:41:05 - End Time 2025-03-27 07:41:05 [2025-03-27 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772706', 'tblTempUsageDetail_20' ) start [2025-03-27 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772706', 'tblTempUsageDetail_20' ) end [2025-03-27 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772706', 'tblTempVendorCDR_20' ) start [2025-03-27 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772706', 'tblTempVendorCDR_20' ) end [2025-03-27 07:41:17] Production.INFO: ProcessCDR(1,14772706,1,1,2) [2025-03-27 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772706', 'tblTempUsageDetail_20' ) start [2025-03-27 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772706', 'tblTempUsageDetail_20' ) end [2025-03-27 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:41:21] Production.INFO: ==7528== Releasing lock... [2025-03-27 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:42:05 [end_date_ymd] => 2025-03-27 07:42:05 [RateCDR] => 1 ) [2025-03-27 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:42:05' and `end` < '2025-03-27 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:42:17] Production.INFO: count ==80 [2025-03-27 07:42:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:42:05 - End Time 2025-03-27 07:42:05 [2025-03-27 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772711', 'tblTempUsageDetail_20' ) start [2025-03-27 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772711', 'tblTempUsageDetail_20' ) end [2025-03-27 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772711', 'tblTempVendorCDR_20' ) start [2025-03-27 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772711', 'tblTempVendorCDR_20' ) end [2025-03-27 07:42:18] Production.INFO: ProcessCDR(1,14772711,1,1,2) [2025-03-27 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772711', 'tblTempUsageDetail_20' ) start [2025-03-27 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772711', 'tblTempUsageDetail_20' ) end [2025-03-27 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:42:21] Production.INFO: ==7639== Releasing lock... [2025-03-27 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:43:05 [end_date_ymd] => 2025-03-27 07:43:05 [RateCDR] => 1 ) [2025-03-27 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:43:05' and `end` < '2025-03-27 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:43:17] Production.INFO: count ==80 [2025-03-27 07:43:17] Production.ERROR: pbx CDR StartTime 2025-03-27 04:43:05 - End Time 2025-03-27 07:43:05 [2025-03-27 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772716', 'tblTempUsageDetail_20' ) start [2025-03-27 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772716', 'tblTempUsageDetail_20' ) end [2025-03-27 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772716', 'tblTempVendorCDR_20' ) start [2025-03-27 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772716', 'tblTempVendorCDR_20' ) end [2025-03-27 07:43:17] Production.INFO: ProcessCDR(1,14772716,1,1,2) [2025-03-27 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772716', 'tblTempUsageDetail_20' ) start [2025-03-27 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772716', 'tblTempUsageDetail_20' ) end [2025-03-27 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:43:21] Production.INFO: ==7745== Releasing lock... [2025-03-27 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:44:05 [end_date_ymd] => 2025-03-27 07:44:05 [RateCDR] => 1 ) [2025-03-27 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:44:05' and `end` < '2025-03-27 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:44:17] Production.INFO: count ==80 [2025-03-27 07:44:17] Production.ERROR: pbx CDR StartTime 2025-03-27 04:44:05 - End Time 2025-03-27 07:44:05 [2025-03-27 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772721', 'tblTempUsageDetail_20' ) start [2025-03-27 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772721', 'tblTempUsageDetail_20' ) end [2025-03-27 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772721', 'tblTempVendorCDR_20' ) start [2025-03-27 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772721', 'tblTempVendorCDR_20' ) end [2025-03-27 07:44:17] Production.INFO: ProcessCDR(1,14772721,1,1,2) [2025-03-27 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772721', 'tblTempUsageDetail_20' ) start [2025-03-27 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772721', 'tblTempUsageDetail_20' ) end [2025-03-27 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:44:21] Production.INFO: ==7850== Releasing lock... [2025-03-27 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:45:06 [end_date_ymd] => 2025-03-27 07:45:06 [RateCDR] => 1 ) [2025-03-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-03-27 04:45:06' and `end` < '2025-03-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-03-27 07:45:18] Production.INFO: count ==80 [2025-03-27 07:45:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:45:06 - End Time 2025-03-27 07:45:06 [2025-03-27 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772726', 'tblTempUsageDetail_20' ) start [2025-03-27 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772726', 'tblTempUsageDetail_20' ) end [2025-03-27 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772726', 'tblTempVendorCDR_20' ) start [2025-03-27 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772726', 'tblTempVendorCDR_20' ) end [2025-03-27 07:45:18] Production.INFO: ProcessCDR(1,14772726,1,1,2) [2025-03-27 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772726', 'tblTempUsageDetail_20' ) start [2025-03-27 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772726', 'tblTempUsageDetail_20' ) end [2025-03-27 07:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:45:22] Production.INFO: ==7959== Releasing lock... [2025-03-27 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:45:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:46:05 [end_date_ymd] => 2025-03-27 07:46:05 [RateCDR] => 1 ) [2025-03-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-03-27 04:46:05' and `end` < '2025-03-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-03-27 07:46:17] Production.INFO: count ==80 [2025-03-27 07:46:17] Production.ERROR: pbx CDR StartTime 2025-03-27 04:46:05 - End Time 2025-03-27 07:46:05 [2025-03-27 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772731', 'tblTempUsageDetail_20' ) start [2025-03-27 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772731', 'tblTempUsageDetail_20' ) end [2025-03-27 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772731', 'tblTempVendorCDR_20' ) start [2025-03-27 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772731', 'tblTempVendorCDR_20' ) end [2025-03-27 07:46:17] Production.INFO: ProcessCDR(1,14772731,1,1,2) [2025-03-27 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772731', 'tblTempUsageDetail_20' ) start [2025-03-27 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772731', 'tblTempUsageDetail_20' ) end [2025-03-27 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:46:21] Production.INFO: ==8060== Releasing lock... [2025-03-27 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:47:06 [end_date_ymd] => 2025-03-27 07:47:06 [RateCDR] => 1 ) [2025-03-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-03-27 04:47:06' and `end` < '2025-03-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-03-27 07:47:18] Production.INFO: count ==80 [2025-03-27 07:47:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:47:06 - End Time 2025-03-27 07:47:06 [2025-03-27 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772736', 'tblTempUsageDetail_20' ) start [2025-03-27 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772736', 'tblTempUsageDetail_20' ) end [2025-03-27 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772736', 'tblTempVendorCDR_20' ) start [2025-03-27 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772736', 'tblTempVendorCDR_20' ) end [2025-03-27 07:47:18] Production.INFO: ProcessCDR(1,14772736,1,1,2) [2025-03-27 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772736', 'tblTempUsageDetail_20' ) start [2025-03-27 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772736', 'tblTempUsageDetail_20' ) end [2025-03-27 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:47:22] Production.INFO: ==8164== Releasing lock... [2025-03-27 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:47:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:48:05 [end_date_ymd] => 2025-03-27 07:48:05 [RateCDR] => 1 ) [2025-03-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-03-27 04:48:05' and `end` < '2025-03-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-03-27 07:48:18] Production.INFO: count ==81 [2025-03-27 07:48:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:48:05 - End Time 2025-03-27 07:48:05 [2025-03-27 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772741', 'tblTempUsageDetail_20' ) start [2025-03-27 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772741', 'tblTempUsageDetail_20' ) end [2025-03-27 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772741', 'tblTempVendorCDR_20' ) start [2025-03-27 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772741', 'tblTempVendorCDR_20' ) end [2025-03-27 07:48:18] Production.INFO: ProcessCDR(1,14772741,1,1,2) [2025-03-27 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772741', 'tblTempUsageDetail_20' ) start [2025-03-27 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772741', 'tblTempUsageDetail_20' ) end [2025-03-27 07:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:48:23] Production.INFO: ==8270== Releasing lock... [2025-03-27 07:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:48:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:49:05 [end_date_ymd] => 2025-03-27 07:49:05 [RateCDR] => 1 ) [2025-03-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-03-27 04:49:05' and `end` < '2025-03-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-03-27 07:49:18] Production.INFO: count ==81 [2025-03-27 07:49:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:49:05 - End Time 2025-03-27 07:49:05 [2025-03-27 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772746', 'tblTempUsageDetail_20' ) start [2025-03-27 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772746', 'tblTempUsageDetail_20' ) end [2025-03-27 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772746', 'tblTempVendorCDR_20' ) start [2025-03-27 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772746', 'tblTempVendorCDR_20' ) end [2025-03-27 07:49:18] Production.INFO: ProcessCDR(1,14772746,1,1,2) [2025-03-27 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772746', 'tblTempUsageDetail_20' ) start [2025-03-27 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772746', 'tblTempUsageDetail_20' ) end [2025-03-27 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:49:21] Production.INFO: ==8376== Releasing lock... [2025-03-27 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-27 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:50:05 [end_date_ymd] => 2025-03-27 07:50:05 [RateCDR] => 1 ) [2025-03-27 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:50:05' and `end` < '2025-03-27 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:50:18] Production.INFO: count ==82 [2025-03-27 07:50:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:50:05 - End Time 2025-03-27 07:50:05 [2025-03-27 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772752', 'tblTempUsageDetail_20' ) start [2025-03-27 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772752', 'tblTempUsageDetail_20' ) end [2025-03-27 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772752', 'tblTempVendorCDR_20' ) start [2025-03-27 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772752', 'tblTempVendorCDR_20' ) end [2025-03-27 07:50:18] Production.INFO: ProcessCDR(1,14772752,1,1,2) [2025-03-27 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772752', 'tblTempUsageDetail_20' ) start [2025-03-27 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772752', 'tblTempUsageDetail_20' ) end [2025-03-27 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:50:23] Production.INFO: ==8483== Releasing lock... [2025-03-27 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:50:23] Production.INFO: 28.5 MB #Memory Used# [2025-03-27 07:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:51:06 [end_date_ymd] => 2025-03-27 07:51:06 [RateCDR] => 1 ) [2025-03-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-03-27 04:51:06' and `end` < '2025-03-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-03-27 07:51:18] Production.INFO: count ==86 [2025-03-27 07:51:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:51:06 - End Time 2025-03-27 07:51:06 [2025-03-27 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772757', 'tblTempUsageDetail_20' ) start [2025-03-27 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772757', 'tblTempUsageDetail_20' ) end [2025-03-27 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772757', 'tblTempVendorCDR_20' ) start [2025-03-27 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772757', 'tblTempVendorCDR_20' ) end [2025-03-27 07:51:18] Production.INFO: ProcessCDR(1,14772757,1,1,2) [2025-03-27 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772757', 'tblTempUsageDetail_20' ) start [2025-03-27 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772757', 'tblTempUsageDetail_20' ) end [2025-03-27 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:51:22] Production.INFO: ==8586== Releasing lock... [2025-03-27 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:51:22] Production.INFO: 29 MB #Memory Used# [2025-03-27 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:52:05 [end_date_ymd] => 2025-03-27 07:52:05 [RateCDR] => 1 ) [2025-03-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-03-27 04:52:05' and `end` < '2025-03-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-03-27 07:52:17] Production.INFO: count ==87 [2025-03-27 07:52:17] Production.ERROR: pbx CDR StartTime 2025-03-27 04:52:05 - End Time 2025-03-27 07:52:05 [2025-03-27 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772762', 'tblTempUsageDetail_20' ) start [2025-03-27 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772762', 'tblTempUsageDetail_20' ) end [2025-03-27 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772762', 'tblTempVendorCDR_20' ) start [2025-03-27 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772762', 'tblTempVendorCDR_20' ) end [2025-03-27 07:52:17] Production.INFO: ProcessCDR(1,14772762,1,1,2) [2025-03-27 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772762', 'tblTempUsageDetail_20' ) start [2025-03-27 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772762', 'tblTempUsageDetail_20' ) end [2025-03-27 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:52:22] Production.INFO: ==8694== Releasing lock... [2025-03-27 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:52:22] Production.INFO: 29 MB #Memory Used# [2025-03-27 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:53:05 [end_date_ymd] => 2025-03-27 07:53:05 [RateCDR] => 1 ) [2025-03-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-03-27 04:53:05' and `end` < '2025-03-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-03-27 07:53:18] Production.INFO: count ==88 [2025-03-27 07:53:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:53:05 - End Time 2025-03-27 07:53:05 [2025-03-27 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772767', 'tblTempUsageDetail_20' ) start [2025-03-27 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772767', 'tblTempUsageDetail_20' ) end [2025-03-27 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772767', 'tblTempVendorCDR_20' ) start [2025-03-27 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772767', 'tblTempVendorCDR_20' ) end [2025-03-27 07:53:18] Production.INFO: ProcessCDR(1,14772767,1,1,2) [2025-03-27 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772767', 'tblTempUsageDetail_20' ) start [2025-03-27 07:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772767', 'tblTempUsageDetail_20' ) end [2025-03-27 07:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:53:23] Production.INFO: ==8799== Releasing lock... [2025-03-27 07:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:53:23] Production.INFO: 29 MB #Memory Used# [2025-03-27 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:54:05 [end_date_ymd] => 2025-03-27 07:54:05 [RateCDR] => 1 ) [2025-03-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-03-27 04:54:05' and `end` < '2025-03-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-03-27 07:54:17] Production.INFO: count ==93 [2025-03-27 07:54:17] Production.ERROR: pbx CDR StartTime 2025-03-27 04:54:05 - End Time 2025-03-27 07:54:05 [2025-03-27 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772772', 'tblTempUsageDetail_20' ) start [2025-03-27 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772772', 'tblTempUsageDetail_20' ) end [2025-03-27 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772772', 'tblTempVendorCDR_20' ) start [2025-03-27 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772772', 'tblTempVendorCDR_20' ) end [2025-03-27 07:54:17] Production.INFO: ProcessCDR(1,14772772,1,1,2) [2025-03-27 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772772', 'tblTempUsageDetail_20' ) start [2025-03-27 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772772', 'tblTempUsageDetail_20' ) end [2025-03-27 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:54:22] Production.INFO: ==8899== Releasing lock... [2025-03-27 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:54:22] Production.INFO: 29 MB #Memory Used# [2025-03-27 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:55:05 [end_date_ymd] => 2025-03-27 07:55:05 [RateCDR] => 1 ) [2025-03-27 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:55:05' and `end` < '2025-03-27 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:55:18] Production.INFO: count ==94 [2025-03-27 07:55:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:55:05 - End Time 2025-03-27 07:55:05 [2025-03-27 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772777', 'tblTempUsageDetail_20' ) start [2025-03-27 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772777', 'tblTempUsageDetail_20' ) end [2025-03-27 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772777', 'tblTempVendorCDR_20' ) start [2025-03-27 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772777', 'tblTempVendorCDR_20' ) end [2025-03-27 07:55:18] Production.INFO: ProcessCDR(1,14772777,1,1,2) [2025-03-27 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772777', 'tblTempUsageDetail_20' ) start [2025-03-27 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772777', 'tblTempUsageDetail_20' ) end [2025-03-27 07:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:55:23] Production.INFO: ==9003== Releasing lock... [2025-03-27 07:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:55:23] Production.INFO: 29 MB #Memory Used# [2025-03-27 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:56:05 [end_date_ymd] => 2025-03-27 07:56:05 [RateCDR] => 1 ) [2025-03-27 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:56:05' and `end` < '2025-03-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-03-27 07:56:17] Production.INFO: count ==95 [2025-03-27 07:56:17] Production.ERROR: pbx CDR StartTime 2025-03-27 04:56:05 - End Time 2025-03-27 07:56:05 [2025-03-27 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772782', 'tblTempUsageDetail_20' ) start [2025-03-27 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772782', 'tblTempUsageDetail_20' ) end [2025-03-27 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772782', 'tblTempVendorCDR_20' ) start [2025-03-27 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772782', 'tblTempVendorCDR_20' ) end [2025-03-27 07:56:18] Production.INFO: ProcessCDR(1,14772782,1,1,2) [2025-03-27 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772782', 'tblTempUsageDetail_20' ) start [2025-03-27 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772782', 'tblTempUsageDetail_20' ) end [2025-03-27 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:56:21] Production.INFO: ==9144== Releasing lock... [2025-03-27 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-27 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:57:05 [end_date_ymd] => 2025-03-27 07:57:05 [RateCDR] => 1 ) [2025-03-27 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:57:05' and `end` < '2025-03-27 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:57:18] Production.INFO: count ==95 [2025-03-27 07:57:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:57:05 - End Time 2025-03-27 07:57:05 [2025-03-27 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772787', 'tblTempUsageDetail_20' ) start [2025-03-27 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772787', 'tblTempUsageDetail_20' ) end [2025-03-27 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772787', 'tblTempVendorCDR_20' ) start [2025-03-27 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772787', 'tblTempVendorCDR_20' ) end [2025-03-27 07:57:18] Production.INFO: ProcessCDR(1,14772787,1,1,2) [2025-03-27 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772787', 'tblTempUsageDetail_20' ) start [2025-03-27 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772787', 'tblTempUsageDetail_20' ) end [2025-03-27 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:57:21] Production.INFO: ==9248== Releasing lock... [2025-03-27 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-27 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:58:05 [end_date_ymd] => 2025-03-27 07:58:05 [RateCDR] => 1 ) [2025-03-27 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:58:05' and `end` < '2025-03-27 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:58:18] Production.INFO: count ==102 [2025-03-27 07:58:18] Production.ERROR: pbx CDR StartTime 2025-03-27 04:58:05 - End Time 2025-03-27 07:58:05 [2025-03-27 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772792', 'tblTempUsageDetail_20' ) start [2025-03-27 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772792', 'tblTempUsageDetail_20' ) end [2025-03-27 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772792', 'tblTempVendorCDR_20' ) start [2025-03-27 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772792', 'tblTempVendorCDR_20' ) end [2025-03-27 07:58:18] Production.INFO: ProcessCDR(1,14772792,1,1,2) [2025-03-27 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772792', 'tblTempUsageDetail_20' ) start [2025-03-27 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772792', 'tblTempUsageDetail_20' ) end [2025-03-27 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:58:22] Production.INFO: ==9350== Releasing lock... [2025-03-27 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:58:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-27 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 04:59:05 [end_date_ymd] => 2025-03-27 07:59:05 [RateCDR] => 1 ) [2025-03-27 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 04:59:05' and `end` < '2025-03-27 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 07:59:17] Production.INFO: count ==104 [2025-03-27 07:59:17] Production.ERROR: pbx CDR StartTime 2025-03-27 04:59:05 - End Time 2025-03-27 07:59:05 [2025-03-27 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772797', 'tblTempUsageDetail_20' ) start [2025-03-27 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772797', 'tblTempUsageDetail_20' ) end [2025-03-27 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772797', 'tblTempVendorCDR_20' ) start [2025-03-27 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772797', 'tblTempVendorCDR_20' ) end [2025-03-27 07:59:17] Production.INFO: ProcessCDR(1,14772797,1,1,2) [2025-03-27 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772797', 'tblTempUsageDetail_20' ) start [2025-03-27 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772797', 'tblTempUsageDetail_20' ) end [2025-03-27 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 07:59:21] Production.INFO: ==9430== Releasing lock... [2025-03-27 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 07:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-27 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:00:06 [end_date_ymd] => 2025-03-27 08:00:06 [RateCDR] => 1 ) [2025-03-27 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:00:06' and `end` < '2025-03-27 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:00:19] Production.INFO: count ==105 [2025-03-27 08:00:19] Production.ERROR: pbx CDR StartTime 2025-03-27 05:00:06 - End Time 2025-03-27 08:00:06 [2025-03-27 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772803', 'tblTempUsageDetail_20' ) start [2025-03-27 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772803', 'tblTempUsageDetail_20' ) end [2025-03-27 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772803', 'tblTempVendorCDR_20' ) start [2025-03-27 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772803', 'tblTempVendorCDR_20' ) end [2025-03-27 08:00:19] Production.INFO: ProcessCDR(1,14772803,1,1,2) [2025-03-27 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772803', 'tblTempUsageDetail_20' ) start [2025-03-27 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772803', 'tblTempUsageDetail_20' ) end [2025-03-27 08:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:00:24] Production.INFO: ==9505== Releasing lock... [2025-03-27 08:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:00:24] Production.INFO: 29.25 MB #Memory Used# [2025-03-27 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:01:05 [end_date_ymd] => 2025-03-27 08:01:05 [RateCDR] => 1 ) [2025-03-27 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:01:05' and `end` < '2025-03-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-03-27 08:01:18] Production.INFO: count ==105 [2025-03-27 08:01:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:01:05 - End Time 2025-03-27 08:01:05 [2025-03-27 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772808', 'tblTempUsageDetail_20' ) start [2025-03-27 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772808', 'tblTempUsageDetail_20' ) end [2025-03-27 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772808', 'tblTempVendorCDR_20' ) start [2025-03-27 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772808', 'tblTempVendorCDR_20' ) end [2025-03-27 08:01:18] Production.INFO: ProcessCDR(1,14772808,1,1,2) [2025-03-27 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772808', 'tblTempUsageDetail_20' ) start [2025-03-27 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772808', 'tblTempUsageDetail_20' ) end [2025-03-27 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:01:21] Production.INFO: ==9599== Releasing lock... [2025-03-27 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:01:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-27 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:02:05 [end_date_ymd] => 2025-03-27 08:02:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:02:05' and `end` < '2025-03-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-03-27 08:02:18] Production.INFO: count ==108 [2025-03-27 08:02:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:02:05 - End Time 2025-03-27 08:02:05 [2025-03-27 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772813', 'tblTempUsageDetail_20' ) start [2025-03-27 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772813', 'tblTempUsageDetail_20' ) end [2025-03-27 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772813', 'tblTempVendorCDR_20' ) start [2025-03-27 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772813', 'tblTempVendorCDR_20' ) end [2025-03-27 08:02:18] Production.INFO: ProcessCDR(1,14772813,1,1,2) [2025-03-27 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772813', 'tblTempUsageDetail_20' ) start [2025-03-27 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772813', 'tblTempUsageDetail_20' ) end [2025-03-27 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:02:21] Production.INFO: ==9671== Releasing lock... [2025-03-27 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:03:05 [end_date_ymd] => 2025-03-27 08:03:05 [RateCDR] => 1 ) [2025-03-27 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:03:05' and `end` < '2025-03-27 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:03:17] Production.INFO: count ==108 [2025-03-27 08:03:17] Production.ERROR: pbx CDR StartTime 2025-03-27 05:03:05 - End Time 2025-03-27 08:03:05 [2025-03-27 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772818', 'tblTempUsageDetail_20' ) start [2025-03-27 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772818', 'tblTempUsageDetail_20' ) end [2025-03-27 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772818', 'tblTempVendorCDR_20' ) start [2025-03-27 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772818', 'tblTempVendorCDR_20' ) end [2025-03-27 08:03:17] Production.INFO: ProcessCDR(1,14772818,1,1,2) [2025-03-27 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772818', 'tblTempUsageDetail_20' ) start [2025-03-27 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772818', 'tblTempUsageDetail_20' ) end [2025-03-27 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:03:21] Production.INFO: ==9742== Releasing lock... [2025-03-27 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:04:06 [end_date_ymd] => 2025-03-27 08:04:06 [RateCDR] => 1 ) [2025-03-27 08:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:04:06' and `end` < '2025-03-27 08:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:04:18] Production.INFO: count ==109 [2025-03-27 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:04:06 - End Time 2025-03-27 08:04:06 [2025-03-27 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772823', 'tblTempUsageDetail_20' ) start [2025-03-27 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772823', 'tblTempUsageDetail_20' ) end [2025-03-27 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772823', 'tblTempVendorCDR_20' ) start [2025-03-27 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772823', 'tblTempVendorCDR_20' ) end [2025-03-27 08:04:18] Production.INFO: ProcessCDR(1,14772823,1,1,2) [2025-03-27 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772823', 'tblTempUsageDetail_20' ) start [2025-03-27 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772823', 'tblTempUsageDetail_20' ) end [2025-03-27 08:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:04:23] Production.INFO: ==9816== Releasing lock... [2025-03-27 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:04:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:05:05 [end_date_ymd] => 2025-03-27 08:05:05 [RateCDR] => 1 ) [2025-03-27 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:05:05' and `end` < '2025-03-27 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:05:17] Production.INFO: count ==105 [2025-03-27 08:05:17] Production.ERROR: pbx CDR StartTime 2025-03-27 05:05:05 - End Time 2025-03-27 08:05:05 [2025-03-27 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772828', 'tblTempUsageDetail_20' ) start [2025-03-27 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772828', 'tblTempUsageDetail_20' ) end [2025-03-27 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772828', 'tblTempVendorCDR_20' ) start [2025-03-27 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772828', 'tblTempVendorCDR_20' ) end [2025-03-27 08:05:17] Production.INFO: ProcessCDR(1,14772828,1,1,2) [2025-03-27 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772828', 'tblTempUsageDetail_20' ) start [2025-03-27 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772828', 'tblTempUsageDetail_20' ) end [2025-03-27 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:05:21] Production.INFO: ==9888== Releasing lock... [2025-03-27 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:05:21] Production.INFO: 29 MB #Memory Used# [2025-03-27 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:06:05 [end_date_ymd] => 2025-03-27 08:06:05 [RateCDR] => 1 ) [2025-03-27 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:06:05' and `end` < '2025-03-27 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:06:18] Production.INFO: count ==106 [2025-03-27 08:06:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:06:05 - End Time 2025-03-27 08:06:05 [2025-03-27 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772833', 'tblTempUsageDetail_20' ) start [2025-03-27 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772833', 'tblTempUsageDetail_20' ) end [2025-03-27 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772833', 'tblTempVendorCDR_20' ) start [2025-03-27 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772833', 'tblTempVendorCDR_20' ) end [2025-03-27 08:06:18] Production.INFO: ProcessCDR(1,14772833,1,1,2) [2025-03-27 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772833', 'tblTempUsageDetail_20' ) start [2025-03-27 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772833', 'tblTempUsageDetail_20' ) end [2025-03-27 08:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:06:23] Production.INFO: ==9959== Releasing lock... [2025-03-27 08:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:06:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:07:05 [end_date_ymd] => 2025-03-27 08:07:05 [RateCDR] => 1 ) [2025-03-27 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:07:05' and `end` < '2025-03-27 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:07:17] Production.INFO: count ==107 [2025-03-27 08:07:17] Production.ERROR: pbx CDR StartTime 2025-03-27 05:07:05 - End Time 2025-03-27 08:07:05 [2025-03-27 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772838', 'tblTempUsageDetail_20' ) start [2025-03-27 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772838', 'tblTempUsageDetail_20' ) end [2025-03-27 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772838', 'tblTempVendorCDR_20' ) start [2025-03-27 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772838', 'tblTempVendorCDR_20' ) end [2025-03-27 08:07:17] Production.INFO: ProcessCDR(1,14772838,1,1,2) [2025-03-27 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772838', 'tblTempUsageDetail_20' ) start [2025-03-27 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772838', 'tblTempUsageDetail_20' ) end [2025-03-27 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:07:21] Production.INFO: ==10034== Releasing lock... [2025-03-27 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:07:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:08:05 [end_date_ymd] => 2025-03-27 08:08:05 [RateCDR] => 1 ) [2025-03-27 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:08:05' and `end` < '2025-03-27 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:08:18] Production.INFO: count ==109 [2025-03-27 08:08:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:08:05 - End Time 2025-03-27 08:08:05 [2025-03-27 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772843', 'tblTempUsageDetail_20' ) start [2025-03-27 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772843', 'tblTempUsageDetail_20' ) end [2025-03-27 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772843', 'tblTempVendorCDR_20' ) start [2025-03-27 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772843', 'tblTempVendorCDR_20' ) end [2025-03-27 08:08:18] Production.INFO: ProcessCDR(1,14772843,1,1,2) [2025-03-27 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772843', 'tblTempUsageDetail_20' ) start [2025-03-27 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772843', 'tblTempUsageDetail_20' ) end [2025-03-27 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:08:21] Production.INFO: ==10117== Releasing lock... [2025-03-27 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:08:21] Production.INFO: 29 MB #Memory Used# [2025-03-27 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:09:05 [end_date_ymd] => 2025-03-27 08:09:05 [RateCDR] => 1 ) [2025-03-27 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:09:05' and `end` < '2025-03-27 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:09:17] Production.INFO: count ==111 [2025-03-27 08:09:17] Production.ERROR: pbx CDR StartTime 2025-03-27 05:09:05 - End Time 2025-03-27 08:09:05 [2025-03-27 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772848', 'tblTempUsageDetail_20' ) start [2025-03-27 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772848', 'tblTempUsageDetail_20' ) end [2025-03-27 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772848', 'tblTempVendorCDR_20' ) start [2025-03-27 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772848', 'tblTempVendorCDR_20' ) end [2025-03-27 08:09:17] Production.INFO: ProcessCDR(1,14772848,1,1,2) [2025-03-27 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772848', 'tblTempUsageDetail_20' ) start [2025-03-27 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772848', 'tblTempUsageDetail_20' ) end [2025-03-27 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:09:22] Production.INFO: ==10191== Releasing lock... [2025-03-27 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:09:22] Production.INFO: 29 MB #Memory Used# [2025-03-27 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:10:06 [end_date_ymd] => 2025-03-27 08:10:06 [RateCDR] => 1 ) [2025-03-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-03-27 05:10:06' and `end` < '2025-03-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-03-27 08:10:19] Production.INFO: count ==133 [2025-03-27 08:10:19] Production.ERROR: pbx CDR StartTime 2025-03-27 05:10:06 - End Time 2025-03-27 08:10:06 [2025-03-27 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772854', 'tblTempUsageDetail_20' ) start [2025-03-27 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772854', 'tblTempUsageDetail_20' ) end [2025-03-27 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772854', 'tblTempVendorCDR_20' ) start [2025-03-27 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772854', 'tblTempVendorCDR_20' ) end [2025-03-27 08:10:19] Production.INFO: ProcessCDR(1,14772854,1,1,2) [2025-03-27 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772854', 'tblTempUsageDetail_20' ) start [2025-03-27 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772854', 'tblTempUsageDetail_20' ) end [2025-03-27 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:10:22] Production.INFO: ==10272== Releasing lock... [2025-03-27 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:11:05 [end_date_ymd] => 2025-03-27 08:11:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:11:05' and `end` < '2025-03-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-03-27 08:11:17] Production.INFO: count ==148 [2025-03-27 08:11:17] Production.ERROR: pbx CDR StartTime 2025-03-27 05:11:05 - End Time 2025-03-27 08:11:05 [2025-03-27 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772859', 'tblTempUsageDetail_20' ) start [2025-03-27 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772859', 'tblTempUsageDetail_20' ) end [2025-03-27 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772859', 'tblTempVendorCDR_20' ) start [2025-03-27 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772859', 'tblTempVendorCDR_20' ) end [2025-03-27 08:11:17] Production.INFO: ProcessCDR(1,14772859,1,1,2) [2025-03-27 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772859', 'tblTempUsageDetail_20' ) start [2025-03-27 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772859', 'tblTempUsageDetail_20' ) end [2025-03-27 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:11:21] Production.INFO: ==10355== Releasing lock... [2025-03-27 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-27 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:12:05 [end_date_ymd] => 2025-03-27 08:12:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:12:05' and `end` < '2025-03-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-03-27 08:12:18] Production.INFO: count ==156 [2025-03-27 08:12:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:12:05 - End Time 2025-03-27 08:12:05 [2025-03-27 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772864', 'tblTempUsageDetail_20' ) start [2025-03-27 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772864', 'tblTempUsageDetail_20' ) end [2025-03-27 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772864', 'tblTempVendorCDR_20' ) start [2025-03-27 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772864', 'tblTempVendorCDR_20' ) end [2025-03-27 08:12:18] Production.INFO: ProcessCDR(1,14772864,1,1,2) [2025-03-27 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772864', 'tblTempUsageDetail_20' ) start [2025-03-27 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772864', 'tblTempUsageDetail_20' ) end [2025-03-27 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:12:21] Production.INFO: ==10477== Releasing lock... [2025-03-27 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-27 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:13:05 [end_date_ymd] => 2025-03-27 08:13:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:13:05' and `end` < '2025-03-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-03-27 08:13:18] Production.INFO: count ==159 [2025-03-27 08:13:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:13:05 - End Time 2025-03-27 08:13:05 [2025-03-27 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772869', 'tblTempUsageDetail_20' ) start [2025-03-27 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772869', 'tblTempUsageDetail_20' ) end [2025-03-27 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772869', 'tblTempVendorCDR_20' ) start [2025-03-27 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772869', 'tblTempVendorCDR_20' ) end [2025-03-27 08:13:18] Production.INFO: ProcessCDR(1,14772869,1,1,2) [2025-03-27 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772869', 'tblTempUsageDetail_20' ) start [2025-03-27 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772869', 'tblTempUsageDetail_20' ) end [2025-03-27 08:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:13:23] Production.INFO: ==10556== Releasing lock... [2025-03-27 08:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:13:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:14:05 [end_date_ymd] => 2025-03-27 08:14:05 [RateCDR] => 1 ) [2025-03-27 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:14:05' and `end` < '2025-03-27 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:14:18] Production.INFO: count ==159 [2025-03-27 08:14:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:14:05 - End Time 2025-03-27 08:14:05 [2025-03-27 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772874', 'tblTempUsageDetail_20' ) start [2025-03-27 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772874', 'tblTempUsageDetail_20' ) end [2025-03-27 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772874', 'tblTempVendorCDR_20' ) start [2025-03-27 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772874', 'tblTempVendorCDR_20' ) end [2025-03-27 08:14:18] Production.INFO: ProcessCDR(1,14772874,1,1,2) [2025-03-27 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772874', 'tblTempUsageDetail_20' ) start [2025-03-27 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772874', 'tblTempUsageDetail_20' ) end [2025-03-27 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:14:21] Production.INFO: ==10636== Releasing lock... [2025-03-27 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:15:05 [end_date_ymd] => 2025-03-27 08:15:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:15:05' and `end` < '2025-03-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-03-27 08:15:18] Production.INFO: count ==160 [2025-03-27 08:15:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:15:05 - End Time 2025-03-27 08:15:05 [2025-03-27 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772879', 'tblTempUsageDetail_20' ) start [2025-03-27 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772879', 'tblTempUsageDetail_20' ) end [2025-03-27 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772879', 'tblTempVendorCDR_20' ) start [2025-03-27 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772879', 'tblTempVendorCDR_20' ) end [2025-03-27 08:15:18] Production.INFO: ProcessCDR(1,14772879,1,1,2) [2025-03-27 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772879', 'tblTempUsageDetail_20' ) start [2025-03-27 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772879', 'tblTempUsageDetail_20' ) end [2025-03-27 08:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:15:23] Production.INFO: ==10712== Releasing lock... [2025-03-27 08:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:15:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:16:05 [end_date_ymd] => 2025-03-27 08:16:05 [RateCDR] => 1 ) [2025-03-27 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:16:05' and `end` < '2025-03-27 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:16:18] Production.INFO: count ==161 [2025-03-27 08:16:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:16:05 - End Time 2025-03-27 08:16:05 [2025-03-27 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772884', 'tblTempUsageDetail_20' ) start [2025-03-27 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772884', 'tblTempUsageDetail_20' ) end [2025-03-27 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772884', 'tblTempVendorCDR_20' ) start [2025-03-27 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772884', 'tblTempVendorCDR_20' ) end [2025-03-27 08:16:18] Production.INFO: ProcessCDR(1,14772884,1,1,2) [2025-03-27 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772884', 'tblTempUsageDetail_20' ) start [2025-03-27 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772884', 'tblTempUsageDetail_20' ) end [2025-03-27 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:16:22] Production.INFO: ==10792== Releasing lock... [2025-03-27 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:16:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 08:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:17:06 [end_date_ymd] => 2025-03-27 08:17:06 [RateCDR] => 1 ) [2025-03-27 08:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:17:06' and `end` < '2025-03-27 08:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:17:18] Production.INFO: count ==168 [2025-03-27 08:17:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:17:06 - End Time 2025-03-27 08:17:06 [2025-03-27 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772889', 'tblTempUsageDetail_20' ) start [2025-03-27 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772889', 'tblTempUsageDetail_20' ) end [2025-03-27 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772889', 'tblTempVendorCDR_20' ) start [2025-03-27 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772889', 'tblTempVendorCDR_20' ) end [2025-03-27 08:17:18] Production.INFO: ProcessCDR(1,14772889,1,1,2) [2025-03-27 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772889', 'tblTempUsageDetail_20' ) start [2025-03-27 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772889', 'tblTempUsageDetail_20' ) end [2025-03-27 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:17:22] Production.INFO: ==10869== Releasing lock... [2025-03-27 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:17:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-27 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:18:05 [end_date_ymd] => 2025-03-27 08:18:05 [RateCDR] => 1 ) [2025-03-27 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:18:05' and `end` < '2025-03-27 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:18:18] Production.INFO: count ==171 [2025-03-27 08:18:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:18:05 - End Time 2025-03-27 08:18:05 [2025-03-27 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772894', 'tblTempUsageDetail_20' ) start [2025-03-27 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772894', 'tblTempUsageDetail_20' ) end [2025-03-27 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772894', 'tblTempVendorCDR_20' ) start [2025-03-27 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772894', 'tblTempVendorCDR_20' ) end [2025-03-27 08:18:18] Production.INFO: ProcessCDR(1,14772894,1,1,2) [2025-03-27 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772894', 'tblTempUsageDetail_20' ) start [2025-03-27 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772894', 'tblTempUsageDetail_20' ) end [2025-03-27 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:18:21] Production.INFO: ==10945== Releasing lock... [2025-03-27 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:18:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-27 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:19:05 [end_date_ymd] => 2025-03-27 08:19:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:19:05' and `end` < '2025-03-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-03-27 08:19:18] Production.INFO: count ==178 [2025-03-27 08:19:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:19:05 - End Time 2025-03-27 08:19:05 [2025-03-27 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772899', 'tblTempUsageDetail_20' ) start [2025-03-27 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772899', 'tblTempUsageDetail_20' ) end [2025-03-27 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772899', 'tblTempVendorCDR_20' ) start [2025-03-27 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772899', 'tblTempVendorCDR_20' ) end [2025-03-27 08:19:18] Production.INFO: ProcessCDR(1,14772899,1,1,2) [2025-03-27 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772899', 'tblTempUsageDetail_20' ) start [2025-03-27 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772899', 'tblTempUsageDetail_20' ) end [2025-03-27 08:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:19:23] Production.INFO: ==11020== Releasing lock... [2025-03-27 08:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:19:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:20:06 [end_date_ymd] => 2025-03-27 08:20:06 [RateCDR] => 1 ) [2025-03-27 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:20:06' and `end` < '2025-03-27 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:20:18] Production.INFO: count ==189 [2025-03-27 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:20:06 - End Time 2025-03-27 08:20:06 [2025-03-27 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772904', 'tblTempUsageDetail_20' ) start [2025-03-27 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772904', 'tblTempUsageDetail_20' ) end [2025-03-27 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772904', 'tblTempVendorCDR_20' ) start [2025-03-27 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772904', 'tblTempVendorCDR_20' ) end [2025-03-27 08:20:18] Production.INFO: ProcessCDR(1,14772904,1,1,2) [2025-03-27 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772904', 'tblTempUsageDetail_20' ) start [2025-03-27 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772904', 'tblTempUsageDetail_20' ) end [2025-03-27 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:20:23] Production.INFO: ==11110== Releasing lock... [2025-03-27 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:20:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-27 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:21:05 [end_date_ymd] => 2025-03-27 08:21:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:21:05' and `end` < '2025-03-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-03-27 08:21:18] Production.INFO: count ==220 [2025-03-27 08:21:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:21:05 - End Time 2025-03-27 08:21:05 [2025-03-27 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772910', 'tblTempUsageDetail_20' ) start [2025-03-27 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772910', 'tblTempUsageDetail_20' ) end [2025-03-27 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772910', 'tblTempVendorCDR_20' ) start [2025-03-27 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772910', 'tblTempVendorCDR_20' ) end [2025-03-27 08:21:18] Production.INFO: ProcessCDR(1,14772910,1,1,2) [2025-03-27 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772910', 'tblTempUsageDetail_20' ) start [2025-03-27 08:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772910', 'tblTempUsageDetail_20' ) end [2025-03-27 08:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:21:23] Production.INFO: ==11197== Releasing lock... [2025-03-27 08:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:21:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:22:05 [end_date_ymd] => 2025-03-27 08:22:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:22:05' and `end` < '2025-03-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-03-27 08:22:17] Production.INFO: count ==223 [2025-03-27 08:22:17] Production.ERROR: pbx CDR StartTime 2025-03-27 05:22:05 - End Time 2025-03-27 08:22:05 [2025-03-27 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772915', 'tblTempUsageDetail_20' ) start [2025-03-27 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772915', 'tblTempUsageDetail_20' ) end [2025-03-27 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772915', 'tblTempVendorCDR_20' ) start [2025-03-27 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772915', 'tblTempVendorCDR_20' ) end [2025-03-27 08:22:17] Production.INFO: ProcessCDR(1,14772915,1,1,2) [2025-03-27 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772915', 'tblTempUsageDetail_20' ) start [2025-03-27 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772915', 'tblTempUsageDetail_20' ) end [2025-03-27 08:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:22:22] Production.INFO: ==11268== Releasing lock... [2025-03-27 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:22:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:23:05 [end_date_ymd] => 2025-03-27 08:23:05 [RateCDR] => 1 ) [2025-03-27 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:23:05' and `end` < '2025-03-27 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:23:18] Production.INFO: count ==225 [2025-03-27 08:23:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:23:05 - End Time 2025-03-27 08:23:05 [2025-03-27 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772920', 'tblTempUsageDetail_20' ) start [2025-03-27 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772920', 'tblTempUsageDetail_20' ) end [2025-03-27 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772920', 'tblTempVendorCDR_20' ) start [2025-03-27 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772920', 'tblTempVendorCDR_20' ) end [2025-03-27 08:23:18] Production.INFO: ProcessCDR(1,14772920,1,1,2) [2025-03-27 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772920', 'tblTempUsageDetail_20' ) start [2025-03-27 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772920', 'tblTempUsageDetail_20' ) end [2025-03-27 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:23:21] Production.INFO: ==11349== Releasing lock... [2025-03-27 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:23:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:24:05 [end_date_ymd] => 2025-03-27 08:24:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:24:05' and `end` < '2025-03-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-03-27 08:24:17] Production.INFO: count ==226 [2025-03-27 08:24:17] Production.ERROR: pbx CDR StartTime 2025-03-27 05:24:05 - End Time 2025-03-27 08:24:05 [2025-03-27 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772925', 'tblTempUsageDetail_20' ) start [2025-03-27 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772925', 'tblTempUsageDetail_20' ) end [2025-03-27 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772925', 'tblTempVendorCDR_20' ) start [2025-03-27 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772925', 'tblTempVendorCDR_20' ) end [2025-03-27 08:24:17] Production.INFO: ProcessCDR(1,14772925,1,1,2) [2025-03-27 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772925', 'tblTempUsageDetail_20' ) start [2025-03-27 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772925', 'tblTempUsageDetail_20' ) end [2025-03-27 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:24:21] Production.INFO: ==11434== Releasing lock... [2025-03-27 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:24:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:25:05 [end_date_ymd] => 2025-03-27 08:25:05 [RateCDR] => 1 ) [2025-03-27 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:25:05' and `end` < '2025-03-27 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:25:18] Production.INFO: count ==236 [2025-03-27 08:25:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:25:05 - End Time 2025-03-27 08:25:05 [2025-03-27 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772930', 'tblTempUsageDetail_20' ) start [2025-03-27 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772930', 'tblTempUsageDetail_20' ) end [2025-03-27 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772930', 'tblTempVendorCDR_20' ) start [2025-03-27 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772930', 'tblTempVendorCDR_20' ) end [2025-03-27 08:25:18] Production.INFO: ProcessCDR(1,14772930,1,1,2) [2025-03-27 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772930', 'tblTempUsageDetail_20' ) start [2025-03-27 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772930', 'tblTempUsageDetail_20' ) end [2025-03-27 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:25:23] Production.INFO: ==11511== Releasing lock... [2025-03-27 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:25:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-27 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:26:06 [end_date_ymd] => 2025-03-27 08:26:06 [RateCDR] => 1 ) [2025-03-27 08:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:26:06' and `end` < '2025-03-27 08:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:26:19] Production.INFO: count ==240 [2025-03-27 08:26:19] Production.ERROR: pbx CDR StartTime 2025-03-27 05:26:06 - End Time 2025-03-27 08:26:06 [2025-03-27 08:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772935', 'tblTempUsageDetail_20' ) start [2025-03-27 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772935', 'tblTempUsageDetail_20' ) end [2025-03-27 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772935', 'tblTempVendorCDR_20' ) start [2025-03-27 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772935', 'tblTempVendorCDR_20' ) end [2025-03-27 08:26:19] Production.INFO: ProcessCDR(1,14772935,1,1,2) [2025-03-27 08:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772935', 'tblTempUsageDetail_20' ) start [2025-03-27 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772935', 'tblTempUsageDetail_20' ) end [2025-03-27 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:26:22] Production.INFO: ==11592== Releasing lock... [2025-03-27 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:26:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-27 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:27:05 [end_date_ymd] => 2025-03-27 08:27:05 [RateCDR] => 1 ) [2025-03-27 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:27:05' and `end` < '2025-03-27 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:27:18] Production.INFO: count ==244 [2025-03-27 08:27:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:27:05 - End Time 2025-03-27 08:27:05 [2025-03-27 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772940', 'tblTempUsageDetail_20' ) start [2025-03-27 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772940', 'tblTempUsageDetail_20' ) end [2025-03-27 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772940', 'tblTempVendorCDR_20' ) start [2025-03-27 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772940', 'tblTempVendorCDR_20' ) end [2025-03-27 08:27:18] Production.INFO: ProcessCDR(1,14772940,1,1,2) [2025-03-27 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772940', 'tblTempUsageDetail_20' ) start [2025-03-27 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772940', 'tblTempUsageDetail_20' ) end [2025-03-27 08:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:27:23] Production.INFO: ==11706== Releasing lock... [2025-03-27 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:27:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-27 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:28:05 [end_date_ymd] => 2025-03-27 08:28:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:28:05' and `end` < '2025-03-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-03-27 08:28:18] Production.INFO: count ==251 [2025-03-27 08:28:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:28:05 - End Time 2025-03-27 08:28:05 [2025-03-27 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772945', 'tblTempUsageDetail_20' ) start [2025-03-27 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772945', 'tblTempUsageDetail_20' ) end [2025-03-27 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772945', 'tblTempVendorCDR_20' ) start [2025-03-27 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772945', 'tblTempVendorCDR_20' ) end [2025-03-27 08:28:18] Production.INFO: ProcessCDR(1,14772945,1,1,2) [2025-03-27 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772945', 'tblTempUsageDetail_20' ) start [2025-03-27 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772945', 'tblTempUsageDetail_20' ) end [2025-03-27 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:28:23] Production.INFO: ==11780== Releasing lock... [2025-03-27 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:28:23] Production.INFO: 30 MB #Memory Used# [2025-03-27 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:29:05 [end_date_ymd] => 2025-03-27 08:29:05 [RateCDR] => 1 ) [2025-03-27 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:29:05' and `end` < '2025-03-27 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:29:17] Production.INFO: count ==252 [2025-03-27 08:29:17] Production.ERROR: pbx CDR StartTime 2025-03-27 05:29:05 - End Time 2025-03-27 08:29:05 [2025-03-27 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772950', 'tblTempUsageDetail_20' ) start [2025-03-27 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772950', 'tblTempUsageDetail_20' ) end [2025-03-27 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772950', 'tblTempVendorCDR_20' ) start [2025-03-27 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772950', 'tblTempVendorCDR_20' ) end [2025-03-27 08:29:17] Production.INFO: ProcessCDR(1,14772950,1,1,2) [2025-03-27 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772950', 'tblTempUsageDetail_20' ) start [2025-03-27 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772950', 'tblTempUsageDetail_20' ) end [2025-03-27 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:29:21] Production.INFO: ==11856== Releasing lock... [2025-03-27 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:29:21] Production.INFO: 30 MB #Memory Used# [2025-03-27 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:30:06 [end_date_ymd] => 2025-03-27 08:30:06 [RateCDR] => 1 ) [2025-03-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-03-27 05:30:06' and `end` < '2025-03-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-03-27 08:30:19] Production.INFO: count ==267 [2025-03-27 08:30:19] Production.ERROR: pbx CDR StartTime 2025-03-27 05:30:06 - End Time 2025-03-27 08:30:06 [2025-03-27 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772956', 'tblTempUsageDetail_20' ) start [2025-03-27 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772956', 'tblTempUsageDetail_20' ) end [2025-03-27 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772956', 'tblTempVendorCDR_20' ) start [2025-03-27 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772956', 'tblTempVendorCDR_20' ) end [2025-03-27 08:30:19] Production.INFO: ProcessCDR(1,14772956,1,1,2) [2025-03-27 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772956', 'tblTempUsageDetail_20' ) start [2025-03-27 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772956', 'tblTempUsageDetail_20' ) end [2025-03-27 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:30:22] Production.INFO: ==11939== Releasing lock... [2025-03-27 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:30:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-27 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:31:05 [end_date_ymd] => 2025-03-27 08:31:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:31:05' and `end` < '2025-03-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-03-27 08:31:17] Production.INFO: count ==304 [2025-03-27 08:31:17] Production.ERROR: pbx CDR StartTime 2025-03-27 05:31:05 - End Time 2025-03-27 08:31:05 [2025-03-27 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772961', 'tblTempUsageDetail_20' ) start [2025-03-27 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772961', 'tblTempUsageDetail_20' ) end [2025-03-27 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772961', 'tblTempVendorCDR_20' ) start [2025-03-27 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772961', 'tblTempVendorCDR_20' ) end [2025-03-27 08:31:17] Production.INFO: ProcessCDR(1,14772961,1,1,2) [2025-03-27 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772961', 'tblTempUsageDetail_20' ) start [2025-03-27 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772961', 'tblTempUsageDetail_20' ) end [2025-03-27 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:31:21] Production.INFO: ==12021== Releasing lock... [2025-03-27 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:31:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-27 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:32:06 [end_date_ymd] => 2025-03-27 08:32:06 [RateCDR] => 1 ) [2025-03-27 08:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:32:06' and `end` < '2025-03-27 08:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:32:18] Production.INFO: count ==321 [2025-03-27 08:32:19] Production.ERROR: pbx CDR StartTime 2025-03-27 05:32:06 - End Time 2025-03-27 08:32:06 [2025-03-27 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772966', 'tblTempUsageDetail_20' ) start [2025-03-27 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772966', 'tblTempUsageDetail_20' ) end [2025-03-27 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772966', 'tblTempVendorCDR_20' ) start [2025-03-27 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772966', 'tblTempVendorCDR_20' ) end [2025-03-27 08:32:19] Production.INFO: ProcessCDR(1,14772966,1,1,2) [2025-03-27 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772966', 'tblTempUsageDetail_20' ) start [2025-03-27 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772966', 'tblTempUsageDetail_20' ) end [2025-03-27 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:32:22] Production.INFO: ==12098== Releasing lock... [2025-03-27 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:32:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-27 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:33:05 [end_date_ymd] => 2025-03-27 08:33:05 [RateCDR] => 1 ) [2025-03-27 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:33:05' and `end` < '2025-03-27 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:33:18] Production.INFO: count ==335 [2025-03-27 08:33:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:33:05 - End Time 2025-03-27 08:33:05 [2025-03-27 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772971', 'tblTempUsageDetail_20' ) start [2025-03-27 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772971', 'tblTempUsageDetail_20' ) end [2025-03-27 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772971', 'tblTempVendorCDR_20' ) start [2025-03-27 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772971', 'tblTempVendorCDR_20' ) end [2025-03-27 08:33:18] Production.INFO: ProcessCDR(1,14772971,1,1,2) [2025-03-27 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772971', 'tblTempUsageDetail_20' ) start [2025-03-27 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772971', 'tblTempUsageDetail_20' ) end [2025-03-27 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:33:21] Production.INFO: ==12180== Releasing lock... [2025-03-27 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:33:21] Production.INFO: 31 MB #Memory Used# [2025-03-27 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:34:05 [end_date_ymd] => 2025-03-27 08:34:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:34:05' and `end` < '2025-03-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-03-27 08:34:18] Production.INFO: count ==342 [2025-03-27 08:34:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:34:05 - End Time 2025-03-27 08:34:05 [2025-03-27 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772976', 'tblTempUsageDetail_20' ) start [2025-03-27 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772976', 'tblTempUsageDetail_20' ) end [2025-03-27 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772976', 'tblTempVendorCDR_20' ) start [2025-03-27 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772976', 'tblTempVendorCDR_20' ) end [2025-03-27 08:34:18] Production.INFO: ProcessCDR(1,14772976,1,1,2) [2025-03-27 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772976', 'tblTempUsageDetail_20' ) start [2025-03-27 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772976', 'tblTempUsageDetail_20' ) end [2025-03-27 08:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:34:23] Production.INFO: ==12266== Releasing lock... [2025-03-27 08:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:34:23] Production.INFO: 31 MB #Memory Used# [2025-03-27 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:35:05 [end_date_ymd] => 2025-03-27 08:35:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:35:05' and `end` < '2025-03-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-03-27 08:35:17] Production.INFO: count ==343 [2025-03-27 08:35:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:35:05 - End Time 2025-03-27 08:35:05 [2025-03-27 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772981', 'tblTempUsageDetail_20' ) start [2025-03-27 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772981', 'tblTempUsageDetail_20' ) end [2025-03-27 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772981', 'tblTempVendorCDR_20' ) start [2025-03-27 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772981', 'tblTempVendorCDR_20' ) end [2025-03-27 08:35:18] Production.INFO: ProcessCDR(1,14772981,1,1,2) [2025-03-27 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772981', 'tblTempUsageDetail_20' ) start [2025-03-27 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772981', 'tblTempUsageDetail_20' ) end [2025-03-27 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:35:22] Production.INFO: ==12335== Releasing lock... [2025-03-27 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:35:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-27 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:36:06 [end_date_ymd] => 2025-03-27 08:36:06 [RateCDR] => 1 ) [2025-03-27 08:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:36:06' and `end` < '2025-03-27 08:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:36:18] Production.INFO: count ==344 [2025-03-27 08:36:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:36:06 - End Time 2025-03-27 08:36:06 [2025-03-27 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772986', 'tblTempUsageDetail_20' ) start [2025-03-27 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772986', 'tblTempUsageDetail_20' ) end [2025-03-27 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772986', 'tblTempVendorCDR_20' ) start [2025-03-27 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772986', 'tblTempVendorCDR_20' ) end [2025-03-27 08:36:18] Production.INFO: ProcessCDR(1,14772986,1,1,2) [2025-03-27 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772986', 'tblTempUsageDetail_20' ) start [2025-03-27 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772986', 'tblTempUsageDetail_20' ) end [2025-03-27 08:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:36:23] Production.INFO: ==12417== Releasing lock... [2025-03-27 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:36:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-27 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:37:05 [end_date_ymd] => 2025-03-27 08:37:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:37:05' and `end` < '2025-03-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-03-27 08:37:18] Production.INFO: count ==358 [2025-03-27 08:37:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:37:05 - End Time 2025-03-27 08:37:05 [2025-03-27 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772991', 'tblTempUsageDetail_20' ) start [2025-03-27 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772991', 'tblTempUsageDetail_20' ) end [2025-03-27 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772991', 'tblTempVendorCDR_20' ) start [2025-03-27 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772991', 'tblTempVendorCDR_20' ) end [2025-03-27 08:37:18] Production.INFO: ProcessCDR(1,14772991,1,1,2) [2025-03-27 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772991', 'tblTempUsageDetail_20' ) start [2025-03-27 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772991', 'tblTempUsageDetail_20' ) end [2025-03-27 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:37:23] Production.INFO: ==12494== Releasing lock... [2025-03-27 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:37:23] Production.INFO: 31 MB #Memory Used# [2025-03-27 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:38:05 [end_date_ymd] => 2025-03-27 08:38:05 [RateCDR] => 1 ) [2025-03-27 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:38:05' and `end` < '2025-03-27 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:38:18] Production.INFO: count ==359 [2025-03-27 08:38:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:38:05 - End Time 2025-03-27 08:38:05 [2025-03-27 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772996', 'tblTempUsageDetail_20' ) start [2025-03-27 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14772996', 'tblTempUsageDetail_20' ) end [2025-03-27 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772996', 'tblTempVendorCDR_20' ) start [2025-03-27 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14772996', 'tblTempVendorCDR_20' ) end [2025-03-27 08:38:18] Production.INFO: ProcessCDR(1,14772996,1,1,2) [2025-03-27 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14772996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14772996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14772996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14772996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772996', 'tblTempUsageDetail_20' ) start [2025-03-27 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14772996', 'tblTempUsageDetail_20' ) end [2025-03-27 08:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:38:24] Production.INFO: ==12571== Releasing lock... [2025-03-27 08:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:38:24] Production.INFO: 31 MB #Memory Used# [2025-03-27 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:39:05 [end_date_ymd] => 2025-03-27 08:39:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:39:05' and `end` < '2025-03-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-03-27 08:39:18] Production.INFO: count ==374 [2025-03-27 08:39:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:39:05 - End Time 2025-03-27 08:39:05 [2025-03-27 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773001', 'tblTempUsageDetail_20' ) start [2025-03-27 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773001', 'tblTempUsageDetail_20' ) end [2025-03-27 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773001', 'tblTempVendorCDR_20' ) start [2025-03-27 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773001', 'tblTempVendorCDR_20' ) end [2025-03-27 08:39:18] Production.INFO: ProcessCDR(1,14773001,1,1,2) [2025-03-27 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773001', 'tblTempUsageDetail_20' ) start [2025-03-27 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773001', 'tblTempUsageDetail_20' ) end [2025-03-27 08:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:39:23] Production.INFO: ==12655== Releasing lock... [2025-03-27 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:39:23] Production.INFO: 31 MB #Memory Used# [2025-03-27 08:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:40:07 [end_date_ymd] => 2025-03-27 08:40:07 [RateCDR] => 1 ) [2025-03-27 08:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:40:07' and `end` < '2025-03-27 08:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:40:19] Production.INFO: count ==384 [2025-03-27 08:40:19] Production.ERROR: pbx CDR StartTime 2025-03-27 05:40:07 - End Time 2025-03-27 08:40:07 [2025-03-27 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773007', 'tblTempUsageDetail_20' ) start [2025-03-27 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773007', 'tblTempUsageDetail_20' ) end [2025-03-27 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773007', 'tblTempVendorCDR_20' ) start [2025-03-27 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773007', 'tblTempVendorCDR_20' ) end [2025-03-27 08:40:20] Production.INFO: ProcessCDR(1,14773007,1,1,2) [2025-03-27 08:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773007', 'tblTempUsageDetail_20' ) start [2025-03-27 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773007', 'tblTempUsageDetail_20' ) end [2025-03-27 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:40:23] Production.INFO: ==12741== Releasing lock... [2025-03-27 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:40:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-27 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:41:05 [end_date_ymd] => 2025-03-27 08:41:05 [RateCDR] => 1 ) [2025-03-27 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:41:05' and `end` < '2025-03-27 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:41:18] Production.INFO: count ==402 [2025-03-27 08:41:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:41:05 - End Time 2025-03-27 08:41:05 [2025-03-27 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773012', 'tblTempUsageDetail_20' ) start [2025-03-27 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773012', 'tblTempUsageDetail_20' ) end [2025-03-27 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773012', 'tblTempVendorCDR_20' ) start [2025-03-27 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773012', 'tblTempVendorCDR_20' ) end [2025-03-27 08:41:18] Production.INFO: ProcessCDR(1,14773012,1,1,2) [2025-03-27 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773012', 'tblTempUsageDetail_20' ) start [2025-03-27 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773012', 'tblTempUsageDetail_20' ) end [2025-03-27 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:41:22] Production.INFO: ==12822== Releasing lock... [2025-03-27 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:41:22] Production.INFO: 31 MB #Memory Used# [2025-03-27 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:42:05 [end_date_ymd] => 2025-03-27 08:42:05 [RateCDR] => 1 ) [2025-03-27 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:42:05' and `end` < '2025-03-27 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:42:18] Production.INFO: count ==404 [2025-03-27 08:42:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:42:05 - End Time 2025-03-27 08:42:05 [2025-03-27 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773017', 'tblTempUsageDetail_20' ) start [2025-03-27 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773017', 'tblTempUsageDetail_20' ) end [2025-03-27 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773017', 'tblTempVendorCDR_20' ) start [2025-03-27 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773017', 'tblTempVendorCDR_20' ) end [2025-03-27 08:42:18] Production.INFO: ProcessCDR(1,14773017,1,1,2) [2025-03-27 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773017', 'tblTempUsageDetail_20' ) start [2025-03-27 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773017', 'tblTempUsageDetail_20' ) end [2025-03-27 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:42:23] Production.INFO: ==12903== Releasing lock... [2025-03-27 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:42:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-27 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:43:06 [end_date_ymd] => 2025-03-27 08:43:06 [RateCDR] => 1 ) [2025-03-27 08:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:43:06' and `end` < '2025-03-27 08:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:43:19] Production.INFO: count ==406 [2025-03-27 08:43:19] Production.ERROR: pbx CDR StartTime 2025-03-27 05:43:06 - End Time 2025-03-27 08:43:06 [2025-03-27 08:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773022', 'tblTempUsageDetail_20' ) start [2025-03-27 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773022', 'tblTempUsageDetail_20' ) end [2025-03-27 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773022', 'tblTempVendorCDR_20' ) start [2025-03-27 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773022', 'tblTempVendorCDR_20' ) end [2025-03-27 08:43:19] Production.INFO: ProcessCDR(1,14773022,1,1,2) [2025-03-27 08:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773022', 'tblTempUsageDetail_20' ) start [2025-03-27 08:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773022', 'tblTempUsageDetail_20' ) end [2025-03-27 08:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:43:24] Production.INFO: ==13024== Releasing lock... [2025-03-27 08:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:43:24] Production.INFO: 31.75 MB #Memory Used# [2025-03-27 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:44:05 [end_date_ymd] => 2025-03-27 08:44:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:44:05' and `end` < '2025-03-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-03-27 08:44:18] Production.INFO: count ==407 [2025-03-27 08:44:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:44:05 - End Time 2025-03-27 08:44:05 [2025-03-27 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773027', 'tblTempUsageDetail_20' ) start [2025-03-27 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773027', 'tblTempUsageDetail_20' ) end [2025-03-27 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773027', 'tblTempVendorCDR_20' ) start [2025-03-27 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773027', 'tblTempVendorCDR_20' ) end [2025-03-27 08:44:18] Production.INFO: ProcessCDR(1,14773027,1,1,2) [2025-03-27 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773027', 'tblTempUsageDetail_20' ) start [2025-03-27 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773027', 'tblTempUsageDetail_20' ) end [2025-03-27 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:44:23] Production.INFO: ==13101== Releasing lock... [2025-03-27 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:44:23] Production.INFO: 32 MB #Memory Used# [2025-03-27 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:45:05 [end_date_ymd] => 2025-03-27 08:45:05 [RateCDR] => 1 ) [2025-03-27 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:45:05' and `end` < '2025-03-27 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:45:17] Production.INFO: count ==437 [2025-03-27 08:45:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:45:05 - End Time 2025-03-27 08:45:05 [2025-03-27 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773032', 'tblTempUsageDetail_20' ) start [2025-03-27 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773032', 'tblTempUsageDetail_20' ) end [2025-03-27 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773032', 'tblTempVendorCDR_20' ) start [2025-03-27 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773032', 'tblTempVendorCDR_20' ) end [2025-03-27 08:45:18] Production.INFO: ProcessCDR(1,14773032,1,1,2) [2025-03-27 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773032', 'tblTempUsageDetail_20' ) start [2025-03-27 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773032', 'tblTempUsageDetail_20' ) end [2025-03-27 08:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:45:22] Production.INFO: ==13174== Releasing lock... [2025-03-27 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:45:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:46:05 [end_date_ymd] => 2025-03-27 08:46:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:46:05' and `end` < '2025-03-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-03-27 08:46:18] Production.INFO: count ==438 [2025-03-27 08:46:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:46:05 - End Time 2025-03-27 08:46:05 [2025-03-27 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773037', 'tblTempUsageDetail_20' ) start [2025-03-27 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773037', 'tblTempUsageDetail_20' ) end [2025-03-27 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773037', 'tblTempVendorCDR_20' ) start [2025-03-27 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773037', 'tblTempVendorCDR_20' ) end [2025-03-27 08:46:18] Production.INFO: ProcessCDR(1,14773037,1,1,2) [2025-03-27 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773037', 'tblTempUsageDetail_20' ) start [2025-03-27 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773037', 'tblTempUsageDetail_20' ) end [2025-03-27 08:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:46:23] Production.INFO: ==13255== Releasing lock... [2025-03-27 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:46:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:47:05 [end_date_ymd] => 2025-03-27 08:47:05 [RateCDR] => 1 ) [2025-03-27 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:47:05' and `end` < '2025-03-27 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:47:18] Production.INFO: count ==455 [2025-03-27 08:47:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:47:05 - End Time 2025-03-27 08:47:05 [2025-03-27 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773042', 'tblTempUsageDetail_20' ) start [2025-03-27 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773042', 'tblTempUsageDetail_20' ) end [2025-03-27 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773042', 'tblTempVendorCDR_20' ) start [2025-03-27 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773042', 'tblTempVendorCDR_20' ) end [2025-03-27 08:47:18] Production.INFO: ProcessCDR(1,14773042,1,1,2) [2025-03-27 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773042', 'tblTempUsageDetail_20' ) start [2025-03-27 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773042', 'tblTempUsageDetail_20' ) end [2025-03-27 08:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:47:23] Production.INFO: ==13330== Releasing lock... [2025-03-27 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:47:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:48:05 [end_date_ymd] => 2025-03-27 08:48:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:48:05' and `end` < '2025-03-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-03-27 08:48:17] Production.INFO: count ==461 [2025-03-27 08:48:17] Production.ERROR: pbx CDR StartTime 2025-03-27 05:48:05 - End Time 2025-03-27 08:48:05 [2025-03-27 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773047', 'tblTempUsageDetail_20' ) start [2025-03-27 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773047', 'tblTempUsageDetail_20' ) end [2025-03-27 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773047', 'tblTempVendorCDR_20' ) start [2025-03-27 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773047', 'tblTempVendorCDR_20' ) end [2025-03-27 08:48:18] Production.INFO: ProcessCDR(1,14773047,1,1,2) [2025-03-27 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773047', 'tblTempUsageDetail_20' ) start [2025-03-27 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773047', 'tblTempUsageDetail_20' ) end [2025-03-27 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:48:21] Production.INFO: ==13405== Releasing lock... [2025-03-27 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:48:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:49:05 [end_date_ymd] => 2025-03-27 08:49:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:49:05' and `end` < '2025-03-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-03-27 08:49:18] Production.INFO: count ==461 [2025-03-27 08:49:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:49:05 - End Time 2025-03-27 08:49:05 [2025-03-27 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773052', 'tblTempUsageDetail_20' ) start [2025-03-27 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773052', 'tblTempUsageDetail_20' ) end [2025-03-27 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773052', 'tblTempVendorCDR_20' ) start [2025-03-27 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773052', 'tblTempVendorCDR_20' ) end [2025-03-27 08:49:18] Production.INFO: ProcessCDR(1,14773052,1,1,2) [2025-03-27 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773052', 'tblTempUsageDetail_20' ) start [2025-03-27 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773052', 'tblTempUsageDetail_20' ) end [2025-03-27 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:49:21] Production.INFO: ==13481== Releasing lock... [2025-03-27 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:49:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:50:06 [end_date_ymd] => 2025-03-27 08:50:06 [RateCDR] => 1 ) [2025-03-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-03-27 05:50:06' and `end` < '2025-03-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-03-27 08:50:19] Production.INFO: count ==475 [2025-03-27 08:50:19] Production.ERROR: pbx CDR StartTime 2025-03-27 05:50:06 - End Time 2025-03-27 08:50:06 [2025-03-27 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773058', 'tblTempUsageDetail_20' ) start [2025-03-27 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773058', 'tblTempUsageDetail_20' ) end [2025-03-27 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773058', 'tblTempVendorCDR_20' ) start [2025-03-27 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773058', 'tblTempVendorCDR_20' ) end [2025-03-27 08:50:19] Production.INFO: ProcessCDR(1,14773058,1,1,2) [2025-03-27 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773058', 'tblTempUsageDetail_20' ) start [2025-03-27 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773058', 'tblTempUsageDetail_20' ) end [2025-03-27 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:50:24] Production.INFO: ==13559== Releasing lock... [2025-03-27 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:50:24] Production.INFO: 32 MB #Memory Used# [2025-03-27 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:51:05 [end_date_ymd] => 2025-03-27 08:51:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:51:05' and `end` < '2025-03-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-03-27 08:51:18] Production.INFO: count ==512 [2025-03-27 08:51:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:51:05 - End Time 2025-03-27 08:51:05 [2025-03-27 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773063', 'tblTempUsageDetail_20' ) start [2025-03-27 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773063', 'tblTempUsageDetail_20' ) end [2025-03-27 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773063', 'tblTempVendorCDR_20' ) start [2025-03-27 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773063', 'tblTempVendorCDR_20' ) end [2025-03-27 08:51:18] Production.INFO: ProcessCDR(1,14773063,1,1,2) [2025-03-27 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773063', 'tblTempUsageDetail_20' ) start [2025-03-27 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773063', 'tblTempUsageDetail_20' ) end [2025-03-27 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:51:23] Production.INFO: ==13632== Releasing lock... [2025-03-27 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:51:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:52:05 [end_date_ymd] => 2025-03-27 08:52:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:52:05' and `end` < '2025-03-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-03-27 08:52:18] Production.INFO: count ==516 [2025-03-27 08:52:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:52:05 - End Time 2025-03-27 08:52:05 [2025-03-27 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773068', 'tblTempUsageDetail_20' ) start [2025-03-27 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773068', 'tblTempUsageDetail_20' ) end [2025-03-27 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773068', 'tblTempVendorCDR_20' ) start [2025-03-27 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773068', 'tblTempVendorCDR_20' ) end [2025-03-27 08:52:18] Production.INFO: ProcessCDR(1,14773068,1,1,2) [2025-03-27 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773068', 'tblTempUsageDetail_20' ) start [2025-03-27 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773068', 'tblTempUsageDetail_20' ) end [2025-03-27 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:52:23] Production.INFO: ==13708== Releasing lock... [2025-03-27 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:52:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 08:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:53:06 [end_date_ymd] => 2025-03-27 08:53:06 [RateCDR] => 1 ) [2025-03-27 08:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:53:06' and `end` < '2025-03-27 08:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:53:19] Production.INFO: count ==521 [2025-03-27 08:53:19] Production.ERROR: pbx CDR StartTime 2025-03-27 05:53:06 - End Time 2025-03-27 08:53:06 [2025-03-27 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773073', 'tblTempUsageDetail_20' ) start [2025-03-27 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773073', 'tblTempUsageDetail_20' ) end [2025-03-27 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773073', 'tblTempVendorCDR_20' ) start [2025-03-27 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773073', 'tblTempVendorCDR_20' ) end [2025-03-27 08:53:19] Production.INFO: ProcessCDR(1,14773073,1,1,2) [2025-03-27 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773073', 'tblTempUsageDetail_20' ) start [2025-03-27 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773073', 'tblTempUsageDetail_20' ) end [2025-03-27 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:53:22] Production.INFO: ==13785== Releasing lock... [2025-03-27 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:53:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:54:05 [end_date_ymd] => 2025-03-27 08:54:05 [RateCDR] => 1 ) [2025-03-27 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:54:05' and `end` < '2025-03-27 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:54:18] Production.INFO: count ==527 [2025-03-27 08:54:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:54:05 - End Time 2025-03-27 08:54:05 [2025-03-27 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773078', 'tblTempUsageDetail_20' ) start [2025-03-27 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773078', 'tblTempUsageDetail_20' ) end [2025-03-27 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773078', 'tblTempVendorCDR_20' ) start [2025-03-27 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773078', 'tblTempVendorCDR_20' ) end [2025-03-27 08:54:18] Production.INFO: ProcessCDR(1,14773078,1,1,2) [2025-03-27 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773078', 'tblTempUsageDetail_20' ) start [2025-03-27 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773078', 'tblTempUsageDetail_20' ) end [2025-03-27 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:54:22] Production.INFO: ==13860== Releasing lock... [2025-03-27 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:54:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-27 08:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:55:06 [end_date_ymd] => 2025-03-27 08:55:06 [RateCDR] => 1 ) [2025-03-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-03-27 05:55:06' and `end` < '2025-03-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-03-27 08:55:18] Production.INFO: count ==537 [2025-03-27 08:55:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:55:06 - End Time 2025-03-27 08:55:06 [2025-03-27 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773083', 'tblTempUsageDetail_20' ) start [2025-03-27 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773083', 'tblTempUsageDetail_20' ) end [2025-03-27 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773083', 'tblTempVendorCDR_20' ) start [2025-03-27 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773083', 'tblTempVendorCDR_20' ) end [2025-03-27 08:55:18] Production.INFO: ProcessCDR(1,14773083,1,1,2) [2025-03-27 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773083', 'tblTempUsageDetail_20' ) start [2025-03-27 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773083', 'tblTempUsageDetail_20' ) end [2025-03-27 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:55:23] Production.INFO: ==13933== Releasing lock... [2025-03-27 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:55:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:56:05 [end_date_ymd] => 2025-03-27 08:56:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:56:05' and `end` < '2025-03-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-03-27 08:56:18] Production.INFO: count ==538 [2025-03-27 08:56:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:56:05 - End Time 2025-03-27 08:56:05 [2025-03-27 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773088', 'tblTempUsageDetail_20' ) start [2025-03-27 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773088', 'tblTempUsageDetail_20' ) end [2025-03-27 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773088', 'tblTempVendorCDR_20' ) start [2025-03-27 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773088', 'tblTempVendorCDR_20' ) end [2025-03-27 08:56:18] Production.INFO: ProcessCDR(1,14773088,1,1,2) [2025-03-27 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773088', 'tblTempUsageDetail_20' ) start [2025-03-27 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773088', 'tblTempUsageDetail_20' ) end [2025-03-27 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:56:23] Production.INFO: ==14007== Releasing lock... [2025-03-27 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:56:23] Production.INFO: 33 MB #Memory Used# [2025-03-27 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:57:05 [end_date_ymd] => 2025-03-27 08:57:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:57:05' and `end` < '2025-03-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-03-27 08:57:18] Production.INFO: count ==542 [2025-03-27 08:57:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:57:05 - End Time 2025-03-27 08:57:05 [2025-03-27 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773093', 'tblTempUsageDetail_20' ) start [2025-03-27 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773093', 'tblTempUsageDetail_20' ) end [2025-03-27 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773093', 'tblTempVendorCDR_20' ) start [2025-03-27 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773093', 'tblTempVendorCDR_20' ) end [2025-03-27 08:57:18] Production.INFO: ProcessCDR(1,14773093,1,1,2) [2025-03-27 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773093', 'tblTempUsageDetail_20' ) start [2025-03-27 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773093', 'tblTempUsageDetail_20' ) end [2025-03-27 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:57:23] Production.INFO: ==14078== Releasing lock... [2025-03-27 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:57:23] Production.INFO: 33 MB #Memory Used# [2025-03-27 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:58:05 [end_date_ymd] => 2025-03-27 08:58:05 [RateCDR] => 1 ) [2025-03-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-03-27 05:58:05' and `end` < '2025-03-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-03-27 08:58:18] Production.INFO: count ==549 [2025-03-27 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:58:05 - End Time 2025-03-27 08:58:05 [2025-03-27 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773098', 'tblTempUsageDetail_20' ) start [2025-03-27 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773098', 'tblTempUsageDetail_20' ) end [2025-03-27 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773098', 'tblTempVendorCDR_20' ) start [2025-03-27 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773098', 'tblTempVendorCDR_20' ) end [2025-03-27 08:58:18] Production.INFO: ProcessCDR(1,14773098,1,1,2) [2025-03-27 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773098', 'tblTempUsageDetail_20' ) start [2025-03-27 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773098', 'tblTempUsageDetail_20' ) end [2025-03-27 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:58:21] Production.INFO: ==14190== Releasing lock... [2025-03-27 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:58:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 05:59:05 [end_date_ymd] => 2025-03-27 08:59:05 [RateCDR] => 1 ) [2025-03-27 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 05:59:05' and `end` < '2025-03-27 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 08:59:18] Production.INFO: count ==563 [2025-03-27 08:59:18] Production.ERROR: pbx CDR StartTime 2025-03-27 05:59:05 - End Time 2025-03-27 08:59:05 [2025-03-27 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773103', 'tblTempUsageDetail_20' ) start [2025-03-27 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773103', 'tblTempUsageDetail_20' ) end [2025-03-27 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773103', 'tblTempVendorCDR_20' ) start [2025-03-27 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773103', 'tblTempVendorCDR_20' ) end [2025-03-27 08:59:18] Production.INFO: ProcessCDR(1,14773103,1,1,2) [2025-03-27 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773103', 'tblTempUsageDetail_20' ) start [2025-03-27 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773103', 'tblTempUsageDetail_20' ) end [2025-03-27 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 08:59:22] Production.INFO: ==14270== Releasing lock... [2025-03-27 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 08:59:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-27 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:00:06 [end_date_ymd] => 2025-03-27 09:00:06 [RateCDR] => 1 ) [2025-03-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-03-27 06:00:06' and `end` < '2025-03-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-03-27 09:00:19] Production.INFO: count ==577 [2025-03-27 09:00:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:00:06 - End Time 2025-03-27 09:00:06 [2025-03-27 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773109', 'tblTempUsageDetail_20' ) start [2025-03-27 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773109', 'tblTempUsageDetail_20' ) end [2025-03-27 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773109', 'tblTempVendorCDR_20' ) start [2025-03-27 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773109', 'tblTempVendorCDR_20' ) end [2025-03-27 09:00:19] Production.INFO: ProcessCDR(1,14773109,1,1,2) [2025-03-27 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773109', 'tblTempUsageDetail_20' ) start [2025-03-27 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773109', 'tblTempUsageDetail_20' ) end [2025-03-27 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:00:23] Production.INFO: ==14342== Releasing lock... [2025-03-27 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:00:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-27 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:01:05 [end_date_ymd] => 2025-03-27 09:01:05 [RateCDR] => 1 ) [2025-03-27 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:01:05' and `end` < '2025-03-27 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:01:18] Production.INFO: count ==601 [2025-03-27 09:01:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:01:05 - End Time 2025-03-27 09:01:05 [2025-03-27 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773114', 'tblTempUsageDetail_20' ) start [2025-03-27 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773114', 'tblTempUsageDetail_20' ) end [2025-03-27 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773114', 'tblTempVendorCDR_20' ) start [2025-03-27 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773114', 'tblTempVendorCDR_20' ) end [2025-03-27 09:01:18] Production.INFO: ProcessCDR(1,14773114,1,1,2) [2025-03-27 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773114', 'tblTempUsageDetail_20' ) start [2025-03-27 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773114', 'tblTempUsageDetail_20' ) end [2025-03-27 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:01:21] Production.INFO: ==14430== Releasing lock... [2025-03-27 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:01:21] Production.INFO: 33 MB #Memory Used# [2025-03-27 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:02:05 [end_date_ymd] => 2025-03-27 09:02:05 [RateCDR] => 1 ) [2025-03-27 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:02:05' and `end` < '2025-03-27 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:02:18] Production.INFO: count ==615 [2025-03-27 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:02:05 - End Time 2025-03-27 09:02:05 [2025-03-27 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773119', 'tblTempUsageDetail_20' ) start [2025-03-27 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773119', 'tblTempUsageDetail_20' ) end [2025-03-27 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773119', 'tblTempVendorCDR_20' ) start [2025-03-27 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773119', 'tblTempVendorCDR_20' ) end [2025-03-27 09:02:18] Production.INFO: ProcessCDR(1,14773119,1,1,2) [2025-03-27 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773119', 'tblTempUsageDetail_20' ) start [2025-03-27 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773119', 'tblTempUsageDetail_20' ) end [2025-03-27 09:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:02:24] Production.INFO: ==14503== Releasing lock... [2025-03-27 09:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:02:24] Production.INFO: 33 MB #Memory Used# [2025-03-27 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:03:05 [end_date_ymd] => 2025-03-27 09:03:05 [RateCDR] => 1 ) [2025-03-27 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:03:05' and `end` < '2025-03-27 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:03:18] Production.INFO: count ==635 [2025-03-27 09:03:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:03:05 - End Time 2025-03-27 09:03:05 [2025-03-27 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773124', 'tblTempUsageDetail_20' ) start [2025-03-27 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773124', 'tblTempUsageDetail_20' ) end [2025-03-27 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773124', 'tblTempVendorCDR_20' ) start [2025-03-27 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773124', 'tblTempVendorCDR_20' ) end [2025-03-27 09:03:18] Production.INFO: ProcessCDR(1,14773124,1,1,2) [2025-03-27 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773124', 'tblTempUsageDetail_20' ) start [2025-03-27 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773124', 'tblTempUsageDetail_20' ) end [2025-03-27 09:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:03:24] Production.INFO: ==14580== Releasing lock... [2025-03-27 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:03:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-27 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:04:05 [end_date_ymd] => 2025-03-27 09:04:05 [RateCDR] => 1 ) [2025-03-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-03-27 06:04:05' and `end` < '2025-03-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-03-27 09:04:18] Production.INFO: count ==655 [2025-03-27 09:04:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:04:05 - End Time 2025-03-27 09:04:05 [2025-03-27 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773129', 'tblTempUsageDetail_20' ) start [2025-03-27 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773129', 'tblTempUsageDetail_20' ) end [2025-03-27 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773129', 'tblTempVendorCDR_20' ) start [2025-03-27 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773129', 'tblTempVendorCDR_20' ) end [2025-03-27 09:04:18] Production.INFO: ProcessCDR(1,14773129,1,1,2) [2025-03-27 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773129', 'tblTempUsageDetail_20' ) start [2025-03-27 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773129', 'tblTempUsageDetail_20' ) end [2025-03-27 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:04:23] Production.INFO: ==14654== Releasing lock... [2025-03-27 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:04:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:05:06 [end_date_ymd] => 2025-03-27 09:05:06 [RateCDR] => 1 ) [2025-03-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-03-27 06:05:06' and `end` < '2025-03-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-03-27 09:05:19] Production.INFO: count ==675 [2025-03-27 09:05:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:05:06 - End Time 2025-03-27 09:05:06 [2025-03-27 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773134', 'tblTempUsageDetail_20' ) start [2025-03-27 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773134', 'tblTempUsageDetail_20' ) end [2025-03-27 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773134', 'tblTempVendorCDR_20' ) start [2025-03-27 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773134', 'tblTempVendorCDR_20' ) end [2025-03-27 09:05:19] Production.INFO: ProcessCDR(1,14773134,1,1,2) [2025-03-27 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773134', 'tblTempUsageDetail_20' ) start [2025-03-27 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773134', 'tblTempUsageDetail_20' ) end [2025-03-27 09:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:05:24] Production.INFO: ==14728== Releasing lock... [2025-03-27 09:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:05:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-27 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:06:06 [end_date_ymd] => 2025-03-27 09:06:06 [RateCDR] => 1 ) [2025-03-27 09:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:06:06' and `end` < '2025-03-27 09:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:06:18] Production.INFO: count ==690 [2025-03-27 09:06:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:06:06 - End Time 2025-03-27 09:06:06 [2025-03-27 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773139', 'tblTempUsageDetail_20' ) start [2025-03-27 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773139', 'tblTempUsageDetail_20' ) end [2025-03-27 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773139', 'tblTempVendorCDR_20' ) start [2025-03-27 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773139', 'tblTempVendorCDR_20' ) end [2025-03-27 09:06:19] Production.INFO: ProcessCDR(1,14773139,1,1,2) [2025-03-27 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773139', 'tblTempUsageDetail_20' ) start [2025-03-27 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773139', 'tblTempUsageDetail_20' ) end [2025-03-27 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:06:24] Production.INFO: ==14801== Releasing lock... [2025-03-27 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:06:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-27 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:07:06 [end_date_ymd] => 2025-03-27 09:07:06 [RateCDR] => 1 ) [2025-03-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-03-27 06:07:06' and `end` < '2025-03-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-03-27 09:07:19] Production.INFO: count ==693 [2025-03-27 09:07:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:07:06 - End Time 2025-03-27 09:07:06 [2025-03-27 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773144', 'tblTempUsageDetail_20' ) start [2025-03-27 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773144', 'tblTempUsageDetail_20' ) end [2025-03-27 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773144', 'tblTempVendorCDR_20' ) start [2025-03-27 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773144', 'tblTempVendorCDR_20' ) end [2025-03-27 09:07:19] Production.INFO: ProcessCDR(1,14773144,1,1,2) [2025-03-27 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773144', 'tblTempUsageDetail_20' ) start [2025-03-27 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773144', 'tblTempUsageDetail_20' ) end [2025-03-27 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:07:23] Production.INFO: ==14872== Releasing lock... [2025-03-27 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:07:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-27 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:08:06 [end_date_ymd] => 2025-03-27 09:08:06 [RateCDR] => 1 ) [2025-03-27 09:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:08:06' and `end` < '2025-03-27 09:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:08:18] Production.INFO: count ==717 [2025-03-27 09:08:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:08:06 - End Time 2025-03-27 09:08:06 [2025-03-27 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773149', 'tblTempUsageDetail_20' ) start [2025-03-27 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773149', 'tblTempUsageDetail_20' ) end [2025-03-27 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773149', 'tblTempVendorCDR_20' ) start [2025-03-27 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773149', 'tblTempVendorCDR_20' ) end [2025-03-27 09:08:19] Production.INFO: ProcessCDR(1,14773149,1,1,2) [2025-03-27 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773149', 'tblTempUsageDetail_20' ) start [2025-03-27 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773149', 'tblTempUsageDetail_20' ) end [2025-03-27 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:08:22] Production.INFO: ==14945== Releasing lock... [2025-03-27 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:08:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-27 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:09:06 [end_date_ymd] => 2025-03-27 09:09:06 [RateCDR] => 1 ) [2025-03-27 09:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:09:06' and `end` < '2025-03-27 09:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:09:19] Production.INFO: count ==717 [2025-03-27 09:09:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:09:06 - End Time 2025-03-27 09:09:06 [2025-03-27 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773154', 'tblTempUsageDetail_20' ) start [2025-03-27 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773154', 'tblTempUsageDetail_20' ) end [2025-03-27 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773154', 'tblTempVendorCDR_20' ) start [2025-03-27 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773154', 'tblTempVendorCDR_20' ) end [2025-03-27 09:09:19] Production.INFO: ProcessCDR(1,14773154,1,1,2) [2025-03-27 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773154', 'tblTempUsageDetail_20' ) start [2025-03-27 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773154', 'tblTempUsageDetail_20' ) end [2025-03-27 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:09:23] Production.INFO: ==15017== Releasing lock... [2025-03-27 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:09:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-27 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:10:06 [end_date_ymd] => 2025-03-27 09:10:06 [RateCDR] => 1 ) [2025-03-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-03-27 06:10:06' and `end` < '2025-03-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-03-27 09:10:19] Production.INFO: count ==724 [2025-03-27 09:10:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:10:06 - End Time 2025-03-27 09:10:06 [2025-03-27 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773160', 'tblTempUsageDetail_20' ) start [2025-03-27 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773160', 'tblTempUsageDetail_20' ) end [2025-03-27 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773160', 'tblTempVendorCDR_20' ) start [2025-03-27 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773160', 'tblTempVendorCDR_20' ) end [2025-03-27 09:10:19] Production.INFO: ProcessCDR(1,14773160,1,1,2) [2025-03-27 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773160', 'tblTempUsageDetail_20' ) start [2025-03-27 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773160', 'tblTempUsageDetail_20' ) end [2025-03-27 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:10:25] Production.INFO: ==15089== Releasing lock... [2025-03-27 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:10:25] Production.INFO: 33.75 MB #Memory Used# [2025-03-27 09:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:11:06 [end_date_ymd] => 2025-03-27 09:11:06 [RateCDR] => 1 ) [2025-03-27 09:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:11:06' and `end` < '2025-03-27 09:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:11:18] Production.INFO: count ==793 [2025-03-27 09:11:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:11:06 - End Time 2025-03-27 09:11:06 [2025-03-27 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773165', 'tblTempUsageDetail_20' ) start [2025-03-27 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773165', 'tblTempUsageDetail_20' ) end [2025-03-27 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773165', 'tblTempVendorCDR_20' ) start [2025-03-27 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773165', 'tblTempVendorCDR_20' ) end [2025-03-27 09:11:19] Production.INFO: ProcessCDR(1,14773165,1,1,2) [2025-03-27 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773165', 'tblTempUsageDetail_20' ) start [2025-03-27 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773165', 'tblTempUsageDetail_20' ) end [2025-03-27 09:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:11:22] Production.INFO: ==15165== Releasing lock... [2025-03-27 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:11:22] Production.INFO: 34 MB #Memory Used# [2025-03-27 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:12:06 [end_date_ymd] => 2025-03-27 09:12:06 [RateCDR] => 1 ) [2025-03-27 09:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:12:06' and `end` < '2025-03-27 09:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:12:19] Production.INFO: count ==801 [2025-03-27 09:12:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:12:06 - End Time 2025-03-27 09:12:06 [2025-03-27 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773170', 'tblTempUsageDetail_20' ) start [2025-03-27 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773170', 'tblTempUsageDetail_20' ) end [2025-03-27 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773170', 'tblTempVendorCDR_20' ) start [2025-03-27 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773170', 'tblTempVendorCDR_20' ) end [2025-03-27 09:12:19] Production.INFO: ProcessCDR(1,14773170,1,1,2) [2025-03-27 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773170', 'tblTempUsageDetail_20' ) start [2025-03-27 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773170', 'tblTempUsageDetail_20' ) end [2025-03-27 09:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:12:25] Production.INFO: ==15240== Releasing lock... [2025-03-27 09:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:12:25] Production.INFO: 34.5 MB #Memory Used# [2025-03-27 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:13:06 [end_date_ymd] => 2025-03-27 09:13:06 [RateCDR] => 1 ) [2025-03-27 09:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:13:06' and `end` < '2025-03-27 09:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:13:19] Production.INFO: count ==820 [2025-03-27 09:13:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:13:06 - End Time 2025-03-27 09:13:06 [2025-03-27 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773175', 'tblTempUsageDetail_20' ) start [2025-03-27 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773175', 'tblTempUsageDetail_20' ) end [2025-03-27 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773175', 'tblTempVendorCDR_20' ) start [2025-03-27 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773175', 'tblTempVendorCDR_20' ) end [2025-03-27 09:13:19] Production.INFO: ProcessCDR(1,14773175,1,1,2) [2025-03-27 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773175', 'tblTempUsageDetail_20' ) start [2025-03-27 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773175', 'tblTempUsageDetail_20' ) end [2025-03-27 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:13:24] Production.INFO: ==15313== Releasing lock... [2025-03-27 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:13:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-27 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:14:05 [end_date_ymd] => 2025-03-27 09:14:05 [RateCDR] => 1 ) [2025-03-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-03-27 06:14:05' and `end` < '2025-03-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-03-27 09:14:17] Production.INFO: count ==823 [2025-03-27 09:14:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:14:05 - End Time 2025-03-27 09:14:05 [2025-03-27 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773180', 'tblTempUsageDetail_20' ) start [2025-03-27 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773180', 'tblTempUsageDetail_20' ) end [2025-03-27 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773180', 'tblTempVendorCDR_20' ) start [2025-03-27 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773180', 'tblTempVendorCDR_20' ) end [2025-03-27 09:14:18] Production.INFO: ProcessCDR(1,14773180,1,1,2) [2025-03-27 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773180', 'tblTempUsageDetail_20' ) start [2025-03-27 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773180', 'tblTempUsageDetail_20' ) end [2025-03-27 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:14:23] Production.INFO: ==15426== Releasing lock... [2025-03-27 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:14:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-27 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:15:05 [end_date_ymd] => 2025-03-27 09:15:05 [RateCDR] => 1 ) [2025-03-27 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:15:05' and `end` < '2025-03-27 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:15:18] Production.INFO: count ==870 [2025-03-27 09:15:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:15:05 - End Time 2025-03-27 09:15:05 [2025-03-27 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773185', 'tblTempUsageDetail_20' ) start [2025-03-27 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773185', 'tblTempUsageDetail_20' ) end [2025-03-27 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773185', 'tblTempVendorCDR_20' ) start [2025-03-27 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773185', 'tblTempVendorCDR_20' ) end [2025-03-27 09:15:18] Production.INFO: ProcessCDR(1,14773185,1,1,2) [2025-03-27 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773185', 'tblTempUsageDetail_20' ) start [2025-03-27 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773185', 'tblTempUsageDetail_20' ) end [2025-03-27 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:15:24] Production.INFO: ==15502== Releasing lock... [2025-03-27 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:15:24] Production.INFO: 35.25 MB #Memory Used# [2025-03-27 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:16:06 [end_date_ymd] => 2025-03-27 09:16:06 [RateCDR] => 1 ) [2025-03-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-03-27 06:16:06' and `end` < '2025-03-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-03-27 09:16:18] Production.INFO: count ==880 [2025-03-27 09:16:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:16:06 - End Time 2025-03-27 09:16:06 [2025-03-27 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773190', 'tblTempUsageDetail_20' ) start [2025-03-27 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773190', 'tblTempUsageDetail_20' ) end [2025-03-27 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773190', 'tblTempVendorCDR_20' ) start [2025-03-27 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773190', 'tblTempVendorCDR_20' ) end [2025-03-27 09:16:19] Production.INFO: ProcessCDR(1,14773190,1,1,2) [2025-03-27 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773190', 'tblTempUsageDetail_20' ) start [2025-03-27 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773190', 'tblTempUsageDetail_20' ) end [2025-03-27 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:16:24] Production.INFO: ==15579== Releasing lock... [2025-03-27 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:16:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-27 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:17:06 [end_date_ymd] => 2025-03-27 09:17:06 [RateCDR] => 1 ) [2025-03-27 09:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:17:06' and `end` < '2025-03-27 09:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:17:18] Production.INFO: count ==880 [2025-03-27 09:17:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:17:06 - End Time 2025-03-27 09:17:06 [2025-03-27 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773195', 'tblTempUsageDetail_20' ) start [2025-03-27 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773195', 'tblTempUsageDetail_20' ) end [2025-03-27 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773195', 'tblTempVendorCDR_20' ) start [2025-03-27 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773195', 'tblTempVendorCDR_20' ) end [2025-03-27 09:17:19] Production.INFO: ProcessCDR(1,14773195,1,1,2) [2025-03-27 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773195', 'tblTempUsageDetail_20' ) start [2025-03-27 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773195', 'tblTempUsageDetail_20' ) end [2025-03-27 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:17:24] Production.INFO: ==15652== Releasing lock... [2025-03-27 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:17:24] Production.INFO: 34.5 MB #Memory Used# [2025-03-27 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:18:05 [end_date_ymd] => 2025-03-27 09:18:05 [RateCDR] => 1 ) [2025-03-27 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:18:05' and `end` < '2025-03-27 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:18:18] Production.INFO: count ==890 [2025-03-27 09:18:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:18:05 - End Time 2025-03-27 09:18:05 [2025-03-27 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773200', 'tblTempUsageDetail_20' ) start [2025-03-27 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773200', 'tblTempUsageDetail_20' ) end [2025-03-27 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773200', 'tblTempVendorCDR_20' ) start [2025-03-27 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773200', 'tblTempVendorCDR_20' ) end [2025-03-27 09:18:19] Production.INFO: ProcessCDR(1,14773200,1,1,2) [2025-03-27 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773200', 'tblTempUsageDetail_20' ) start [2025-03-27 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773200', 'tblTempUsageDetail_20' ) end [2025-03-27 09:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:18:22] Production.INFO: ==15745== Releasing lock... [2025-03-27 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:18:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-27 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:19:05 [end_date_ymd] => 2025-03-27 09:19:05 [RateCDR] => 1 ) [2025-03-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-03-27 06:19:05' and `end` < '2025-03-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-03-27 09:19:18] Production.INFO: count ==928 [2025-03-27 09:19:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:19:05 - End Time 2025-03-27 09:19:05 [2025-03-27 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773205', 'tblTempUsageDetail_20' ) start [2025-03-27 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773205', 'tblTempUsageDetail_20' ) end [2025-03-27 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773205', 'tblTempVendorCDR_20' ) start [2025-03-27 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773205', 'tblTempVendorCDR_20' ) end [2025-03-27 09:19:18] Production.INFO: ProcessCDR(1,14773205,1,1,2) [2025-03-27 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773205', 'tblTempUsageDetail_20' ) start [2025-03-27 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773205', 'tblTempUsageDetail_20' ) end [2025-03-27 09:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:19:24] Production.INFO: ==15819== Releasing lock... [2025-03-27 09:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:19:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-27 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:20:06 [end_date_ymd] => 2025-03-27 09:20:06 [RateCDR] => 1 ) [2025-03-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-03-27 06:20:06' and `end` < '2025-03-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-03-27 09:20:19] Production.INFO: count ==954 [2025-03-27 09:20:20] Production.ERROR: pbx CDR StartTime 2025-03-27 06:20:06 - End Time 2025-03-27 09:20:06 [2025-03-27 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773210', 'tblTempUsageDetail_20' ) start [2025-03-27 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773210', 'tblTempUsageDetail_20' ) end [2025-03-27 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773210', 'tblTempVendorCDR_20' ) start [2025-03-27 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773210', 'tblTempVendorCDR_20' ) end [2025-03-27 09:20:20] Production.INFO: ProcessCDR(1,14773210,1,1,2) [2025-03-27 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773210', 'tblTempUsageDetail_20' ) start [2025-03-27 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773210', 'tblTempUsageDetail_20' ) end [2025-03-27 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:20:25] Production.INFO: ==15899== Releasing lock... [2025-03-27 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:20:25] Production.INFO: 35.75 MB #Memory Used# [2025-03-27 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:21:05 [end_date_ymd] => 2025-03-27 09:21:05 [RateCDR] => 1 ) [2025-03-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-03-27 06:21:05' and `end` < '2025-03-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-03-27 09:21:17] Production.INFO: count ==1039 [2025-03-27 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:21:05 - End Time 2025-03-27 09:21:05 [2025-03-27 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773216', 'tblTempUsageDetail_20' ) start [2025-03-27 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773216', 'tblTempUsageDetail_20' ) end [2025-03-27 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773216', 'tblTempVendorCDR_20' ) start [2025-03-27 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773216', 'tblTempVendorCDR_20' ) end [2025-03-27 09:21:18] Production.INFO: ProcessCDR(1,14773216,1,1,2) [2025-03-27 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773216', 'tblTempUsageDetail_20' ) start [2025-03-27 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773216', 'tblTempUsageDetail_20' ) end [2025-03-27 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:21:24] Production.INFO: ==15979== Releasing lock... [2025-03-27 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:21:24] Production.INFO: 36 MB #Memory Used# [2025-03-27 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:22:06 [end_date_ymd] => 2025-03-27 09:22:06 [RateCDR] => 1 ) [2025-03-27 09:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:22:06' and `end` < '2025-03-27 09:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:22:18] Production.INFO: count ==1052 [2025-03-27 09:22:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:22:06 - End Time 2025-03-27 09:22:06 [2025-03-27 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773221', 'tblTempUsageDetail_20' ) start [2025-03-27 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773221', 'tblTempUsageDetail_20' ) end [2025-03-27 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773221', 'tblTempVendorCDR_20' ) start [2025-03-27 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773221', 'tblTempVendorCDR_20' ) end [2025-03-27 09:22:19] Production.INFO: ProcessCDR(1,14773221,1,1,2) [2025-03-27 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773221', 'tblTempUsageDetail_20' ) start [2025-03-27 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773221', 'tblTempUsageDetail_20' ) end [2025-03-27 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:22:24] Production.INFO: ==16057== Releasing lock... [2025-03-27 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:22:24] Production.INFO: 35.75 MB #Memory Used# [2025-03-27 09:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:23:04 [end_date_ymd] => 2025-03-27 09:23:04 [RateCDR] => 1 ) [2025-03-27 09:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:23:04' and `end` < '2025-03-27 09:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:23:17] Production.INFO: count ==1059 [2025-03-27 09:23:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:23:04 - End Time 2025-03-27 09:23:04 [2025-03-27 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773226', 'tblTempUsageDetail_20' ) start [2025-03-27 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773226', 'tblTempUsageDetail_20' ) end [2025-03-27 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773226', 'tblTempVendorCDR_20' ) start [2025-03-27 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773226', 'tblTempVendorCDR_20' ) end [2025-03-27 09:23:18] Production.INFO: ProcessCDR(1,14773226,1,1,2) [2025-03-27 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773226', 'tblTempUsageDetail_20' ) start [2025-03-27 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773226', 'tblTempUsageDetail_20' ) end [2025-03-27 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:23:23] Production.INFO: ==16133== Releasing lock... [2025-03-27 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:23:23] Production.INFO: 36 MB #Memory Used# [2025-03-27 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:24:06 [end_date_ymd] => 2025-03-27 09:24:06 [RateCDR] => 1 ) [2025-03-27 09:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:24:06' and `end` < '2025-03-27 09:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:24:19] Production.INFO: count ==1081 [2025-03-27 09:24:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:24:06 - End Time 2025-03-27 09:24:06 [2025-03-27 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773231', 'tblTempUsageDetail_20' ) start [2025-03-27 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773231', 'tblTempUsageDetail_20' ) end [2025-03-27 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773231', 'tblTempVendorCDR_20' ) start [2025-03-27 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773231', 'tblTempVendorCDR_20' ) end [2025-03-27 09:24:19] Production.INFO: ProcessCDR(1,14773231,1,1,2) [2025-03-27 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773231', 'tblTempUsageDetail_20' ) start [2025-03-27 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773231', 'tblTempUsageDetail_20' ) end [2025-03-27 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:24:24] Production.INFO: ==16210== Releasing lock... [2025-03-27 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:24:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-27 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:25:06 [end_date_ymd] => 2025-03-27 09:25:06 [RateCDR] => 1 ) [2025-03-27 09:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:25:06' and `end` < '2025-03-27 09:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:25:19] Production.INFO: count ==1097 [2025-03-27 09:25:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:25:06 - End Time 2025-03-27 09:25:06 [2025-03-27 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773236', 'tblTempUsageDetail_20' ) start [2025-03-27 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773236', 'tblTempUsageDetail_20' ) end [2025-03-27 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773236', 'tblTempVendorCDR_20' ) start [2025-03-27 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773236', 'tblTempVendorCDR_20' ) end [2025-03-27 09:25:19] Production.INFO: ProcessCDR(1,14773236,1,1,2) [2025-03-27 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773236', 'tblTempUsageDetail_20' ) start [2025-03-27 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773236', 'tblTempUsageDetail_20' ) end [2025-03-27 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:25:24] Production.INFO: ==16293== Releasing lock... [2025-03-27 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:25:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-27 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:26:05 [end_date_ymd] => 2025-03-27 09:26:05 [RateCDR] => 1 ) [2025-03-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-03-27 06:26:05' and `end` < '2025-03-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-03-27 09:26:18] Production.INFO: count ==1101 [2025-03-27 09:26:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:26:05 - End Time 2025-03-27 09:26:05 [2025-03-27 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773241', 'tblTempUsageDetail_20' ) start [2025-03-27 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773241', 'tblTempUsageDetail_20' ) end [2025-03-27 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773241', 'tblTempVendorCDR_20' ) start [2025-03-27 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773241', 'tblTempVendorCDR_20' ) end [2025-03-27 09:26:18] Production.INFO: ProcessCDR(1,14773241,1,1,2) [2025-03-27 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773241', 'tblTempUsageDetail_20' ) start [2025-03-27 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773241', 'tblTempUsageDetail_20' ) end [2025-03-27 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:26:24] Production.INFO: ==16367== Releasing lock... [2025-03-27 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:26:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-27 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:27:06 [end_date_ymd] => 2025-03-27 09:27:06 [RateCDR] => 1 ) [2025-03-27 09:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:27:06' and `end` < '2025-03-27 09:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:27:19] Production.INFO: count ==1102 [2025-03-27 09:27:20] Production.ERROR: pbx CDR StartTime 2025-03-27 06:27:06 - End Time 2025-03-27 09:27:06 [2025-03-27 09:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773246', 'tblTempUsageDetail_20' ) start [2025-03-27 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773246', 'tblTempUsageDetail_20' ) end [2025-03-27 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773246', 'tblTempVendorCDR_20' ) start [2025-03-27 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773246', 'tblTempVendorCDR_20' ) end [2025-03-27 09:27:20] Production.INFO: ProcessCDR(1,14773246,1,1,2) [2025-03-27 09:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773246', 'tblTempUsageDetail_20' ) start [2025-03-27 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773246', 'tblTempUsageDetail_20' ) end [2025-03-27 09:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:27:25] Production.INFO: ==16443== Releasing lock... [2025-03-27 09:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:27:25] Production.INFO: 36.25 MB #Memory Used# [2025-03-27 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:28:05 [end_date_ymd] => 2025-03-27 09:28:05 [RateCDR] => 1 ) [2025-03-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-03-27 06:28:05' and `end` < '2025-03-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-03-27 09:28:18] Production.INFO: count ==1102 [2025-03-27 09:28:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:28:05 - End Time 2025-03-27 09:28:05 [2025-03-27 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773251', 'tblTempUsageDetail_20' ) start [2025-03-27 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773251', 'tblTempUsageDetail_20' ) end [2025-03-27 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773251', 'tblTempVendorCDR_20' ) start [2025-03-27 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773251', 'tblTempVendorCDR_20' ) end [2025-03-27 09:28:19] Production.INFO: ProcessCDR(1,14773251,1,1,2) [2025-03-27 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773251', 'tblTempUsageDetail_20' ) start [2025-03-27 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773251', 'tblTempUsageDetail_20' ) end [2025-03-27 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:28:24] Production.INFO: ==16520== Releasing lock... [2025-03-27 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:28:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-27 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:29:05 [end_date_ymd] => 2025-03-27 09:29:05 [RateCDR] => 1 ) [2025-03-27 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:29:05' and `end` < '2025-03-27 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:29:18] Production.INFO: count ==1114 [2025-03-27 09:29:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:29:05 - End Time 2025-03-27 09:29:05 [2025-03-27 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773256', 'tblTempUsageDetail_20' ) start [2025-03-27 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773256', 'tblTempUsageDetail_20' ) end [2025-03-27 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773256', 'tblTempVendorCDR_20' ) start [2025-03-27 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773256', 'tblTempVendorCDR_20' ) end [2025-03-27 09:29:19] Production.INFO: ProcessCDR(1,14773256,1,1,2) [2025-03-27 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773256', 'tblTempUsageDetail_20' ) start [2025-03-27 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773256', 'tblTempUsageDetail_20' ) end [2025-03-27 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:29:24] Production.INFO: ==16636== Releasing lock... [2025-03-27 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:29:24] Production.INFO: 36.75 MB #Memory Used# [2025-03-27 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:30:06 [end_date_ymd] => 2025-03-27 09:30:06 [RateCDR] => 1 ) [2025-03-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-03-27 06:30:06' and `end` < '2025-03-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-03-27 09:30:19] Production.INFO: count ==1131 [2025-03-27 09:30:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:30:06 - End Time 2025-03-27 09:30:06 [2025-03-27 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773261', 'tblTempUsageDetail_20' ) start [2025-03-27 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773261', 'tblTempUsageDetail_20' ) end [2025-03-27 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773261', 'tblTempVendorCDR_20' ) start [2025-03-27 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773261', 'tblTempVendorCDR_20' ) end [2025-03-27 09:30:19] Production.INFO: ProcessCDR(1,14773261,1,1,2) [2025-03-27 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773261', 'tblTempUsageDetail_20' ) start [2025-03-27 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773261', 'tblTempUsageDetail_20' ) end [2025-03-27 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:30:25] Production.INFO: ==16719== Releasing lock... [2025-03-27 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:30:25] Production.INFO: 36.5 MB #Memory Used# [2025-03-27 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:31:06 [end_date_ymd] => 2025-03-27 09:31:06 [RateCDR] => 1 ) [2025-03-27 09:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:31:06' and `end` < '2025-03-27 09:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:31:18] Production.INFO: count ==1177 [2025-03-27 09:31:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:31:06 - End Time 2025-03-27 09:31:06 [2025-03-27 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773267', 'tblTempUsageDetail_20' ) start [2025-03-27 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773267', 'tblTempUsageDetail_20' ) end [2025-03-27 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773267', 'tblTempVendorCDR_20' ) start [2025-03-27 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773267', 'tblTempVendorCDR_20' ) end [2025-03-27 09:31:19] Production.INFO: ProcessCDR(1,14773267,1,1,2) [2025-03-27 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773267', 'tblTempUsageDetail_20' ) start [2025-03-27 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773267', 'tblTempUsageDetail_20' ) end [2025-03-27 09:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:31:24] Production.INFO: ==16806== Releasing lock... [2025-03-27 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:31:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-27 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:32:05 [end_date_ymd] => 2025-03-27 09:32:05 [RateCDR] => 1 ) [2025-03-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-03-27 06:32:05' and `end` < '2025-03-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-03-27 09:32:18] Production.INFO: count ==1187 [2025-03-27 09:32:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:32:05 - End Time 2025-03-27 09:32:05 [2025-03-27 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773272', 'tblTempUsageDetail_20' ) start [2025-03-27 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773272', 'tblTempUsageDetail_20' ) end [2025-03-27 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773272', 'tblTempVendorCDR_20' ) start [2025-03-27 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773272', 'tblTempVendorCDR_20' ) end [2025-03-27 09:32:18] Production.INFO: ProcessCDR(1,14773272,1,1,2) [2025-03-27 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773272', 'tblTempUsageDetail_20' ) start [2025-03-27 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773272', 'tblTempUsageDetail_20' ) end [2025-03-27 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:32:25] Production.INFO: ==16885== Releasing lock... [2025-03-27 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:32:25] Production.INFO: 37 MB #Memory Used# [2025-03-27 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:33:06 [end_date_ymd] => 2025-03-27 09:33:06 [RateCDR] => 1 ) [2025-03-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-03-27 06:33:06' and `end` < '2025-03-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-03-27 09:33:19] Production.INFO: count ==1194 [2025-03-27 09:33:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:33:06 - End Time 2025-03-27 09:33:06 [2025-03-27 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773277', 'tblTempUsageDetail_20' ) start [2025-03-27 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773277', 'tblTempUsageDetail_20' ) end [2025-03-27 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773277', 'tblTempVendorCDR_20' ) start [2025-03-27 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773277', 'tblTempVendorCDR_20' ) end [2025-03-27 09:33:19] Production.INFO: ProcessCDR(1,14773277,1,1,2) [2025-03-27 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773277', 'tblTempUsageDetail_20' ) start [2025-03-27 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773277', 'tblTempUsageDetail_20' ) end [2025-03-27 09:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:33:24] Production.INFO: ==16964== Releasing lock... [2025-03-27 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:33:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-27 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:34:05 [end_date_ymd] => 2025-03-27 09:34:05 [RateCDR] => 1 ) [2025-03-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-03-27 06:34:05' and `end` < '2025-03-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-03-27 09:34:18] Production.INFO: count ==1205 [2025-03-27 09:34:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:34:05 - End Time 2025-03-27 09:34:05 [2025-03-27 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773282', 'tblTempUsageDetail_20' ) start [2025-03-27 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773282', 'tblTempUsageDetail_20' ) end [2025-03-27 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773282', 'tblTempVendorCDR_20' ) start [2025-03-27 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773282', 'tblTempVendorCDR_20' ) end [2025-03-27 09:34:19] Production.INFO: ProcessCDR(1,14773282,1,1,2) [2025-03-27 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773282', 'tblTempUsageDetail_20' ) start [2025-03-27 09:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773282', 'tblTempUsageDetail_20' ) end [2025-03-27 09:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:34:25] Production.INFO: ==17043== Releasing lock... [2025-03-27 09:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:34:25] Production.INFO: 37.25 MB #Memory Used# [2025-03-27 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:35:06 [end_date_ymd] => 2025-03-27 09:35:06 [RateCDR] => 1 ) [2025-03-27 09:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:35:06' and `end` < '2025-03-27 09:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:35:19] Production.INFO: count ==1244 [2025-03-27 09:35:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:35:06 - End Time 2025-03-27 09:35:06 [2025-03-27 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773287', 'tblTempUsageDetail_20' ) start [2025-03-27 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773287', 'tblTempUsageDetail_20' ) end [2025-03-27 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773287', 'tblTempVendorCDR_20' ) start [2025-03-27 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773287', 'tblTempVendorCDR_20' ) end [2025-03-27 09:35:19] Production.INFO: ProcessCDR(1,14773287,1,1,2) [2025-03-27 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773287', 'tblTempUsageDetail_20' ) start [2025-03-27 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773287', 'tblTempUsageDetail_20' ) end [2025-03-27 09:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:35:25] Production.INFO: ==17122== Releasing lock... [2025-03-27 09:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:35:25] Production.INFO: 37.75 MB #Memory Used# [2025-03-27 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:36:06 [end_date_ymd] => 2025-03-27 09:36:06 [RateCDR] => 1 ) [2025-03-27 09:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:36:06' and `end` < '2025-03-27 09:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:36:18] Production.INFO: count ==1258 [2025-03-27 09:36:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:36:06 - End Time 2025-03-27 09:36:06 [2025-03-27 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773292', 'tblTempUsageDetail_20' ) start [2025-03-27 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773292', 'tblTempUsageDetail_20' ) end [2025-03-27 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773292', 'tblTempVendorCDR_20' ) start [2025-03-27 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773292', 'tblTempVendorCDR_20' ) end [2025-03-27 09:36:19] Production.INFO: ProcessCDR(1,14773292,1,1,2) [2025-03-27 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773292', 'tblTempUsageDetail_20' ) start [2025-03-27 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773292', 'tblTempUsageDetail_20' ) end [2025-03-27 09:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:36:22] Production.INFO: ==17200== Releasing lock... [2025-03-27 09:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:36:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-27 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:37:05 [end_date_ymd] => 2025-03-27 09:37:05 [RateCDR] => 1 ) [2025-03-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-03-27 06:37:05' and `end` < '2025-03-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-03-27 09:37:18] Production.INFO: count ==1264 [2025-03-27 09:37:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:37:05 - End Time 2025-03-27 09:37:05 [2025-03-27 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773297', 'tblTempUsageDetail_20' ) start [2025-03-27 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773297', 'tblTempUsageDetail_20' ) end [2025-03-27 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773297', 'tblTempVendorCDR_20' ) start [2025-03-27 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773297', 'tblTempVendorCDR_20' ) end [2025-03-27 09:37:18] Production.INFO: ProcessCDR(1,14773297,1,1,2) [2025-03-27 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773297', 'tblTempUsageDetail_20' ) start [2025-03-27 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773297', 'tblTempUsageDetail_20' ) end [2025-03-27 09:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:37:23] Production.INFO: ==17280== Releasing lock... [2025-03-27 09:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:37:23] Production.INFO: 38 MB #Memory Used# [2025-03-27 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:38:05 [end_date_ymd] => 2025-03-27 09:38:05 [RateCDR] => 1 ) [2025-03-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-03-27 06:38:05' and `end` < '2025-03-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-03-27 09:38:18] Production.INFO: count ==1279 [2025-03-27 09:38:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:38:05 - End Time 2025-03-27 09:38:05 [2025-03-27 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773302', 'tblTempUsageDetail_20' ) start [2025-03-27 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773302', 'tblTempUsageDetail_20' ) end [2025-03-27 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773302', 'tblTempVendorCDR_20' ) start [2025-03-27 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773302', 'tblTempVendorCDR_20' ) end [2025-03-27 09:38:18] Production.INFO: ProcessCDR(1,14773302,1,1,2) [2025-03-27 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773302', 'tblTempUsageDetail_20' ) start [2025-03-27 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773302', 'tblTempUsageDetail_20' ) end [2025-03-27 09:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:38:23] Production.INFO: ==17366== Releasing lock... [2025-03-27 09:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:38:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-27 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:39:06 [end_date_ymd] => 2025-03-27 09:39:06 [RateCDR] => 1 ) [2025-03-27 09:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:39:06' and `end` < '2025-03-27 09:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:39:19] Production.INFO: count ==1301 [2025-03-27 09:39:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:39:06 - End Time 2025-03-27 09:39:06 [2025-03-27 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773307', 'tblTempUsageDetail_20' ) start [2025-03-27 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773307', 'tblTempUsageDetail_20' ) end [2025-03-27 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773307', 'tblTempVendorCDR_20' ) start [2025-03-27 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773307', 'tblTempVendorCDR_20' ) end [2025-03-27 09:39:19] Production.INFO: ProcessCDR(1,14773307,1,1,2) [2025-03-27 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773307', 'tblTempUsageDetail_20' ) start [2025-03-27 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773307', 'tblTempUsageDetail_20' ) end [2025-03-27 09:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:39:25] Production.INFO: ==17446== Releasing lock... [2025-03-27 09:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:39:25] Production.INFO: 37.75 MB #Memory Used# [2025-03-27 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:40:06 [end_date_ymd] => 2025-03-27 09:40:06 [RateCDR] => 1 ) [2025-03-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-03-27 06:40:06' and `end` < '2025-03-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-03-27 09:40:25] Production.INFO: count ==1323 [2025-03-27 09:40:25] Production.ERROR: pbx CDR StartTime 2025-03-27 06:40:06 - End Time 2025-03-27 09:40:06 [2025-03-27 09:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773313', 'tblTempUsageDetail_20' ) start [2025-03-27 09:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773313', 'tblTempUsageDetail_20' ) end [2025-03-27 09:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773313', 'tblTempVendorCDR_20' ) start [2025-03-27 09:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773313', 'tblTempVendorCDR_20' ) end [2025-03-27 09:40:25] Production.INFO: ProcessCDR(1,14773313,1,1,2) [2025-03-27 09:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773313', 'tblTempUsageDetail_20' ) start [2025-03-27 09:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773313', 'tblTempUsageDetail_20' ) end [2025-03-27 09:40:30] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:40:30] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:40:30] Production.INFO: ==17528== Releasing lock... [2025-03-27 09:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:40:30] Production.INFO: 38 MB #Memory Used# [2025-03-27 09:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:41:06 [end_date_ymd] => 2025-03-27 09:41:06 [RateCDR] => 1 ) [2025-03-27 09:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:41:06' and `end` < '2025-03-27 09:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:41:18] Production.INFO: count ==1414 [2025-03-27 09:41:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:41:06 - End Time 2025-03-27 09:41:06 [2025-03-27 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773318', 'tblTempUsageDetail_20' ) start [2025-03-27 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773318', 'tblTempUsageDetail_20' ) end [2025-03-27 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773318', 'tblTempVendorCDR_20' ) start [2025-03-27 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773318', 'tblTempVendorCDR_20' ) end [2025-03-27 09:41:19] Production.INFO: ProcessCDR(1,14773318,1,1,2) [2025-03-27 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773318', 'tblTempUsageDetail_20' ) start [2025-03-27 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773318', 'tblTempUsageDetail_20' ) end [2025-03-27 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:41:24] Production.INFO: ==17612== Releasing lock... [2025-03-27 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:41:24] Production.INFO: 38.5 MB #Memory Used# [2025-03-27 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:42:05 [end_date_ymd] => 2025-03-27 09:42:05 [RateCDR] => 1 ) [2025-03-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-03-27 06:42:05' and `end` < '2025-03-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-03-27 09:42:18] Production.INFO: count ==1419 [2025-03-27 09:42:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:42:05 - End Time 2025-03-27 09:42:05 [2025-03-27 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773323', 'tblTempUsageDetail_20' ) start [2025-03-27 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773323', 'tblTempUsageDetail_20' ) end [2025-03-27 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773323', 'tblTempVendorCDR_20' ) start [2025-03-27 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773323', 'tblTempVendorCDR_20' ) end [2025-03-27 09:42:18] Production.INFO: ProcessCDR(1,14773323,1,1,2) [2025-03-27 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773323', 'tblTempUsageDetail_20' ) start [2025-03-27 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773323', 'tblTempUsageDetail_20' ) end [2025-03-27 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:42:24] Production.INFO: ==17688== Releasing lock... [2025-03-27 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:42:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-27 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:43:06 [end_date_ymd] => 2025-03-27 09:43:06 [RateCDR] => 1 ) [2025-03-27 09:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:43:06' and `end` < '2025-03-27 09:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:43:19] Production.INFO: count ==1424 [2025-03-27 09:43:20] Production.ERROR: pbx CDR StartTime 2025-03-27 06:43:06 - End Time 2025-03-27 09:43:06 [2025-03-27 09:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773328', 'tblTempUsageDetail_20' ) start [2025-03-27 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773328', 'tblTempUsageDetail_20' ) end [2025-03-27 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773328', 'tblTempVendorCDR_20' ) start [2025-03-27 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773328', 'tblTempVendorCDR_20' ) end [2025-03-27 09:43:20] Production.INFO: ProcessCDR(1,14773328,1,1,2) [2025-03-27 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773328', 'tblTempUsageDetail_20' ) start [2025-03-27 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773328', 'tblTempUsageDetail_20' ) end [2025-03-27 09:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:43:25] Production.INFO: ==17772== Releasing lock... [2025-03-27 09:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:43:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-27 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:44:05 [end_date_ymd] => 2025-03-27 09:44:05 [RateCDR] => 1 ) [2025-03-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-03-27 06:44:05' and `end` < '2025-03-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-03-27 09:44:18] Production.INFO: count ==1453 [2025-03-27 09:44:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:44:05 - End Time 2025-03-27 09:44:05 [2025-03-27 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773333', 'tblTempUsageDetail_20' ) start [2025-03-27 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773333', 'tblTempUsageDetail_20' ) end [2025-03-27 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773333', 'tblTempVendorCDR_20' ) start [2025-03-27 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773333', 'tblTempVendorCDR_20' ) end [2025-03-27 09:44:18] Production.INFO: ProcessCDR(1,14773333,1,1,2) [2025-03-27 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773333', 'tblTempUsageDetail_20' ) start [2025-03-27 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773333', 'tblTempUsageDetail_20' ) end [2025-03-27 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:44:24] Production.INFO: ==17854== Releasing lock... [2025-03-27 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:44:24] Production.INFO: 39 MB #Memory Used# [2025-03-27 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:45:06 [end_date_ymd] => 2025-03-27 09:45:06 [RateCDR] => 1 ) [2025-03-27 09:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:45:06' and `end` < '2025-03-27 09:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:45:19] Production.INFO: count ==1458 [2025-03-27 09:45:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:45:06 - End Time 2025-03-27 09:45:06 [2025-03-27 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773338', 'tblTempUsageDetail_20' ) start [2025-03-27 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773338', 'tblTempUsageDetail_20' ) end [2025-03-27 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773338', 'tblTempVendorCDR_20' ) start [2025-03-27 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773338', 'tblTempVendorCDR_20' ) end [2025-03-27 09:45:19] Production.INFO: ProcessCDR(1,14773338,1,1,2) [2025-03-27 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773338', 'tblTempUsageDetail_20' ) start [2025-03-27 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773338', 'tblTempUsageDetail_20' ) end [2025-03-27 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:45:24] Production.INFO: ==17971== Releasing lock... [2025-03-27 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:45:24] Production.INFO: 39 MB #Memory Used# [2025-03-27 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:46:05 [end_date_ymd] => 2025-03-27 09:46:05 [RateCDR] => 1 ) [2025-03-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-03-27 06:46:05' and `end` < '2025-03-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-03-27 09:46:18] Production.INFO: count ==1480 [2025-03-27 09:46:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:46:05 - End Time 2025-03-27 09:46:05 [2025-03-27 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773343', 'tblTempUsageDetail_20' ) start [2025-03-27 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773343', 'tblTempUsageDetail_20' ) end [2025-03-27 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773343', 'tblTempVendorCDR_20' ) start [2025-03-27 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773343', 'tblTempVendorCDR_20' ) end [2025-03-27 09:46:19] Production.INFO: ProcessCDR(1,14773343,1,1,2) [2025-03-27 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773343', 'tblTempUsageDetail_20' ) start [2025-03-27 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773343', 'tblTempUsageDetail_20' ) end [2025-03-27 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:46:24] Production.INFO: ==18049== Releasing lock... [2025-03-27 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:46:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-27 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:47:05 [end_date_ymd] => 2025-03-27 09:47:05 [RateCDR] => 1 ) [2025-03-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-03-27 06:47:05' and `end` < '2025-03-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-03-27 09:47:18] Production.INFO: count ==1492 [2025-03-27 09:47:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:47:05 - End Time 2025-03-27 09:47:05 [2025-03-27 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773348', 'tblTempUsageDetail_20' ) start [2025-03-27 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773348', 'tblTempUsageDetail_20' ) end [2025-03-27 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773348', 'tblTempVendorCDR_20' ) start [2025-03-27 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773348', 'tblTempVendorCDR_20' ) end [2025-03-27 09:47:19] Production.INFO: ProcessCDR(1,14773348,1,1,2) [2025-03-27 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773348', 'tblTempUsageDetail_20' ) start [2025-03-27 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773348', 'tblTempUsageDetail_20' ) end [2025-03-27 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:47:24] Production.INFO: ==18125== Releasing lock... [2025-03-27 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:47:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-27 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:48:05 [end_date_ymd] => 2025-03-27 09:48:05 [RateCDR] => 1 ) [2025-03-27 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:48:05' and `end` < '2025-03-27 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:48:18] Production.INFO: count ==1505 [2025-03-27 09:48:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:48:05 - End Time 2025-03-27 09:48:05 [2025-03-27 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773353', 'tblTempUsageDetail_20' ) start [2025-03-27 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773353', 'tblTempUsageDetail_20' ) end [2025-03-27 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773353', 'tblTempVendorCDR_20' ) start [2025-03-27 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773353', 'tblTempVendorCDR_20' ) end [2025-03-27 09:48:18] Production.INFO: ProcessCDR(1,14773353,1,1,2) [2025-03-27 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773353', 'tblTempUsageDetail_20' ) start [2025-03-27 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773353', 'tblTempUsageDetail_20' ) end [2025-03-27 09:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:48:22] Production.INFO: ==18198== Releasing lock... [2025-03-27 09:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:48:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-27 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:49:05 [end_date_ymd] => 2025-03-27 09:49:05 [RateCDR] => 1 ) [2025-03-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-03-27 06:49:05' and `end` < '2025-03-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-03-27 09:49:18] Production.INFO: count ==1522 [2025-03-27 09:49:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:49:05 - End Time 2025-03-27 09:49:05 [2025-03-27 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773358', 'tblTempUsageDetail_20' ) start [2025-03-27 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773358', 'tblTempUsageDetail_20' ) end [2025-03-27 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773358', 'tblTempVendorCDR_20' ) start [2025-03-27 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773358', 'tblTempVendorCDR_20' ) end [2025-03-27 09:49:19] Production.INFO: ProcessCDR(1,14773358,1,1,2) [2025-03-27 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773358', 'tblTempUsageDetail_20' ) start [2025-03-27 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773358', 'tblTempUsageDetail_20' ) end [2025-03-27 09:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:49:24] Production.INFO: ==18274== Releasing lock... [2025-03-27 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:49:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-27 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:50:05 [end_date_ymd] => 2025-03-27 09:50:05 [RateCDR] => 1 ) [2025-03-27 09:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:50:05' and `end` < '2025-03-27 09:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:50:18] Production.INFO: count ==1543 [2025-03-27 09:50:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:50:05 - End Time 2025-03-27 09:50:05 [2025-03-27 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773364', 'tblTempUsageDetail_20' ) start [2025-03-27 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773364', 'tblTempUsageDetail_20' ) end [2025-03-27 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773364', 'tblTempVendorCDR_20' ) start [2025-03-27 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773364', 'tblTempVendorCDR_20' ) end [2025-03-27 09:50:19] Production.INFO: ProcessCDR(1,14773364,1,1,2) [2025-03-27 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773364', 'tblTempUsageDetail_20' ) start [2025-03-27 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773364', 'tblTempUsageDetail_20' ) end [2025-03-27 09:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:50:24] Production.INFO: ==18354== Releasing lock... [2025-03-27 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:50:24] Production.INFO: 40 MB #Memory Used# [2025-03-27 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:51:05 [end_date_ymd] => 2025-03-27 09:51:05 [RateCDR] => 1 ) [2025-03-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-03-27 06:51:05' and `end` < '2025-03-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-03-27 09:51:18] Production.INFO: count ==1617 [2025-03-27 09:51:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:51:05 - End Time 2025-03-27 09:51:05 [2025-03-27 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773369', 'tblTempUsageDetail_20' ) start [2025-03-27 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773369', 'tblTempUsageDetail_20' ) end [2025-03-27 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773369', 'tblTempVendorCDR_20' ) start [2025-03-27 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773369', 'tblTempVendorCDR_20' ) end [2025-03-27 09:51:19] Production.INFO: ProcessCDR(1,14773369,1,1,2) [2025-03-27 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773369', 'tblTempUsageDetail_20' ) start [2025-03-27 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773369', 'tblTempUsageDetail_20' ) end [2025-03-27 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:51:24] Production.INFO: ==18433== Releasing lock... [2025-03-27 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:51:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-27 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:52:05 [end_date_ymd] => 2025-03-27 09:52:05 [RateCDR] => 1 ) [2025-03-27 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:52:05' and `end` < '2025-03-27 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:52:18] Production.INFO: count ==1616 [2025-03-27 09:52:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:52:05 - End Time 2025-03-27 09:52:05 [2025-03-27 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773374', 'tblTempUsageDetail_20' ) start [2025-03-27 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773374', 'tblTempUsageDetail_20' ) end [2025-03-27 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773374', 'tblTempVendorCDR_20' ) start [2025-03-27 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773374', 'tblTempVendorCDR_20' ) end [2025-03-27 09:52:19] Production.INFO: ProcessCDR(1,14773374,1,1,2) [2025-03-27 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773374', 'tblTempUsageDetail_20' ) start [2025-03-27 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773374', 'tblTempUsageDetail_20' ) end [2025-03-27 09:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:52:22] Production.INFO: ==18508== Releasing lock... [2025-03-27 09:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:52:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-27 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:53:05 [end_date_ymd] => 2025-03-27 09:53:05 [RateCDR] => 1 ) [2025-03-27 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:53:05' and `end` < '2025-03-27 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:53:18] Production.INFO: count ==1621 [2025-03-27 09:53:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:53:05 - End Time 2025-03-27 09:53:05 [2025-03-27 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773379', 'tblTempUsageDetail_20' ) start [2025-03-27 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773379', 'tblTempUsageDetail_20' ) end [2025-03-27 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773379', 'tblTempVendorCDR_20' ) start [2025-03-27 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773379', 'tblTempVendorCDR_20' ) end [2025-03-27 09:53:19] Production.INFO: ProcessCDR(1,14773379,1,1,2) [2025-03-27 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773379', 'tblTempUsageDetail_20' ) start [2025-03-27 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773379', 'tblTempUsageDetail_20' ) end [2025-03-27 09:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:53:24] Production.INFO: ==18585== Releasing lock... [2025-03-27 09:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:53:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-27 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:54:05 [end_date_ymd] => 2025-03-27 09:54:05 [RateCDR] => 1 ) [2025-03-27 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:54:05' and `end` < '2025-03-27 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:54:18] Production.INFO: count ==1643 [2025-03-27 09:54:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:54:05 - End Time 2025-03-27 09:54:05 [2025-03-27 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773384', 'tblTempUsageDetail_20' ) start [2025-03-27 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773384', 'tblTempUsageDetail_20' ) end [2025-03-27 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773384', 'tblTempVendorCDR_20' ) start [2025-03-27 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773384', 'tblTempVendorCDR_20' ) end [2025-03-27 09:54:19] Production.INFO: ProcessCDR(1,14773384,1,1,2) [2025-03-27 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773384', 'tblTempUsageDetail_20' ) start [2025-03-27 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773384', 'tblTempUsageDetail_20' ) end [2025-03-27 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:54:24] Production.INFO: ==18659== Releasing lock... [2025-03-27 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:54:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-27 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:55:05 [end_date_ymd] => 2025-03-27 09:55:05 [RateCDR] => 1 ) [2025-03-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-03-27 06:55:05' and `end` < '2025-03-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-03-27 09:55:18] Production.INFO: count ==1650 [2025-03-27 09:55:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:55:05 - End Time 2025-03-27 09:55:05 [2025-03-27 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773389', 'tblTempUsageDetail_20' ) start [2025-03-27 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773389', 'tblTempUsageDetail_20' ) end [2025-03-27 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773389', 'tblTempVendorCDR_20' ) start [2025-03-27 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773389', 'tblTempVendorCDR_20' ) end [2025-03-27 09:55:18] Production.INFO: ProcessCDR(1,14773389,1,1,2) [2025-03-27 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773389', 'tblTempUsageDetail_20' ) start [2025-03-27 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773389', 'tblTempUsageDetail_20' ) end [2025-03-27 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:55:24] Production.INFO: ==18737== Releasing lock... [2025-03-27 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:55:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-27 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:56:06 [end_date_ymd] => 2025-03-27 09:56:06 [RateCDR] => 1 ) [2025-03-27 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:56:06' and `end` < '2025-03-27 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:56:18] Production.INFO: count ==1663 [2025-03-27 09:56:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:56:06 - End Time 2025-03-27 09:56:06 [2025-03-27 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773394', 'tblTempUsageDetail_20' ) start [2025-03-27 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773394', 'tblTempUsageDetail_20' ) end [2025-03-27 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773394', 'tblTempVendorCDR_20' ) start [2025-03-27 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773394', 'tblTempVendorCDR_20' ) end [2025-03-27 09:56:19] Production.INFO: ProcessCDR(1,14773394,1,1,2) [2025-03-27 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773394', 'tblTempUsageDetail_20' ) start [2025-03-27 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773394', 'tblTempUsageDetail_20' ) end [2025-03-27 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:56:24] Production.INFO: ==18819== Releasing lock... [2025-03-27 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:56:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-27 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:57:05 [end_date_ymd] => 2025-03-27 09:57:05 [RateCDR] => 1 ) [2025-03-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-03-27 06:57:05' and `end` < '2025-03-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-03-27 09:57:18] Production.INFO: count ==1666 [2025-03-27 09:57:19] Production.ERROR: pbx CDR StartTime 2025-03-27 06:57:05 - End Time 2025-03-27 09:57:05 [2025-03-27 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773399', 'tblTempUsageDetail_20' ) start [2025-03-27 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773399', 'tblTempUsageDetail_20' ) end [2025-03-27 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773399', 'tblTempVendorCDR_20' ) start [2025-03-27 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773399', 'tblTempVendorCDR_20' ) end [2025-03-27 09:57:19] Production.INFO: ProcessCDR(1,14773399,1,1,2) [2025-03-27 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773399', 'tblTempUsageDetail_20' ) start [2025-03-27 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773399', 'tblTempUsageDetail_20' ) end [2025-03-27 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:57:24] Production.INFO: ==18910== Releasing lock... [2025-03-27 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:57:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-27 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:58:06 [end_date_ymd] => 2025-03-27 09:58:06 [RateCDR] => 1 ) [2025-03-27 09:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 06:58:06' and `end` < '2025-03-27 09:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 09:58:19] Production.INFO: count ==1669 [2025-03-27 09:58:20] Production.ERROR: pbx CDR StartTime 2025-03-27 06:58:06 - End Time 2025-03-27 09:58:06 [2025-03-27 09:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773404', 'tblTempUsageDetail_20' ) start [2025-03-27 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773404', 'tblTempUsageDetail_20' ) end [2025-03-27 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773404', 'tblTempVendorCDR_20' ) start [2025-03-27 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773404', 'tblTempVendorCDR_20' ) end [2025-03-27 09:58:20] Production.INFO: ProcessCDR(1,14773404,1,1,2) [2025-03-27 09:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773404', 'tblTempUsageDetail_20' ) start [2025-03-27 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773404', 'tblTempUsageDetail_20' ) end [2025-03-27 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:58:25] Production.INFO: ==18983== Releasing lock... [2025-03-27 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:58:25] Production.INFO: 40.5 MB #Memory Used# [2025-03-27 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 06:59:05 [end_date_ymd] => 2025-03-27 09:59:05 [RateCDR] => 1 ) [2025-03-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-03-27 06:59:05' and `end` < '2025-03-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-03-27 09:59:18] Production.INFO: count ==1684 [2025-03-27 09:59:18] Production.ERROR: pbx CDR StartTime 2025-03-27 06:59:05 - End Time 2025-03-27 09:59:05 [2025-03-27 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773409', 'tblTempUsageDetail_20' ) start [2025-03-27 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773409', 'tblTempUsageDetail_20' ) end [2025-03-27 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773409', 'tblTempVendorCDR_20' ) start [2025-03-27 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773409', 'tblTempVendorCDR_20' ) end [2025-03-27 09:59:18] Production.INFO: ProcessCDR(1,14773409,1,1,2) [2025-03-27 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773409', 'tblTempUsageDetail_20' ) start [2025-03-27 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773409', 'tblTempUsageDetail_20' ) end [2025-03-27 09:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 09:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 09:59:23] Production.INFO: ==19057== Releasing lock... [2025-03-27 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 09:59:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-27 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:00:06 [end_date_ymd] => 2025-03-27 10:00:06 [RateCDR] => 1 ) [2025-03-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-03-27 07:00:06' and `end` < '2025-03-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-03-27 10:00:19] Production.INFO: count ==1710 [2025-03-27 10:00:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:00:06 - End Time 2025-03-27 10:00:06 [2025-03-27 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773414', 'tblTempUsageDetail_20' ) start [2025-03-27 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773414', 'tblTempUsageDetail_20' ) end [2025-03-27 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773414', 'tblTempVendorCDR_20' ) start [2025-03-27 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773414', 'tblTempVendorCDR_20' ) end [2025-03-27 10:00:20] Production.INFO: ProcessCDR(1,14773414,1,1,2) [2025-03-27 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773414', 'tblTempUsageDetail_20' ) start [2025-03-27 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773414', 'tblTempUsageDetail_20' ) end [2025-03-27 10:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:00:26] Production.INFO: ==19181== Releasing lock... [2025-03-27 10:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:00:26] Production.INFO: 41 MB #Memory Used# [2025-03-27 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:01:06 [end_date_ymd] => 2025-03-27 10:01:06 [RateCDR] => 1 ) [2025-03-27 10:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:01:06' and `end` < '2025-03-27 10:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:01:19] Production.INFO: count ==1787 [2025-03-27 10:01:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:01:06 - End Time 2025-03-27 10:01:06 [2025-03-27 10:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773420', 'tblTempUsageDetail_20' ) start [2025-03-27 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773420', 'tblTempUsageDetail_20' ) end [2025-03-27 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773420', 'tblTempVendorCDR_20' ) start [2025-03-27 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773420', 'tblTempVendorCDR_20' ) end [2025-03-27 10:01:20] Production.INFO: ProcessCDR(1,14773420,1,1,2) [2025-03-27 10:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773420', 'tblTempUsageDetail_20' ) start [2025-03-27 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773420', 'tblTempUsageDetail_20' ) end [2025-03-27 10:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:01:25] Production.INFO: ==19266== Releasing lock... [2025-03-27 10:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:01:25] Production.INFO: 41.75 MB #Memory Used# [2025-03-27 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:02:05 [end_date_ymd] => 2025-03-27 10:02:05 [RateCDR] => 1 ) [2025-03-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-03-27 07:02:05' and `end` < '2025-03-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-03-27 10:02:18] Production.INFO: count ==1806 [2025-03-27 10:02:19] Production.ERROR: pbx CDR StartTime 2025-03-27 07:02:05 - End Time 2025-03-27 10:02:05 [2025-03-27 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773425', 'tblTempUsageDetail_20' ) start [2025-03-27 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773425', 'tblTempUsageDetail_20' ) end [2025-03-27 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773425', 'tblTempVendorCDR_20' ) start [2025-03-27 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773425', 'tblTempVendorCDR_20' ) end [2025-03-27 10:02:19] Production.INFO: ProcessCDR(1,14773425,1,1,2) [2025-03-27 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773425', 'tblTempUsageDetail_20' ) start [2025-03-27 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773425', 'tblTempUsageDetail_20' ) end [2025-03-27 10:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:02:23] Production.INFO: ==19338== Releasing lock... [2025-03-27 10:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:02:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-27 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:03:06 [end_date_ymd] => 2025-03-27 10:03:06 [RateCDR] => 1 ) [2025-03-27 10:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:03:06' and `end` < '2025-03-27 10:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:03:19] Production.INFO: count ==1823 [2025-03-27 10:03:19] Production.ERROR: pbx CDR StartTime 2025-03-27 07:03:06 - End Time 2025-03-27 10:03:06 [2025-03-27 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773430', 'tblTempUsageDetail_20' ) start [2025-03-27 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773430', 'tblTempUsageDetail_20' ) end [2025-03-27 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773430', 'tblTempVendorCDR_20' ) start [2025-03-27 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773430', 'tblTempVendorCDR_20' ) end [2025-03-27 10:03:19] Production.INFO: ProcessCDR(1,14773430,1,1,2) [2025-03-27 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773430', 'tblTempUsageDetail_20' ) start [2025-03-27 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773430', 'tblTempUsageDetail_20' ) end [2025-03-27 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:03:26] Production.INFO: ==19411== Releasing lock... [2025-03-27 10:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:03:26] Production.INFO: 41.75 MB #Memory Used# [2025-03-27 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:04:06 [end_date_ymd] => 2025-03-27 10:04:06 [RateCDR] => 1 ) [2025-03-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-03-27 07:04:06' and `end` < '2025-03-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-03-27 10:04:19] Production.INFO: count ==1835 [2025-03-27 10:04:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:04:06 - End Time 2025-03-27 10:04:06 [2025-03-27 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773435', 'tblTempUsageDetail_20' ) start [2025-03-27 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773435', 'tblTempUsageDetail_20' ) end [2025-03-27 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773435', 'tblTempVendorCDR_20' ) start [2025-03-27 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773435', 'tblTempVendorCDR_20' ) end [2025-03-27 10:04:20] Production.INFO: ProcessCDR(1,14773435,1,1,2) [2025-03-27 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773435', 'tblTempUsageDetail_20' ) start [2025-03-27 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773435', 'tblTempUsageDetail_20' ) end [2025-03-27 10:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:04:26] Production.INFO: ==19485== Releasing lock... [2025-03-27 10:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:04:26] Production.INFO: 41.75 MB #Memory Used# [2025-03-27 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:05:05 [end_date_ymd] => 2025-03-27 10:05:05 [RateCDR] => 1 ) [2025-03-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-03-27 07:05:05' and `end` < '2025-03-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-03-27 10:05:18] Production.INFO: count ==1846 [2025-03-27 10:05:19] Production.ERROR: pbx CDR StartTime 2025-03-27 07:05:05 - End Time 2025-03-27 10:05:05 [2025-03-27 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773440', 'tblTempUsageDetail_20' ) start [2025-03-27 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773440', 'tblTempUsageDetail_20' ) end [2025-03-27 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773440', 'tblTempVendorCDR_20' ) start [2025-03-27 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773440', 'tblTempVendorCDR_20' ) end [2025-03-27 10:05:19] Production.INFO: ProcessCDR(1,14773440,1,1,2) [2025-03-27 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773440', 'tblTempUsageDetail_20' ) start [2025-03-27 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773440', 'tblTempUsageDetail_20' ) end [2025-03-27 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:05:25] Production.INFO: ==19557== Releasing lock... [2025-03-27 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:05:25] Production.INFO: 42 MB #Memory Used# [2025-03-27 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:06:06 [end_date_ymd] => 2025-03-27 10:06:06 [RateCDR] => 1 ) [2025-03-27 10:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:06:06' and `end` < '2025-03-27 10:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:06:19] Production.INFO: count ==1865 [2025-03-27 10:06:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:06:06 - End Time 2025-03-27 10:06:06 [2025-03-27 10:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773445', 'tblTempUsageDetail_20' ) start [2025-03-27 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773445', 'tblTempUsageDetail_20' ) end [2025-03-27 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773445', 'tblTempVendorCDR_20' ) start [2025-03-27 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773445', 'tblTempVendorCDR_20' ) end [2025-03-27 10:06:20] Production.INFO: ProcessCDR(1,14773445,1,1,2) [2025-03-27 10:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773445', 'tblTempUsageDetail_20' ) start [2025-03-27 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773445', 'tblTempUsageDetail_20' ) end [2025-03-27 10:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:06:26] Production.INFO: ==19631== Releasing lock... [2025-03-27 10:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:06:26] Production.INFO: 42 MB #Memory Used# [2025-03-27 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:07:06 [end_date_ymd] => 2025-03-27 10:07:06 [RateCDR] => 1 ) [2025-03-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-03-27 07:07:06' and `end` < '2025-03-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-03-27 10:07:19] Production.INFO: count ==1868 [2025-03-27 10:07:19] Production.ERROR: pbx CDR StartTime 2025-03-27 07:07:06 - End Time 2025-03-27 10:07:06 [2025-03-27 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773450', 'tblTempUsageDetail_20' ) start [2025-03-27 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773450', 'tblTempUsageDetail_20' ) end [2025-03-27 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773450', 'tblTempVendorCDR_20' ) start [2025-03-27 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773450', 'tblTempVendorCDR_20' ) end [2025-03-27 10:07:19] Production.INFO: ProcessCDR(1,14773450,1,1,2) [2025-03-27 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773450', 'tblTempUsageDetail_20' ) start [2025-03-27 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773450', 'tblTempUsageDetail_20' ) end [2025-03-27 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:07:25] Production.INFO: ==19702== Releasing lock... [2025-03-27 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:07:25] Production.INFO: 42 MB #Memory Used# [2025-03-27 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:08:06 [end_date_ymd] => 2025-03-27 10:08:06 [RateCDR] => 1 ) [2025-03-27 10:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:08:06' and `end` < '2025-03-27 10:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:08:19] Production.INFO: count ==1873 [2025-03-27 10:08:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:08:06 - End Time 2025-03-27 10:08:06 [2025-03-27 10:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773455', 'tblTempUsageDetail_20' ) start [2025-03-27 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773455', 'tblTempUsageDetail_20' ) end [2025-03-27 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773455', 'tblTempVendorCDR_20' ) start [2025-03-27 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773455', 'tblTempVendorCDR_20' ) end [2025-03-27 10:08:20] Production.INFO: ProcessCDR(1,14773455,1,1,2) [2025-03-27 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773455', 'tblTempUsageDetail_20' ) start [2025-03-27 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773455', 'tblTempUsageDetail_20' ) end [2025-03-27 10:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:08:25] Production.INFO: ==19775== Releasing lock... [2025-03-27 10:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:08:25] Production.INFO: 42 MB #Memory Used# [2025-03-27 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:09:05 [end_date_ymd] => 2025-03-27 10:09:05 [RateCDR] => 1 ) [2025-03-27 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:09:05' and `end` < '2025-03-27 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:09:18] Production.INFO: count ==1891 [2025-03-27 10:09:19] Production.ERROR: pbx CDR StartTime 2025-03-27 07:09:05 - End Time 2025-03-27 10:09:05 [2025-03-27 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773460', 'tblTempUsageDetail_20' ) start [2025-03-27 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773460', 'tblTempUsageDetail_20' ) end [2025-03-27 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773460', 'tblTempVendorCDR_20' ) start [2025-03-27 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773460', 'tblTempVendorCDR_20' ) end [2025-03-27 10:09:19] Production.INFO: ProcessCDR(1,14773460,1,1,2) [2025-03-27 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773460', 'tblTempUsageDetail_20' ) start [2025-03-27 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773460', 'tblTempUsageDetail_20' ) end [2025-03-27 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:09:25] Production.INFO: ==19853== Releasing lock... [2025-03-27 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:09:25] Production.INFO: 42.25 MB #Memory Used# [2025-03-27 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:10:07 [end_date_ymd] => 2025-03-27 10:10:07 [RateCDR] => 1 ) [2025-03-27 10:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:10:07' and `end` < '2025-03-27 10:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:10:20] Production.INFO: count ==1908 [2025-03-27 10:10:21] Production.ERROR: pbx CDR StartTime 2025-03-27 07:10:07 - End Time 2025-03-27 10:10:07 [2025-03-27 10:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773465', 'tblTempUsageDetail_20' ) start [2025-03-27 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773465', 'tblTempUsageDetail_20' ) end [2025-03-27 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773465', 'tblTempVendorCDR_20' ) start [2025-03-27 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773465', 'tblTempVendorCDR_20' ) end [2025-03-27 10:10:21] Production.INFO: ProcessCDR(1,14773465,1,1,2) [2025-03-27 10:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773465', 'tblTempUsageDetail_20' ) start [2025-03-27 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773465', 'tblTempUsageDetail_20' ) end [2025-03-27 10:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:10:26] Production.INFO: ==19930== Releasing lock... [2025-03-27 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:10:26] Production.INFO: 42.5 MB #Memory Used# [2025-03-27 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:11:06 [end_date_ymd] => 2025-03-27 10:11:06 [RateCDR] => 1 ) [2025-03-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-03-27 07:11:06' and `end` < '2025-03-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-03-27 10:11:19] Production.INFO: count ==2029 [2025-03-27 10:11:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:11:06 - End Time 2025-03-27 10:11:06 [2025-03-27 10:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773471', 'tblTempUsageDetail_20' ) start [2025-03-27 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773471', 'tblTempUsageDetail_20' ) end [2025-03-27 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773471', 'tblTempVendorCDR_20' ) start [2025-03-27 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773471', 'tblTempVendorCDR_20' ) end [2025-03-27 10:11:20] Production.INFO: ProcessCDR(1,14773471,1,1,2) [2025-03-27 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773471', 'tblTempUsageDetail_20' ) start [2025-03-27 10:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773471', 'tblTempUsageDetail_20' ) end [2025-03-27 10:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:11:26] Production.INFO: ==20005== Releasing lock... [2025-03-27 10:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:11:26] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:12:05 [end_date_ymd] => 2025-03-27 10:12:05 [RateCDR] => 1 ) [2025-03-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-03-27 07:12:05' and `end` < '2025-03-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-03-27 10:12:18] Production.INFO: count ==2039 [2025-03-27 10:12:19] Production.ERROR: pbx CDR StartTime 2025-03-27 07:12:05 - End Time 2025-03-27 10:12:05 [2025-03-27 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773476', 'tblTempUsageDetail_20' ) start [2025-03-27 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773476', 'tblTempUsageDetail_20' ) end [2025-03-27 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773476', 'tblTempVendorCDR_20' ) start [2025-03-27 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773476', 'tblTempVendorCDR_20' ) end [2025-03-27 10:12:19] Production.INFO: ProcessCDR(1,14773476,1,1,2) [2025-03-27 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773476', 'tblTempUsageDetail_20' ) start [2025-03-27 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773476', 'tblTempUsageDetail_20' ) end [2025-03-27 10:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:12:25] Production.INFO: ==20077== Releasing lock... [2025-03-27 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:12:25] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 10:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:13:06 [end_date_ymd] => 2025-03-27 10:13:06 [RateCDR] => 1 ) [2025-03-27 10:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:13:06' and `end` < '2025-03-27 10:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:13:19] Production.INFO: count ==2049 [2025-03-27 10:13:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:13:06 - End Time 2025-03-27 10:13:06 [2025-03-27 10:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773481', 'tblTempUsageDetail_20' ) start [2025-03-27 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773481', 'tblTempUsageDetail_20' ) end [2025-03-27 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773481', 'tblTempVendorCDR_20' ) start [2025-03-27 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773481', 'tblTempVendorCDR_20' ) end [2025-03-27 10:13:20] Production.INFO: ProcessCDR(1,14773481,1,1,2) [2025-03-27 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773481', 'tblTempUsageDetail_20' ) start [2025-03-27 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773481', 'tblTempUsageDetail_20' ) end [2025-03-27 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:13:26] Production.INFO: ==20146== Releasing lock... [2025-03-27 10:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:13:26] Production.INFO: 43.75 MB #Memory Used# [2025-03-27 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:14:06 [end_date_ymd] => 2025-03-27 10:14:06 [RateCDR] => 1 ) [2025-03-27 10:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:14:06' and `end` < '2025-03-27 10:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:14:19] Production.INFO: count ==2081 [2025-03-27 10:14:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:14:06 - End Time 2025-03-27 10:14:06 [2025-03-27 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773486', 'tblTempUsageDetail_20' ) start [2025-03-27 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773486', 'tblTempUsageDetail_20' ) end [2025-03-27 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773486', 'tblTempVendorCDR_20' ) start [2025-03-27 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773486', 'tblTempVendorCDR_20' ) end [2025-03-27 10:14:20] Production.INFO: ProcessCDR(1,14773486,1,1,2) [2025-03-27 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773486', 'tblTempUsageDetail_20' ) start [2025-03-27 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773486', 'tblTempUsageDetail_20' ) end [2025-03-27 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:14:26] Production.INFO: ==20219== Releasing lock... [2025-03-27 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:14:26] Production.INFO: 43.75 MB #Memory Used# [2025-03-27 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:15:06 [end_date_ymd] => 2025-03-27 10:15:06 [RateCDR] => 1 ) [2025-03-27 10:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:15:06' and `end` < '2025-03-27 10:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:15:19] Production.INFO: count ==2104 [2025-03-27 10:15:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:15:06 - End Time 2025-03-27 10:15:06 [2025-03-27 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773491', 'tblTempUsageDetail_20' ) start [2025-03-27 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773491', 'tblTempUsageDetail_20' ) end [2025-03-27 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773491', 'tblTempVendorCDR_20' ) start [2025-03-27 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773491', 'tblTempVendorCDR_20' ) end [2025-03-27 10:15:20] Production.INFO: ProcessCDR(1,14773491,1,1,2) [2025-03-27 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773491', 'tblTempUsageDetail_20' ) start [2025-03-27 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773491', 'tblTempUsageDetail_20' ) end [2025-03-27 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:15:26] Production.INFO: ==20292== Releasing lock... [2025-03-27 10:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:15:26] Production.INFO: 44 MB #Memory Used# [2025-03-27 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:16:06 [end_date_ymd] => 2025-03-27 10:16:06 [RateCDR] => 1 ) [2025-03-27 10:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:16:06' and `end` < '2025-03-27 10:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:16:19] Production.INFO: count ==2136 [2025-03-27 10:16:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:16:06 - End Time 2025-03-27 10:16:06 [2025-03-27 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773496', 'tblTempUsageDetail_20' ) start [2025-03-27 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773496', 'tblTempUsageDetail_20' ) end [2025-03-27 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773496', 'tblTempVendorCDR_20' ) start [2025-03-27 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773496', 'tblTempVendorCDR_20' ) end [2025-03-27 10:16:20] Production.INFO: ProcessCDR(1,14773496,1,1,2) [2025-03-27 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773496', 'tblTempUsageDetail_20' ) start [2025-03-27 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773496', 'tblTempUsageDetail_20' ) end [2025-03-27 10:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:16:26] Production.INFO: ==20407== Releasing lock... [2025-03-27 10:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:16:26] Production.INFO: 44.25 MB #Memory Used# [2025-03-27 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:17:06 [end_date_ymd] => 2025-03-27 10:17:06 [RateCDR] => 1 ) [2025-03-27 10:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:17:06' and `end` < '2025-03-27 10:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:17:19] Production.INFO: count ==2147 [2025-03-27 10:17:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:17:06 - End Time 2025-03-27 10:17:06 [2025-03-27 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773501', 'tblTempUsageDetail_20' ) start [2025-03-27 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773501', 'tblTempUsageDetail_20' ) end [2025-03-27 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773501', 'tblTempVendorCDR_20' ) start [2025-03-27 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773501', 'tblTempVendorCDR_20' ) end [2025-03-27 10:17:20] Production.INFO: ProcessCDR(1,14773501,1,1,2) [2025-03-27 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773501', 'tblTempUsageDetail_20' ) start [2025-03-27 10:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773501', 'tblTempUsageDetail_20' ) end [2025-03-27 10:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:17:26] Production.INFO: ==20481== Releasing lock... [2025-03-27 10:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:17:26] Production.INFO: 44.25 MB #Memory Used# [2025-03-27 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:18:06 [end_date_ymd] => 2025-03-27 10:18:06 [RateCDR] => 1 ) [2025-03-27 10:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:18:06' and `end` < '2025-03-27 10:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:18:19] Production.INFO: count ==2173 [2025-03-27 10:18:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:18:06 - End Time 2025-03-27 10:18:06 [2025-03-27 10:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773506', 'tblTempUsageDetail_20' ) start [2025-03-27 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773506', 'tblTempUsageDetail_20' ) end [2025-03-27 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773506', 'tblTempVendorCDR_20' ) start [2025-03-27 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773506', 'tblTempVendorCDR_20' ) end [2025-03-27 10:18:20] Production.INFO: ProcessCDR(1,14773506,1,1,2) [2025-03-27 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773506', 'tblTempUsageDetail_20' ) start [2025-03-27 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773506', 'tblTempUsageDetail_20' ) end [2025-03-27 10:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:18:26] Production.INFO: ==20555== Releasing lock... [2025-03-27 10:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:18:26] Production.INFO: 44.5 MB #Memory Used# [2025-03-27 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:19:05 [end_date_ymd] => 2025-03-27 10:19:05 [RateCDR] => 1 ) [2025-03-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-03-27 07:19:05' and `end` < '2025-03-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-03-27 10:19:19] Production.INFO: count ==2182 [2025-03-27 10:19:19] Production.ERROR: pbx CDR StartTime 2025-03-27 07:19:05 - End Time 2025-03-27 10:19:05 [2025-03-27 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773511', 'tblTempUsageDetail_20' ) start [2025-03-27 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773511', 'tblTempUsageDetail_20' ) end [2025-03-27 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773511', 'tblTempVendorCDR_20' ) start [2025-03-27 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773511', 'tblTempVendorCDR_20' ) end [2025-03-27 10:19:20] Production.INFO: ProcessCDR(1,14773511,1,1,2) [2025-03-27 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773511', 'tblTempUsageDetail_20' ) start [2025-03-27 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773511', 'tblTempUsageDetail_20' ) end [2025-03-27 10:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:19:25] Production.INFO: ==20626== Releasing lock... [2025-03-27 10:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:19:25] Production.INFO: 44.5 MB #Memory Used# [2025-03-27 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:20:06 [end_date_ymd] => 2025-03-27 10:20:06 [RateCDR] => 1 ) [2025-03-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-03-27 07:20:06' and `end` < '2025-03-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-03-27 10:20:20] Production.INFO: count ==2204 [2025-03-27 10:20:21] Production.ERROR: pbx CDR StartTime 2025-03-27 07:20:06 - End Time 2025-03-27 10:20:06 [2025-03-27 10:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773516', 'tblTempUsageDetail_20' ) start [2025-03-27 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773516', 'tblTempUsageDetail_20' ) end [2025-03-27 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773516', 'tblTempVendorCDR_20' ) start [2025-03-27 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773516', 'tblTempVendorCDR_20' ) end [2025-03-27 10:20:21] Production.INFO: ProcessCDR(1,14773516,1,1,2) [2025-03-27 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773516', 'tblTempUsageDetail_20' ) start [2025-03-27 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773516', 'tblTempUsageDetail_20' ) end [2025-03-27 10:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:20:27] Production.INFO: ==20701== Releasing lock... [2025-03-27 10:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:20:27] Production.INFO: 44.75 MB #Memory Used# [2025-03-27 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:21:06 [end_date_ymd] => 2025-03-27 10:21:06 [RateCDR] => 1 ) [2025-03-27 10:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:21:06' and `end` < '2025-03-27 10:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:21:19] Production.INFO: count ==2329 [2025-03-27 10:21:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:21:06 - End Time 2025-03-27 10:21:06 [2025-03-27 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773522', 'tblTempUsageDetail_20' ) start [2025-03-27 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773522', 'tblTempUsageDetail_20' ) end [2025-03-27 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773522', 'tblTempVendorCDR_20' ) start [2025-03-27 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773522', 'tblTempVendorCDR_20' ) end [2025-03-27 10:21:20] Production.INFO: ProcessCDR(1,14773522,1,1,2) [2025-03-27 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773522', 'tblTempUsageDetail_20' ) start [2025-03-27 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773522', 'tblTempUsageDetail_20' ) end [2025-03-27 10:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:21:26] Production.INFO: ==20776== Releasing lock... [2025-03-27 10:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:21:26] Production.INFO: 45.5 MB #Memory Used# [2025-03-27 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:22:06 [end_date_ymd] => 2025-03-27 10:22:06 [RateCDR] => 1 ) [2025-03-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-03-27 07:22:06' and `end` < '2025-03-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-03-27 10:22:19] Production.INFO: count ==2327 [2025-03-27 10:22:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:22:06 - End Time 2025-03-27 10:22:06 [2025-03-27 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773527', 'tblTempUsageDetail_20' ) start [2025-03-27 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773527', 'tblTempUsageDetail_20' ) end [2025-03-27 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773527', 'tblTempVendorCDR_20' ) start [2025-03-27 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773527', 'tblTempVendorCDR_20' ) end [2025-03-27 10:22:20] Production.INFO: ProcessCDR(1,14773527,1,1,2) [2025-03-27 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773527', 'tblTempUsageDetail_20' ) start [2025-03-27 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773527', 'tblTempUsageDetail_20' ) end [2025-03-27 10:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:22:24] Production.INFO: ==20854== Releasing lock... [2025-03-27 10:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:22:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-27 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:23:05 [end_date_ymd] => 2025-03-27 10:23:05 [RateCDR] => 1 ) [2025-03-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-03-27 07:23:05' and `end` < '2025-03-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-03-27 10:23:19] Production.INFO: count ==2354 [2025-03-27 10:23:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:23:05 - End Time 2025-03-27 10:23:05 [2025-03-27 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773532', 'tblTempUsageDetail_20' ) start [2025-03-27 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773532', 'tblTempUsageDetail_20' ) end [2025-03-27 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773532', 'tblTempVendorCDR_20' ) start [2025-03-27 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773532', 'tblTempVendorCDR_20' ) end [2025-03-27 10:23:20] Production.INFO: ProcessCDR(1,14773532,1,1,2) [2025-03-27 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773532', 'tblTempUsageDetail_20' ) start [2025-03-27 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773532', 'tblTempUsageDetail_20' ) end [2025-03-27 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:23:26] Production.INFO: ==20937== Releasing lock... [2025-03-27 10:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:23:26] Production.INFO: 45.75 MB #Memory Used# [2025-03-27 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:24:05 [end_date_ymd] => 2025-03-27 10:24:05 [RateCDR] => 1 ) [2025-03-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-03-27 07:24:05' and `end` < '2025-03-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-03-27 10:24:19] Production.INFO: count ==2385 [2025-03-27 10:24:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:24:05 - End Time 2025-03-27 10:24:05 [2025-03-27 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773537', 'tblTempUsageDetail_20' ) start [2025-03-27 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773537', 'tblTempUsageDetail_20' ) end [2025-03-27 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773537', 'tblTempVendorCDR_20' ) start [2025-03-27 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773537', 'tblTempVendorCDR_20' ) end [2025-03-27 10:24:20] Production.INFO: ProcessCDR(1,14773537,1,1,2) [2025-03-27 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773537', 'tblTempUsageDetail_20' ) start [2025-03-27 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773537', 'tblTempUsageDetail_20' ) end [2025-03-27 10:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:24:26] Production.INFO: ==21021== Releasing lock... [2025-03-27 10:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:24:26] Production.INFO: 46 MB #Memory Used# [2025-03-27 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:25:06 [end_date_ymd] => 2025-03-27 10:25:06 [RateCDR] => 1 ) [2025-03-27 10:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:25:06' and `end` < '2025-03-27 10:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:25:20] Production.INFO: count ==2454 [2025-03-27 10:25:21] Production.ERROR: pbx CDR StartTime 2025-03-27 07:25:06 - End Time 2025-03-27 10:25:06 [2025-03-27 10:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773542', 'tblTempUsageDetail_20' ) start [2025-03-27 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773542', 'tblTempUsageDetail_20' ) end [2025-03-27 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773542', 'tblTempVendorCDR_20' ) start [2025-03-27 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773542', 'tblTempVendorCDR_20' ) end [2025-03-27 10:25:21] Production.INFO: ProcessCDR(1,14773542,1,1,2) [2025-03-27 10:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773542', 'tblTempUsageDetail_20' ) start [2025-03-27 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773542', 'tblTempUsageDetail_20' ) end [2025-03-27 10:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:25:27] Production.INFO: ==21095== Releasing lock... [2025-03-27 10:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:25:27] Production.INFO: 46.5 MB #Memory Used# [2025-03-27 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:26:06 [end_date_ymd] => 2025-03-27 10:26:06 [RateCDR] => 1 ) [2025-03-27 10:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:26:06' and `end` < '2025-03-27 10:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:26:19] Production.INFO: count ==2461 [2025-03-27 10:26:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:26:06 - End Time 2025-03-27 10:26:06 [2025-03-27 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773547', 'tblTempUsageDetail_20' ) start [2025-03-27 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773547', 'tblTempUsageDetail_20' ) end [2025-03-27 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773547', 'tblTempVendorCDR_20' ) start [2025-03-27 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773547', 'tblTempVendorCDR_20' ) end [2025-03-27 10:26:20] Production.INFO: ProcessCDR(1,14773547,1,1,2) [2025-03-27 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773547', 'tblTempUsageDetail_20' ) start [2025-03-27 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773547', 'tblTempUsageDetail_20' ) end [2025-03-27 10:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:26:26] Production.INFO: ==21167== Releasing lock... [2025-03-27 10:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:26:26] Production.INFO: 46.5 MB #Memory Used# [2025-03-27 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:27:05 [end_date_ymd] => 2025-03-27 10:27:05 [RateCDR] => 1 ) [2025-03-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-03-27 07:27:05' and `end` < '2025-03-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-03-27 10:27:18] Production.INFO: count ==2497 [2025-03-27 10:27:19] Production.ERROR: pbx CDR StartTime 2025-03-27 07:27:05 - End Time 2025-03-27 10:27:05 [2025-03-27 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773552', 'tblTempUsageDetail_20' ) start [2025-03-27 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773552', 'tblTempUsageDetail_20' ) end [2025-03-27 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773552', 'tblTempVendorCDR_20' ) start [2025-03-27 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773552', 'tblTempVendorCDR_20' ) end [2025-03-27 10:27:19] Production.INFO: ProcessCDR(1,14773552,1,1,2) [2025-03-27 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773552', 'tblTempUsageDetail_20' ) start [2025-03-27 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773552', 'tblTempUsageDetail_20' ) end [2025-03-27 10:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:27:25] Production.INFO: ==21240== Releasing lock... [2025-03-27 10:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:27:25] Production.INFO: 46.75 MB #Memory Used# [2025-03-27 10:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:28:06 [end_date_ymd] => 2025-03-27 10:28:06 [RateCDR] => 1 ) [2025-03-27 10:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:28:06' and `end` < '2025-03-27 10:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:28:19] Production.INFO: count ==2532 [2025-03-27 10:28:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:28:06 - End Time 2025-03-27 10:28:06 [2025-03-27 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773557', 'tblTempUsageDetail_20' ) start [2025-03-27 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773557', 'tblTempUsageDetail_20' ) end [2025-03-27 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773557', 'tblTempVendorCDR_20' ) start [2025-03-27 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773557', 'tblTempVendorCDR_20' ) end [2025-03-27 10:28:20] Production.INFO: ProcessCDR(1,14773557,1,1,2) [2025-03-27 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773557', 'tblTempUsageDetail_20' ) start [2025-03-27 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773557', 'tblTempUsageDetail_20' ) end [2025-03-27 10:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:28:25] Production.INFO: ==21311== Releasing lock... [2025-03-27 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:28:25] Production.INFO: 47 MB #Memory Used# [2025-03-27 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:29:06 [end_date_ymd] => 2025-03-27 10:29:06 [RateCDR] => 1 ) [2025-03-27 10:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:29:06' and `end` < '2025-03-27 10:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:29:19] Production.INFO: count ==2538 [2025-03-27 10:29:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:29:06 - End Time 2025-03-27 10:29:06 [2025-03-27 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773562', 'tblTempUsageDetail_20' ) start [2025-03-27 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773562', 'tblTempUsageDetail_20' ) end [2025-03-27 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773562', 'tblTempVendorCDR_20' ) start [2025-03-27 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773562', 'tblTempVendorCDR_20' ) end [2025-03-27 10:29:20] Production.INFO: ProcessCDR(1,14773562,1,1,2) [2025-03-27 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773562', 'tblTempUsageDetail_20' ) start [2025-03-27 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773562', 'tblTempUsageDetail_20' ) end [2025-03-27 10:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:29:26] Production.INFO: ==21383== Releasing lock... [2025-03-27 10:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:29:26] Production.INFO: 47.25 MB #Memory Used# [2025-03-27 10:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:30:07 [end_date_ymd] => 2025-03-27 10:30:07 [RateCDR] => 1 ) [2025-03-27 10:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:30:07' and `end` < '2025-03-27 10:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:30:20] Production.INFO: count ==2559 [2025-03-27 10:30:21] Production.ERROR: pbx CDR StartTime 2025-03-27 07:30:07 - End Time 2025-03-27 10:30:07 [2025-03-27 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773568', 'tblTempUsageDetail_20' ) start [2025-03-27 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773568', 'tblTempUsageDetail_20' ) end [2025-03-27 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773568', 'tblTempVendorCDR_20' ) start [2025-03-27 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773568', 'tblTempVendorCDR_20' ) end [2025-03-27 10:30:21] Production.INFO: ProcessCDR(1,14773568,1,1,2) [2025-03-27 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773568', 'tblTempUsageDetail_20' ) start [2025-03-27 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773568', 'tblTempUsageDetail_20' ) end [2025-03-27 10:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:30:27] Production.INFO: ==21470== Releasing lock... [2025-03-27 10:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:30:27] Production.INFO: 47.25 MB #Memory Used# [2025-03-27 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:31:05 [end_date_ymd] => 2025-03-27 10:31:05 [RateCDR] => 1 ) [2025-03-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-03-27 07:31:05' and `end` < '2025-03-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-03-27 10:31:18] Production.INFO: count ==2664 [2025-03-27 10:31:19] Production.ERROR: pbx CDR StartTime 2025-03-27 07:31:05 - End Time 2025-03-27 10:31:05 [2025-03-27 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773573', 'tblTempUsageDetail_20' ) start [2025-03-27 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773573', 'tblTempUsageDetail_20' ) end [2025-03-27 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773573', 'tblTempVendorCDR_20' ) start [2025-03-27 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773573', 'tblTempVendorCDR_20' ) end [2025-03-27 10:31:19] Production.INFO: ProcessCDR(1,14773573,1,1,2) [2025-03-27 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773573', 'tblTempUsageDetail_20' ) start [2025-03-27 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773573', 'tblTempUsageDetail_20' ) end [2025-03-27 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:31:25] Production.INFO: ==21586== Releasing lock... [2025-03-27 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:31:25] Production.INFO: 48 MB #Memory Used# [2025-03-27 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:32:06 [end_date_ymd] => 2025-03-27 10:32:06 [RateCDR] => 1 ) [2025-03-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-03-27 07:32:06' and `end` < '2025-03-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-03-27 10:32:19] Production.INFO: count ==2668 [2025-03-27 10:32:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:32:06 - End Time 2025-03-27 10:32:06 [2025-03-27 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773578', 'tblTempUsageDetail_20' ) start [2025-03-27 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773578', 'tblTempUsageDetail_20' ) end [2025-03-27 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773578', 'tblTempVendorCDR_20' ) start [2025-03-27 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773578', 'tblTempVendorCDR_20' ) end [2025-03-27 10:32:20] Production.INFO: ProcessCDR(1,14773578,1,1,2) [2025-03-27 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773578', 'tblTempUsageDetail_20' ) start [2025-03-27 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773578', 'tblTempUsageDetail_20' ) end [2025-03-27 10:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:32:26] Production.INFO: ==21658== Releasing lock... [2025-03-27 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:32:26] Production.INFO: 48 MB #Memory Used# [2025-03-27 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:33:05 [end_date_ymd] => 2025-03-27 10:33:05 [RateCDR] => 1 ) [2025-03-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-03-27 07:33:05' and `end` < '2025-03-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-03-27 10:33:19] Production.INFO: count ==2679 [2025-03-27 10:33:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:33:05 - End Time 2025-03-27 10:33:05 [2025-03-27 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773583', 'tblTempUsageDetail_20' ) start [2025-03-27 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773583', 'tblTempUsageDetail_20' ) end [2025-03-27 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773583', 'tblTempVendorCDR_20' ) start [2025-03-27 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773583', 'tblTempVendorCDR_20' ) end [2025-03-27 10:33:20] Production.INFO: ProcessCDR(1,14773583,1,1,2) [2025-03-27 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773583', 'tblTempUsageDetail_20' ) start [2025-03-27 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773583', 'tblTempUsageDetail_20' ) end [2025-03-27 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:33:25] Production.INFO: ==21732== Releasing lock... [2025-03-27 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:33:25] Production.INFO: 48.25 MB #Memory Used# [2025-03-27 10:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:34:06 [end_date_ymd] => 2025-03-27 10:34:06 [RateCDR] => 1 ) [2025-03-27 10:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:34:06' and `end` < '2025-03-27 10:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:34:20] Production.INFO: count ==2690 [2025-03-27 10:34:21] Production.ERROR: pbx CDR StartTime 2025-03-27 07:34:06 - End Time 2025-03-27 10:34:06 [2025-03-27 10:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773587', 'tblTempUsageDetail_20' ) start [2025-03-27 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773587', 'tblTempUsageDetail_20' ) end [2025-03-27 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773587', 'tblTempVendorCDR_20' ) start [2025-03-27 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773587', 'tblTempVendorCDR_20' ) end [2025-03-27 10:34:21] Production.INFO: ProcessCDR(1,14773587,1,1,2) [2025-03-27 10:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773587', 'tblTempUsageDetail_20' ) start [2025-03-27 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773587', 'tblTempUsageDetail_20' ) end [2025-03-27 10:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:34:26] Production.INFO: ==21809== Releasing lock... [2025-03-27 10:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:34:26] Production.INFO: 48.25 MB #Memory Used# [2025-03-27 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:35:05 [end_date_ymd] => 2025-03-27 10:35:05 [RateCDR] => 1 ) [2025-03-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-03-27 07:35:05' and `end` < '2025-03-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-03-27 10:35:18] Production.INFO: count ==2721 [2025-03-27 10:35:19] Production.ERROR: pbx CDR StartTime 2025-03-27 07:35:05 - End Time 2025-03-27 10:35:05 [2025-03-27 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773593', 'tblTempUsageDetail_20' ) start [2025-03-27 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773593', 'tblTempUsageDetail_20' ) end [2025-03-27 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773593', 'tblTempVendorCDR_20' ) start [2025-03-27 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773593', 'tblTempVendorCDR_20' ) end [2025-03-27 10:35:20] Production.INFO: ProcessCDR(1,14773593,1,1,2) [2025-03-27 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773593', 'tblTempUsageDetail_20' ) start [2025-03-27 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773593', 'tblTempUsageDetail_20' ) end [2025-03-27 10:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:35:25] Production.INFO: ==21883== Releasing lock... [2025-03-27 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:35:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-27 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:36:06 [end_date_ymd] => 2025-03-27 10:36:06 [RateCDR] => 1 ) [2025-03-27 10:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:36:06' and `end` < '2025-03-27 10:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:36:19] Production.INFO: count ==2725 [2025-03-27 10:36:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:36:06 - End Time 2025-03-27 10:36:06 [2025-03-27 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773598', 'tblTempUsageDetail_20' ) start [2025-03-27 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773598', 'tblTempUsageDetail_20' ) end [2025-03-27 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773598', 'tblTempVendorCDR_20' ) start [2025-03-27 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773598', 'tblTempVendorCDR_20' ) end [2025-03-27 10:36:20] Production.INFO: ProcessCDR(1,14773598,1,1,2) [2025-03-27 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773598', 'tblTempUsageDetail_20' ) start [2025-03-27 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773598', 'tblTempUsageDetail_20' ) end [2025-03-27 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:36:25] Production.INFO: ==21970== Releasing lock... [2025-03-27 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:36:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-27 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:37:05 [end_date_ymd] => 2025-03-27 10:37:05 [RateCDR] => 1 ) [2025-03-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-03-27 07:37:05' and `end` < '2025-03-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-03-27 10:37:18] Production.INFO: count ==2749 [2025-03-27 10:37:19] Production.ERROR: pbx CDR StartTime 2025-03-27 07:37:05 - End Time 2025-03-27 10:37:05 [2025-03-27 10:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773603', 'tblTempUsageDetail_20' ) start [2025-03-27 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773603', 'tblTempUsageDetail_20' ) end [2025-03-27 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773603', 'tblTempVendorCDR_20' ) start [2025-03-27 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773603', 'tblTempVendorCDR_20' ) end [2025-03-27 10:37:19] Production.INFO: ProcessCDR(1,14773603,1,1,2) [2025-03-27 10:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773603', 'tblTempUsageDetail_20' ) start [2025-03-27 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773603', 'tblTempUsageDetail_20' ) end [2025-03-27 10:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:37:25] Production.INFO: ==22048== Releasing lock... [2025-03-27 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:37:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-27 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:38:05 [end_date_ymd] => 2025-03-27 10:38:05 [RateCDR] => 1 ) [2025-03-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-03-27 07:38:05' and `end` < '2025-03-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-03-27 10:38:19] Production.INFO: count ==2764 [2025-03-27 10:38:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:38:05 - End Time 2025-03-27 10:38:05 [2025-03-27 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773608', 'tblTempUsageDetail_20' ) start [2025-03-27 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773608', 'tblTempUsageDetail_20' ) end [2025-03-27 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773608', 'tblTempVendorCDR_20' ) start [2025-03-27 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773608', 'tblTempVendorCDR_20' ) end [2025-03-27 10:38:20] Production.INFO: ProcessCDR(1,14773608,1,1,2) [2025-03-27 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773608', 'tblTempUsageDetail_20' ) start [2025-03-27 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773608', 'tblTempUsageDetail_20' ) end [2025-03-27 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:38:25] Production.INFO: ==22133== Releasing lock... [2025-03-27 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:38:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-27 10:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:39:06 [end_date_ymd] => 2025-03-27 10:39:06 [RateCDR] => 1 ) [2025-03-27 10:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:39:06' and `end` < '2025-03-27 10:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:39:19] Production.INFO: count ==2785 [2025-03-27 10:39:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:39:06 - End Time 2025-03-27 10:39:06 [2025-03-27 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773613', 'tblTempUsageDetail_20' ) start [2025-03-27 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773613', 'tblTempUsageDetail_20' ) end [2025-03-27 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773613', 'tblTempVendorCDR_20' ) start [2025-03-27 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773613', 'tblTempVendorCDR_20' ) end [2025-03-27 10:39:20] Production.INFO: ProcessCDR(1,14773613,1,1,2) [2025-03-27 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773613', 'tblTempUsageDetail_20' ) start [2025-03-27 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773613', 'tblTempUsageDetail_20' ) end [2025-03-27 10:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:39:26] Production.INFO: ==22210== Releasing lock... [2025-03-27 10:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:39:26] Production.INFO: 49 MB #Memory Used# [2025-03-27 10:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:40:07 [end_date_ymd] => 2025-03-27 10:40:07 [RateCDR] => 1 ) [2025-03-27 10:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:40:07' and `end` < '2025-03-27 10:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:40:20] Production.INFO: count ==2814 [2025-03-27 10:40:21] Production.ERROR: pbx CDR StartTime 2025-03-27 07:40:07 - End Time 2025-03-27 10:40:07 [2025-03-27 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773619', 'tblTempUsageDetail_20' ) start [2025-03-27 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773619', 'tblTempUsageDetail_20' ) end [2025-03-27 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773619', 'tblTempVendorCDR_20' ) start [2025-03-27 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773619', 'tblTempVendorCDR_20' ) end [2025-03-27 10:40:21] Production.INFO: ProcessCDR(1,14773619,1,1,2) [2025-03-27 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773619', 'tblTempUsageDetail_20' ) start [2025-03-27 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773619', 'tblTempUsageDetail_20' ) end [2025-03-27 10:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:40:26] Production.INFO: ==22293== Releasing lock... [2025-03-27 10:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:40:26] Production.INFO: 49.25 MB #Memory Used# [2025-03-27 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:41:05 [end_date_ymd] => 2025-03-27 10:41:05 [RateCDR] => 1 ) [2025-03-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-03-27 07:41:05' and `end` < '2025-03-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-03-27 10:41:18] Production.INFO: count ==2922 [2025-03-27 10:41:19] Production.ERROR: pbx CDR StartTime 2025-03-27 07:41:05 - End Time 2025-03-27 10:41:05 [2025-03-27 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773624', 'tblTempUsageDetail_20' ) start [2025-03-27 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773624', 'tblTempUsageDetail_20' ) end [2025-03-27 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773624', 'tblTempVendorCDR_20' ) start [2025-03-27 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773624', 'tblTempVendorCDR_20' ) end [2025-03-27 10:41:19] Production.INFO: ProcessCDR(1,14773624,1,1,2) [2025-03-27 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773624', 'tblTempUsageDetail_20' ) start [2025-03-27 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773624', 'tblTempUsageDetail_20' ) end [2025-03-27 10:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:41:24] Production.INFO: ==22374== Releasing lock... [2025-03-27 10:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:41:24] Production.INFO: 50 MB #Memory Used# [2025-03-27 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:42:06 [end_date_ymd] => 2025-03-27 10:42:06 [RateCDR] => 1 ) [2025-03-27 10:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:42:06' and `end` < '2025-03-27 10:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:42:19] Production.INFO: count ==2941 [2025-03-27 10:42:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:42:06 - End Time 2025-03-27 10:42:06 [2025-03-27 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773629', 'tblTempUsageDetail_20' ) start [2025-03-27 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773629', 'tblTempUsageDetail_20' ) end [2025-03-27 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773629', 'tblTempVendorCDR_20' ) start [2025-03-27 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773629', 'tblTempVendorCDR_20' ) end [2025-03-27 10:42:20] Production.INFO: ProcessCDR(1,14773629,1,1,2) [2025-03-27 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773629', 'tblTempUsageDetail_20' ) start [2025-03-27 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773629', 'tblTempUsageDetail_20' ) end [2025-03-27 10:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:42:26] Production.INFO: ==22450== Releasing lock... [2025-03-27 10:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:42:26] Production.INFO: 49.75 MB #Memory Used# [2025-03-27 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:43:05 [end_date_ymd] => 2025-03-27 10:43:05 [RateCDR] => 1 ) [2025-03-27 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:43:05' and `end` < '2025-03-27 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:43:18] Production.INFO: count ==2960 [2025-03-27 10:43:19] Production.ERROR: pbx CDR StartTime 2025-03-27 07:43:05 - End Time 2025-03-27 10:43:05 [2025-03-27 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773634', 'tblTempUsageDetail_20' ) start [2025-03-27 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773634', 'tblTempUsageDetail_20' ) end [2025-03-27 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773634', 'tblTempVendorCDR_20' ) start [2025-03-27 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773634', 'tblTempVendorCDR_20' ) end [2025-03-27 10:43:19] Production.INFO: ProcessCDR(1,14773634,1,1,2) [2025-03-27 10:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773634', 'tblTempUsageDetail_20' ) start [2025-03-27 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773634', 'tblTempUsageDetail_20' ) end [2025-03-27 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:43:25] Production.INFO: ==22530== Releasing lock... [2025-03-27 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:43:25] Production.INFO: 49.75 MB #Memory Used# [2025-03-27 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:44:05 [end_date_ymd] => 2025-03-27 10:44:05 [RateCDR] => 1 ) [2025-03-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-03-27 07:44:05' and `end` < '2025-03-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-03-27 10:44:18] Production.INFO: count ==2974 [2025-03-27 10:44:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:44:05 - End Time 2025-03-27 10:44:05 [2025-03-27 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773639', 'tblTempUsageDetail_20' ) start [2025-03-27 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773639', 'tblTempUsageDetail_20' ) end [2025-03-27 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773639', 'tblTempVendorCDR_20' ) start [2025-03-27 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773639', 'tblTempVendorCDR_20' ) end [2025-03-27 10:44:20] Production.INFO: ProcessCDR(1,14773639,1,1,2) [2025-03-27 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773639', 'tblTempUsageDetail_20' ) start [2025-03-27 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773639', 'tblTempUsageDetail_20' ) end [2025-03-27 10:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:44:25] Production.INFO: ==22605== Releasing lock... [2025-03-27 10:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:44:25] Production.INFO: 50 MB #Memory Used# [2025-03-27 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:45:05 [end_date_ymd] => 2025-03-27 10:45:05 [RateCDR] => 1 ) [2025-03-27 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:45:05' and `end` < '2025-03-27 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:45:18] Production.INFO: count ==2985 [2025-03-27 10:45:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:45:05 - End Time 2025-03-27 10:45:05 [2025-03-27 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773644', 'tblTempUsageDetail_20' ) start [2025-03-27 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773644', 'tblTempUsageDetail_20' ) end [2025-03-27 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773644', 'tblTempVendorCDR_20' ) start [2025-03-27 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773644', 'tblTempVendorCDR_20' ) end [2025-03-27 10:45:20] Production.INFO: ProcessCDR(1,14773644,1,1,2) [2025-03-27 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773644', 'tblTempUsageDetail_20' ) start [2025-03-27 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773644', 'tblTempUsageDetail_20' ) end [2025-03-27 10:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:45:25] Production.INFO: ==22687== Releasing lock... [2025-03-27 10:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:45:25] Production.INFO: 50.75 MB #Memory Used# [2025-03-27 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:46:05 [end_date_ymd] => 2025-03-27 10:46:05 [RateCDR] => 1 ) [2025-03-27 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:46:05' and `end` < '2025-03-27 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:46:19] Production.INFO: count ==3004 [2025-03-27 10:46:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:46:05 - End Time 2025-03-27 10:46:05 [2025-03-27 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773649', 'tblTempUsageDetail_20' ) start [2025-03-27 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773649', 'tblTempUsageDetail_20' ) end [2025-03-27 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773649', 'tblTempVendorCDR_20' ) start [2025-03-27 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773649', 'tblTempVendorCDR_20' ) end [2025-03-27 10:46:20] Production.INFO: ProcessCDR(1,14773649,1,1,2) [2025-03-27 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773649', 'tblTempUsageDetail_20' ) start [2025-03-27 10:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773649', 'tblTempUsageDetail_20' ) end [2025-03-27 10:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:46:26] Production.INFO: ==22805== Releasing lock... [2025-03-27 10:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:46:26] Production.INFO: 50.5 MB #Memory Used# [2025-03-27 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:47:05 [end_date_ymd] => 2025-03-27 10:47:05 [RateCDR] => 1 ) [2025-03-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-03-27 07:47:05' and `end` < '2025-03-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-03-27 10:47:18] Production.INFO: count ==3021 [2025-03-27 10:47:19] Production.ERROR: pbx CDR StartTime 2025-03-27 07:47:05 - End Time 2025-03-27 10:47:05 [2025-03-27 10:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773654', 'tblTempUsageDetail_20' ) start [2025-03-27 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773654', 'tblTempUsageDetail_20' ) end [2025-03-27 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773654', 'tblTempVendorCDR_20' ) start [2025-03-27 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773654', 'tblTempVendorCDR_20' ) end [2025-03-27 10:47:19] Production.INFO: ProcessCDR(1,14773654,1,1,2) [2025-03-27 10:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773654', 'tblTempUsageDetail_20' ) start [2025-03-27 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773654', 'tblTempUsageDetail_20' ) end [2025-03-27 10:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:47:25] Production.INFO: ==22885== Releasing lock... [2025-03-27 10:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:47:25] Production.INFO: 50.75 MB #Memory Used# [2025-03-27 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:48:06 [end_date_ymd] => 2025-03-27 10:48:06 [RateCDR] => 1 ) [2025-03-27 10:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:48:06' and `end` < '2025-03-27 10:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:48:19] Production.INFO: count ==3051 [2025-03-27 10:48:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:48:06 - End Time 2025-03-27 10:48:06 [2025-03-27 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773659', 'tblTempUsageDetail_20' ) start [2025-03-27 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773659', 'tblTempUsageDetail_20' ) end [2025-03-27 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773659', 'tblTempVendorCDR_20' ) start [2025-03-27 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773659', 'tblTempVendorCDR_20' ) end [2025-03-27 10:48:21] Production.INFO: ProcessCDR(1,14773659,1,1,2) [2025-03-27 10:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773659', 'tblTempUsageDetail_20' ) start [2025-03-27 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773659', 'tblTempUsageDetail_20' ) end [2025-03-27 10:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:48:26] Production.INFO: ==22964== Releasing lock... [2025-03-27 10:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:48:26] Production.INFO: 51 MB #Memory Used# [2025-03-27 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:49:05 [end_date_ymd] => 2025-03-27 10:49:05 [RateCDR] => 1 ) [2025-03-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-03-27 07:49:05' and `end` < '2025-03-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-03-27 10:49:18] Production.INFO: count ==3093 [2025-03-27 10:49:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:49:05 - End Time 2025-03-27 10:49:05 [2025-03-27 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773664', 'tblTempUsageDetail_20' ) start [2025-03-27 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773664', 'tblTempUsageDetail_20' ) end [2025-03-27 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773664', 'tblTempVendorCDR_20' ) start [2025-03-27 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773664', 'tblTempVendorCDR_20' ) end [2025-03-27 10:49:20] Production.INFO: ProcessCDR(1,14773664,1,1,2) [2025-03-27 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773664', 'tblTempUsageDetail_20' ) start [2025-03-27 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773664', 'tblTempUsageDetail_20' ) end [2025-03-27 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:49:25] Production.INFO: ==23047== Releasing lock... [2025-03-27 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:49:25] Production.INFO: 51.5 MB #Memory Used# [2025-03-27 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:50:06 [end_date_ymd] => 2025-03-27 10:50:06 [RateCDR] => 1 ) [2025-03-27 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:50:06' and `end` < '2025-03-27 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:50:19] Production.INFO: count ==3117 [2025-03-27 10:50:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:50:06 - End Time 2025-03-27 10:50:06 [2025-03-27 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773670', 'tblTempUsageDetail_20' ) start [2025-03-27 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773670', 'tblTempUsageDetail_20' ) end [2025-03-27 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773670', 'tblTempVendorCDR_20' ) start [2025-03-27 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773670', 'tblTempVendorCDR_20' ) end [2025-03-27 10:50:20] Production.INFO: ProcessCDR(1,14773670,1,1,2) [2025-03-27 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773670', 'tblTempUsageDetail_20' ) start [2025-03-27 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773670', 'tblTempUsageDetail_20' ) end [2025-03-27 10:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:50:26] Production.INFO: ==23126== Releasing lock... [2025-03-27 10:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:50:26] Production.INFO: 51.25 MB #Memory Used# [2025-03-27 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:51:05 [end_date_ymd] => 2025-03-27 10:51:05 [RateCDR] => 1 ) [2025-03-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-03-27 07:51:05' and `end` < '2025-03-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-03-27 10:51:18] Production.INFO: count ==3264 [2025-03-27 10:51:19] Production.ERROR: pbx CDR StartTime 2025-03-27 07:51:05 - End Time 2025-03-27 10:51:05 [2025-03-27 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773675', 'tblTempUsageDetail_20' ) start [2025-03-27 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773675', 'tblTempUsageDetail_20' ) end [2025-03-27 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773675', 'tblTempVendorCDR_20' ) start [2025-03-27 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773675', 'tblTempVendorCDR_20' ) end [2025-03-27 10:51:19] Production.INFO: ProcessCDR(1,14773675,1,1,2) [2025-03-27 10:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773675', 'tblTempUsageDetail_20' ) start [2025-03-27 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773675', 'tblTempUsageDetail_20' ) end [2025-03-27 10:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:51:24] Production.INFO: ==23205== Releasing lock... [2025-03-27 10:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:51:24] Production.INFO: 53.25 MB #Memory Used# [2025-03-27 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:52:06 [end_date_ymd] => 2025-03-27 10:52:06 [RateCDR] => 1 ) [2025-03-27 10:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:52:06' and `end` < '2025-03-27 10:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:52:19] Production.INFO: count ==3305 [2025-03-27 10:52:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:52:06 - End Time 2025-03-27 10:52:06 [2025-03-27 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773680', 'tblTempUsageDetail_20' ) start [2025-03-27 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773680', 'tblTempUsageDetail_20' ) end [2025-03-27 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773680', 'tblTempVendorCDR_20' ) start [2025-03-27 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773680', 'tblTempVendorCDR_20' ) end [2025-03-27 10:52:20] Production.INFO: ProcessCDR(1,14773680,1,1,2) [2025-03-27 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773680', 'tblTempUsageDetail_20' ) start [2025-03-27 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773680', 'tblTempUsageDetail_20' ) end [2025-03-27 10:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:52:26] Production.INFO: ==23284== Releasing lock... [2025-03-27 10:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:52:26] Production.INFO: 53 MB #Memory Used# [2025-03-27 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:53:06 [end_date_ymd] => 2025-03-27 10:53:06 [RateCDR] => 1 ) [2025-03-27 10:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:53:06' and `end` < '2025-03-27 10:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:53:19] Production.INFO: count ==3328 [2025-03-27 10:53:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:53:06 - End Time 2025-03-27 10:53:06 [2025-03-27 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773685', 'tblTempUsageDetail_20' ) start [2025-03-27 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773685', 'tblTempUsageDetail_20' ) end [2025-03-27 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773685', 'tblTempVendorCDR_20' ) start [2025-03-27 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773685', 'tblTempVendorCDR_20' ) end [2025-03-27 10:53:20] Production.INFO: ProcessCDR(1,14773685,1,1,2) [2025-03-27 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773685', 'tblTempUsageDetail_20' ) start [2025-03-27 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773685', 'tblTempUsageDetail_20' ) end [2025-03-27 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:53:25] Production.INFO: ==23360== Releasing lock... [2025-03-27 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:53:25] Production.INFO: 53.25 MB #Memory Used# [2025-03-27 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:54:05 [end_date_ymd] => 2025-03-27 10:54:05 [RateCDR] => 1 ) [2025-03-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-03-27 07:54:05' and `end` < '2025-03-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-03-27 10:54:18] Production.INFO: count ==3345 [2025-03-27 10:54:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:54:05 - End Time 2025-03-27 10:54:05 [2025-03-27 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773690', 'tblTempUsageDetail_20' ) start [2025-03-27 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773690', 'tblTempUsageDetail_20' ) end [2025-03-27 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773690', 'tblTempVendorCDR_20' ) start [2025-03-27 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773690', 'tblTempVendorCDR_20' ) end [2025-03-27 10:54:20] Production.INFO: ProcessCDR(1,14773690,1,1,2) [2025-03-27 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773690', 'tblTempUsageDetail_20' ) start [2025-03-27 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773690', 'tblTempUsageDetail_20' ) end [2025-03-27 10:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:54:26] Production.INFO: ==23443== Releasing lock... [2025-03-27 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:54:26] Production.INFO: 53.25 MB #Memory Used# [2025-03-27 10:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:55:06 [end_date_ymd] => 2025-03-27 10:55:06 [RateCDR] => 1 ) [2025-03-27 10:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:55:06' and `end` < '2025-03-27 10:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:55:19] Production.INFO: count ==3356 [2025-03-27 10:55:21] Production.ERROR: pbx CDR StartTime 2025-03-27 07:55:06 - End Time 2025-03-27 10:55:06 [2025-03-27 10:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773695', 'tblTempUsageDetail_20' ) start [2025-03-27 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773695', 'tblTempUsageDetail_20' ) end [2025-03-27 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773695', 'tblTempVendorCDR_20' ) start [2025-03-27 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773695', 'tblTempVendorCDR_20' ) end [2025-03-27 10:55:21] Production.INFO: ProcessCDR(1,14773695,1,1,2) [2025-03-27 10:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773695', 'tblTempUsageDetail_20' ) start [2025-03-27 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773695', 'tblTempUsageDetail_20' ) end [2025-03-27 10:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:55:26] Production.INFO: ==23530== Releasing lock... [2025-03-27 10:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:55:26] Production.INFO: 53 MB #Memory Used# [2025-03-27 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:56:05 [end_date_ymd] => 2025-03-27 10:56:05 [RateCDR] => 1 ) [2025-03-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-03-27 07:56:05' and `end` < '2025-03-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-03-27 10:56:18] Production.INFO: count ==3358 [2025-03-27 10:56:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:56:05 - End Time 2025-03-27 10:56:05 [2025-03-27 10:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773700', 'tblTempUsageDetail_20' ) start [2025-03-27 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773700', 'tblTempUsageDetail_20' ) end [2025-03-27 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773700', 'tblTempVendorCDR_20' ) start [2025-03-27 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773700', 'tblTempVendorCDR_20' ) end [2025-03-27 10:56:20] Production.INFO: ProcessCDR(1,14773700,1,1,2) [2025-03-27 10:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773700', 'tblTempUsageDetail_20' ) start [2025-03-27 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773700', 'tblTempUsageDetail_20' ) end [2025-03-27 10:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:56:25] Production.INFO: ==23614== Releasing lock... [2025-03-27 10:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:56:25] Production.INFO: 54.25 MB #Memory Used# [2025-03-27 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:57:06 [end_date_ymd] => 2025-03-27 10:57:06 [RateCDR] => 1 ) [2025-03-27 10:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:57:06' and `end` < '2025-03-27 10:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:57:19] Production.INFO: count ==3375 [2025-03-27 10:57:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:57:06 - End Time 2025-03-27 10:57:06 [2025-03-27 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773705', 'tblTempUsageDetail_20' ) start [2025-03-27 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773705', 'tblTempUsageDetail_20' ) end [2025-03-27 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773705', 'tblTempVendorCDR_20' ) start [2025-03-27 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773705', 'tblTempVendorCDR_20' ) end [2025-03-27 10:57:20] Production.INFO: ProcessCDR(1,14773705,1,1,2) [2025-03-27 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773705', 'tblTempUsageDetail_20' ) start [2025-03-27 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773705', 'tblTempUsageDetail_20' ) end [2025-03-27 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:57:26] Production.INFO: ==23698== Releasing lock... [2025-03-27 10:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:57:26] Production.INFO: 54.25 MB #Memory Used# [2025-03-27 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:58:05 [end_date_ymd] => 2025-03-27 10:58:05 [RateCDR] => 1 ) [2025-03-27 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:58:05' and `end` < '2025-03-27 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:58:19] Production.INFO: count ==3390 [2025-03-27 10:58:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:58:05 - End Time 2025-03-27 10:58:05 [2025-03-27 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773710', 'tblTempUsageDetail_20' ) start [2025-03-27 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773710', 'tblTempUsageDetail_20' ) end [2025-03-27 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773710', 'tblTempVendorCDR_20' ) start [2025-03-27 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773710', 'tblTempVendorCDR_20' ) end [2025-03-27 10:58:20] Production.INFO: ProcessCDR(1,14773710,1,1,2) [2025-03-27 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773710', 'tblTempUsageDetail_20' ) start [2025-03-27 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773710', 'tblTempUsageDetail_20' ) end [2025-03-27 10:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:58:25] Production.INFO: ==23774== Releasing lock... [2025-03-27 10:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:58:25] Production.INFO: 53.5 MB #Memory Used# [2025-03-27 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 07:59:06 [end_date_ymd] => 2025-03-27 10:59:06 [RateCDR] => 1 ) [2025-03-27 10:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 07:59:06' and `end` < '2025-03-27 10:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 10:59:19] Production.INFO: count ==3402 [2025-03-27 10:59:20] Production.ERROR: pbx CDR StartTime 2025-03-27 07:59:06 - End Time 2025-03-27 10:59:06 [2025-03-27 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773715', 'tblTempUsageDetail_20' ) start [2025-03-27 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773715', 'tblTempUsageDetail_20' ) end [2025-03-27 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773715', 'tblTempVendorCDR_20' ) start [2025-03-27 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773715', 'tblTempVendorCDR_20' ) end [2025-03-27 10:59:20] Production.INFO: ProcessCDR(1,14773715,1,1,2) [2025-03-27 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 10:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773715', 'tblTempUsageDetail_20' ) start [2025-03-27 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773715', 'tblTempUsageDetail_20' ) end [2025-03-27 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 10:59:25] Production.INFO: ==23853== Releasing lock... [2025-03-27 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 10:59:25] Production.INFO: 53.5 MB #Memory Used# [2025-03-27 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:00:06 [end_date_ymd] => 2025-03-27 11:00:06 [RateCDR] => 1 ) [2025-03-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-03-27 08:00:06' and `end` < '2025-03-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-03-27 11:00:20] Production.INFO: count ==3415 [2025-03-27 11:00:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:00:06 - End Time 2025-03-27 11:00:06 [2025-03-27 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773721', 'tblTempUsageDetail_20' ) start [2025-03-27 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773721', 'tblTempUsageDetail_20' ) end [2025-03-27 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773721', 'tblTempVendorCDR_20' ) start [2025-03-27 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773721', 'tblTempVendorCDR_20' ) end [2025-03-27 11:00:21] Production.INFO: ProcessCDR(1,14773721,1,1,2) [2025-03-27 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773721', 'tblTempUsageDetail_20' ) start [2025-03-27 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773721', 'tblTempUsageDetail_20' ) end [2025-03-27 11:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:00:25] Production.INFO: ==23939== Releasing lock... [2025-03-27 11:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:00:25] Production.INFO: 53.5 MB #Memory Used# [2025-03-27 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:01:06 [end_date_ymd] => 2025-03-27 11:01:06 [RateCDR] => 1 ) [2025-03-27 11:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:01:06' and `end` < '2025-03-27 11:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:01:19] Production.INFO: count ==3504 [2025-03-27 11:01:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:01:06 - End Time 2025-03-27 11:01:06 [2025-03-27 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773726', 'tblTempUsageDetail_20' ) start [2025-03-27 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773726', 'tblTempUsageDetail_20' ) end [2025-03-27 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773726', 'tblTempVendorCDR_20' ) start [2025-03-27 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773726', 'tblTempVendorCDR_20' ) end [2025-03-27 11:01:21] Production.INFO: ProcessCDR(1,14773726,1,1,2) [2025-03-27 11:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773726', 'tblTempUsageDetail_20' ) start [2025-03-27 11:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773726', 'tblTempUsageDetail_20' ) end [2025-03-27 11:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:01:27] Production.INFO: ==24077== Releasing lock... [2025-03-27 11:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:01:27] Production.INFO: 54.25 MB #Memory Used# [2025-03-27 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:02:05 [end_date_ymd] => 2025-03-27 11:02:05 [RateCDR] => 1 ) [2025-03-27 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:02:05' and `end` < '2025-03-27 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:02:19] Production.INFO: count ==3518 [2025-03-27 11:02:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:02:05 - End Time 2025-03-27 11:02:05 [2025-03-27 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773731', 'tblTempUsageDetail_20' ) start [2025-03-27 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773731', 'tblTempUsageDetail_20' ) end [2025-03-27 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773731', 'tblTempVendorCDR_20' ) start [2025-03-27 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773731', 'tblTempVendorCDR_20' ) end [2025-03-27 11:02:21] Production.INFO: ProcessCDR(1,14773731,1,1,2) [2025-03-27 11:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773731', 'tblTempUsageDetail_20' ) start [2025-03-27 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773731', 'tblTempUsageDetail_20' ) end [2025-03-27 11:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:02:26] Production.INFO: ==24237== Releasing lock... [2025-03-27 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:02:26] Production.INFO: 54.25 MB #Memory Used# [2025-03-27 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:03:06 [end_date_ymd] => 2025-03-27 11:03:06 [RateCDR] => 1 ) [2025-03-27 11:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:03:06' and `end` < '2025-03-27 11:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:03:19] Production.INFO: count ==3534 [2025-03-27 11:03:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:03:06 - End Time 2025-03-27 11:03:06 [2025-03-27 11:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773736', 'tblTempUsageDetail_20' ) start [2025-03-27 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773736', 'tblTempUsageDetail_20' ) end [2025-03-27 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773736', 'tblTempVendorCDR_20' ) start [2025-03-27 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773736', 'tblTempVendorCDR_20' ) end [2025-03-27 11:03:21] Production.INFO: ProcessCDR(1,14773736,1,1,2) [2025-03-27 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773736', 'tblTempUsageDetail_20' ) start [2025-03-27 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773736', 'tblTempUsageDetail_20' ) end [2025-03-27 11:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:03:27] Production.INFO: ==24317== Releasing lock... [2025-03-27 11:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:03:27] Production.INFO: 54.5 MB #Memory Used# [2025-03-27 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:04:06 [end_date_ymd] => 2025-03-27 11:04:06 [RateCDR] => 1 ) [2025-03-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-03-27 08:04:06' and `end` < '2025-03-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-03-27 11:04:19] Production.INFO: count ==3551 [2025-03-27 11:04:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:04:06 - End Time 2025-03-27 11:04:06 [2025-03-27 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773741', 'tblTempUsageDetail_20' ) start [2025-03-27 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773741', 'tblTempUsageDetail_20' ) end [2025-03-27 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773741', 'tblTempVendorCDR_20' ) start [2025-03-27 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773741', 'tblTempVendorCDR_20' ) end [2025-03-27 11:04:21] Production.INFO: ProcessCDR(1,14773741,1,1,2) [2025-03-27 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773741', 'tblTempUsageDetail_20' ) start [2025-03-27 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773741', 'tblTempUsageDetail_20' ) end [2025-03-27 11:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:04:27] Production.INFO: ==24396== Releasing lock... [2025-03-27 11:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:04:27] Production.INFO: 54.5 MB #Memory Used# [2025-03-27 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:05:06 [end_date_ymd] => 2025-03-27 11:05:06 [RateCDR] => 1 ) [2025-03-27 11:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:05:06' and `end` < '2025-03-27 11:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:05:19] Production.INFO: count ==3570 [2025-03-27 11:05:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:05:06 - End Time 2025-03-27 11:05:06 [2025-03-27 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773746', 'tblTempUsageDetail_20' ) start [2025-03-27 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773746', 'tblTempUsageDetail_20' ) end [2025-03-27 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773746', 'tblTempVendorCDR_20' ) start [2025-03-27 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773746', 'tblTempVendorCDR_20' ) end [2025-03-27 11:05:21] Production.INFO: ProcessCDR(1,14773746,1,1,2) [2025-03-27 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773746', 'tblTempUsageDetail_20' ) start [2025-03-27 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773746', 'tblTempUsageDetail_20' ) end [2025-03-27 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:05:26] Production.INFO: ==24550== Releasing lock... [2025-03-27 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:05:26] Production.INFO: 54.75 MB #Memory Used# [2025-03-27 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:06:06 [end_date_ymd] => 2025-03-27 11:06:06 [RateCDR] => 1 ) [2025-03-27 11:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:06:06' and `end` < '2025-03-27 11:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:06:19] Production.INFO: count ==3576 [2025-03-27 11:06:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:06:06 - End Time 2025-03-27 11:06:06 [2025-03-27 11:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773751', 'tblTempUsageDetail_20' ) start [2025-03-27 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773751', 'tblTempUsageDetail_20' ) end [2025-03-27 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773751', 'tblTempVendorCDR_20' ) start [2025-03-27 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773751', 'tblTempVendorCDR_20' ) end [2025-03-27 11:06:21] Production.INFO: ProcessCDR(1,14773751,1,1,2) [2025-03-27 11:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773751', 'tblTempUsageDetail_20' ) start [2025-03-27 11:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773751', 'tblTempUsageDetail_20' ) end [2025-03-27 11:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:06:27] Production.INFO: ==24629== Releasing lock... [2025-03-27 11:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:06:27] Production.INFO: 54.75 MB #Memory Used# [2025-03-27 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:07:06 [end_date_ymd] => 2025-03-27 11:07:06 [RateCDR] => 1 ) [2025-03-27 11:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:07:06' and `end` < '2025-03-27 11:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:07:19] Production.INFO: count ==3585 [2025-03-27 11:07:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:07:06 - End Time 2025-03-27 11:07:06 [2025-03-27 11:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773756', 'tblTempUsageDetail_20' ) start [2025-03-27 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773756', 'tblTempUsageDetail_20' ) end [2025-03-27 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773756', 'tblTempVendorCDR_20' ) start [2025-03-27 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773756', 'tblTempVendorCDR_20' ) end [2025-03-27 11:07:21] Production.INFO: ProcessCDR(1,14773756,1,1,2) [2025-03-27 11:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773756', 'tblTempUsageDetail_20' ) start [2025-03-27 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773756', 'tblTempUsageDetail_20' ) end [2025-03-27 11:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:07:27] Production.INFO: ==24701== Releasing lock... [2025-03-27 11:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:07:27] Production.INFO: 55.75 MB #Memory Used# [2025-03-27 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:08:06 [end_date_ymd] => 2025-03-27 11:08:06 [RateCDR] => 1 ) [2025-03-27 11:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:08:06' and `end` < '2025-03-27 11:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:08:19] Production.INFO: count ==3598 [2025-03-27 11:08:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:08:06 - End Time 2025-03-27 11:08:06 [2025-03-27 11:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773761', 'tblTempUsageDetail_20' ) start [2025-03-27 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773761', 'tblTempUsageDetail_20' ) end [2025-03-27 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773761', 'tblTempVendorCDR_20' ) start [2025-03-27 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773761', 'tblTempVendorCDR_20' ) end [2025-03-27 11:08:21] Production.INFO: ProcessCDR(1,14773761,1,1,2) [2025-03-27 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773761', 'tblTempUsageDetail_20' ) start [2025-03-27 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773761', 'tblTempUsageDetail_20' ) end [2025-03-27 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:08:27] Production.INFO: ==24858== Releasing lock... [2025-03-27 11:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:08:27] Production.INFO: 56.5 MB #Memory Used# [2025-03-27 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:09:06 [end_date_ymd] => 2025-03-27 11:09:06 [RateCDR] => 1 ) [2025-03-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-03-27 08:09:06' and `end` < '2025-03-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-03-27 11:09:19] Production.INFO: count ==3605 [2025-03-27 11:09:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:09:06 - End Time 2025-03-27 11:09:06 [2025-03-27 11:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773766', 'tblTempUsageDetail_20' ) start [2025-03-27 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773766', 'tblTempUsageDetail_20' ) end [2025-03-27 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773766', 'tblTempVendorCDR_20' ) start [2025-03-27 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773766', 'tblTempVendorCDR_20' ) end [2025-03-27 11:09:21] Production.INFO: ProcessCDR(1,14773766,1,1,2) [2025-03-27 11:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773766', 'tblTempUsageDetail_20' ) start [2025-03-27 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773766', 'tblTempUsageDetail_20' ) end [2025-03-27 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:09:27] Production.INFO: ==24930== Releasing lock... [2025-03-27 11:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:09:27] Production.INFO: 55.5 MB #Memory Used# [2025-03-27 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:10:05 [end_date_ymd] => 2025-03-27 11:10:05 [RateCDR] => 1 ) [2025-03-27 11:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:10:05' and `end` < '2025-03-27 11:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:10:18] Production.INFO: count ==3597 [2025-03-27 11:10:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:10:05 - End Time 2025-03-27 11:10:05 [2025-03-27 11:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773768', 'tblTempUsageDetail_20' ) start [2025-03-27 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773768', 'tblTempUsageDetail_20' ) end [2025-03-27 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773768', 'tblTempVendorCDR_20' ) start [2025-03-27 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773768', 'tblTempVendorCDR_20' ) end [2025-03-27 11:10:20] Production.INFO: ProcessCDR(1,14773768,1,1,2) [2025-03-27 11:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773768', 'tblTempUsageDetail_20' ) start [2025-03-27 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773768', 'tblTempUsageDetail_20' ) end [2025-03-27 11:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:10:26] Production.INFO: ==25006== Releasing lock... [2025-03-27 11:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:10:26] Production.INFO: 55 MB #Memory Used# [2025-03-27 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:11:06 [end_date_ymd] => 2025-03-27 11:11:06 [RateCDR] => 1 ) [2025-03-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-03-27 08:11:06' and `end` < '2025-03-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-03-27 11:11:19] Production.INFO: count ==3656 [2025-03-27 11:11:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:11:06 - End Time 2025-03-27 11:11:06 [2025-03-27 11:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773777', 'tblTempUsageDetail_20' ) start [2025-03-27 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773777', 'tblTempUsageDetail_20' ) end [2025-03-27 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773777', 'tblTempVendorCDR_20' ) start [2025-03-27 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773777', 'tblTempVendorCDR_20' ) end [2025-03-27 11:11:21] Production.INFO: ProcessCDR(1,14773777,1,1,2) [2025-03-27 11:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773777', 'tblTempUsageDetail_20' ) start [2025-03-27 11:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773777', 'tblTempUsageDetail_20' ) end [2025-03-27 11:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:11:27] Production.INFO: ==25084== Releasing lock... [2025-03-27 11:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:11:27] Production.INFO: 55.25 MB #Memory Used# [2025-03-27 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:12:06 [end_date_ymd] => 2025-03-27 11:12:06 [RateCDR] => 1 ) [2025-03-27 11:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:12:06' and `end` < '2025-03-27 11:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:12:19] Production.INFO: count ==3660 [2025-03-27 11:12:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:12:06 - End Time 2025-03-27 11:12:06 [2025-03-27 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773782', 'tblTempUsageDetail_20' ) start [2025-03-27 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773782', 'tblTempUsageDetail_20' ) end [2025-03-27 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773782', 'tblTempVendorCDR_20' ) start [2025-03-27 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773782', 'tblTempVendorCDR_20' ) end [2025-03-27 11:12:21] Production.INFO: ProcessCDR(1,14773782,1,1,2) [2025-03-27 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773782', 'tblTempUsageDetail_20' ) start [2025-03-27 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773782', 'tblTempUsageDetail_20' ) end [2025-03-27 11:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:12:26] Production.INFO: ==25234== Releasing lock... [2025-03-27 11:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:12:26] Production.INFO: 56 MB #Memory Used# [2025-03-27 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:13:06 [end_date_ymd] => 2025-03-27 11:13:06 [RateCDR] => 1 ) [2025-03-27 11:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:13:06' and `end` < '2025-03-27 11:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:13:20] Production.INFO: count ==3668 [2025-03-27 11:13:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:13:06 - End Time 2025-03-27 11:13:06 [2025-03-27 11:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773787', 'tblTempUsageDetail_20' ) start [2025-03-27 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773787', 'tblTempUsageDetail_20' ) end [2025-03-27 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773787', 'tblTempVendorCDR_20' ) start [2025-03-27 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773787', 'tblTempVendorCDR_20' ) end [2025-03-27 11:13:21] Production.INFO: ProcessCDR(1,14773787,1,1,2) [2025-03-27 11:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773787', 'tblTempUsageDetail_20' ) start [2025-03-27 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773787', 'tblTempUsageDetail_20' ) end [2025-03-27 11:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:13:27] Production.INFO: ==25309== Releasing lock... [2025-03-27 11:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:13:27] Production.INFO: 55.5 MB #Memory Used# [2025-03-27 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:14:05 [end_date_ymd] => 2025-03-27 11:14:05 [RateCDR] => 1 ) [2025-03-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-03-27 08:14:05' and `end` < '2025-03-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-03-27 11:14:19] Production.INFO: count ==3702 [2025-03-27 11:14:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:14:05 - End Time 2025-03-27 11:14:05 [2025-03-27 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773792', 'tblTempUsageDetail_20' ) start [2025-03-27 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773792', 'tblTempUsageDetail_20' ) end [2025-03-27 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773792', 'tblTempVendorCDR_20' ) start [2025-03-27 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773792', 'tblTempVendorCDR_20' ) end [2025-03-27 11:14:21] Production.INFO: ProcessCDR(1,14773792,1,1,2) [2025-03-27 11:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773792', 'tblTempUsageDetail_20' ) start [2025-03-27 11:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773792', 'tblTempUsageDetail_20' ) end [2025-03-27 11:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:14:27] Production.INFO: ==25390== Releasing lock... [2025-03-27 11:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:14:27] Production.INFO: 55.75 MB #Memory Used# [2025-03-27 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:15:06 [end_date_ymd] => 2025-03-27 11:15:06 [RateCDR] => 1 ) [2025-03-27 11:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:15:06' and `end` < '2025-03-27 11:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:15:19] Production.INFO: count ==3728 [2025-03-27 11:15:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:15:06 - End Time 2025-03-27 11:15:06 [2025-03-27 11:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773797', 'tblTempUsageDetail_20' ) start [2025-03-27 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773797', 'tblTempUsageDetail_20' ) end [2025-03-27 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773797', 'tblTempVendorCDR_20' ) start [2025-03-27 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773797', 'tblTempVendorCDR_20' ) end [2025-03-27 11:15:21] Production.INFO: ProcessCDR(1,14773797,1,1,2) [2025-03-27 11:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773797', 'tblTempUsageDetail_20' ) start [2025-03-27 11:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773797', 'tblTempUsageDetail_20' ) end [2025-03-27 11:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:15:27] Production.INFO: ==25544== Releasing lock... [2025-03-27 11:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:15:27] Production.INFO: 56 MB #Memory Used# [2025-03-27 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:16:06 [end_date_ymd] => 2025-03-27 11:16:06 [RateCDR] => 1 ) [2025-03-27 11:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:16:06' and `end` < '2025-03-27 11:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:16:19] Production.INFO: count ==3740 [2025-03-27 11:16:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:16:06 - End Time 2025-03-27 11:16:06 [2025-03-27 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773802', 'tblTempUsageDetail_20' ) start [2025-03-27 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773802', 'tblTempUsageDetail_20' ) end [2025-03-27 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773802', 'tblTempVendorCDR_20' ) start [2025-03-27 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773802', 'tblTempVendorCDR_20' ) end [2025-03-27 11:16:21] Production.INFO: ProcessCDR(1,14773802,1,1,2) [2025-03-27 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773802', 'tblTempUsageDetail_20' ) start [2025-03-27 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773802', 'tblTempUsageDetail_20' ) end [2025-03-27 11:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:16:27] Production.INFO: ==25616== Releasing lock... [2025-03-27 11:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:16:27] Production.INFO: 56.5 MB #Memory Used# [2025-03-27 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:17:06 [end_date_ymd] => 2025-03-27 11:17:06 [RateCDR] => 1 ) [2025-03-27 11:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:17:06' and `end` < '2025-03-27 11:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:17:20] Production.INFO: count ==3754 [2025-03-27 11:17:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:17:06 - End Time 2025-03-27 11:17:06 [2025-03-27 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773807', 'tblTempUsageDetail_20' ) start [2025-03-27 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773807', 'tblTempUsageDetail_20' ) end [2025-03-27 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773807', 'tblTempVendorCDR_20' ) start [2025-03-27 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773807', 'tblTempVendorCDR_20' ) end [2025-03-27 11:17:21] Production.INFO: ProcessCDR(1,14773807,1,1,2) [2025-03-27 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773807', 'tblTempUsageDetail_20' ) start [2025-03-27 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773807', 'tblTempUsageDetail_20' ) end [2025-03-27 11:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:17:27] Production.INFO: ==25726== Releasing lock... [2025-03-27 11:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:17:27] Production.INFO: 56.25 MB #Memory Used# [2025-03-27 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:18:06 [end_date_ymd] => 2025-03-27 11:18:06 [RateCDR] => 1 ) [2025-03-27 11:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:18:06' and `end` < '2025-03-27 11:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:18:19] Production.INFO: count ==3768 [2025-03-27 11:18:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:18:06 - End Time 2025-03-27 11:18:06 [2025-03-27 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773812', 'tblTempUsageDetail_20' ) start [2025-03-27 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773812', 'tblTempUsageDetail_20' ) end [2025-03-27 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773812', 'tblTempVendorCDR_20' ) start [2025-03-27 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773812', 'tblTempVendorCDR_20' ) end [2025-03-27 11:18:21] Production.INFO: ProcessCDR(1,14773812,1,1,2) [2025-03-27 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773812', 'tblTempUsageDetail_20' ) start [2025-03-27 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773812', 'tblTempUsageDetail_20' ) end [2025-03-27 11:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:18:26] Production.INFO: ==25797== Releasing lock... [2025-03-27 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:18:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-27 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:19:05 [end_date_ymd] => 2025-03-27 11:19:05 [RateCDR] => 1 ) [2025-03-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-03-27 08:19:05' and `end` < '2025-03-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-03-27 11:19:19] Production.INFO: count ==3794 [2025-03-27 11:19:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:19:05 - End Time 2025-03-27 11:19:05 [2025-03-27 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773817', 'tblTempUsageDetail_20' ) start [2025-03-27 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773817', 'tblTempUsageDetail_20' ) end [2025-03-27 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773817', 'tblTempVendorCDR_20' ) start [2025-03-27 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773817', 'tblTempVendorCDR_20' ) end [2025-03-27 11:19:21] Production.INFO: ProcessCDR(1,14773817,1,1,2) [2025-03-27 11:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773817', 'tblTempUsageDetail_20' ) start [2025-03-27 11:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773817', 'tblTempUsageDetail_20' ) end [2025-03-27 11:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:19:27] Production.INFO: ==25870== Releasing lock... [2025-03-27 11:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:19:27] Production.INFO: 56.5 MB #Memory Used# [2025-03-27 11:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:20:07 [end_date_ymd] => 2025-03-27 11:20:07 [RateCDR] => 1 ) [2025-03-27 11:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:20:07' and `end` < '2025-03-27 11:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:20:21] Production.INFO: count ==3827 [2025-03-27 11:20:23] Production.ERROR: pbx CDR StartTime 2025-03-27 08:20:07 - End Time 2025-03-27 11:20:07 [2025-03-27 11:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773823', 'tblTempUsageDetail_20' ) start [2025-03-27 11:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773823', 'tblTempUsageDetail_20' ) end [2025-03-27 11:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773823', 'tblTempVendorCDR_20' ) start [2025-03-27 11:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773823', 'tblTempVendorCDR_20' ) end [2025-03-27 11:20:23] Production.INFO: ProcessCDR(1,14773823,1,1,2) [2025-03-27 11:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773823', 'tblTempUsageDetail_20' ) start [2025-03-27 11:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773823', 'tblTempUsageDetail_20' ) end [2025-03-27 11:20:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:20:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:20:29] Production.INFO: ==25945== Releasing lock... [2025-03-27 11:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:20:29] Production.INFO: 57.25 MB #Memory Used# [2025-03-27 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:21:05 [end_date_ymd] => 2025-03-27 11:21:05 [RateCDR] => 1 ) [2025-03-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-03-27 08:21:05' and `end` < '2025-03-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-03-27 11:21:18] Production.INFO: count ==3927 [2025-03-27 11:21:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:21:05 - End Time 2025-03-27 11:21:05 [2025-03-27 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773828', 'tblTempUsageDetail_20' ) start [2025-03-27 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773828', 'tblTempUsageDetail_20' ) end [2025-03-27 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773828', 'tblTempVendorCDR_20' ) start [2025-03-27 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773828', 'tblTempVendorCDR_20' ) end [2025-03-27 11:21:20] Production.INFO: ProcessCDR(1,14773828,1,1,2) [2025-03-27 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773828', 'tblTempUsageDetail_20' ) start [2025-03-27 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773828', 'tblTempUsageDetail_20' ) end [2025-03-27 11:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:21:26] Production.INFO: ==26019== Releasing lock... [2025-03-27 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:21:26] Production.INFO: 57.25 MB #Memory Used# [2025-03-27 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:22:05 [end_date_ymd] => 2025-03-27 11:22:05 [RateCDR] => 1 ) [2025-03-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-03-27 08:22:05' and `end` < '2025-03-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-03-27 11:22:19] Production.INFO: count ==3939 [2025-03-27 11:22:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:22:05 - End Time 2025-03-27 11:22:05 [2025-03-27 11:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773833', 'tblTempUsageDetail_20' ) start [2025-03-27 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773833', 'tblTempUsageDetail_20' ) end [2025-03-27 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773833', 'tblTempVendorCDR_20' ) start [2025-03-27 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773833', 'tblTempVendorCDR_20' ) end [2025-03-27 11:22:21] Production.INFO: ProcessCDR(1,14773833,1,1,2) [2025-03-27 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773833', 'tblTempUsageDetail_20' ) start [2025-03-27 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773833', 'tblTempUsageDetail_20' ) end [2025-03-27 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:22:26] Production.INFO: ==26094== Releasing lock... [2025-03-27 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:22:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-27 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:23:05 [end_date_ymd] => 2025-03-27 11:23:05 [RateCDR] => 1 ) [2025-03-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-03-27 08:23:05' and `end` < '2025-03-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-03-27 11:23:19] Production.INFO: count ==3948 [2025-03-27 11:23:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:23:05 - End Time 2025-03-27 11:23:05 [2025-03-27 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773838', 'tblTempUsageDetail_20' ) start [2025-03-27 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773838', 'tblTempUsageDetail_20' ) end [2025-03-27 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773838', 'tblTempVendorCDR_20' ) start [2025-03-27 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773838', 'tblTempVendorCDR_20' ) end [2025-03-27 11:23:20] Production.INFO: ProcessCDR(1,14773838,1,1,2) [2025-03-27 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773838', 'tblTempUsageDetail_20' ) start [2025-03-27 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773838', 'tblTempUsageDetail_20' ) end [2025-03-27 11:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:23:26] Production.INFO: ==26165== Releasing lock... [2025-03-27 11:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:23:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-27 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:24:06 [end_date_ymd] => 2025-03-27 11:24:06 [RateCDR] => 1 ) [2025-03-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-03-27 08:24:06' and `end` < '2025-03-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-03-27 11:24:20] Production.INFO: count ==3960 [2025-03-27 11:24:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:24:06 - End Time 2025-03-27 11:24:06 [2025-03-27 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773843', 'tblTempUsageDetail_20' ) start [2025-03-27 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773843', 'tblTempUsageDetail_20' ) end [2025-03-27 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773843', 'tblTempVendorCDR_20' ) start [2025-03-27 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773843', 'tblTempVendorCDR_20' ) end [2025-03-27 11:24:21] Production.INFO: ProcessCDR(1,14773843,1,1,2) [2025-03-27 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773843', 'tblTempUsageDetail_20' ) start [2025-03-27 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773843', 'tblTempUsageDetail_20' ) end [2025-03-27 11:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:24:27] Production.INFO: ==26238== Releasing lock... [2025-03-27 11:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:24:27] Production.INFO: 57.5 MB #Memory Used# [2025-03-27 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:25:05 [end_date_ymd] => 2025-03-27 11:25:05 [RateCDR] => 1 ) [2025-03-27 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:25:05' and `end` < '2025-03-27 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:25:18] Production.INFO: count ==3967 [2025-03-27 11:25:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:25:05 - End Time 2025-03-27 11:25:05 [2025-03-27 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773848', 'tblTempUsageDetail_20' ) start [2025-03-27 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773848', 'tblTempUsageDetail_20' ) end [2025-03-27 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773848', 'tblTempVendorCDR_20' ) start [2025-03-27 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773848', 'tblTempVendorCDR_20' ) end [2025-03-27 11:25:20] Production.INFO: ProcessCDR(1,14773848,1,1,2) [2025-03-27 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773848', 'tblTempUsageDetail_20' ) start [2025-03-27 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773848', 'tblTempUsageDetail_20' ) end [2025-03-27 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:25:25] Production.INFO: ==26310== Releasing lock... [2025-03-27 11:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:25:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-27 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:26:06 [end_date_ymd] => 2025-03-27 11:26:06 [RateCDR] => 1 ) [2025-03-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-03-27 08:26:06' and `end` < '2025-03-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-03-27 11:26:19] Production.INFO: count ==3997 [2025-03-27 11:26:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:26:06 - End Time 2025-03-27 11:26:06 [2025-03-27 11:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773853', 'tblTempUsageDetail_20' ) start [2025-03-27 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773853', 'tblTempUsageDetail_20' ) end [2025-03-27 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773853', 'tblTempVendorCDR_20' ) start [2025-03-27 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773853', 'tblTempVendorCDR_20' ) end [2025-03-27 11:26:21] Production.INFO: ProcessCDR(1,14773853,1,1,2) [2025-03-27 11:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773853', 'tblTempUsageDetail_20' ) start [2025-03-27 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773853', 'tblTempUsageDetail_20' ) end [2025-03-27 11:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:26:26] Production.INFO: ==26380== Releasing lock... [2025-03-27 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:26:26] Production.INFO: 57.75 MB #Memory Used# [2025-03-27 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:27:05 [end_date_ymd] => 2025-03-27 11:27:05 [RateCDR] => 1 ) [2025-03-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-03-27 08:27:05' and `end` < '2025-03-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-03-27 11:27:18] Production.INFO: count ==4012 [2025-03-27 11:27:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:27:05 - End Time 2025-03-27 11:27:05 [2025-03-27 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773858', 'tblTempUsageDetail_20' ) start [2025-03-27 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773858', 'tblTempUsageDetail_20' ) end [2025-03-27 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773858', 'tblTempVendorCDR_20' ) start [2025-03-27 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773858', 'tblTempVendorCDR_20' ) end [2025-03-27 11:27:20] Production.INFO: ProcessCDR(1,14773858,1,1,2) [2025-03-27 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773858', 'tblTempUsageDetail_20' ) start [2025-03-27 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773858', 'tblTempUsageDetail_20' ) end [2025-03-27 11:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:27:26] Production.INFO: ==26455== Releasing lock... [2025-03-27 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:27:26] Production.INFO: 58 MB #Memory Used# [2025-03-27 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:28:06 [end_date_ymd] => 2025-03-27 11:28:06 [RateCDR] => 1 ) [2025-03-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-03-27 08:28:06' and `end` < '2025-03-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-03-27 11:28:19] Production.INFO: count ==4020 [2025-03-27 11:28:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:28:06 - End Time 2025-03-27 11:28:06 [2025-03-27 11:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773863', 'tblTempUsageDetail_20' ) start [2025-03-27 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773863', 'tblTempUsageDetail_20' ) end [2025-03-27 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773863', 'tblTempVendorCDR_20' ) start [2025-03-27 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773863', 'tblTempVendorCDR_20' ) end [2025-03-27 11:28:21] Production.INFO: ProcessCDR(1,14773863,1,1,2) [2025-03-27 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773863', 'tblTempUsageDetail_20' ) start [2025-03-27 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773863', 'tblTempUsageDetail_20' ) end [2025-03-27 11:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:28:26] Production.INFO: ==26531== Releasing lock... [2025-03-27 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:28:26] Production.INFO: 58 MB #Memory Used# [2025-03-27 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:29:05 [end_date_ymd] => 2025-03-27 11:29:05 [RateCDR] => 1 ) [2025-03-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-03-27 08:29:05' and `end` < '2025-03-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-03-27 11:29:18] Production.INFO: count ==4037 [2025-03-27 11:29:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:29:05 - End Time 2025-03-27 11:29:05 [2025-03-27 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773868', 'tblTempUsageDetail_20' ) start [2025-03-27 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773868', 'tblTempUsageDetail_20' ) end [2025-03-27 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773868', 'tblTempVendorCDR_20' ) start [2025-03-27 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773868', 'tblTempVendorCDR_20' ) end [2025-03-27 11:29:20] Production.INFO: ProcessCDR(1,14773868,1,1,2) [2025-03-27 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773868', 'tblTempUsageDetail_20' ) start [2025-03-27 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773868', 'tblTempUsageDetail_20' ) end [2025-03-27 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:29:25] Production.INFO: ==26600== Releasing lock... [2025-03-27 11:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:29:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-27 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:30:06 [end_date_ymd] => 2025-03-27 11:30:06 [RateCDR] => 1 ) [2025-03-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-03-27 08:30:06' and `end` < '2025-03-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-03-27 11:30:19] Production.INFO: count ==4079 [2025-03-27 11:30:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:30:06 - End Time 2025-03-27 11:30:06 [2025-03-27 11:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773873', 'tblTempUsageDetail_20' ) start [2025-03-27 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773873', 'tblTempUsageDetail_20' ) end [2025-03-27 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773873', 'tblTempVendorCDR_20' ) start [2025-03-27 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773873', 'tblTempVendorCDR_20' ) end [2025-03-27 11:30:22] Production.INFO: ProcessCDR(1,14773873,1,1,2) [2025-03-27 11:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773873', 'tblTempUsageDetail_20' ) start [2025-03-27 11:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773873', 'tblTempUsageDetail_20' ) end [2025-03-27 11:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:30:28] Production.INFO: ==26681== Releasing lock... [2025-03-27 11:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:30:28] Production.INFO: 58.5 MB #Memory Used# [2025-03-27 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:31:05 [end_date_ymd] => 2025-03-27 11:31:05 [RateCDR] => 1 ) [2025-03-27 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:31:05' and `end` < '2025-03-27 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:31:18] Production.INFO: count ==4194 [2025-03-27 11:31:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:31:05 - End Time 2025-03-27 11:31:05 [2025-03-27 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773879', 'tblTempUsageDetail_20' ) start [2025-03-27 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773879', 'tblTempUsageDetail_20' ) end [2025-03-27 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773879', 'tblTempVendorCDR_20' ) start [2025-03-27 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773879', 'tblTempVendorCDR_20' ) end [2025-03-27 11:31:20] Production.INFO: ProcessCDR(1,14773879,1,1,2) [2025-03-27 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773879', 'tblTempUsageDetail_20' ) start [2025-03-27 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773879', 'tblTempUsageDetail_20' ) end [2025-03-27 11:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:31:26] Production.INFO: ==26755== Releasing lock... [2025-03-27 11:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:31:26] Production.INFO: 59.5 MB #Memory Used# [2025-03-27 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:32:06 [end_date_ymd] => 2025-03-27 11:32:06 [RateCDR] => 1 ) [2025-03-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-03-27 08:32:06' and `end` < '2025-03-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-03-27 11:32:19] Production.INFO: count ==4240 [2025-03-27 11:32:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:32:06 - End Time 2025-03-27 11:32:06 [2025-03-27 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773884', 'tblTempUsageDetail_20' ) start [2025-03-27 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773884', 'tblTempUsageDetail_20' ) end [2025-03-27 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773884', 'tblTempVendorCDR_20' ) start [2025-03-27 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773884', 'tblTempVendorCDR_20' ) end [2025-03-27 11:32:21] Production.INFO: ProcessCDR(1,14773884,1,1,2) [2025-03-27 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773884', 'tblTempUsageDetail_20' ) start [2025-03-27 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773884', 'tblTempUsageDetail_20' ) end [2025-03-27 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:32:26] Production.INFO: ==26828== Releasing lock... [2025-03-27 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:32:26] Production.INFO: 59.75 MB #Memory Used# [2025-03-27 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:33:05 [end_date_ymd] => 2025-03-27 11:33:05 [RateCDR] => 1 ) [2025-03-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-03-27 08:33:05' and `end` < '2025-03-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-03-27 11:33:18] Production.INFO: count ==4258 [2025-03-27 11:33:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:33:05 - End Time 2025-03-27 11:33:05 [2025-03-27 11:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773889', 'tblTempUsageDetail_20' ) start [2025-03-27 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773889', 'tblTempUsageDetail_20' ) end [2025-03-27 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773889', 'tblTempVendorCDR_20' ) start [2025-03-27 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773889', 'tblTempVendorCDR_20' ) end [2025-03-27 11:33:20] Production.INFO: ProcessCDR(1,14773889,1,1,2) [2025-03-27 11:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773889', 'tblTempUsageDetail_20' ) start [2025-03-27 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773889', 'tblTempUsageDetail_20' ) end [2025-03-27 11:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:33:26] Production.INFO: ==26940== Releasing lock... [2025-03-27 11:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:33:26] Production.INFO: 59.75 MB #Memory Used# [2025-03-27 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:34:05 [end_date_ymd] => 2025-03-27 11:34:05 [RateCDR] => 1 ) [2025-03-27 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:34:05' and `end` < '2025-03-27 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:34:19] Production.INFO: count ==4295 [2025-03-27 11:34:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:34:05 - End Time 2025-03-27 11:34:05 [2025-03-27 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773894', 'tblTempUsageDetail_20' ) start [2025-03-27 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773894', 'tblTempUsageDetail_20' ) end [2025-03-27 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773894', 'tblTempVendorCDR_20' ) start [2025-03-27 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773894', 'tblTempVendorCDR_20' ) end [2025-03-27 11:34:21] Production.INFO: ProcessCDR(1,14773894,1,1,2) [2025-03-27 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773894', 'tblTempUsageDetail_20' ) start [2025-03-27 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773894', 'tblTempUsageDetail_20' ) end [2025-03-27 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:34:26] Production.INFO: ==27019== Releasing lock... [2025-03-27 11:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:34:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-27 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:35:05 [end_date_ymd] => 2025-03-27 11:35:05 [RateCDR] => 1 ) [2025-03-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-03-27 08:35:05' and `end` < '2025-03-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-03-27 11:35:18] Production.INFO: count ==4340 [2025-03-27 11:35:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:35:05 - End Time 2025-03-27 11:35:05 [2025-03-27 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773899', 'tblTempUsageDetail_20' ) start [2025-03-27 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773899', 'tblTempUsageDetail_20' ) end [2025-03-27 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773899', 'tblTempVendorCDR_20' ) start [2025-03-27 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773899', 'tblTempVendorCDR_20' ) end [2025-03-27 11:35:20] Production.INFO: ProcessCDR(1,14773899,1,1,2) [2025-03-27 11:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773899', 'tblTempUsageDetail_20' ) start [2025-03-27 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773899', 'tblTempUsageDetail_20' ) end [2025-03-27 11:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:35:26] Production.INFO: ==27111== Releasing lock... [2025-03-27 11:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:35:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-27 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:36:05 [end_date_ymd] => 2025-03-27 11:36:05 [RateCDR] => 1 ) [2025-03-27 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:36:05' and `end` < '2025-03-27 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:36:19] Production.INFO: count ==4375 [2025-03-27 11:36:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:36:05 - End Time 2025-03-27 11:36:05 [2025-03-27 11:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773904', 'tblTempUsageDetail_20' ) start [2025-03-27 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773904', 'tblTempUsageDetail_20' ) end [2025-03-27 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773904', 'tblTempVendorCDR_20' ) start [2025-03-27 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773904', 'tblTempVendorCDR_20' ) end [2025-03-27 11:36:21] Production.INFO: ProcessCDR(1,14773904,1,1,2) [2025-03-27 11:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773904', 'tblTempUsageDetail_20' ) start [2025-03-27 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773904', 'tblTempUsageDetail_20' ) end [2025-03-27 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:36:26] Production.INFO: ==27182== Releasing lock... [2025-03-27 11:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:36:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-27 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:37:05 [end_date_ymd] => 2025-03-27 11:37:05 [RateCDR] => 1 ) [2025-03-27 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:37:05' and `end` < '2025-03-27 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:37:18] Production.INFO: count ==4405 [2025-03-27 11:37:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:37:05 - End Time 2025-03-27 11:37:05 [2025-03-27 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773909', 'tblTempUsageDetail_20' ) start [2025-03-27 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773909', 'tblTempUsageDetail_20' ) end [2025-03-27 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773909', 'tblTempVendorCDR_20' ) start [2025-03-27 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773909', 'tblTempVendorCDR_20' ) end [2025-03-27 11:37:20] Production.INFO: ProcessCDR(1,14773909,1,1,2) [2025-03-27 11:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773909', 'tblTempUsageDetail_20' ) start [2025-03-27 11:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773909', 'tblTempUsageDetail_20' ) end [2025-03-27 11:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:37:25] Production.INFO: ==27255== Releasing lock... [2025-03-27 11:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:37:25] Production.INFO: 61 MB #Memory Used# [2025-03-27 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:38:05 [end_date_ymd] => 2025-03-27 11:38:05 [RateCDR] => 1 ) [2025-03-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-03-27 08:38:05' and `end` < '2025-03-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-03-27 11:38:19] Production.INFO: count ==4413 [2025-03-27 11:38:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:38:05 - End Time 2025-03-27 11:38:05 [2025-03-27 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773914', 'tblTempUsageDetail_20' ) start [2025-03-27 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773914', 'tblTempUsageDetail_20' ) end [2025-03-27 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773914', 'tblTempVendorCDR_20' ) start [2025-03-27 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773914', 'tblTempVendorCDR_20' ) end [2025-03-27 11:38:21] Production.INFO: ProcessCDR(1,14773914,1,1,2) [2025-03-27 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773914', 'tblTempUsageDetail_20' ) start [2025-03-27 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773914', 'tblTempUsageDetail_20' ) end [2025-03-27 11:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:38:26] Production.INFO: ==27329== Releasing lock... [2025-03-27 11:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:38:26] Production.INFO: 61 MB #Memory Used# [2025-03-27 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:39:05 [end_date_ymd] => 2025-03-27 11:39:05 [RateCDR] => 1 ) [2025-03-27 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:39:05' and `end` < '2025-03-27 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:39:18] Production.INFO: count ==4409 [2025-03-27 11:39:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:39:05 - End Time 2025-03-27 11:39:05 [2025-03-27 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773919', 'tblTempUsageDetail_20' ) start [2025-03-27 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773919', 'tblTempUsageDetail_20' ) end [2025-03-27 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773919', 'tblTempVendorCDR_20' ) start [2025-03-27 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773919', 'tblTempVendorCDR_20' ) end [2025-03-27 11:39:20] Production.INFO: ProcessCDR(1,14773919,1,1,2) [2025-03-27 11:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773919', 'tblTempUsageDetail_20' ) start [2025-03-27 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773919', 'tblTempUsageDetail_20' ) end [2025-03-27 11:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:39:25] Production.INFO: ==27400== Releasing lock... [2025-03-27 11:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:39:25] Production.INFO: 61 MB #Memory Used# [2025-03-27 11:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:40:07 [end_date_ymd] => 2025-03-27 11:40:07 [RateCDR] => 1 ) [2025-03-27 11:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:40:07' and `end` < '2025-03-27 11:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:40:20] Production.INFO: count ==4409 [2025-03-27 11:40:22] Production.ERROR: pbx CDR StartTime 2025-03-27 08:40:07 - End Time 2025-03-27 11:40:07 [2025-03-27 11:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773925', 'tblTempUsageDetail_20' ) start [2025-03-27 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773925', 'tblTempUsageDetail_20' ) end [2025-03-27 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773925', 'tblTempVendorCDR_20' ) start [2025-03-27 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773925', 'tblTempVendorCDR_20' ) end [2025-03-27 11:40:22] Production.INFO: ProcessCDR(1,14773925,1,1,2) [2025-03-27 11:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773925', 'tblTempUsageDetail_20' ) start [2025-03-27 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773925', 'tblTempUsageDetail_20' ) end [2025-03-27 11:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:40:28] Production.INFO: ==27480== Releasing lock... [2025-03-27 11:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:40:28] Production.INFO: 61 MB #Memory Used# [2025-03-27 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:41:05 [end_date_ymd] => 2025-03-27 11:41:05 [RateCDR] => 1 ) [2025-03-27 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:41:05' and `end` < '2025-03-27 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:41:18] Production.INFO: count ==4511 [2025-03-27 11:41:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:41:05 - End Time 2025-03-27 11:41:05 [2025-03-27 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773930', 'tblTempUsageDetail_20' ) start [2025-03-27 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773930', 'tblTempUsageDetail_20' ) end [2025-03-27 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773930', 'tblTempVendorCDR_20' ) start [2025-03-27 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773930', 'tblTempVendorCDR_20' ) end [2025-03-27 11:41:20] Production.INFO: ProcessCDR(1,14773930,1,1,2) [2025-03-27 11:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773930', 'tblTempUsageDetail_20' ) start [2025-03-27 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773930', 'tblTempUsageDetail_20' ) end [2025-03-27 11:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:41:25] Production.INFO: ==27557== Releasing lock... [2025-03-27 11:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:41:25] Production.INFO: 61.75 MB #Memory Used# [2025-03-27 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:42:06 [end_date_ymd] => 2025-03-27 11:42:06 [RateCDR] => 1 ) [2025-03-27 11:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:42:06' and `end` < '2025-03-27 11:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:42:19] Production.INFO: count ==4517 [2025-03-27 11:42:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:42:06 - End Time 2025-03-27 11:42:06 [2025-03-27 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773935', 'tblTempUsageDetail_20' ) start [2025-03-27 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773935', 'tblTempUsageDetail_20' ) end [2025-03-27 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773935', 'tblTempVendorCDR_20' ) start [2025-03-27 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773935', 'tblTempVendorCDR_20' ) end [2025-03-27 11:42:21] Production.INFO: ProcessCDR(1,14773935,1,1,2) [2025-03-27 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773935', 'tblTempUsageDetail_20' ) start [2025-03-27 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773935', 'tblTempUsageDetail_20' ) end [2025-03-27 11:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:42:26] Production.INFO: ==27629== Releasing lock... [2025-03-27 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:42:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-27 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:43:05 [end_date_ymd] => 2025-03-27 11:43:05 [RateCDR] => 1 ) [2025-03-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-03-27 08:43:05' and `end` < '2025-03-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-03-27 11:43:18] Production.INFO: count ==4548 [2025-03-27 11:43:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:43:05 - End Time 2025-03-27 11:43:05 [2025-03-27 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773940', 'tblTempUsageDetail_20' ) start [2025-03-27 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773940', 'tblTempUsageDetail_20' ) end [2025-03-27 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773940', 'tblTempVendorCDR_20' ) start [2025-03-27 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773940', 'tblTempVendorCDR_20' ) end [2025-03-27 11:43:20] Production.INFO: ProcessCDR(1,14773940,1,1,2) [2025-03-27 11:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773940', 'tblTempUsageDetail_20' ) start [2025-03-27 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773940', 'tblTempUsageDetail_20' ) end [2025-03-27 11:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:43:26] Production.INFO: ==27701== Releasing lock... [2025-03-27 11:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:43:26] Production.INFO: 62 MB #Memory Used# [2025-03-27 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:44:05 [end_date_ymd] => 2025-03-27 11:44:05 [RateCDR] => 1 ) [2025-03-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-03-27 08:44:05' and `end` < '2025-03-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-03-27 11:44:19] Production.INFO: count ==4567 [2025-03-27 11:44:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:44:05 - End Time 2025-03-27 11:44:05 [2025-03-27 11:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773945', 'tblTempUsageDetail_20' ) start [2025-03-27 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773945', 'tblTempUsageDetail_20' ) end [2025-03-27 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773945', 'tblTempVendorCDR_20' ) start [2025-03-27 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773945', 'tblTempVendorCDR_20' ) end [2025-03-27 11:44:21] Production.INFO: ProcessCDR(1,14773945,1,1,2) [2025-03-27 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773945', 'tblTempUsageDetail_20' ) start [2025-03-27 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773945', 'tblTempUsageDetail_20' ) end [2025-03-27 11:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:44:26] Production.INFO: ==27775== Releasing lock... [2025-03-27 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:44:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-27 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:45:06 [end_date_ymd] => 2025-03-27 11:45:06 [RateCDR] => 1 ) [2025-03-27 11:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:45:06' and `end` < '2025-03-27 11:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:45:19] Production.INFO: count ==4575 [2025-03-27 11:45:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:45:06 - End Time 2025-03-27 11:45:06 [2025-03-27 11:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773950', 'tblTempUsageDetail_20' ) start [2025-03-27 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773950', 'tblTempUsageDetail_20' ) end [2025-03-27 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773950', 'tblTempVendorCDR_20' ) start [2025-03-27 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773950', 'tblTempVendorCDR_20' ) end [2025-03-27 11:45:21] Production.INFO: ProcessCDR(1,14773950,1,1,2) [2025-03-27 11:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773950', 'tblTempUsageDetail_20' ) start [2025-03-27 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773950', 'tblTempUsageDetail_20' ) end [2025-03-27 11:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:45:27] Production.INFO: ==27854== Releasing lock... [2025-03-27 11:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:45:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-27 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:46:06 [end_date_ymd] => 2025-03-27 11:46:06 [RateCDR] => 1 ) [2025-03-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-03-27 08:46:06' and `end` < '2025-03-27 11:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:46:19] Production.INFO: count ==4581 [2025-03-27 11:46:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:46:06 - End Time 2025-03-27 11:46:06 [2025-03-27 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773955', 'tblTempUsageDetail_20' ) start [2025-03-27 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773955', 'tblTempUsageDetail_20' ) end [2025-03-27 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773955', 'tblTempVendorCDR_20' ) start [2025-03-27 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773955', 'tblTempVendorCDR_20' ) end [2025-03-27 11:46:21] Production.INFO: ProcessCDR(1,14773955,1,1,2) [2025-03-27 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773955', 'tblTempUsageDetail_20' ) start [2025-03-27 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773955', 'tblTempUsageDetail_20' ) end [2025-03-27 11:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:46:26] Production.INFO: ==27928== Releasing lock... [2025-03-27 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:46:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-27 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:47:05 [end_date_ymd] => 2025-03-27 11:47:05 [RateCDR] => 1 ) [2025-03-27 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:47:05' and `end` < '2025-03-27 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:47:18] Production.INFO: count ==4572 [2025-03-27 11:47:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:47:05 - End Time 2025-03-27 11:47:05 [2025-03-27 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773960', 'tblTempUsageDetail_20' ) start [2025-03-27 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773960', 'tblTempUsageDetail_20' ) end [2025-03-27 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773960', 'tblTempVendorCDR_20' ) start [2025-03-27 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773960', 'tblTempVendorCDR_20' ) end [2025-03-27 11:47:21] Production.INFO: ProcessCDR(1,14773960,1,1,2) [2025-03-27 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773960', 'tblTempUsageDetail_20' ) start [2025-03-27 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773960', 'tblTempUsageDetail_20' ) end [2025-03-27 11:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:47:26] Production.INFO: ==28000== Releasing lock... [2025-03-27 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:47:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-27 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:48:06 [end_date_ymd] => 2025-03-27 11:48:06 [RateCDR] => 1 ) [2025-03-27 11:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:48:06' and `end` < '2025-03-27 11:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:48:20] Production.INFO: count ==4597 [2025-03-27 11:48:22] Production.ERROR: pbx CDR StartTime 2025-03-27 08:48:06 - End Time 2025-03-27 11:48:06 [2025-03-27 11:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773965', 'tblTempUsageDetail_20' ) start [2025-03-27 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773965', 'tblTempUsageDetail_20' ) end [2025-03-27 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773965', 'tblTempVendorCDR_20' ) start [2025-03-27 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773965', 'tblTempVendorCDR_20' ) end [2025-03-27 11:48:22] Production.INFO: ProcessCDR(1,14773965,1,1,2) [2025-03-27 11:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773965', 'tblTempUsageDetail_20' ) start [2025-03-27 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773965', 'tblTempUsageDetail_20' ) end [2025-03-27 11:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:48:27] Production.INFO: ==28109== Releasing lock... [2025-03-27 11:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:48:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-27 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:49:05 [end_date_ymd] => 2025-03-27 11:49:05 [RateCDR] => 1 ) [2025-03-27 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:49:05' and `end` < '2025-03-27 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:49:18] Production.INFO: count ==4617 [2025-03-27 11:49:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:49:05 - End Time 2025-03-27 11:49:05 [2025-03-27 11:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773970', 'tblTempUsageDetail_20' ) start [2025-03-27 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773970', 'tblTempUsageDetail_20' ) end [2025-03-27 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773970', 'tblTempVendorCDR_20' ) start [2025-03-27 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773970', 'tblTempVendorCDR_20' ) end [2025-03-27 11:49:20] Production.INFO: ProcessCDR(1,14773970,1,1,2) [2025-03-27 11:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773970', 'tblTempUsageDetail_20' ) start [2025-03-27 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773970', 'tblTempUsageDetail_20' ) end [2025-03-27 11:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:49:26] Production.INFO: ==28183== Releasing lock... [2025-03-27 11:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:49:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-27 11:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:50:07 [end_date_ymd] => 2025-03-27 11:50:07 [RateCDR] => 1 ) [2025-03-27 11:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:50:07' and `end` < '2025-03-27 11:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:50:20] Production.INFO: count ==4625 [2025-03-27 11:50:22] Production.ERROR: pbx CDR StartTime 2025-03-27 08:50:07 - End Time 2025-03-27 11:50:07 [2025-03-27 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773976', 'tblTempUsageDetail_20' ) start [2025-03-27 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773976', 'tblTempUsageDetail_20' ) end [2025-03-27 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773976', 'tblTempVendorCDR_20' ) start [2025-03-27 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773976', 'tblTempVendorCDR_20' ) end [2025-03-27 11:50:22] Production.INFO: ProcessCDR(1,14773976,1,1,2) [2025-03-27 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773976', 'tblTempUsageDetail_20' ) start [2025-03-27 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773976', 'tblTempUsageDetail_20' ) end [2025-03-27 11:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:50:28] Production.INFO: ==28257== Releasing lock... [2025-03-27 11:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:50:28] Production.INFO: 62.5 MB #Memory Used# [2025-03-27 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:51:05 [end_date_ymd] => 2025-03-27 11:51:05 [RateCDR] => 1 ) [2025-03-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-03-27 08:51:05' and `end` < '2025-03-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-03-27 11:51:18] Production.INFO: count ==4700 [2025-03-27 11:51:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:51:05 - End Time 2025-03-27 11:51:05 [2025-03-27 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773981', 'tblTempUsageDetail_20' ) start [2025-03-27 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773981', 'tblTempUsageDetail_20' ) end [2025-03-27 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773981', 'tblTempVendorCDR_20' ) start [2025-03-27 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773981', 'tblTempVendorCDR_20' ) end [2025-03-27 11:51:21] Production.INFO: ProcessCDR(1,14773981,1,1,2) [2025-03-27 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773981', 'tblTempUsageDetail_20' ) start [2025-03-27 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773981', 'tblTempUsageDetail_20' ) end [2025-03-27 11:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:51:26] Production.INFO: ==28332== Releasing lock... [2025-03-27 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:51:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-27 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:52:06 [end_date_ymd] => 2025-03-27 11:52:06 [RateCDR] => 1 ) [2025-03-27 11:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:52:06' and `end` < '2025-03-27 11:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:52:19] Production.INFO: count ==4708 [2025-03-27 11:52:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:52:06 - End Time 2025-03-27 11:52:06 [2025-03-27 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773986', 'tblTempUsageDetail_20' ) start [2025-03-27 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773986', 'tblTempUsageDetail_20' ) end [2025-03-27 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773986', 'tblTempVendorCDR_20' ) start [2025-03-27 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773986', 'tblTempVendorCDR_20' ) end [2025-03-27 11:52:22] Production.INFO: ProcessCDR(1,14773986,1,1,2) [2025-03-27 11:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773986', 'tblTempUsageDetail_20' ) start [2025-03-27 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773986', 'tblTempUsageDetail_20' ) end [2025-03-27 11:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:52:27] Production.INFO: ==28407== Releasing lock... [2025-03-27 11:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:52:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-27 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:53:05 [end_date_ymd] => 2025-03-27 11:53:05 [RateCDR] => 1 ) [2025-03-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-03-27 08:53:05' and `end` < '2025-03-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-03-27 11:53:18] Production.INFO: count ==4720 [2025-03-27 11:53:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:53:05 - End Time 2025-03-27 11:53:05 [2025-03-27 11:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773991', 'tblTempUsageDetail_20' ) start [2025-03-27 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773991', 'tblTempUsageDetail_20' ) end [2025-03-27 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773991', 'tblTempVendorCDR_20' ) start [2025-03-27 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773991', 'tblTempVendorCDR_20' ) end [2025-03-27 11:53:20] Production.INFO: ProcessCDR(1,14773991,1,1,2) [2025-03-27 11:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773991', 'tblTempUsageDetail_20' ) start [2025-03-27 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773991', 'tblTempUsageDetail_20' ) end [2025-03-27 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:53:26] Production.INFO: ==28491== Releasing lock... [2025-03-27 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:53:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-27 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:54:06 [end_date_ymd] => 2025-03-27 11:54:06 [RateCDR] => 1 ) [2025-03-27 11:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:54:06' and `end` < '2025-03-27 11:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:54:19] Production.INFO: count ==4716 [2025-03-27 11:54:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:54:06 - End Time 2025-03-27 11:54:06 [2025-03-27 11:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773996', 'tblTempUsageDetail_20' ) start [2025-03-27 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14773996', 'tblTempUsageDetail_20' ) end [2025-03-27 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773996', 'tblTempVendorCDR_20' ) start [2025-03-27 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14773996', 'tblTempVendorCDR_20' ) end [2025-03-27 11:54:21] Production.INFO: ProcessCDR(1,14773996,1,1,2) [2025-03-27 11:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14773996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14773996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14773996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14773996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773996', 'tblTempUsageDetail_20' ) start [2025-03-27 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14773996', 'tblTempUsageDetail_20' ) end [2025-03-27 11:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:54:27] Production.INFO: ==28567== Releasing lock... [2025-03-27 11:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:54:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-27 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:55:05 [end_date_ymd] => 2025-03-27 11:55:05 [RateCDR] => 1 ) [2025-03-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-03-27 08:55:05' and `end` < '2025-03-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-03-27 11:55:19] Production.INFO: count ==4746 [2025-03-27 11:55:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:55:05 - End Time 2025-03-27 11:55:05 [2025-03-27 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774001', 'tblTempUsageDetail_20' ) start [2025-03-27 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774001', 'tblTempUsageDetail_20' ) end [2025-03-27 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774001', 'tblTempVendorCDR_20' ) start [2025-03-27 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774001', 'tblTempVendorCDR_20' ) end [2025-03-27 11:55:21] Production.INFO: ProcessCDR(1,14774001,1,1,2) [2025-03-27 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774001', 'tblTempUsageDetail_20' ) start [2025-03-27 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774001', 'tblTempUsageDetail_20' ) end [2025-03-27 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:55:26] Production.INFO: ==28640== Releasing lock... [2025-03-27 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:55:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-27 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:56:06 [end_date_ymd] => 2025-03-27 11:56:06 [RateCDR] => 1 ) [2025-03-27 11:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 08:56:06' and `end` < '2025-03-27 11:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 11:56:19] Production.INFO: count ==4757 [2025-03-27 11:56:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:56:06 - End Time 2025-03-27 11:56:06 [2025-03-27 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774006', 'tblTempUsageDetail_20' ) start [2025-03-27 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774006', 'tblTempUsageDetail_20' ) end [2025-03-27 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774006', 'tblTempVendorCDR_20' ) start [2025-03-27 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774006', 'tblTempVendorCDR_20' ) end [2025-03-27 11:56:21] Production.INFO: ProcessCDR(1,14774006,1,1,2) [2025-03-27 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774006', 'tblTempUsageDetail_20' ) start [2025-03-27 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774006', 'tblTempUsageDetail_20' ) end [2025-03-27 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:56:26] Production.INFO: ==28733== Releasing lock... [2025-03-27 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:56:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-27 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:57:05 [end_date_ymd] => 2025-03-27 11:57:05 [RateCDR] => 1 ) [2025-03-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-03-27 08:57:05' and `end` < '2025-03-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-03-27 11:57:18] Production.INFO: count ==4767 [2025-03-27 11:57:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:57:05 - End Time 2025-03-27 11:57:05 [2025-03-27 11:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774011', 'tblTempUsageDetail_20' ) start [2025-03-27 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774011', 'tblTempUsageDetail_20' ) end [2025-03-27 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774011', 'tblTempVendorCDR_20' ) start [2025-03-27 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774011', 'tblTempVendorCDR_20' ) end [2025-03-27 11:57:21] Production.INFO: ProcessCDR(1,14774011,1,1,2) [2025-03-27 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774011', 'tblTempUsageDetail_20' ) start [2025-03-27 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774011', 'tblTempUsageDetail_20' ) end [2025-03-27 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:57:27] Production.INFO: ==28805== Releasing lock... [2025-03-27 11:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:57:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-27 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:58:05 [end_date_ymd] => 2025-03-27 11:58:05 [RateCDR] => 1 ) [2025-03-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-03-27 08:58:05' and `end` < '2025-03-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-03-27 11:58:19] Production.INFO: count ==4763 [2025-03-27 11:58:21] Production.ERROR: pbx CDR StartTime 2025-03-27 08:58:05 - End Time 2025-03-27 11:58:05 [2025-03-27 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774016', 'tblTempUsageDetail_20' ) start [2025-03-27 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774016', 'tblTempUsageDetail_20' ) end [2025-03-27 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774016', 'tblTempVendorCDR_20' ) start [2025-03-27 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774016', 'tblTempVendorCDR_20' ) end [2025-03-27 11:58:21] Production.INFO: ProcessCDR(1,14774016,1,1,2) [2025-03-27 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774016', 'tblTempUsageDetail_20' ) start [2025-03-27 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774016', 'tblTempUsageDetail_20' ) end [2025-03-27 11:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:58:26] Production.INFO: ==28875== Releasing lock... [2025-03-27 11:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:58:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-27 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 08:59:05 [end_date_ymd] => 2025-03-27 11:59:05 [RateCDR] => 1 ) [2025-03-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-03-27 08:59:05' and `end` < '2025-03-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-03-27 11:59:18] Production.INFO: count ==4770 [2025-03-27 11:59:20] Production.ERROR: pbx CDR StartTime 2025-03-27 08:59:05 - End Time 2025-03-27 11:59:05 [2025-03-27 11:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774021', 'tblTempUsageDetail_20' ) start [2025-03-27 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774021', 'tblTempUsageDetail_20' ) end [2025-03-27 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774021', 'tblTempVendorCDR_20' ) start [2025-03-27 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774021', 'tblTempVendorCDR_20' ) end [2025-03-27 11:59:20] Production.INFO: ProcessCDR(1,14774021,1,1,2) [2025-03-27 11:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 11:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774021', 'tblTempUsageDetail_20' ) start [2025-03-27 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774021', 'tblTempUsageDetail_20' ) end [2025-03-27 11:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 11:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 11:59:25] Production.INFO: ==28947== Releasing lock... [2025-03-27 11:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 11:59:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-27 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:00:05 [end_date_ymd] => 2025-03-27 12:00:05 [RateCDR] => 1 ) [2025-03-27 12:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:00:05' and `end` < '2025-03-27 12:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:00:19] Production.INFO: count ==4801 [2025-03-27 12:00:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:00:05 - End Time 2025-03-27 12:00:05 [2025-03-27 12:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774026', 'tblTempUsageDetail_20' ) start [2025-03-27 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774026', 'tblTempUsageDetail_20' ) end [2025-03-27 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774026', 'tblTempVendorCDR_20' ) start [2025-03-27 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774026', 'tblTempVendorCDR_20' ) end [2025-03-27 12:00:21] Production.INFO: ProcessCDR(1,14774026,1,1,2) [2025-03-27 12:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774026', 'tblTempUsageDetail_20' ) start [2025-03-27 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774026', 'tblTempUsageDetail_20' ) end [2025-03-27 12:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:00:26] Production.INFO: ==29022== Releasing lock... [2025-03-27 12:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:00:26] Production.INFO: 64 MB #Memory Used# [2025-03-27 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:01:06 [end_date_ymd] => 2025-03-27 12:01:06 [RateCDR] => 1 ) [2025-03-27 12:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:01:06' and `end` < '2025-03-27 12:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:01:19] Production.INFO: count ==4877 [2025-03-27 12:01:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:01:06 - End Time 2025-03-27 12:01:06 [2025-03-27 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774032', 'tblTempUsageDetail_20' ) start [2025-03-27 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774032', 'tblTempUsageDetail_20' ) end [2025-03-27 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774032', 'tblTempVendorCDR_20' ) start [2025-03-27 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774032', 'tblTempVendorCDR_20' ) end [2025-03-27 12:01:21] Production.INFO: ProcessCDR(1,14774032,1,1,2) [2025-03-27 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774032', 'tblTempUsageDetail_20' ) start [2025-03-27 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774032', 'tblTempUsageDetail_20' ) end [2025-03-27 12:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:01:27] Production.INFO: ==29112== Releasing lock... [2025-03-27 12:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:01:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-27 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:02:05 [end_date_ymd] => 2025-03-27 12:02:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:02:05' and `end` < '2025-03-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-03-27 12:02:19] Production.INFO: count ==4887 [2025-03-27 12:02:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:02:05 - End Time 2025-03-27 12:02:05 [2025-03-27 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774037', 'tblTempUsageDetail_20' ) start [2025-03-27 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774037', 'tblTempUsageDetail_20' ) end [2025-03-27 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774037', 'tblTempVendorCDR_20' ) start [2025-03-27 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774037', 'tblTempVendorCDR_20' ) end [2025-03-27 12:02:21] Production.INFO: ProcessCDR(1,14774037,1,1,2) [2025-03-27 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774037', 'tblTempUsageDetail_20' ) start [2025-03-27 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774037', 'tblTempUsageDetail_20' ) end [2025-03-27 12:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:02:26] Production.INFO: ==29185== Releasing lock... [2025-03-27 12:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:02:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-27 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:03:05 [end_date_ymd] => 2025-03-27 12:03:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:03:05' and `end` < '2025-03-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-03-27 12:03:19] Production.INFO: count ==4883 [2025-03-27 12:03:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:03:05 - End Time 2025-03-27 12:03:05 [2025-03-27 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774042', 'tblTempUsageDetail_20' ) start [2025-03-27 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774042', 'tblTempUsageDetail_20' ) end [2025-03-27 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774042', 'tblTempVendorCDR_20' ) start [2025-03-27 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774042', 'tblTempVendorCDR_20' ) end [2025-03-27 12:03:21] Production.INFO: ProcessCDR(1,14774042,1,1,2) [2025-03-27 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774042', 'tblTempUsageDetail_20' ) start [2025-03-27 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774042', 'tblTempUsageDetail_20' ) end [2025-03-27 12:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:03:27] Production.INFO: ==29278== Releasing lock... [2025-03-27 12:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:03:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-27 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:04:05 [end_date_ymd] => 2025-03-27 12:04:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:04:05' and `end` < '2025-03-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-03-27 12:04:19] Production.INFO: count ==4885 [2025-03-27 12:04:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:04:05 - End Time 2025-03-27 12:04:05 [2025-03-27 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774047', 'tblTempUsageDetail_20' ) start [2025-03-27 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774047', 'tblTempUsageDetail_20' ) end [2025-03-27 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774047', 'tblTempVendorCDR_20' ) start [2025-03-27 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774047', 'tblTempVendorCDR_20' ) end [2025-03-27 12:04:21] Production.INFO: ProcessCDR(1,14774047,1,1,2) [2025-03-27 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774047', 'tblTempUsageDetail_20' ) start [2025-03-27 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774047', 'tblTempUsageDetail_20' ) end [2025-03-27 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:04:27] Production.INFO: ==29387== Releasing lock... [2025-03-27 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:04:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-27 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:05:06 [end_date_ymd] => 2025-03-27 12:05:06 [RateCDR] => 1 ) [2025-03-27 12:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:05:06' and `end` < '2025-03-27 12:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:05:19] Production.INFO: count ==4892 [2025-03-27 12:05:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:05:06 - End Time 2025-03-27 12:05:06 [2025-03-27 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774052', 'tblTempUsageDetail_20' ) start [2025-03-27 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774052', 'tblTempUsageDetail_20' ) end [2025-03-27 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774052', 'tblTempVendorCDR_20' ) start [2025-03-27 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774052', 'tblTempVendorCDR_20' ) end [2025-03-27 12:05:21] Production.INFO: ProcessCDR(1,14774052,1,1,2) [2025-03-27 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774052', 'tblTempUsageDetail_20' ) start [2025-03-27 12:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774052', 'tblTempUsageDetail_20' ) end [2025-03-27 12:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:05:27] Production.INFO: ==29464== Releasing lock... [2025-03-27 12:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:05:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-27 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:06:05 [end_date_ymd] => 2025-03-27 12:06:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:06:05' and `end` < '2025-03-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-03-27 12:06:19] Production.INFO: count ==4928 [2025-03-27 12:06:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:06:05 - End Time 2025-03-27 12:06:05 [2025-03-27 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774057', 'tblTempUsageDetail_20' ) start [2025-03-27 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774057', 'tblTempUsageDetail_20' ) end [2025-03-27 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774057', 'tblTempVendorCDR_20' ) start [2025-03-27 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774057', 'tblTempVendorCDR_20' ) end [2025-03-27 12:06:21] Production.INFO: ProcessCDR(1,14774057,1,1,2) [2025-03-27 12:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774057', 'tblTempUsageDetail_20' ) start [2025-03-27 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774057', 'tblTempUsageDetail_20' ) end [2025-03-27 12:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:06:26] Production.INFO: ==29540== Releasing lock... [2025-03-27 12:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:06:26] Production.INFO: 65 MB #Memory Used# [2025-03-27 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:07:06 [end_date_ymd] => 2025-03-27 12:07:06 [RateCDR] => 1 ) [2025-03-27 12:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:07:06' and `end` < '2025-03-27 12:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:07:19] Production.INFO: count ==4924 [2025-03-27 12:07:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:07:06 - End Time 2025-03-27 12:07:06 [2025-03-27 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774062', 'tblTempUsageDetail_20' ) start [2025-03-27 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774062', 'tblTempUsageDetail_20' ) end [2025-03-27 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774062', 'tblTempVendorCDR_20' ) start [2025-03-27 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774062', 'tblTempVendorCDR_20' ) end [2025-03-27 12:07:21] Production.INFO: ProcessCDR(1,14774062,1,1,2) [2025-03-27 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774062', 'tblTempUsageDetail_20' ) start [2025-03-27 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774062', 'tblTempUsageDetail_20' ) end [2025-03-27 12:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:07:26] Production.INFO: ==29610== Releasing lock... [2025-03-27 12:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:07:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-27 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:08:05 [end_date_ymd] => 2025-03-27 12:08:05 [RateCDR] => 1 ) [2025-03-27 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:08:05' and `end` < '2025-03-27 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:08:19] Production.INFO: count ==4925 [2025-03-27 12:08:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:08:05 - End Time 2025-03-27 12:08:05 [2025-03-27 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774067', 'tblTempUsageDetail_20' ) start [2025-03-27 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774067', 'tblTempUsageDetail_20' ) end [2025-03-27 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774067', 'tblTempVendorCDR_20' ) start [2025-03-27 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774067', 'tblTempVendorCDR_20' ) end [2025-03-27 12:08:21] Production.INFO: ProcessCDR(1,14774067,1,1,2) [2025-03-27 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774067', 'tblTempUsageDetail_20' ) start [2025-03-27 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774067', 'tblTempUsageDetail_20' ) end [2025-03-27 12:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:08:26] Production.INFO: ==29685== Releasing lock... [2025-03-27 12:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:08:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-27 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:09:05 [end_date_ymd] => 2025-03-27 12:09:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:09:05' and `end` < '2025-03-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-03-27 12:09:19] Production.INFO: count ==4935 [2025-03-27 12:09:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:09:05 - End Time 2025-03-27 12:09:05 [2025-03-27 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774072', 'tblTempUsageDetail_20' ) start [2025-03-27 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774072', 'tblTempUsageDetail_20' ) end [2025-03-27 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774072', 'tblTempVendorCDR_20' ) start [2025-03-27 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774072', 'tblTempVendorCDR_20' ) end [2025-03-27 12:09:21] Production.INFO: ProcessCDR(1,14774072,1,1,2) [2025-03-27 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774072', 'tblTempUsageDetail_20' ) start [2025-03-27 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774072', 'tblTempUsageDetail_20' ) end [2025-03-27 12:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:09:26] Production.INFO: ==29759== Releasing lock... [2025-03-27 12:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:09:26] Production.INFO: 65 MB #Memory Used# [2025-03-27 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:10:05 [end_date_ymd] => 2025-03-27 12:10:05 [RateCDR] => 1 ) [2025-03-27 12:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:10:05' and `end` < '2025-03-27 12:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:10:19] Production.INFO: count ==4938 [2025-03-27 12:10:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:10:05 - End Time 2025-03-27 12:10:05 [2025-03-27 12:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774076', 'tblTempUsageDetail_20' ) start [2025-03-27 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774076', 'tblTempUsageDetail_20' ) end [2025-03-27 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774076', 'tblTempVendorCDR_20' ) start [2025-03-27 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774076', 'tblTempVendorCDR_20' ) end [2025-03-27 12:10:21] Production.INFO: ProcessCDR(1,14774076,1,1,2) [2025-03-27 12:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774076', 'tblTempUsageDetail_20' ) start [2025-03-27 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774076', 'tblTempUsageDetail_20' ) end [2025-03-27 12:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:10:26] Production.INFO: ==29834== Releasing lock... [2025-03-27 12:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:10:26] Production.INFO: 65 MB #Memory Used# [2025-03-27 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:11:05 [end_date_ymd] => 2025-03-27 12:11:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:11:05' and `end` < '2025-03-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-03-27 12:11:19] Production.INFO: count ==5009 [2025-03-27 12:11:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:11:05 - End Time 2025-03-27 12:11:05 [2025-03-27 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774083', 'tblTempUsageDetail_20' ) start [2025-03-27 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774083', 'tblTempUsageDetail_20' ) end [2025-03-27 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774083', 'tblTempVendorCDR_20' ) start [2025-03-27 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774083', 'tblTempVendorCDR_20' ) end [2025-03-27 12:11:21] Production.INFO: ProcessCDR(1,14774083,1,1,2) [2025-03-27 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774083', 'tblTempUsageDetail_20' ) start [2025-03-27 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774083', 'tblTempUsageDetail_20' ) end [2025-03-27 12:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:11:26] Production.INFO: ==29909== Releasing lock... [2025-03-27 12:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:11:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-27 12:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:12:04 [end_date_ymd] => 2025-03-27 12:12:04 [RateCDR] => 1 ) [2025-03-27 12:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:12:04' and `end` < '2025-03-27 12:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:12:18] Production.INFO: count ==5051 [2025-03-27 12:12:20] Production.ERROR: pbx CDR StartTime 2025-03-27 09:12:04 - End Time 2025-03-27 12:12:04 [2025-03-27 12:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774088', 'tblTempUsageDetail_20' ) start [2025-03-27 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774088', 'tblTempUsageDetail_20' ) end [2025-03-27 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774088', 'tblTempVendorCDR_20' ) start [2025-03-27 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774088', 'tblTempVendorCDR_20' ) end [2025-03-27 12:12:20] Production.INFO: ProcessCDR(1,14774088,1,1,2) [2025-03-27 12:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774088', 'tblTempUsageDetail_20' ) start [2025-03-27 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774088', 'tblTempUsageDetail_20' ) end [2025-03-27 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:12:26] Production.INFO: ==29981== Releasing lock... [2025-03-27 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:12:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-27 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:13:05 [end_date_ymd] => 2025-03-27 12:13:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:13:05' and `end` < '2025-03-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-03-27 12:13:19] Production.INFO: count ==5034 [2025-03-27 12:13:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:13:05 - End Time 2025-03-27 12:13:05 [2025-03-27 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774093', 'tblTempUsageDetail_20' ) start [2025-03-27 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774093', 'tblTempUsageDetail_20' ) end [2025-03-27 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774093', 'tblTempVendorCDR_20' ) start [2025-03-27 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774093', 'tblTempVendorCDR_20' ) end [2025-03-27 12:13:21] Production.INFO: ProcessCDR(1,14774093,1,1,2) [2025-03-27 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774093', 'tblTempUsageDetail_20' ) start [2025-03-27 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774093', 'tblTempUsageDetail_20' ) end [2025-03-27 12:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:13:26] Production.INFO: ==30060== Releasing lock... [2025-03-27 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:13:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-27 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:14:05 [end_date_ymd] => 2025-03-27 12:14:05 [RateCDR] => 1 ) [2025-03-27 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:14:05' and `end` < '2025-03-27 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:14:18] Production.INFO: count ==5050 [2025-03-27 12:14:20] Production.ERROR: pbx CDR StartTime 2025-03-27 09:14:05 - End Time 2025-03-27 12:14:05 [2025-03-27 12:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774098', 'tblTempUsageDetail_20' ) start [2025-03-27 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774098', 'tblTempUsageDetail_20' ) end [2025-03-27 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774098', 'tblTempVendorCDR_20' ) start [2025-03-27 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774098', 'tblTempVendorCDR_20' ) end [2025-03-27 12:14:21] Production.INFO: ProcessCDR(1,14774098,1,1,2) [2025-03-27 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774098', 'tblTempUsageDetail_20' ) start [2025-03-27 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774098', 'tblTempUsageDetail_20' ) end [2025-03-27 12:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:14:26] Production.INFO: ==30133== Releasing lock... [2025-03-27 12:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:14:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-27 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:15:05 [end_date_ymd] => 2025-03-27 12:15:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:15:05' and `end` < '2025-03-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-03-27 12:15:19] Production.INFO: count ==5023 [2025-03-27 12:15:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:15:05 - End Time 2025-03-27 12:15:05 [2025-03-27 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774103', 'tblTempUsageDetail_20' ) start [2025-03-27 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774103', 'tblTempUsageDetail_20' ) end [2025-03-27 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774103', 'tblTempVendorCDR_20' ) start [2025-03-27 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774103', 'tblTempVendorCDR_20' ) end [2025-03-27 12:15:21] Production.INFO: ProcessCDR(1,14774103,1,1,2) [2025-03-27 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774103', 'tblTempUsageDetail_20' ) start [2025-03-27 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774103', 'tblTempUsageDetail_20' ) end [2025-03-27 12:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:15:26] Production.INFO: ==30208== Releasing lock... [2025-03-27 12:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:15:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-27 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:16:05 [end_date_ymd] => 2025-03-27 12:16:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:16:05' and `end` < '2025-03-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-03-27 12:16:19] Production.INFO: count ==5028 [2025-03-27 12:16:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:16:05 - End Time 2025-03-27 12:16:05 [2025-03-27 12:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774108', 'tblTempUsageDetail_20' ) start [2025-03-27 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774108', 'tblTempUsageDetail_20' ) end [2025-03-27 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774108', 'tblTempVendorCDR_20' ) start [2025-03-27 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774108', 'tblTempVendorCDR_20' ) end [2025-03-27 12:16:21] Production.INFO: ProcessCDR(1,14774108,1,1,2) [2025-03-27 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774108', 'tblTempUsageDetail_20' ) start [2025-03-27 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774108', 'tblTempUsageDetail_20' ) end [2025-03-27 12:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:16:26] Production.INFO: ==30287== Releasing lock... [2025-03-27 12:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:16:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-27 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:17:05 [end_date_ymd] => 2025-03-27 12:17:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:17:05' and `end` < '2025-03-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-03-27 12:17:19] Production.INFO: count ==5023 [2025-03-27 12:17:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:17:05 - End Time 2025-03-27 12:17:05 [2025-03-27 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774113', 'tblTempUsageDetail_20' ) start [2025-03-27 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774113', 'tblTempUsageDetail_20' ) end [2025-03-27 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774113', 'tblTempVendorCDR_20' ) start [2025-03-27 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774113', 'tblTempVendorCDR_20' ) end [2025-03-27 12:17:21] Production.INFO: ProcessCDR(1,14774113,1,1,2) [2025-03-27 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774113', 'tblTempUsageDetail_20' ) start [2025-03-27 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774113', 'tblTempUsageDetail_20' ) end [2025-03-27 12:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:17:27] Production.INFO: ==30374== Releasing lock... [2025-03-27 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:17:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-27 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:18:06 [end_date_ymd] => 2025-03-27 12:18:06 [RateCDR] => 1 ) [2025-03-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-03-27 09:18:06' and `end` < '2025-03-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-03-27 12:18:19] Production.INFO: count ==5029 [2025-03-27 12:18:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:18:06 - End Time 2025-03-27 12:18:06 [2025-03-27 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774118', 'tblTempUsageDetail_20' ) start [2025-03-27 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774118', 'tblTempUsageDetail_20' ) end [2025-03-27 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774118', 'tblTempVendorCDR_20' ) start [2025-03-27 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774118', 'tblTempVendorCDR_20' ) end [2025-03-27 12:18:22] Production.INFO: ProcessCDR(1,14774118,1,1,2) [2025-03-27 12:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774118', 'tblTempUsageDetail_20' ) start [2025-03-27 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774118', 'tblTempUsageDetail_20' ) end [2025-03-27 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:18:27] Production.INFO: ==30448== Releasing lock... [2025-03-27 12:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:18:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-27 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:19:05 [end_date_ymd] => 2025-03-27 12:19:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:19:05' and `end` < '2025-03-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-03-27 12:19:18] Production.INFO: count ==5027 [2025-03-27 12:19:20] Production.ERROR: pbx CDR StartTime 2025-03-27 09:19:05 - End Time 2025-03-27 12:19:05 [2025-03-27 12:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774123', 'tblTempUsageDetail_20' ) start [2025-03-27 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774123', 'tblTempUsageDetail_20' ) end [2025-03-27 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774123', 'tblTempVendorCDR_20' ) start [2025-03-27 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774123', 'tblTempVendorCDR_20' ) end [2025-03-27 12:19:20] Production.INFO: ProcessCDR(1,14774123,1,1,2) [2025-03-27 12:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774123', 'tblTempUsageDetail_20' ) start [2025-03-27 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774123', 'tblTempUsageDetail_20' ) end [2025-03-27 12:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:19:26] Production.INFO: ==30566== Releasing lock... [2025-03-27 12:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:19:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-27 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:20:06 [end_date_ymd] => 2025-03-27 12:20:06 [RateCDR] => 1 ) [2025-03-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-03-27 09:20:06' and `end` < '2025-03-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-03-27 12:20:20] Production.INFO: count ==5025 [2025-03-27 12:20:22] Production.ERROR: pbx CDR StartTime 2025-03-27 09:20:06 - End Time 2025-03-27 12:20:06 [2025-03-27 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774128', 'tblTempUsageDetail_20' ) start [2025-03-27 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774128', 'tblTempUsageDetail_20' ) end [2025-03-27 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774128', 'tblTempVendorCDR_20' ) start [2025-03-27 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774128', 'tblTempVendorCDR_20' ) end [2025-03-27 12:20:22] Production.INFO: ProcessCDR(1,14774128,1,1,2) [2025-03-27 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774128', 'tblTempUsageDetail_20' ) start [2025-03-27 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774128', 'tblTempUsageDetail_20' ) end [2025-03-27 12:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:20:27] Production.INFO: ==30637== Releasing lock... [2025-03-27 12:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:20:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-27 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:21:05 [end_date_ymd] => 2025-03-27 12:21:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:21:05' and `end` < '2025-03-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-03-27 12:21:19] Production.INFO: count ==5031 [2025-03-27 12:21:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:21:05 - End Time 2025-03-27 12:21:05 [2025-03-27 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774134', 'tblTempUsageDetail_20' ) start [2025-03-27 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774134', 'tblTempUsageDetail_20' ) end [2025-03-27 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774134', 'tblTempVendorCDR_20' ) start [2025-03-27 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774134', 'tblTempVendorCDR_20' ) end [2025-03-27 12:21:21] Production.INFO: ProcessCDR(1,14774134,1,1,2) [2025-03-27 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774134', 'tblTempUsageDetail_20' ) start [2025-03-27 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774134', 'tblTempUsageDetail_20' ) end [2025-03-27 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:21:26] Production.INFO: ==30711== Releasing lock... [2025-03-27 12:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:21:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-27 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:22:05 [end_date_ymd] => 2025-03-27 12:22:05 [RateCDR] => 1 ) [2025-03-27 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:22:05' and `end` < '2025-03-27 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:22:19] Production.INFO: count ==5040 [2025-03-27 12:22:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:22:05 - End Time 2025-03-27 12:22:05 [2025-03-27 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774139', 'tblTempUsageDetail_20' ) start [2025-03-27 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774139', 'tblTempUsageDetail_20' ) end [2025-03-27 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774139', 'tblTempVendorCDR_20' ) start [2025-03-27 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774139', 'tblTempVendorCDR_20' ) end [2025-03-27 12:22:21] Production.INFO: ProcessCDR(1,14774139,1,1,2) [2025-03-27 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774139', 'tblTempUsageDetail_20' ) start [2025-03-27 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774139', 'tblTempUsageDetail_20' ) end [2025-03-27 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:22:27] Production.INFO: ==30786== Releasing lock... [2025-03-27 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:22:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-27 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:23:05 [end_date_ymd] => 2025-03-27 12:23:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:23:05' and `end` < '2025-03-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-03-27 12:23:18] Production.INFO: count ==5042 [2025-03-27 12:23:20] Production.ERROR: pbx CDR StartTime 2025-03-27 09:23:05 - End Time 2025-03-27 12:23:05 [2025-03-27 12:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774144', 'tblTempUsageDetail_20' ) start [2025-03-27 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774144', 'tblTempUsageDetail_20' ) end [2025-03-27 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774144', 'tblTempVendorCDR_20' ) start [2025-03-27 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774144', 'tblTempVendorCDR_20' ) end [2025-03-27 12:23:20] Production.INFO: ProcessCDR(1,14774144,1,1,2) [2025-03-27 12:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774144', 'tblTempUsageDetail_20' ) start [2025-03-27 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774144', 'tblTempUsageDetail_20' ) end [2025-03-27 12:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:23:26] Production.INFO: ==30864== Releasing lock... [2025-03-27 12:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:23:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-27 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:24:05 [end_date_ymd] => 2025-03-27 12:24:05 [RateCDR] => 1 ) [2025-03-27 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:24:05' and `end` < '2025-03-27 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:24:19] Production.INFO: count ==5040 [2025-03-27 12:24:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:24:05 - End Time 2025-03-27 12:24:05 [2025-03-27 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774149', 'tblTempUsageDetail_20' ) start [2025-03-27 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774149', 'tblTempUsageDetail_20' ) end [2025-03-27 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774149', 'tblTempVendorCDR_20' ) start [2025-03-27 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774149', 'tblTempVendorCDR_20' ) end [2025-03-27 12:24:21] Production.INFO: ProcessCDR(1,14774149,1,1,2) [2025-03-27 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774149', 'tblTempUsageDetail_20' ) start [2025-03-27 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774149', 'tblTempUsageDetail_20' ) end [2025-03-27 12:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:24:27] Production.INFO: ==30949== Releasing lock... [2025-03-27 12:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:24:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-27 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:25:05 [end_date_ymd] => 2025-03-27 12:25:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:25:05' and `end` < '2025-03-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-03-27 12:25:19] Production.INFO: count ==5034 [2025-03-27 12:25:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:25:05 - End Time 2025-03-27 12:25:05 [2025-03-27 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774154', 'tblTempUsageDetail_20' ) start [2025-03-27 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774154', 'tblTempUsageDetail_20' ) end [2025-03-27 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774154', 'tblTempVendorCDR_20' ) start [2025-03-27 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774154', 'tblTempVendorCDR_20' ) end [2025-03-27 12:25:21] Production.INFO: ProcessCDR(1,14774154,1,1,2) [2025-03-27 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774154', 'tblTempUsageDetail_20' ) start [2025-03-27 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774154', 'tblTempUsageDetail_20' ) end [2025-03-27 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:25:26] Production.INFO: ==31021== Releasing lock... [2025-03-27 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:25:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-27 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:26:06 [end_date_ymd] => 2025-03-27 12:26:06 [RateCDR] => 1 ) [2025-03-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-03-27 09:26:06' and `end` < '2025-03-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-03-27 12:26:19] Production.INFO: count ==5056 [2025-03-27 12:26:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:26:06 - End Time 2025-03-27 12:26:06 [2025-03-27 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774159', 'tblTempUsageDetail_20' ) start [2025-03-27 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774159', 'tblTempUsageDetail_20' ) end [2025-03-27 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774159', 'tblTempVendorCDR_20' ) start [2025-03-27 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774159', 'tblTempVendorCDR_20' ) end [2025-03-27 12:26:22] Production.INFO: ProcessCDR(1,14774159,1,1,2) [2025-03-27 12:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774159', 'tblTempUsageDetail_20' ) start [2025-03-27 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774159', 'tblTempUsageDetail_20' ) end [2025-03-27 12:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:26:27] Production.INFO: ==31095== Releasing lock... [2025-03-27 12:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:26:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-27 12:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:27:04 [end_date_ymd] => 2025-03-27 12:27:04 [RateCDR] => 1 ) [2025-03-27 12: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-03-27 09:27:04' and `end` < '2025-03-27 12: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-03-27 12:27:18] Production.INFO: count ==5073 [2025-03-27 12:27:20] Production.ERROR: pbx CDR StartTime 2025-03-27 09:27:04 - End Time 2025-03-27 12:27:04 [2025-03-27 12:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774164', 'tblTempUsageDetail_20' ) start [2025-03-27 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774164', 'tblTempUsageDetail_20' ) end [2025-03-27 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774164', 'tblTempVendorCDR_20' ) start [2025-03-27 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774164', 'tblTempVendorCDR_20' ) end [2025-03-27 12:27:20] Production.INFO: ProcessCDR(1,14774164,1,1,2) [2025-03-27 12:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774164', 'tblTempUsageDetail_20' ) start [2025-03-27 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774164', 'tblTempUsageDetail_20' ) end [2025-03-27 12:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:27:25] Production.INFO: ==31167== Releasing lock... [2025-03-27 12:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:27:25] Production.INFO: 66 MB #Memory Used# [2025-03-27 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:28:05 [end_date_ymd] => 2025-03-27 12:28:05 [RateCDR] => 1 ) [2025-03-27 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:28:05' and `end` < '2025-03-27 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:28:19] Production.INFO: count ==5103 [2025-03-27 12:28:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:28:05 - End Time 2025-03-27 12:28:05 [2025-03-27 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774169', 'tblTempUsageDetail_20' ) start [2025-03-27 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774169', 'tblTempUsageDetail_20' ) end [2025-03-27 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774169', 'tblTempVendorCDR_20' ) start [2025-03-27 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774169', 'tblTempVendorCDR_20' ) end [2025-03-27 12:28:21] Production.INFO: ProcessCDR(1,14774169,1,1,2) [2025-03-27 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774169', 'tblTempUsageDetail_20' ) start [2025-03-27 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774169', 'tblTempUsageDetail_20' ) end [2025-03-27 12:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:28:26] Production.INFO: ==31239== Releasing lock... [2025-03-27 12:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:28:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-27 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:29:05 [end_date_ymd] => 2025-03-27 12:29:05 [RateCDR] => 1 ) [2025-03-27 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:29:05' and `end` < '2025-03-27 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:29:18] Production.INFO: count ==5109 [2025-03-27 12:29:20] Production.ERROR: pbx CDR StartTime 2025-03-27 09:29:05 - End Time 2025-03-27 12:29:05 [2025-03-27 12:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774174', 'tblTempUsageDetail_20' ) start [2025-03-27 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774174', 'tblTempUsageDetail_20' ) end [2025-03-27 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774174', 'tblTempVendorCDR_20' ) start [2025-03-27 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774174', 'tblTempVendorCDR_20' ) end [2025-03-27 12:29:20] Production.INFO: ProcessCDR(1,14774174,1,1,2) [2025-03-27 12:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774174', 'tblTempUsageDetail_20' ) start [2025-03-27 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774174', 'tblTempUsageDetail_20' ) end [2025-03-27 12:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:29:26] Production.INFO: ==31310== Releasing lock... [2025-03-27 12:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:29:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-27 12:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:30:07 [end_date_ymd] => 2025-03-27 12:30:07 [RateCDR] => 1 ) [2025-03-27 12:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:30:07' and `end` < '2025-03-27 12:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:30:20] Production.INFO: count ==5124 [2025-03-27 12:30:23] Production.ERROR: pbx CDR StartTime 2025-03-27 09:30:07 - End Time 2025-03-27 12:30:07 [2025-03-27 12:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774180', 'tblTempUsageDetail_20' ) start [2025-03-27 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774180', 'tblTempUsageDetail_20' ) end [2025-03-27 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774180', 'tblTempVendorCDR_20' ) start [2025-03-27 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774180', 'tblTempVendorCDR_20' ) end [2025-03-27 12:30:23] Production.INFO: ProcessCDR(1,14774180,1,1,2) [2025-03-27 12:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774180', 'tblTempUsageDetail_20' ) start [2025-03-27 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774180', 'tblTempUsageDetail_20' ) end [2025-03-27 12:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:30:28] Production.INFO: ==31397== Releasing lock... [2025-03-27 12:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:30:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-27 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:31:05 [end_date_ymd] => 2025-03-27 12:31:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:31:05' and `end` < '2025-03-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-03-27 12:31:19] Production.INFO: count ==5183 [2025-03-27 12:31:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:31:05 - End Time 2025-03-27 12:31:05 [2025-03-27 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774185', 'tblTempUsageDetail_20' ) start [2025-03-27 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774185', 'tblTempUsageDetail_20' ) end [2025-03-27 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774185', 'tblTempVendorCDR_20' ) start [2025-03-27 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774185', 'tblTempVendorCDR_20' ) end [2025-03-27 12:31:21] Production.INFO: ProcessCDR(1,14774185,1,1,2) [2025-03-27 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774185', 'tblTempUsageDetail_20' ) start [2025-03-27 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774185', 'tblTempUsageDetail_20' ) end [2025-03-27 12:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:31:26] Production.INFO: ==31482== Releasing lock... [2025-03-27 12:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:31:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:32:06 [end_date_ymd] => 2025-03-27 12:32:06 [RateCDR] => 1 ) [2025-03-27 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:32:06' and `end` < '2025-03-27 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:32:19] Production.INFO: count ==5191 [2025-03-27 12:32:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:32:06 - End Time 2025-03-27 12:32:06 [2025-03-27 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774190', 'tblTempUsageDetail_20' ) start [2025-03-27 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774190', 'tblTempUsageDetail_20' ) end [2025-03-27 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774190', 'tblTempVendorCDR_20' ) start [2025-03-27 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774190', 'tblTempVendorCDR_20' ) end [2025-03-27 12:32:22] Production.INFO: ProcessCDR(1,14774190,1,1,2) [2025-03-27 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774190', 'tblTempUsageDetail_20' ) start [2025-03-27 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774190', 'tblTempUsageDetail_20' ) end [2025-03-27 12:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:32:27] Production.INFO: ==31561== Releasing lock... [2025-03-27 12:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:32:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:33:05 [end_date_ymd] => 2025-03-27 12:33:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:33:05' and `end` < '2025-03-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-03-27 12:33:18] Production.INFO: count ==5205 [2025-03-27 12:33:20] Production.ERROR: pbx CDR StartTime 2025-03-27 09:33:05 - End Time 2025-03-27 12:33:05 [2025-03-27 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774195', 'tblTempUsageDetail_20' ) start [2025-03-27 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774195', 'tblTempUsageDetail_20' ) end [2025-03-27 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774195', 'tblTempVendorCDR_20' ) start [2025-03-27 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774195', 'tblTempVendorCDR_20' ) end [2025-03-27 12:33:21] Production.INFO: ProcessCDR(1,14774195,1,1,2) [2025-03-27 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774195', 'tblTempUsageDetail_20' ) start [2025-03-27 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774195', 'tblTempUsageDetail_20' ) end [2025-03-27 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:33:26] Production.INFO: ==31635== Releasing lock... [2025-03-27 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:33:26] Production.INFO: 67 MB #Memory Used# [2025-03-27 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:34:05 [end_date_ymd] => 2025-03-27 12:34:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:34:05' and `end` < '2025-03-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-03-27 12:34:19] Production.INFO: count ==5213 [2025-03-27 12:34:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:34:05 - End Time 2025-03-27 12:34:05 [2025-03-27 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774200', 'tblTempUsageDetail_20' ) start [2025-03-27 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774200', 'tblTempUsageDetail_20' ) end [2025-03-27 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774200', 'tblTempVendorCDR_20' ) start [2025-03-27 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774200', 'tblTempVendorCDR_20' ) end [2025-03-27 12:34:21] Production.INFO: ProcessCDR(1,14774200,1,1,2) [2025-03-27 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774200', 'tblTempUsageDetail_20' ) start [2025-03-27 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774200', 'tblTempUsageDetail_20' ) end [2025-03-27 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:34:26] Production.INFO: ==31755== Releasing lock... [2025-03-27 12:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:34:26] Production.INFO: 67 MB #Memory Used# [2025-03-27 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:35:05 [end_date_ymd] => 2025-03-27 12:35:05 [RateCDR] => 1 ) [2025-03-27 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:35:05' and `end` < '2025-03-27 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:35:18] Production.INFO: count ==5208 [2025-03-27 12:35:20] Production.ERROR: pbx CDR StartTime 2025-03-27 09:35:05 - End Time 2025-03-27 12:35:05 [2025-03-27 12:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774205', 'tblTempUsageDetail_20' ) start [2025-03-27 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774205', 'tblTempUsageDetail_20' ) end [2025-03-27 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774205', 'tblTempVendorCDR_20' ) start [2025-03-27 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774205', 'tblTempVendorCDR_20' ) end [2025-03-27 12:35:20] Production.INFO: ProcessCDR(1,14774205,1,1,2) [2025-03-27 12:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774205', 'tblTempUsageDetail_20' ) start [2025-03-27 12:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774205', 'tblTempUsageDetail_20' ) end [2025-03-27 12:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:35:25] Production.INFO: ==31826== Releasing lock... [2025-03-27 12:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:35:25] Production.INFO: 67 MB #Memory Used# [2025-03-27 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:36:05 [end_date_ymd] => 2025-03-27 12:36:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:36:05' and `end` < '2025-03-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-03-27 12:36:19] Production.INFO: count ==5220 [2025-03-27 12:36:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:36:05 - End Time 2025-03-27 12:36:05 [2025-03-27 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774210', 'tblTempUsageDetail_20' ) start [2025-03-27 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774210', 'tblTempUsageDetail_20' ) end [2025-03-27 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774210', 'tblTempVendorCDR_20' ) start [2025-03-27 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774210', 'tblTempVendorCDR_20' ) end [2025-03-27 12:36:21] Production.INFO: ProcessCDR(1,14774210,1,1,2) [2025-03-27 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774210', 'tblTempUsageDetail_20' ) start [2025-03-27 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774210', 'tblTempUsageDetail_20' ) end [2025-03-27 12:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:36:26] Production.INFO: ==31899== Releasing lock... [2025-03-27 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:36:26] Production.INFO: 67 MB #Memory Used# [2025-03-27 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:37:06 [end_date_ymd] => 2025-03-27 12:37:06 [RateCDR] => 1 ) [2025-03-27 12:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:37:06' and `end` < '2025-03-27 12:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:37:19] Production.INFO: count ==5235 [2025-03-27 12:37:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:37:06 - End Time 2025-03-27 12:37:06 [2025-03-27 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774215', 'tblTempUsageDetail_20' ) start [2025-03-27 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774215', 'tblTempUsageDetail_20' ) end [2025-03-27 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774215', 'tblTempVendorCDR_20' ) start [2025-03-27 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774215', 'tblTempVendorCDR_20' ) end [2025-03-27 12:37:21] Production.INFO: ProcessCDR(1,14774215,1,1,2) [2025-03-27 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774215', 'tblTempUsageDetail_20' ) start [2025-03-27 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774215', 'tblTempUsageDetail_20' ) end [2025-03-27 12:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:37:27] Production.INFO: ==31980== Releasing lock... [2025-03-27 12:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:37:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-27 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:38:05 [end_date_ymd] => 2025-03-27 12:38:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:38:05' and `end` < '2025-03-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-03-27 12:38:19] Production.INFO: count ==5221 [2025-03-27 12:38:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:38:05 - End Time 2025-03-27 12:38:05 [2025-03-27 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774220', 'tblTempUsageDetail_20' ) start [2025-03-27 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774220', 'tblTempUsageDetail_20' ) end [2025-03-27 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774220', 'tblTempVendorCDR_20' ) start [2025-03-27 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774220', 'tblTempVendorCDR_20' ) end [2025-03-27 12:38:21] Production.INFO: ProcessCDR(1,14774220,1,1,2) [2025-03-27 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774220', 'tblTempUsageDetail_20' ) start [2025-03-27 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774220', 'tblTempUsageDetail_20' ) end [2025-03-27 12:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:38:26] Production.INFO: ==32069== Releasing lock... [2025-03-27 12:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:38:26] Production.INFO: 67 MB #Memory Used# [2025-03-27 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:39:06 [end_date_ymd] => 2025-03-27 12:39:06 [RateCDR] => 1 ) [2025-03-27 12:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:39:06' and `end` < '2025-03-27 12:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:39:19] Production.INFO: count ==5233 [2025-03-27 12:39:22] Production.ERROR: pbx CDR StartTime 2025-03-27 09:39:06 - End Time 2025-03-27 12:39:06 [2025-03-27 12:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774225', 'tblTempUsageDetail_20' ) start [2025-03-27 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774225', 'tblTempUsageDetail_20' ) end [2025-03-27 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774225', 'tblTempVendorCDR_20' ) start [2025-03-27 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774225', 'tblTempVendorCDR_20' ) end [2025-03-27 12:39:22] Production.INFO: ProcessCDR(1,14774225,1,1,2) [2025-03-27 12:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774225', 'tblTempUsageDetail_20' ) start [2025-03-27 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774225', 'tblTempUsageDetail_20' ) end [2025-03-27 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:39:27] Production.INFO: ==32142== Releasing lock... [2025-03-27 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:39:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-27 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:40:06 [end_date_ymd] => 2025-03-27 12:40:06 [RateCDR] => 1 ) [2025-03-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-03-27 09:40:06' and `end` < '2025-03-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-03-27 12:40:19] Production.INFO: count ==5240 [2025-03-27 12:40:22] Production.ERROR: pbx CDR StartTime 2025-03-27 09:40:06 - End Time 2025-03-27 12:40:06 [2025-03-27 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774230', 'tblTempUsageDetail_20' ) start [2025-03-27 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774230', 'tblTempUsageDetail_20' ) end [2025-03-27 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774230', 'tblTempVendorCDR_20' ) start [2025-03-27 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774230', 'tblTempVendorCDR_20' ) end [2025-03-27 12:40:22] Production.INFO: ProcessCDR(1,14774230,1,1,2) [2025-03-27 12:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774230', 'tblTempUsageDetail_20' ) start [2025-03-27 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774230', 'tblTempUsageDetail_20' ) end [2025-03-27 12:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:40:27] Production.INFO: ==32217== Releasing lock... [2025-03-27 12:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:40:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-27 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:41:06 [end_date_ymd] => 2025-03-27 12:41:06 [RateCDR] => 1 ) [2025-03-27 12:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:41:06' and `end` < '2025-03-27 12:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:41:19] Production.INFO: count ==5268 [2025-03-27 12:41:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:41:06 - End Time 2025-03-27 12:41:06 [2025-03-27 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774236', 'tblTempUsageDetail_20' ) start [2025-03-27 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774236', 'tblTempUsageDetail_20' ) end [2025-03-27 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774236', 'tblTempVendorCDR_20' ) start [2025-03-27 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774236', 'tblTempVendorCDR_20' ) end [2025-03-27 12:41:22] Production.INFO: ProcessCDR(1,14774236,1,1,2) [2025-03-27 12:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774236', 'tblTempUsageDetail_20' ) start [2025-03-27 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774236', 'tblTempUsageDetail_20' ) end [2025-03-27 12:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:41:27] Production.INFO: ==32291== Releasing lock... [2025-03-27 12:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:41:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-27 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:42:05 [end_date_ymd] => 2025-03-27 12:42:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:42:05' and `end` < '2025-03-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-03-27 12:42:19] Production.INFO: count ==5288 [2025-03-27 12:42:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:42:05 - End Time 2025-03-27 12:42:05 [2025-03-27 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774241', 'tblTempUsageDetail_20' ) start [2025-03-27 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774241', 'tblTempUsageDetail_20' ) end [2025-03-27 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774241', 'tblTempVendorCDR_20' ) start [2025-03-27 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774241', 'tblTempVendorCDR_20' ) end [2025-03-27 12:42:21] Production.INFO: ProcessCDR(1,14774241,1,1,2) [2025-03-27 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774241', 'tblTempUsageDetail_20' ) start [2025-03-27 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774241', 'tblTempUsageDetail_20' ) end [2025-03-27 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:42:26] Production.INFO: ==32361== Releasing lock... [2025-03-27 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:42:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-27 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:43:05 [end_date_ymd] => 2025-03-27 12:43:05 [RateCDR] => 1 ) [2025-03-27 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:43:05' and `end` < '2025-03-27 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:43:18] Production.INFO: count ==5326 [2025-03-27 12:43:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:43:05 - End Time 2025-03-27 12:43:05 [2025-03-27 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774246', 'tblTempUsageDetail_20' ) start [2025-03-27 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774246', 'tblTempUsageDetail_20' ) end [2025-03-27 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774246', 'tblTempVendorCDR_20' ) start [2025-03-27 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774246', 'tblTempVendorCDR_20' ) end [2025-03-27 12:43:21] Production.INFO: ProcessCDR(1,14774246,1,1,2) [2025-03-27 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774246', 'tblTempUsageDetail_20' ) start [2025-03-27 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774246', 'tblTempUsageDetail_20' ) end [2025-03-27 12:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:43:27] Production.INFO: ==32433== Releasing lock... [2025-03-27 12:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:43:27] Production.INFO: 68 MB #Memory Used# [2025-03-27 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:44:05 [end_date_ymd] => 2025-03-27 12:44:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:44:05' and `end` < '2025-03-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-03-27 12:44:19] Production.INFO: count ==5305 [2025-03-27 12:44:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:44:05 - End Time 2025-03-27 12:44:05 [2025-03-27 12:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774251', 'tblTempUsageDetail_20' ) start [2025-03-27 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774251', 'tblTempUsageDetail_20' ) end [2025-03-27 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774251', 'tblTempVendorCDR_20' ) start [2025-03-27 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774251', 'tblTempVendorCDR_20' ) end [2025-03-27 12:44:21] Production.INFO: ProcessCDR(1,14774251,1,1,2) [2025-03-27 12:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774251', 'tblTempUsageDetail_20' ) start [2025-03-27 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774251', 'tblTempUsageDetail_20' ) end [2025-03-27 12:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:44:27] Production.INFO: ==32516== Releasing lock... [2025-03-27 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:44:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-27 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:45:05 [end_date_ymd] => 2025-03-27 12:45:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:45:05' and `end` < '2025-03-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-03-27 12:45:19] Production.INFO: count ==5319 [2025-03-27 12:45:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:45:05 - End Time 2025-03-27 12:45:05 [2025-03-27 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774256', 'tblTempUsageDetail_20' ) start [2025-03-27 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774256', 'tblTempUsageDetail_20' ) end [2025-03-27 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774256', 'tblTempVendorCDR_20' ) start [2025-03-27 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774256', 'tblTempVendorCDR_20' ) end [2025-03-27 12:45:21] Production.INFO: ProcessCDR(1,14774256,1,1,2) [2025-03-27 12:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774256', 'tblTempUsageDetail_20' ) start [2025-03-27 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774256', 'tblTempUsageDetail_20' ) end [2025-03-27 12:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:45:27] Production.INFO: ==32602== Releasing lock... [2025-03-27 12:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:45:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-27 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:46:05 [end_date_ymd] => 2025-03-27 12:46:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:46:05' and `end` < '2025-03-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-03-27 12:46:18] Production.INFO: count ==5326 [2025-03-27 12:46:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:46:05 - End Time 2025-03-27 12:46:05 [2025-03-27 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774261', 'tblTempUsageDetail_20' ) start [2025-03-27 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774261', 'tblTempUsageDetail_20' ) end [2025-03-27 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774261', 'tblTempVendorCDR_20' ) start [2025-03-27 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774261', 'tblTempVendorCDR_20' ) end [2025-03-27 12:46:21] Production.INFO: ProcessCDR(1,14774261,1,1,2) [2025-03-27 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774261', 'tblTempUsageDetail_20' ) start [2025-03-27 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774261', 'tblTempUsageDetail_20' ) end [2025-03-27 12:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:46:26] Production.INFO: ==32674== Releasing lock... [2025-03-27 12:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:46:26] Production.INFO: 68 MB #Memory Used# [2025-03-27 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:47:05 [end_date_ymd] => 2025-03-27 12:47:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:47:05' and `end` < '2025-03-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-03-27 12:47:18] Production.INFO: count ==5333 [2025-03-27 12:47:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:47:05 - End Time 2025-03-27 12:47:05 [2025-03-27 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774266', 'tblTempUsageDetail_20' ) start [2025-03-27 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774266', 'tblTempUsageDetail_20' ) end [2025-03-27 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774266', 'tblTempVendorCDR_20' ) start [2025-03-27 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774266', 'tblTempVendorCDR_20' ) end [2025-03-27 12:47:21] Production.INFO: ProcessCDR(1,14774266,1,1,2) [2025-03-27 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774266', 'tblTempUsageDetail_20' ) start [2025-03-27 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774266', 'tblTempUsageDetail_20' ) end [2025-03-27 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:47:26] Production.INFO: ==32751== Releasing lock... [2025-03-27 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:47:26] Production.INFO: 68 MB #Memory Used# [2025-03-27 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:48:05 [end_date_ymd] => 2025-03-27 12:48:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:48:05' and `end` < '2025-03-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-03-27 12:48:18] Production.INFO: count ==5328 [2025-03-27 12:48:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:48:05 - End Time 2025-03-27 12:48:05 [2025-03-27 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774271', 'tblTempUsageDetail_20' ) start [2025-03-27 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774271', 'tblTempUsageDetail_20' ) end [2025-03-27 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774271', 'tblTempVendorCDR_20' ) start [2025-03-27 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774271', 'tblTempVendorCDR_20' ) end [2025-03-27 12:48:21] Production.INFO: ProcessCDR(1,14774271,1,1,2) [2025-03-27 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774271', 'tblTempUsageDetail_20' ) start [2025-03-27 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774271', 'tblTempUsageDetail_20' ) end [2025-03-27 12:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:48:26] Production.INFO: ==375== Releasing lock... [2025-03-27 12:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:48:26] Production.INFO: 68 MB #Memory Used# [2025-03-27 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:49:05 [end_date_ymd] => 2025-03-27 12:49:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:49:05' and `end` < '2025-03-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-03-27 12:49:19] Production.INFO: count ==5332 [2025-03-27 12:49:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:49:05 - End Time 2025-03-27 12:49:05 [2025-03-27 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774276', 'tblTempUsageDetail_20' ) start [2025-03-27 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774276', 'tblTempUsageDetail_20' ) end [2025-03-27 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774276', 'tblTempVendorCDR_20' ) start [2025-03-27 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774276', 'tblTempVendorCDR_20' ) end [2025-03-27 12:49:21] Production.INFO: ProcessCDR(1,14774276,1,1,2) [2025-03-27 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774276', 'tblTempUsageDetail_20' ) start [2025-03-27 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774276', 'tblTempUsageDetail_20' ) end [2025-03-27 12:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:49:27] Production.INFO: ==447== Releasing lock... [2025-03-27 12:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:49:27] Production.INFO: 68 MB #Memory Used# [2025-03-27 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:50:06 [end_date_ymd] => 2025-03-27 12:50:06 [RateCDR] => 1 ) [2025-03-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-03-27 09:50:06' and `end` < '2025-03-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-03-27 12:50:19] Production.INFO: count ==5357 [2025-03-27 12:50:22] Production.ERROR: pbx CDR StartTime 2025-03-27 09:50:06 - End Time 2025-03-27 12:50:06 [2025-03-27 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774282', 'tblTempUsageDetail_20' ) start [2025-03-27 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774282', 'tblTempUsageDetail_20' ) end [2025-03-27 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774282', 'tblTempVendorCDR_20' ) start [2025-03-27 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774282', 'tblTempVendorCDR_20' ) end [2025-03-27 12:50:22] Production.INFO: ProcessCDR(1,14774282,1,1,2) [2025-03-27 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774282', 'tblTempUsageDetail_20' ) start [2025-03-27 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774282', 'tblTempUsageDetail_20' ) end [2025-03-27 12:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:50:27] Production.INFO: ==566== Releasing lock... [2025-03-27 12:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:50:27] Production.INFO: 68 MB #Memory Used# [2025-03-27 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:51:05 [end_date_ymd] => 2025-03-27 12:51:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:51:05' and `end` < '2025-03-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-03-27 12:51:19] Production.INFO: count ==5382 [2025-03-27 12:51:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:51:05 - End Time 2025-03-27 12:51:05 [2025-03-27 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774287', 'tblTempUsageDetail_20' ) start [2025-03-27 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774287', 'tblTempUsageDetail_20' ) end [2025-03-27 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774287', 'tblTempVendorCDR_20' ) start [2025-03-27 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774287', 'tblTempVendorCDR_20' ) end [2025-03-27 12:51:21] Production.INFO: ProcessCDR(1,14774287,1,1,2) [2025-03-27 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774287', 'tblTempUsageDetail_20' ) start [2025-03-27 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774287', 'tblTempUsageDetail_20' ) end [2025-03-27 12:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:51:26] Production.INFO: ==676== Releasing lock... [2025-03-27 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:51:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-27 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:52:05 [end_date_ymd] => 2025-03-27 12:52:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:52:05' and `end` < '2025-03-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-03-27 12:52:18] Production.INFO: count ==5387 [2025-03-27 12:52:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:52:05 - End Time 2025-03-27 12:52:05 [2025-03-27 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774292', 'tblTempUsageDetail_20' ) start [2025-03-27 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774292', 'tblTempUsageDetail_20' ) end [2025-03-27 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774292', 'tblTempVendorCDR_20' ) start [2025-03-27 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774292', 'tblTempVendorCDR_20' ) end [2025-03-27 12:52:21] Production.INFO: ProcessCDR(1,14774292,1,1,2) [2025-03-27 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774292', 'tblTempUsageDetail_20' ) start [2025-03-27 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774292', 'tblTempUsageDetail_20' ) end [2025-03-27 12:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:52:26] Production.INFO: ==772== Releasing lock... [2025-03-27 12:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:52:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-27 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:53:05 [end_date_ymd] => 2025-03-27 12:53:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:53:05' and `end` < '2025-03-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-03-27 12:53:19] Production.INFO: count ==5402 [2025-03-27 12:53:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:53:05 - End Time 2025-03-27 12:53:05 [2025-03-27 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774297', 'tblTempUsageDetail_20' ) start [2025-03-27 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774297', 'tblTempUsageDetail_20' ) end [2025-03-27 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774297', 'tblTempVendorCDR_20' ) start [2025-03-27 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774297', 'tblTempVendorCDR_20' ) end [2025-03-27 12:53:21] Production.INFO: ProcessCDR(1,14774297,1,1,2) [2025-03-27 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774297', 'tblTempUsageDetail_20' ) start [2025-03-27 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774297', 'tblTempUsageDetail_20' ) end [2025-03-27 12:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:53:27] Production.INFO: ==847== Releasing lock... [2025-03-27 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:53:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-27 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:54:05 [end_date_ymd] => 2025-03-27 12:54:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:54:05' and `end` < '2025-03-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-03-27 12:54:18] Production.INFO: count ==5408 [2025-03-27 12:54:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:54:05 - End Time 2025-03-27 12:54:05 [2025-03-27 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774302', 'tblTempUsageDetail_20' ) start [2025-03-27 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774302', 'tblTempUsageDetail_20' ) end [2025-03-27 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774302', 'tblTempVendorCDR_20' ) start [2025-03-27 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774302', 'tblTempVendorCDR_20' ) end [2025-03-27 12:54:21] Production.INFO: ProcessCDR(1,14774302,1,1,2) [2025-03-27 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774302', 'tblTempUsageDetail_20' ) start [2025-03-27 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774302', 'tblTempUsageDetail_20' ) end [2025-03-27 12:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:54:26] Production.INFO: ==920== Releasing lock... [2025-03-27 12:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:54:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-27 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:55:06 [end_date_ymd] => 2025-03-27 12:55:06 [RateCDR] => 1 ) [2025-03-27 12:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 09:55:06' and `end` < '2025-03-27 12:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 12:55:19] Production.INFO: count ==5417 [2025-03-27 12:55:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:55:06 - End Time 2025-03-27 12:55:06 [2025-03-27 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774307', 'tblTempUsageDetail_20' ) start [2025-03-27 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774307', 'tblTempUsageDetail_20' ) end [2025-03-27 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774307', 'tblTempVendorCDR_20' ) start [2025-03-27 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774307', 'tblTempVendorCDR_20' ) end [2025-03-27 12:55:22] Production.INFO: ProcessCDR(1,14774307,1,1,2) [2025-03-27 12:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774307', 'tblTempUsageDetail_20' ) start [2025-03-27 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774307', 'tblTempUsageDetail_20' ) end [2025-03-27 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:55:27] Production.INFO: ==992== Releasing lock... [2025-03-27 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:55:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-27 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:56:06 [end_date_ymd] => 2025-03-27 12:56:06 [RateCDR] => 1 ) [2025-03-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-03-27 09:56:06' and `end` < '2025-03-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-03-27 12:56:19] Production.INFO: count ==5464 [2025-03-27 12:56:22] Production.ERROR: pbx CDR StartTime 2025-03-27 09:56:06 - End Time 2025-03-27 12:56:06 [2025-03-27 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774312', 'tblTempUsageDetail_20' ) start [2025-03-27 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774312', 'tblTempUsageDetail_20' ) end [2025-03-27 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774312', 'tblTempVendorCDR_20' ) start [2025-03-27 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774312', 'tblTempVendorCDR_20' ) end [2025-03-27 12:56:22] Production.INFO: ProcessCDR(1,14774312,1,1,2) [2025-03-27 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774312', 'tblTempUsageDetail_20' ) start [2025-03-27 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774312', 'tblTempUsageDetail_20' ) end [2025-03-27 12:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:56:27] Production.INFO: ==1065== Releasing lock... [2025-03-27 12:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:56:27] Production.INFO: 69 MB #Memory Used# [2025-03-27 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:57:05 [end_date_ymd] => 2025-03-27 12:57:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:57:05' and `end` < '2025-03-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-03-27 12:57:19] Production.INFO: count ==5478 [2025-03-27 12:57:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:57:05 - End Time 2025-03-27 12:57:05 [2025-03-27 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774317', 'tblTempUsageDetail_20' ) start [2025-03-27 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774317', 'tblTempUsageDetail_20' ) end [2025-03-27 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774317', 'tblTempVendorCDR_20' ) start [2025-03-27 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774317', 'tblTempVendorCDR_20' ) end [2025-03-27 12:57:21] Production.INFO: ProcessCDR(1,14774317,1,1,2) [2025-03-27 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774317', 'tblTempUsageDetail_20' ) start [2025-03-27 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774317', 'tblTempUsageDetail_20' ) end [2025-03-27 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:57:26] Production.INFO: ==1141== Releasing lock... [2025-03-27 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:57:26] Production.INFO: 69 MB #Memory Used# [2025-03-27 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:58:05 [end_date_ymd] => 2025-03-27 12:58:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:58:05' and `end` < '2025-03-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-03-27 12:58:19] Production.INFO: count ==5494 [2025-03-27 12:58:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:58:05 - End Time 2025-03-27 12:58:05 [2025-03-27 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774322', 'tblTempUsageDetail_20' ) start [2025-03-27 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774322', 'tblTempUsageDetail_20' ) end [2025-03-27 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774322', 'tblTempVendorCDR_20' ) start [2025-03-27 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774322', 'tblTempVendorCDR_20' ) end [2025-03-27 12:58:21] Production.INFO: ProcessCDR(1,14774322,1,1,2) [2025-03-27 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774322', 'tblTempUsageDetail_20' ) start [2025-03-27 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774322', 'tblTempUsageDetail_20' ) end [2025-03-27 12:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:58:25] Production.INFO: ==1232== Releasing lock... [2025-03-27 12:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:58:25] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 09:59:05 [end_date_ymd] => 2025-03-27 12:59:05 [RateCDR] => 1 ) [2025-03-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-03-27 09:59:05' and `end` < '2025-03-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-03-27 12:59:19] Production.INFO: count ==5515 [2025-03-27 12:59:21] Production.ERROR: pbx CDR StartTime 2025-03-27 09:59:05 - End Time 2025-03-27 12:59:05 [2025-03-27 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774327', 'tblTempUsageDetail_20' ) start [2025-03-27 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774327', 'tblTempUsageDetail_20' ) end [2025-03-27 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774327', 'tblTempVendorCDR_20' ) start [2025-03-27 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774327', 'tblTempVendorCDR_20' ) end [2025-03-27 12:59:21] Production.INFO: ProcessCDR(1,14774327,1,1,2) [2025-03-27 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 12:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774327', 'tblTempUsageDetail_20' ) start [2025-03-27 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774327', 'tblTempUsageDetail_20' ) end [2025-03-27 12:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 12:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 12:59:27] Production.INFO: ==1326== Releasing lock... [2025-03-27 12:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 12:59:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:00:06 [end_date_ymd] => 2025-03-27 13:00:06 [RateCDR] => 1 ) [2025-03-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-03-27 10:00:06' and `end` < '2025-03-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-03-27 13:00:20] Production.INFO: count ==5505 [2025-03-27 13:00:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:00:06 - End Time 2025-03-27 13:00:06 [2025-03-27 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774333', 'tblTempUsageDetail_20' ) start [2025-03-27 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774333', 'tblTempUsageDetail_20' ) end [2025-03-27 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774333', 'tblTempVendorCDR_20' ) start [2025-03-27 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774333', 'tblTempVendorCDR_20' ) end [2025-03-27 13:00:22] Production.INFO: ProcessCDR(1,14774333,1,1,2) [2025-03-27 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774333', 'tblTempUsageDetail_20' ) start [2025-03-27 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774333', 'tblTempUsageDetail_20' ) end [2025-03-27 13:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:00:28] Production.INFO: ==1403== Releasing lock... [2025-03-27 13:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:00:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:01:05 [end_date_ymd] => 2025-03-27 13:01:05 [RateCDR] => 1 ) [2025-03-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-03-27 10:01:05' and `end` < '2025-03-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-03-27 13:01:18] Production.INFO: count ==5537 [2025-03-27 13:01:21] Production.ERROR: pbx CDR StartTime 2025-03-27 10:01:05 - End Time 2025-03-27 13:01:05 [2025-03-27 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774338', 'tblTempUsageDetail_20' ) start [2025-03-27 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774338', 'tblTempUsageDetail_20' ) end [2025-03-27 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774338', 'tblTempVendorCDR_20' ) start [2025-03-27 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774338', 'tblTempVendorCDR_20' ) end [2025-03-27 13:01:21] Production.INFO: ProcessCDR(1,14774338,1,1,2) [2025-03-27 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774338', 'tblTempUsageDetail_20' ) start [2025-03-27 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774338', 'tblTempUsageDetail_20' ) end [2025-03-27 13:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:01:27] Production.INFO: ==1490== Releasing lock... [2025-03-27 13:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:01:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-27 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:02:06 [end_date_ymd] => 2025-03-27 13:02:06 [RateCDR] => 1 ) [2025-03-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-03-27 10:02:06' and `end` < '2025-03-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-03-27 13:02:20] Production.INFO: count ==5557 [2025-03-27 13:02:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:02:06 - End Time 2025-03-27 13:02:06 [2025-03-27 13:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774343', 'tblTempUsageDetail_20' ) start [2025-03-27 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774343', 'tblTempUsageDetail_20' ) end [2025-03-27 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774343', 'tblTempVendorCDR_20' ) start [2025-03-27 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774343', 'tblTempVendorCDR_20' ) end [2025-03-27 13:02:23] Production.INFO: ProcessCDR(1,14774343,1,1,2) [2025-03-27 13:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774343', 'tblTempUsageDetail_20' ) start [2025-03-27 13:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774343', 'tblTempUsageDetail_20' ) end [2025-03-27 13:02:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:02:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:02:29] Production.INFO: ==1600== Releasing lock... [2025-03-27 13:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:02:29] Production.INFO: 69.5 MB #Memory Used# [2025-03-27 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:03:06 [end_date_ymd] => 2025-03-27 13:03:06 [RateCDR] => 1 ) [2025-03-27 13:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:03:06' and `end` < '2025-03-27 13:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:03:21] Production.INFO: count ==5549 [2025-03-27 13:03:23] Production.ERROR: pbx CDR StartTime 2025-03-27 10:03:06 - End Time 2025-03-27 13:03:06 [2025-03-27 13:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774348', 'tblTempUsageDetail_20' ) start [2025-03-27 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774348', 'tblTempUsageDetail_20' ) end [2025-03-27 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774348', 'tblTempVendorCDR_20' ) start [2025-03-27 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774348', 'tblTempVendorCDR_20' ) end [2025-03-27 13:03:23] Production.INFO: ProcessCDR(1,14774348,1,1,2) [2025-03-27 13:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774348', 'tblTempUsageDetail_20' ) start [2025-03-27 13:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774348', 'tblTempUsageDetail_20' ) end [2025-03-27 13:03:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:03:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:03:29] Production.INFO: ==1670== Releasing lock... [2025-03-27 13:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:03:29] Production.INFO: 69.5 MB #Memory Used# [2025-03-27 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:04:05 [end_date_ymd] => 2025-03-27 13:04:05 [RateCDR] => 1 ) [2025-03-27 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:04:05' and `end` < '2025-03-27 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:04:18] Production.INFO: count ==5555 [2025-03-27 13:04:21] Production.ERROR: pbx CDR StartTime 2025-03-27 10:04:05 - End Time 2025-03-27 13:04:05 [2025-03-27 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774353', 'tblTempUsageDetail_20' ) start [2025-03-27 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774353', 'tblTempUsageDetail_20' ) end [2025-03-27 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774353', 'tblTempVendorCDR_20' ) start [2025-03-27 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774353', 'tblTempVendorCDR_20' ) end [2025-03-27 13:04:21] Production.INFO: ProcessCDR(1,14774353,1,1,2) [2025-03-27 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774353', 'tblTempUsageDetail_20' ) start [2025-03-27 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774353', 'tblTempUsageDetail_20' ) end [2025-03-27 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:04:27] Production.INFO: ==1740== Releasing lock... [2025-03-27 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:04:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-27 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:05:06 [end_date_ymd] => 2025-03-27 13:05:06 [RateCDR] => 1 ) [2025-03-27 13:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:05:06' and `end` < '2025-03-27 13:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:05:20] Production.INFO: count ==5562 [2025-03-27 13:05:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:05:06 - End Time 2025-03-27 13:05:06 [2025-03-27 13:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774358', 'tblTempUsageDetail_20' ) start [2025-03-27 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774358', 'tblTempUsageDetail_20' ) end [2025-03-27 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774358', 'tblTempVendorCDR_20' ) start [2025-03-27 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774358', 'tblTempVendorCDR_20' ) end [2025-03-27 13:05:22] Production.INFO: ProcessCDR(1,14774358,1,1,2) [2025-03-27 13:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774358', 'tblTempUsageDetail_20' ) start [2025-03-27 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774358', 'tblTempUsageDetail_20' ) end [2025-03-27 13:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:05:28] Production.INFO: ==1864== Releasing lock... [2025-03-27 13:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:05:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-27 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:06:05 [end_date_ymd] => 2025-03-27 13:06:05 [RateCDR] => 1 ) [2025-03-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-03-27 10:06:05' and `end` < '2025-03-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-03-27 13:06:18] Production.INFO: count ==5570 [2025-03-27 13:06:21] Production.ERROR: pbx CDR StartTime 2025-03-27 10:06:05 - End Time 2025-03-27 13:06:05 [2025-03-27 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774363', 'tblTempUsageDetail_20' ) start [2025-03-27 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774363', 'tblTempUsageDetail_20' ) end [2025-03-27 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774363', 'tblTempVendorCDR_20' ) start [2025-03-27 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774363', 'tblTempVendorCDR_20' ) end [2025-03-27 13:06:21] Production.INFO: ProcessCDR(1,14774363,1,1,2) [2025-03-27 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774363', 'tblTempUsageDetail_20' ) start [2025-03-27 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774363', 'tblTempUsageDetail_20' ) end [2025-03-27 13:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:06:27] Production.INFO: ==1948== Releasing lock... [2025-03-27 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:06:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-27 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:07:06 [end_date_ymd] => 2025-03-27 13:07:06 [RateCDR] => 1 ) [2025-03-27 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:07:06' and `end` < '2025-03-27 13:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:07:19] Production.INFO: count ==5609 [2025-03-27 13:07:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:07:06 - End Time 2025-03-27 13:07:06 [2025-03-27 13:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774368', 'tblTempUsageDetail_20' ) start [2025-03-27 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774368', 'tblTempUsageDetail_20' ) end [2025-03-27 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774368', 'tblTempVendorCDR_20' ) start [2025-03-27 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774368', 'tblTempVendorCDR_20' ) end [2025-03-27 13:07:22] Production.INFO: ProcessCDR(1,14774368,1,1,2) [2025-03-27 13:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774368', 'tblTempUsageDetail_20' ) start [2025-03-27 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774368', 'tblTempUsageDetail_20' ) end [2025-03-27 13:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:07:28] Production.INFO: ==2022== Releasing lock... [2025-03-27 13:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:07:28] Production.INFO: 70 MB #Memory Used# [2025-03-27 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:08:05 [end_date_ymd] => 2025-03-27 13:08:05 [RateCDR] => 1 ) [2025-03-27 13:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:08:05' and `end` < '2025-03-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-03-27 13:08:19] Production.INFO: count ==5615 [2025-03-27 13:08:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:08:05 - End Time 2025-03-27 13:08:05 [2025-03-27 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774373', 'tblTempUsageDetail_20' ) start [2025-03-27 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774373', 'tblTempUsageDetail_20' ) end [2025-03-27 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774373', 'tblTempVendorCDR_20' ) start [2025-03-27 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774373', 'tblTempVendorCDR_20' ) end [2025-03-27 13:08:22] Production.INFO: ProcessCDR(1,14774373,1,1,2) [2025-03-27 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774373', 'tblTempUsageDetail_20' ) start [2025-03-27 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774373', 'tblTempUsageDetail_20' ) end [2025-03-27 13:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:08:28] Production.INFO: ==2096== Releasing lock... [2025-03-27 13:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:08:28] Production.INFO: 70 MB #Memory Used# [2025-03-27 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:09:05 [end_date_ymd] => 2025-03-27 13:09:05 [RateCDR] => 1 ) [2025-03-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-03-27 10:09:05' and `end` < '2025-03-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-03-27 13:09:19] Production.INFO: count ==5606 [2025-03-27 13:09:21] Production.ERROR: pbx CDR StartTime 2025-03-27 10:09:05 - End Time 2025-03-27 13:09:05 [2025-03-27 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774378', 'tblTempUsageDetail_20' ) start [2025-03-27 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774378', 'tblTempUsageDetail_20' ) end [2025-03-27 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774378', 'tblTempVendorCDR_20' ) start [2025-03-27 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774378', 'tblTempVendorCDR_20' ) end [2025-03-27 13:09:21] Production.INFO: ProcessCDR(1,14774378,1,1,2) [2025-03-27 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774378', 'tblTempUsageDetail_20' ) start [2025-03-27 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774378', 'tblTempUsageDetail_20' ) end [2025-03-27 13:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:09:27] Production.INFO: ==2173== Releasing lock... [2025-03-27 13:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:09:27] Production.INFO: 70 MB #Memory Used# [2025-03-27 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:10:06 [end_date_ymd] => 2025-03-27 13:10:06 [RateCDR] => 1 ) [2025-03-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-03-27 10:10:06' and `end` < '2025-03-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-03-27 13:10:20] Production.INFO: count ==5600 [2025-03-27 13:10:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:10:06 - End Time 2025-03-27 13:10:06 [2025-03-27 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774384', 'tblTempUsageDetail_20' ) start [2025-03-27 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774384', 'tblTempUsageDetail_20' ) end [2025-03-27 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774384', 'tblTempVendorCDR_20' ) start [2025-03-27 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774384', 'tblTempVendorCDR_20' ) end [2025-03-27 13:10:22] Production.INFO: ProcessCDR(1,14774384,1,1,2) [2025-03-27 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774384', 'tblTempUsageDetail_20' ) start [2025-03-27 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774384', 'tblTempUsageDetail_20' ) end [2025-03-27 13:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:10:28] Production.INFO: ==2254== Releasing lock... [2025-03-27 13:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:10:28] Production.INFO: 70 MB #Memory Used# [2025-03-27 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:11:06 [end_date_ymd] => 2025-03-27 13:11:06 [RateCDR] => 1 ) [2025-03-27 13:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:11:06' and `end` < '2025-03-27 13:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:11:19] Production.INFO: count ==5614 [2025-03-27 13:11:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:11:06 - End Time 2025-03-27 13:11:06 [2025-03-27 13:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774389', 'tblTempUsageDetail_20' ) start [2025-03-27 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774389', 'tblTempUsageDetail_20' ) end [2025-03-27 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774389', 'tblTempVendorCDR_20' ) start [2025-03-27 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774389', 'tblTempVendorCDR_20' ) end [2025-03-27 13:11:22] Production.INFO: ProcessCDR(1,14774389,1,1,2) [2025-03-27 13:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774389', 'tblTempUsageDetail_20' ) start [2025-03-27 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774389', 'tblTempUsageDetail_20' ) end [2025-03-27 13:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:11:27] Production.INFO: ==2334== Releasing lock... [2025-03-27 13:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:11:27] Production.INFO: 70 MB #Memory Used# [2025-03-27 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:12:06 [end_date_ymd] => 2025-03-27 13:12:06 [RateCDR] => 1 ) [2025-03-27 13:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:12:06' and `end` < '2025-03-27 13:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:12:19] Production.INFO: count ==5619 [2025-03-27 13:12:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:12:06 - End Time 2025-03-27 13:12:06 [2025-03-27 13:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774394', 'tblTempUsageDetail_20' ) start [2025-03-27 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774394', 'tblTempUsageDetail_20' ) end [2025-03-27 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774394', 'tblTempVendorCDR_20' ) start [2025-03-27 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774394', 'tblTempVendorCDR_20' ) end [2025-03-27 13:12:22] Production.INFO: ProcessCDR(1,14774394,1,1,2) [2025-03-27 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774394', 'tblTempUsageDetail_20' ) start [2025-03-27 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774394', 'tblTempUsageDetail_20' ) end [2025-03-27 13:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:12:28] Production.INFO: ==2408== Releasing lock... [2025-03-27 13:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:12:28] Production.INFO: 70 MB #Memory Used# [2025-03-27 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:13:06 [end_date_ymd] => 2025-03-27 13:13:06 [RateCDR] => 1 ) [2025-03-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-03-27 10:13:06' and `end` < '2025-03-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-03-27 13:13:19] Production.INFO: count ==5633 [2025-03-27 13:13:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:13:06 - End Time 2025-03-27 13:13:06 [2025-03-27 13:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774399', 'tblTempUsageDetail_20' ) start [2025-03-27 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774399', 'tblTempUsageDetail_20' ) end [2025-03-27 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774399', 'tblTempVendorCDR_20' ) start [2025-03-27 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774399', 'tblTempVendorCDR_20' ) end [2025-03-27 13:13:22] Production.INFO: ProcessCDR(1,14774399,1,1,2) [2025-03-27 13:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774399', 'tblTempUsageDetail_20' ) start [2025-03-27 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774399', 'tblTempUsageDetail_20' ) end [2025-03-27 13:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:13:27] Production.INFO: ==2499== Releasing lock... [2025-03-27 13:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:13:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-27 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:14:05 [end_date_ymd] => 2025-03-27 13:14:05 [RateCDR] => 1 ) [2025-03-27 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:14:05' and `end` < '2025-03-27 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:14:19] Production.INFO: count ==5627 [2025-03-27 13:14:21] Production.ERROR: pbx CDR StartTime 2025-03-27 10:14:05 - End Time 2025-03-27 13:14:05 [2025-03-27 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774404', 'tblTempUsageDetail_20' ) start [2025-03-27 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774404', 'tblTempUsageDetail_20' ) end [2025-03-27 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774404', 'tblTempVendorCDR_20' ) start [2025-03-27 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774404', 'tblTempVendorCDR_20' ) end [2025-03-27 13:14:21] Production.INFO: ProcessCDR(1,14774404,1,1,2) [2025-03-27 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774404', 'tblTempUsageDetail_20' ) start [2025-03-27 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774404', 'tblTempUsageDetail_20' ) end [2025-03-27 13:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:14:27] Production.INFO: ==2569== Releasing lock... [2025-03-27 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:14:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-27 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:15:06 [end_date_ymd] => 2025-03-27 13:15:06 [RateCDR] => 1 ) [2025-03-27 13:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:15:06' and `end` < '2025-03-27 13:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:15:20] Production.INFO: count ==5605 [2025-03-27 13:15:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:15:06 - End Time 2025-03-27 13:15:06 [2025-03-27 13:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774409', 'tblTempUsageDetail_20' ) start [2025-03-27 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774409', 'tblTempUsageDetail_20' ) end [2025-03-27 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774409', 'tblTempVendorCDR_20' ) start [2025-03-27 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774409', 'tblTempVendorCDR_20' ) end [2025-03-27 13:15:22] Production.INFO: ProcessCDR(1,14774409,1,1,2) [2025-03-27 13:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774409', 'tblTempUsageDetail_20' ) start [2025-03-27 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774409', 'tblTempUsageDetail_20' ) end [2025-03-27 13:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:15:28] Production.INFO: ==2642== Releasing lock... [2025-03-27 13:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:15:28] Production.INFO: 70 MB #Memory Used# [2025-03-27 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:16:05 [end_date_ymd] => 2025-03-27 13:16:05 [RateCDR] => 1 ) [2025-03-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-03-27 10:16:05' and `end` < '2025-03-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-03-27 13:16:18] Production.INFO: count ==5581 [2025-03-27 13:16:21] Production.ERROR: pbx CDR StartTime 2025-03-27 10:16:05 - End Time 2025-03-27 13:16:05 [2025-03-27 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774414', 'tblTempUsageDetail_20' ) start [2025-03-27 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774414', 'tblTempUsageDetail_20' ) end [2025-03-27 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774414', 'tblTempVendorCDR_20' ) start [2025-03-27 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774414', 'tblTempVendorCDR_20' ) end [2025-03-27 13:16:21] Production.INFO: ProcessCDR(1,14774414,1,1,2) [2025-03-27 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774414', 'tblTempUsageDetail_20' ) start [2025-03-27 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774414', 'tblTempUsageDetail_20' ) end [2025-03-27 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:16:27] Production.INFO: ==2715== Releasing lock... [2025-03-27 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:16:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-27 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:17:06 [end_date_ymd] => 2025-03-27 13:17:06 [RateCDR] => 1 ) [2025-03-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-03-27 10:17:06' and `end` < '2025-03-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-03-27 13:17:19] Production.INFO: count ==5574 [2025-03-27 13:17:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:17:06 - End Time 2025-03-27 13:17:06 [2025-03-27 13:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774419', 'tblTempUsageDetail_20' ) start [2025-03-27 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774419', 'tblTempUsageDetail_20' ) end [2025-03-27 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774419', 'tblTempVendorCDR_20' ) start [2025-03-27 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774419', 'tblTempVendorCDR_20' ) end [2025-03-27 13:17:22] Production.INFO: ProcessCDR(1,14774419,1,1,2) [2025-03-27 13:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774419', 'tblTempUsageDetail_20' ) start [2025-03-27 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774419', 'tblTempUsageDetail_20' ) end [2025-03-27 13:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:17:28] Production.INFO: ==2786== Releasing lock... [2025-03-27 13:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:17:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-27 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:18:06 [end_date_ymd] => 2025-03-27 13:18:06 [RateCDR] => 1 ) [2025-03-27 13:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:18:06' and `end` < '2025-03-27 13:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:18:19] Production.INFO: count ==5568 [2025-03-27 13:18:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:18:06 - End Time 2025-03-27 13:18:06 [2025-03-27 13:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774424', 'tblTempUsageDetail_20' ) start [2025-03-27 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774424', 'tblTempUsageDetail_20' ) end [2025-03-27 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774424', 'tblTempVendorCDR_20' ) start [2025-03-27 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774424', 'tblTempVendorCDR_20' ) end [2025-03-27 13:18:22] Production.INFO: ProcessCDR(1,14774424,1,1,2) [2025-03-27 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774424', 'tblTempUsageDetail_20' ) start [2025-03-27 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774424', 'tblTempUsageDetail_20' ) end [2025-03-27 13:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:18:28] Production.INFO: ==2869== Releasing lock... [2025-03-27 13:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:18:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-27 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:19:06 [end_date_ymd] => 2025-03-27 13:19:06 [RateCDR] => 1 ) [2025-03-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-03-27 10:19:06' and `end` < '2025-03-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-03-27 13:19:19] Production.INFO: count ==5566 [2025-03-27 13:19:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:19:06 - End Time 2025-03-27 13:19:06 [2025-03-27 13:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774429', 'tblTempUsageDetail_20' ) start [2025-03-27 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774429', 'tblTempUsageDetail_20' ) end [2025-03-27 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774429', 'tblTempVendorCDR_20' ) start [2025-03-27 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774429', 'tblTempVendorCDR_20' ) end [2025-03-27 13:19:22] Production.INFO: ProcessCDR(1,14774429,1,1,2) [2025-03-27 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774429', 'tblTempUsageDetail_20' ) start [2025-03-27 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774429', 'tblTempUsageDetail_20' ) end [2025-03-27 13:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:19:28] Production.INFO: ==2945== Releasing lock... [2025-03-27 13:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:19:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-27 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:20:06 [end_date_ymd] => 2025-03-27 13:20:06 [RateCDR] => 1 ) [2025-03-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-03-27 10:20:06' and `end` < '2025-03-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-03-27 13:20:20] Production.INFO: count ==5561 [2025-03-27 13:20:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:20:06 - End Time 2025-03-27 13:20:06 [2025-03-27 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774435', 'tblTempUsageDetail_20' ) start [2025-03-27 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774435', 'tblTempUsageDetail_20' ) end [2025-03-27 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774435', 'tblTempVendorCDR_20' ) start [2025-03-27 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774435', 'tblTempVendorCDR_20' ) end [2025-03-27 13:20:22] Production.INFO: ProcessCDR(1,14774435,1,1,2) [2025-03-27 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774435', 'tblTempUsageDetail_20' ) start [2025-03-27 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774435', 'tblTempUsageDetail_20' ) end [2025-03-27 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:20:28] Production.INFO: ==3035== Releasing lock... [2025-03-27 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:20:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-27 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:21:06 [end_date_ymd] => 2025-03-27 13:21:06 [RateCDR] => 1 ) [2025-03-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-03-27 10:21:06' and `end` < '2025-03-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-03-27 13:21:19] Production.INFO: count ==5539 [2025-03-27 13:21:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:21:06 - End Time 2025-03-27 13:21:06 [2025-03-27 13:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774440', 'tblTempUsageDetail_20' ) start [2025-03-27 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774440', 'tblTempUsageDetail_20' ) end [2025-03-27 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774440', 'tblTempVendorCDR_20' ) start [2025-03-27 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774440', 'tblTempVendorCDR_20' ) end [2025-03-27 13:21:22] Production.INFO: ProcessCDR(1,14774440,1,1,2) [2025-03-27 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774440', 'tblTempUsageDetail_20' ) start [2025-03-27 13:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774440', 'tblTempUsageDetail_20' ) end [2025-03-27 13:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:21:28] Production.INFO: ==3160== Releasing lock... [2025-03-27 13:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:21:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-27 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:22:05 [end_date_ymd] => 2025-03-27 13:22:05 [RateCDR] => 1 ) [2025-03-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-03-27 10:22:05' and `end` < '2025-03-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-03-27 13:22:19] Production.INFO: count ==5557 [2025-03-27 13:22:21] Production.ERROR: pbx CDR StartTime 2025-03-27 10:22:05 - End Time 2025-03-27 13:22:05 [2025-03-27 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774444', 'tblTempUsageDetail_20' ) start [2025-03-27 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774444', 'tblTempUsageDetail_20' ) end [2025-03-27 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774444', 'tblTempVendorCDR_20' ) start [2025-03-27 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774444', 'tblTempVendorCDR_20' ) end [2025-03-27 13:22:21] Production.INFO: ProcessCDR(1,14774444,1,1,2) [2025-03-27 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774444', 'tblTempUsageDetail_20' ) start [2025-03-27 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774444', 'tblTempUsageDetail_20' ) end [2025-03-27 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:22:27] Production.INFO: ==3233== Releasing lock... [2025-03-27 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:22:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-27 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:23:06 [end_date_ymd] => 2025-03-27 13:23:06 [RateCDR] => 1 ) [2025-03-27 13:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:23:06' and `end` < '2025-03-27 13:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:23:19] Production.INFO: count ==5528 [2025-03-27 13:23:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:23:06 - End Time 2025-03-27 13:23:06 [2025-03-27 13:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774450', 'tblTempUsageDetail_20' ) start [2025-03-27 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774450', 'tblTempUsageDetail_20' ) end [2025-03-27 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774450', 'tblTempVendorCDR_20' ) start [2025-03-27 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774450', 'tblTempVendorCDR_20' ) end [2025-03-27 13:23:22] Production.INFO: ProcessCDR(1,14774450,1,1,2) [2025-03-27 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774450', 'tblTempUsageDetail_20' ) start [2025-03-27 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774450', 'tblTempUsageDetail_20' ) end [2025-03-27 13:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:23:28] Production.INFO: ==3311== Releasing lock... [2025-03-27 13:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:23:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-27 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:24:06 [end_date_ymd] => 2025-03-27 13:24:06 [RateCDR] => 1 ) [2025-03-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-03-27 10:24:06' and `end` < '2025-03-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-03-27 13:24:19] Production.INFO: count ==5485 [2025-03-27 13:24:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:24:06 - End Time 2025-03-27 13:24:06 [2025-03-27 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774455', 'tblTempUsageDetail_20' ) start [2025-03-27 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774455', 'tblTempUsageDetail_20' ) end [2025-03-27 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774455', 'tblTempVendorCDR_20' ) start [2025-03-27 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774455', 'tblTempVendorCDR_20' ) end [2025-03-27 13:24:22] Production.INFO: ProcessCDR(1,14774455,1,1,2) [2025-03-27 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774455', 'tblTempUsageDetail_20' ) start [2025-03-27 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774455', 'tblTempUsageDetail_20' ) end [2025-03-27 13:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:24:28] Production.INFO: ==3386== Releasing lock... [2025-03-27 13:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:24:28] Production.INFO: 69 MB #Memory Used# [2025-03-27 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:25:06 [end_date_ymd] => 2025-03-27 13:25:06 [RateCDR] => 1 ) [2025-03-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-03-27 10:25:06' and `end` < '2025-03-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-03-27 13:25:19] Production.INFO: count ==5458 [2025-03-27 13:25:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:25:06 - End Time 2025-03-27 13:25:06 [2025-03-27 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774460', 'tblTempUsageDetail_20' ) start [2025-03-27 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774460', 'tblTempUsageDetail_20' ) end [2025-03-27 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774460', 'tblTempVendorCDR_20' ) start [2025-03-27 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774460', 'tblTempVendorCDR_20' ) end [2025-03-27 13:25:22] Production.INFO: ProcessCDR(1,14774460,1,1,2) [2025-03-27 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774460', 'tblTempUsageDetail_20' ) start [2025-03-27 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774460', 'tblTempUsageDetail_20' ) end [2025-03-27 13:25:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:25:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:25:28] Production.INFO: ==3459== Releasing lock... [2025-03-27 13:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:25:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-27 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:26:05 [end_date_ymd] => 2025-03-27 13:26:05 [RateCDR] => 1 ) [2025-03-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-03-27 10:26:05' and `end` < '2025-03-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-03-27 13:26:19] Production.INFO: count ==5487 [2025-03-27 13:26:21] Production.ERROR: pbx CDR StartTime 2025-03-27 10:26:05 - End Time 2025-03-27 13:26:05 [2025-03-27 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774465', 'tblTempUsageDetail_20' ) start [2025-03-27 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774465', 'tblTempUsageDetail_20' ) end [2025-03-27 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774465', 'tblTempVendorCDR_20' ) start [2025-03-27 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774465', 'tblTempVendorCDR_20' ) end [2025-03-27 13:26:21] Production.INFO: ProcessCDR(1,14774465,1,1,2) [2025-03-27 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774465', 'tblTempUsageDetail_20' ) start [2025-03-27 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774465', 'tblTempUsageDetail_20' ) end [2025-03-27 13:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:26:25] Production.INFO: ==3537== Releasing lock... [2025-03-27 13:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:26:25] Production.INFO: 69 MB #Memory Used# [2025-03-27 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:27:05 [end_date_ymd] => 2025-03-27 13:27:05 [RateCDR] => 1 ) [2025-03-27 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:27:05' and `end` < '2025-03-27 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:27:19] Production.INFO: count ==5487 [2025-03-27 13:27:21] Production.ERROR: pbx CDR StartTime 2025-03-27 10:27:05 - End Time 2025-03-27 13:27:05 [2025-03-27 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774470', 'tblTempUsageDetail_20' ) start [2025-03-27 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774470', 'tblTempUsageDetail_20' ) end [2025-03-27 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774470', 'tblTempVendorCDR_20' ) start [2025-03-27 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774470', 'tblTempVendorCDR_20' ) end [2025-03-27 13:27:21] Production.INFO: ProcessCDR(1,14774470,1,1,2) [2025-03-27 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774470', 'tblTempUsageDetail_20' ) start [2025-03-27 13:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774470', 'tblTempUsageDetail_20' ) end [2025-03-27 13:27:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:27:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:27:28] Production.INFO: ==3626== Releasing lock... [2025-03-27 13:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:27:28] Production.INFO: 69 MB #Memory Used# [2025-03-27 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:28:06 [end_date_ymd] => 2025-03-27 13:28:06 [RateCDR] => 1 ) [2025-03-27 13:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:28:06' and `end` < '2025-03-27 13:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:28:20] Production.INFO: count ==5496 [2025-03-27 13:28:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:28:06 - End Time 2025-03-27 13:28:06 [2025-03-27 13:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774475', 'tblTempUsageDetail_20' ) start [2025-03-27 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774475', 'tblTempUsageDetail_20' ) end [2025-03-27 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774475', 'tblTempVendorCDR_20' ) start [2025-03-27 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774475', 'tblTempVendorCDR_20' ) end [2025-03-27 13:28:23] Production.INFO: ProcessCDR(1,14774475,1,1,2) [2025-03-27 13:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774475', 'tblTempUsageDetail_20' ) start [2025-03-27 13:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774475', 'tblTempUsageDetail_20' ) end [2025-03-27 13:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:28:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:28:29] Production.INFO: ==3699== Releasing lock... [2025-03-27 13:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:28:29] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:29:06 [end_date_ymd] => 2025-03-27 13:29:06 [RateCDR] => 1 ) [2025-03-27 13:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:29:06' and `end` < '2025-03-27 13:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:29:19] Production.INFO: count ==5513 [2025-03-27 13:29:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:29:06 - End Time 2025-03-27 13:29:06 [2025-03-27 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774480', 'tblTempUsageDetail_20' ) start [2025-03-27 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774480', 'tblTempUsageDetail_20' ) end [2025-03-27 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774480', 'tblTempVendorCDR_20' ) start [2025-03-27 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774480', 'tblTempVendorCDR_20' ) end [2025-03-27 13:29:22] Production.INFO: ProcessCDR(1,14774480,1,1,2) [2025-03-27 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774480', 'tblTempUsageDetail_20' ) start [2025-03-27 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774480', 'tblTempUsageDetail_20' ) end [2025-03-27 13:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:29:28] Production.INFO: ==3772== Releasing lock... [2025-03-27 13:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:29:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:30:06 [end_date_ymd] => 2025-03-27 13:30:06 [RateCDR] => 1 ) [2025-03-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-03-27 10:30:06' and `end` < '2025-03-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-03-27 13:30:20] Production.INFO: count ==5503 [2025-03-27 13:30:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:30:06 - End Time 2025-03-27 13:30:06 [2025-03-27 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774486', 'tblTempUsageDetail_20' ) start [2025-03-27 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774486', 'tblTempUsageDetail_20' ) end [2025-03-27 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774486', 'tblTempVendorCDR_20' ) start [2025-03-27 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774486', 'tblTempVendorCDR_20' ) end [2025-03-27 13:30:23] Production.INFO: ProcessCDR(1,14774486,1,1,2) [2025-03-27 13:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774486', 'tblTempUsageDetail_20' ) start [2025-03-27 13:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774486', 'tblTempUsageDetail_20' ) end [2025-03-27 13:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:30:29] Production.INFO: ==3849== Releasing lock... [2025-03-27 13:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:30:29] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:31:06 [end_date_ymd] => 2025-03-27 13:31:06 [RateCDR] => 1 ) [2025-03-27 13:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:31:06' and `end` < '2025-03-27 13:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:31:19] Production.INFO: count ==5487 [2025-03-27 13:31:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:31:06 - End Time 2025-03-27 13:31:06 [2025-03-27 13:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774491', 'tblTempUsageDetail_20' ) start [2025-03-27 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774491', 'tblTempUsageDetail_20' ) end [2025-03-27 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774491', 'tblTempVendorCDR_20' ) start [2025-03-27 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774491', 'tblTempVendorCDR_20' ) end [2025-03-27 13:31:22] Production.INFO: ProcessCDR(1,14774491,1,1,2) [2025-03-27 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774491', 'tblTempUsageDetail_20' ) start [2025-03-27 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774491', 'tblTempUsageDetail_20' ) end [2025-03-27 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:31:28] Production.INFO: ==3923== Releasing lock... [2025-03-27 13:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:31:28] Production.INFO: 69 MB #Memory Used# [2025-03-27 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:32:05 [end_date_ymd] => 2025-03-27 13:32:05 [RateCDR] => 1 ) [2025-03-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-03-27 10:32:05' and `end` < '2025-03-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-03-27 13:32:19] Production.INFO: count ==5504 [2025-03-27 13:32:21] Production.ERROR: pbx CDR StartTime 2025-03-27 10:32:05 - End Time 2025-03-27 13:32:05 [2025-03-27 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774496', 'tblTempUsageDetail_20' ) start [2025-03-27 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774496', 'tblTempUsageDetail_20' ) end [2025-03-27 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774496', 'tblTempVendorCDR_20' ) start [2025-03-27 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774496', 'tblTempVendorCDR_20' ) end [2025-03-27 13:32:22] Production.INFO: ProcessCDR(1,14774496,1,1,2) [2025-03-27 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774496', 'tblTempUsageDetail_20' ) start [2025-03-27 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774496', 'tblTempUsageDetail_20' ) end [2025-03-27 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:32:27] Production.INFO: ==3995== Releasing lock... [2025-03-27 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:32:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:33:06 [end_date_ymd] => 2025-03-27 13:33:06 [RateCDR] => 1 ) [2025-03-27 13:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:33:06' and `end` < '2025-03-27 13:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:33:19] Production.INFO: count ==5516 [2025-03-27 13:33:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:33:06 - End Time 2025-03-27 13:33:06 [2025-03-27 13:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774501', 'tblTempUsageDetail_20' ) start [2025-03-27 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774501', 'tblTempUsageDetail_20' ) end [2025-03-27 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774501', 'tblTempVendorCDR_20' ) start [2025-03-27 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774501', 'tblTempVendorCDR_20' ) end [2025-03-27 13:33:22] Production.INFO: ProcessCDR(1,14774501,1,1,2) [2025-03-27 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774501', 'tblTempUsageDetail_20' ) start [2025-03-27 13:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774501', 'tblTempUsageDetail_20' ) end [2025-03-27 13:33:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:33:28] Production.INFO: ==4069== Releasing lock... [2025-03-27 13:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:33:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:34:05 [end_date_ymd] => 2025-03-27 13:34:05 [RateCDR] => 1 ) [2025-03-27 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:34:05' and `end` < '2025-03-27 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:34:19] Production.INFO: count ==5521 [2025-03-27 13:34:21] Production.ERROR: pbx CDR StartTime 2025-03-27 10:34:05 - End Time 2025-03-27 13:34:05 [2025-03-27 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774506', 'tblTempUsageDetail_20' ) start [2025-03-27 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774506', 'tblTempUsageDetail_20' ) end [2025-03-27 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774506', 'tblTempVendorCDR_20' ) start [2025-03-27 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774506', 'tblTempVendorCDR_20' ) end [2025-03-27 13:34:21] Production.INFO: ProcessCDR(1,14774506,1,1,2) [2025-03-27 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774506', 'tblTempUsageDetail_20' ) start [2025-03-27 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774506', 'tblTempUsageDetail_20' ) end [2025-03-27 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:34:27] Production.INFO: ==4162== Releasing lock... [2025-03-27 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:34:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:35:06 [end_date_ymd] => 2025-03-27 13:35:06 [RateCDR] => 1 ) [2025-03-27 13:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:35:06' and `end` < '2025-03-27 13:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:35:20] Production.INFO: count ==5516 [2025-03-27 13:35:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:35:06 - End Time 2025-03-27 13:35:06 [2025-03-27 13:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774511', 'tblTempUsageDetail_20' ) start [2025-03-27 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774511', 'tblTempUsageDetail_20' ) end [2025-03-27 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774511', 'tblTempVendorCDR_20' ) start [2025-03-27 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774511', 'tblTempVendorCDR_20' ) end [2025-03-27 13:35:22] Production.INFO: ProcessCDR(1,14774511,1,1,2) [2025-03-27 13:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774511', 'tblTempUsageDetail_20' ) start [2025-03-27 13:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774511', 'tblTempUsageDetail_20' ) end [2025-03-27 13:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:35:28] Production.INFO: ==4237== Releasing lock... [2025-03-27 13:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:35:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:36:05 [end_date_ymd] => 2025-03-27 13:36:05 [RateCDR] => 1 ) [2025-03-27 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:36:05' and `end` < '2025-03-27 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:36:19] Production.INFO: count ==5517 [2025-03-27 13:36:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:36:05 - End Time 2025-03-27 13:36:05 [2025-03-27 13:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774516', 'tblTempUsageDetail_20' ) start [2025-03-27 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774516', 'tblTempUsageDetail_20' ) end [2025-03-27 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774516', 'tblTempVendorCDR_20' ) start [2025-03-27 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774516', 'tblTempVendorCDR_20' ) end [2025-03-27 13:36:22] Production.INFO: ProcessCDR(1,14774516,1,1,2) [2025-03-27 13:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774516', 'tblTempUsageDetail_20' ) start [2025-03-27 13:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774516', 'tblTempUsageDetail_20' ) end [2025-03-27 13:36:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:36:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:36:28] Production.INFO: ==4346== Releasing lock... [2025-03-27 13:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:36:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:37:06 [end_date_ymd] => 2025-03-27 13:37:06 [RateCDR] => 1 ) [2025-03-27 13:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:37:06' and `end` < '2025-03-27 13:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:37:20] Production.INFO: count ==5500 [2025-03-27 13:37:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:37:06 - End Time 2025-03-27 13:37:06 [2025-03-27 13:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774521', 'tblTempUsageDetail_20' ) start [2025-03-27 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774521', 'tblTempUsageDetail_20' ) end [2025-03-27 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774521', 'tblTempVendorCDR_20' ) start [2025-03-27 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774521', 'tblTempVendorCDR_20' ) end [2025-03-27 13:37:23] Production.INFO: ProcessCDR(1,14774521,1,1,2) [2025-03-27 13:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774521', 'tblTempUsageDetail_20' ) start [2025-03-27 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774521', 'tblTempUsageDetail_20' ) end [2025-03-27 13:37:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:37:28] Production.INFO: ==4421== Releasing lock... [2025-03-27 13:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:37:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:38:06 [end_date_ymd] => 2025-03-27 13:38:06 [RateCDR] => 1 ) [2025-03-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-03-27 10:38:06' and `end` < '2025-03-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-03-27 13:38:19] Production.INFO: count ==5514 [2025-03-27 13:38:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:38:06 - End Time 2025-03-27 13:38:06 [2025-03-27 13:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774526', 'tblTempUsageDetail_20' ) start [2025-03-27 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774526', 'tblTempUsageDetail_20' ) end [2025-03-27 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774526', 'tblTempVendorCDR_20' ) start [2025-03-27 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774526', 'tblTempVendorCDR_20' ) end [2025-03-27 13:38:22] Production.INFO: ProcessCDR(1,14774526,1,1,2) [2025-03-27 13:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774526', 'tblTempUsageDetail_20' ) start [2025-03-27 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774526', 'tblTempUsageDetail_20' ) end [2025-03-27 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:38:28] Production.INFO: ==4494== Releasing lock... [2025-03-27 13:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:38:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:39:06 [end_date_ymd] => 2025-03-27 13:39:06 [RateCDR] => 1 ) [2025-03-27 13:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:39:06' and `end` < '2025-03-27 13:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:39:19] Production.INFO: count ==5506 [2025-03-27 13:39:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:39:06 - End Time 2025-03-27 13:39:06 [2025-03-27 13:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774531', 'tblTempUsageDetail_20' ) start [2025-03-27 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774531', 'tblTempUsageDetail_20' ) end [2025-03-27 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774531', 'tblTempVendorCDR_20' ) start [2025-03-27 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774531', 'tblTempVendorCDR_20' ) end [2025-03-27 13:39:22] Production.INFO: ProcessCDR(1,14774531,1,1,2) [2025-03-27 13:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774531', 'tblTempUsageDetail_20' ) start [2025-03-27 13:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774531', 'tblTempUsageDetail_20' ) end [2025-03-27 13:39:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:39:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:39:28] Production.INFO: ==4566== Releasing lock... [2025-03-27 13:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:39:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:40:06 [end_date_ymd] => 2025-03-27 13:40:06 [RateCDR] => 1 ) [2025-03-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-03-27 10:40:06' and `end` < '2025-03-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-03-27 13:40:20] Production.INFO: count ==5523 [2025-03-27 13:40:23] Production.ERROR: pbx CDR StartTime 2025-03-27 10:40:06 - End Time 2025-03-27 13:40:06 [2025-03-27 13:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774537', 'tblTempUsageDetail_20' ) start [2025-03-27 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774537', 'tblTempUsageDetail_20' ) end [2025-03-27 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774537', 'tblTempVendorCDR_20' ) start [2025-03-27 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774537', 'tblTempVendorCDR_20' ) end [2025-03-27 13:40:23] Production.INFO: ProcessCDR(1,14774537,1,1,2) [2025-03-27 13:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774537', 'tblTempUsageDetail_20' ) start [2025-03-27 13:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774537', 'tblTempUsageDetail_20' ) end [2025-03-27 13:40:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:40:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:40:29] Production.INFO: ==4647== Releasing lock... [2025-03-27 13:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:40:29] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:41:06 [end_date_ymd] => 2025-03-27 13:41:06 [RateCDR] => 1 ) [2025-03-27 13:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:41:06' and `end` < '2025-03-27 13:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:41:20] Production.INFO: count ==5537 [2025-03-27 13:41:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:41:06 - End Time 2025-03-27 13:41:06 [2025-03-27 13:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774542', 'tblTempUsageDetail_20' ) start [2025-03-27 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774542', 'tblTempUsageDetail_20' ) end [2025-03-27 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774542', 'tblTempVendorCDR_20' ) start [2025-03-27 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774542', 'tblTempVendorCDR_20' ) end [2025-03-27 13:41:23] Production.INFO: ProcessCDR(1,14774542,1,1,2) [2025-03-27 13:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774542', 'tblTempUsageDetail_20' ) start [2025-03-27 13:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774542', 'tblTempUsageDetail_20' ) end [2025-03-27 13:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:41:29] Production.INFO: ==4745== Releasing lock... [2025-03-27 13:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:41:29] Production.INFO: 69.5 MB #Memory Used# [2025-03-27 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:42:05 [end_date_ymd] => 2025-03-27 13:42:05 [RateCDR] => 1 ) [2025-03-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-03-27 10:42:05' and `end` < '2025-03-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-03-27 13:42:19] Production.INFO: count ==5525 [2025-03-27 13:42:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:42:05 - End Time 2025-03-27 13:42:05 [2025-03-27 13:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774547', 'tblTempUsageDetail_20' ) start [2025-03-27 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774547', 'tblTempUsageDetail_20' ) end [2025-03-27 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774547', 'tblTempVendorCDR_20' ) start [2025-03-27 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774547', 'tblTempVendorCDR_20' ) end [2025-03-27 13:42:22] Production.INFO: ProcessCDR(1,14774547,1,1,2) [2025-03-27 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774547', 'tblTempUsageDetail_20' ) start [2025-03-27 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774547', 'tblTempUsageDetail_20' ) end [2025-03-27 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:42:27] Production.INFO: ==4820== Releasing lock... [2025-03-27 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:42:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:43:06 [end_date_ymd] => 2025-03-27 13:43:06 [RateCDR] => 1 ) [2025-03-27 13:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:43:06' and `end` < '2025-03-27 13:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:43:20] Production.INFO: count ==5523 [2025-03-27 13:43:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:43:06 - End Time 2025-03-27 13:43:06 [2025-03-27 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774552', 'tblTempUsageDetail_20' ) start [2025-03-27 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774552', 'tblTempUsageDetail_20' ) end [2025-03-27 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774552', 'tblTempVendorCDR_20' ) start [2025-03-27 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774552', 'tblTempVendorCDR_20' ) end [2025-03-27 13:43:22] Production.INFO: ProcessCDR(1,14774552,1,1,2) [2025-03-27 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774552', 'tblTempUsageDetail_20' ) start [2025-03-27 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774552', 'tblTempUsageDetail_20' ) end [2025-03-27 13:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:43:28] Production.INFO: ==4894== Releasing lock... [2025-03-27 13:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:43:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:44:05 [end_date_ymd] => 2025-03-27 13:44:05 [RateCDR] => 1 ) [2025-03-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-03-27 10:44:05' and `end` < '2025-03-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-03-27 13:44:19] Production.INFO: count ==5522 [2025-03-27 13:44:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:44:05 - End Time 2025-03-27 13:44:05 [2025-03-27 13:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774557', 'tblTempUsageDetail_20' ) start [2025-03-27 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774557', 'tblTempUsageDetail_20' ) end [2025-03-27 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774557', 'tblTempVendorCDR_20' ) start [2025-03-27 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774557', 'tblTempVendorCDR_20' ) end [2025-03-27 13:44:22] Production.INFO: ProcessCDR(1,14774557,1,1,2) [2025-03-27 13:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774557', 'tblTempUsageDetail_20' ) start [2025-03-27 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774557', 'tblTempUsageDetail_20' ) end [2025-03-27 13:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:44:28] Production.INFO: ==4967== Releasing lock... [2025-03-27 13:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:44:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:45:06 [end_date_ymd] => 2025-03-27 13:45:06 [RateCDR] => 1 ) [2025-03-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-03-27 10:45:06' and `end` < '2025-03-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-03-27 13:45:19] Production.INFO: count ==5520 [2025-03-27 13:45:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:45:06 - End Time 2025-03-27 13:45:06 [2025-03-27 13:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774562', 'tblTempUsageDetail_20' ) start [2025-03-27 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774562', 'tblTempUsageDetail_20' ) end [2025-03-27 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774562', 'tblTempVendorCDR_20' ) start [2025-03-27 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774562', 'tblTempVendorCDR_20' ) end [2025-03-27 13:45:22] Production.INFO: ProcessCDR(1,14774562,1,1,2) [2025-03-27 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774562', 'tblTempUsageDetail_20' ) start [2025-03-27 13:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774562', 'tblTempUsageDetail_20' ) end [2025-03-27 13:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:45:28] Production.INFO: ==5043== Releasing lock... [2025-03-27 13:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:45:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:46:06 [end_date_ymd] => 2025-03-27 13:46:06 [RateCDR] => 1 ) [2025-03-27 13:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:46:06' and `end` < '2025-03-27 13:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:46:19] Production.INFO: count ==5510 [2025-03-27 13:46:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:46:06 - End Time 2025-03-27 13:46:06 [2025-03-27 13:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774567', 'tblTempUsageDetail_20' ) start [2025-03-27 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774567', 'tblTempUsageDetail_20' ) end [2025-03-27 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774567', 'tblTempVendorCDR_20' ) start [2025-03-27 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774567', 'tblTempVendorCDR_20' ) end [2025-03-27 13:46:22] Production.INFO: ProcessCDR(1,14774567,1,1,2) [2025-03-27 13:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774567', 'tblTempUsageDetail_20' ) start [2025-03-27 13:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774567', 'tblTempUsageDetail_20' ) end [2025-03-27 13:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:46:28] Production.INFO: ==5115== Releasing lock... [2025-03-27 13:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:46:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:47:06 [end_date_ymd] => 2025-03-27 13:47:06 [RateCDR] => 1 ) [2025-03-27 13:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:47:06' and `end` < '2025-03-27 13:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:47:19] Production.INFO: count ==5518 [2025-03-27 13:47:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:47:06 - End Time 2025-03-27 13:47:06 [2025-03-27 13:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774572', 'tblTempUsageDetail_20' ) start [2025-03-27 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774572', 'tblTempUsageDetail_20' ) end [2025-03-27 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774572', 'tblTempVendorCDR_20' ) start [2025-03-27 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774572', 'tblTempVendorCDR_20' ) end [2025-03-27 13:47:22] Production.INFO: ProcessCDR(1,14774572,1,1,2) [2025-03-27 13:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774572', 'tblTempUsageDetail_20' ) start [2025-03-27 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774572', 'tblTempUsageDetail_20' ) end [2025-03-27 13:47:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:47:28] Production.INFO: ==5192== Releasing lock... [2025-03-27 13:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:47:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:48:06 [end_date_ymd] => 2025-03-27 13:48:06 [RateCDR] => 1 ) [2025-03-27 13:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:48:06' and `end` < '2025-03-27 13:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:48:19] Production.INFO: count ==5490 [2025-03-27 13:48:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:48:06 - End Time 2025-03-27 13:48:06 [2025-03-27 13:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774577', 'tblTempUsageDetail_20' ) start [2025-03-27 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774577', 'tblTempUsageDetail_20' ) end [2025-03-27 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774577', 'tblTempVendorCDR_20' ) start [2025-03-27 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774577', 'tblTempVendorCDR_20' ) end [2025-03-27 13:48:22] Production.INFO: ProcessCDR(1,14774577,1,1,2) [2025-03-27 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774577', 'tblTempUsageDetail_20' ) start [2025-03-27 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774577', 'tblTempUsageDetail_20' ) end [2025-03-27 13:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:48:28] Production.INFO: ==5264== Releasing lock... [2025-03-27 13:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:48:28] Production.INFO: 69 MB #Memory Used# [2025-03-27 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:49:06 [end_date_ymd] => 2025-03-27 13:49:06 [RateCDR] => 1 ) [2025-03-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-03-27 10:49:06' and `end` < '2025-03-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-03-27 13:49:19] Production.INFO: count ==5487 [2025-03-27 13:49:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:49:06 - End Time 2025-03-27 13:49:06 [2025-03-27 13:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774582', 'tblTempUsageDetail_20' ) start [2025-03-27 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774582', 'tblTempUsageDetail_20' ) end [2025-03-27 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774582', 'tblTempVendorCDR_20' ) start [2025-03-27 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774582', 'tblTempVendorCDR_20' ) end [2025-03-27 13:49:22] Production.INFO: ProcessCDR(1,14774582,1,1,2) [2025-03-27 13:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774582', 'tblTempUsageDetail_20' ) start [2025-03-27 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774582', 'tblTempUsageDetail_20' ) end [2025-03-27 13:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:49:28] Production.INFO: ==5345== Releasing lock... [2025-03-27 13:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:49:28] Production.INFO: 69 MB #Memory Used# [2025-03-27 13:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:50:07 [end_date_ymd] => 2025-03-27 13:50:07 [RateCDR] => 1 ) [2025-03-27 13:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:50:07' and `end` < '2025-03-27 13:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:50:20] Production.INFO: count ==5469 [2025-03-27 13:50:23] Production.ERROR: pbx CDR StartTime 2025-03-27 10:50:07 - End Time 2025-03-27 13:50:07 [2025-03-27 13:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774588', 'tblTempUsageDetail_20' ) start [2025-03-27 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774588', 'tblTempUsageDetail_20' ) end [2025-03-27 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774588', 'tblTempVendorCDR_20' ) start [2025-03-27 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774588', 'tblTempVendorCDR_20' ) end [2025-03-27 13:50:23] Production.INFO: ProcessCDR(1,14774588,1,1,2) [2025-03-27 13:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774588', 'tblTempUsageDetail_20' ) start [2025-03-27 13:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774588', 'tblTempUsageDetail_20' ) end [2025-03-27 13:50:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:50:29] Production.INFO: ==5420== Releasing lock... [2025-03-27 13:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:50:29] Production.INFO: 69 MB #Memory Used# [2025-03-27 13:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:51:06 [end_date_ymd] => 2025-03-27 13:51:06 [RateCDR] => 1 ) [2025-03-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-03-27 10:51:06' and `end` < '2025-03-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-03-27 13:51:19] Production.INFO: count ==5432 [2025-03-27 13:51:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:51:06 - End Time 2025-03-27 13:51:06 [2025-03-27 13:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774593', 'tblTempUsageDetail_20' ) start [2025-03-27 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774593', 'tblTempUsageDetail_20' ) end [2025-03-27 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774593', 'tblTempVendorCDR_20' ) start [2025-03-27 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774593', 'tblTempVendorCDR_20' ) end [2025-03-27 13:51:22] Production.INFO: ProcessCDR(1,14774593,1,1,2) [2025-03-27 13:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774593', 'tblTempUsageDetail_20' ) start [2025-03-27 13:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774593', 'tblTempUsageDetail_20' ) end [2025-03-27 13:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:51:28] Production.INFO: ==5495== Releasing lock... [2025-03-27 13:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:51:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-27 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:52:05 [end_date_ymd] => 2025-03-27 13:52:05 [RateCDR] => 1 ) [2025-03-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-03-27 10:52:05' and `end` < '2025-03-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-03-27 13:52:19] Production.INFO: count ==5411 [2025-03-27 13:52:21] Production.ERROR: pbx CDR StartTime 2025-03-27 10:52:05 - End Time 2025-03-27 13:52:05 [2025-03-27 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774598', 'tblTempUsageDetail_20' ) start [2025-03-27 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774598', 'tblTempUsageDetail_20' ) end [2025-03-27 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774598', 'tblTempVendorCDR_20' ) start [2025-03-27 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774598', 'tblTempVendorCDR_20' ) end [2025-03-27 13:52:21] Production.INFO: ProcessCDR(1,14774598,1,1,2) [2025-03-27 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774598', 'tblTempUsageDetail_20' ) start [2025-03-27 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774598', 'tblTempUsageDetail_20' ) end [2025-03-27 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:52:27] Production.INFO: ==5604== Releasing lock... [2025-03-27 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:52:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-27 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:53:06 [end_date_ymd] => 2025-03-27 13:53:06 [RateCDR] => 1 ) [2025-03-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-03-27 10:53:06' and `end` < '2025-03-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-03-27 13:53:19] Production.INFO: count ==5399 [2025-03-27 13:53:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:53:06 - End Time 2025-03-27 13:53:06 [2025-03-27 13:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774603', 'tblTempUsageDetail_20' ) start [2025-03-27 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774603', 'tblTempUsageDetail_20' ) end [2025-03-27 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774603', 'tblTempVendorCDR_20' ) start [2025-03-27 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774603', 'tblTempVendorCDR_20' ) end [2025-03-27 13:53:22] Production.INFO: ProcessCDR(1,14774603,1,1,2) [2025-03-27 13:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774603', 'tblTempUsageDetail_20' ) start [2025-03-27 13:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774603', 'tblTempUsageDetail_20' ) end [2025-03-27 13:53:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:53:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:53:28] Production.INFO: ==5677== Releasing lock... [2025-03-27 13:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:53:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-27 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:54:06 [end_date_ymd] => 2025-03-27 13:54:06 [RateCDR] => 1 ) [2025-03-27 13:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:54:06' and `end` < '2025-03-27 13:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:54:20] Production.INFO: count ==5395 [2025-03-27 13:54:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:54:06 - End Time 2025-03-27 13:54:06 [2025-03-27 13:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774608', 'tblTempUsageDetail_20' ) start [2025-03-27 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774608', 'tblTempUsageDetail_20' ) end [2025-03-27 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774608', 'tblTempVendorCDR_20' ) start [2025-03-27 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774608', 'tblTempVendorCDR_20' ) end [2025-03-27 13:54:22] Production.INFO: ProcessCDR(1,14774608,1,1,2) [2025-03-27 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774608', 'tblTempUsageDetail_20' ) start [2025-03-27 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774608', 'tblTempUsageDetail_20' ) end [2025-03-27 13:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:54:28] Production.INFO: ==5752== Releasing lock... [2025-03-27 13:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:54:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-27 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:55:05 [end_date_ymd] => 2025-03-27 13:55:05 [RateCDR] => 1 ) [2025-03-27 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:55:05' and `end` < '2025-03-27 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:55:19] Production.INFO: count ==5399 [2025-03-27 13:55:21] Production.ERROR: pbx CDR StartTime 2025-03-27 10:55:05 - End Time 2025-03-27 13:55:05 [2025-03-27 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774613', 'tblTempUsageDetail_20' ) start [2025-03-27 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774613', 'tblTempUsageDetail_20' ) end [2025-03-27 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774613', 'tblTempVendorCDR_20' ) start [2025-03-27 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774613', 'tblTempVendorCDR_20' ) end [2025-03-27 13:55:22] Production.INFO: ProcessCDR(1,14774613,1,1,2) [2025-03-27 13:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774613', 'tblTempUsageDetail_20' ) start [2025-03-27 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774613', 'tblTempUsageDetail_20' ) end [2025-03-27 13:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:55:28] Production.INFO: ==5823== Releasing lock... [2025-03-27 13:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:55:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-27 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:56:06 [end_date_ymd] => 2025-03-27 13:56:06 [RateCDR] => 1 ) [2025-03-27 13:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:56:06' and `end` < '2025-03-27 13:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:56:20] Production.INFO: count ==5417 [2025-03-27 13:56:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:56:06 - End Time 2025-03-27 13:56:06 [2025-03-27 13:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774618', 'tblTempUsageDetail_20' ) start [2025-03-27 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774618', 'tblTempUsageDetail_20' ) end [2025-03-27 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774618', 'tblTempVendorCDR_20' ) start [2025-03-27 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774618', 'tblTempVendorCDR_20' ) end [2025-03-27 13:56:22] Production.INFO: ProcessCDR(1,14774618,1,1,2) [2025-03-27 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774618', 'tblTempUsageDetail_20' ) start [2025-03-27 13:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774618', 'tblTempUsageDetail_20' ) end [2025-03-27 13:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:56:28] Production.INFO: ==5898== Releasing lock... [2025-03-27 13:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:56:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-27 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:57:05 [end_date_ymd] => 2025-03-27 13:57:05 [RateCDR] => 1 ) [2025-03-27 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 10:57:05' and `end` < '2025-03-27 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 13:57:19] Production.INFO: count ==5431 [2025-03-27 13:57:21] Production.ERROR: pbx CDR StartTime 2025-03-27 10:57:05 - End Time 2025-03-27 13:57:05 [2025-03-27 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774623', 'tblTempUsageDetail_20' ) start [2025-03-27 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774623', 'tblTempUsageDetail_20' ) end [2025-03-27 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774623', 'tblTempVendorCDR_20' ) start [2025-03-27 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774623', 'tblTempVendorCDR_20' ) end [2025-03-27 13:57:22] Production.INFO: ProcessCDR(1,14774623,1,1,2) [2025-03-27 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774623', 'tblTempUsageDetail_20' ) start [2025-03-27 13:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774623', 'tblTempUsageDetail_20' ) end [2025-03-27 13:57:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:57:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:57:28] Production.INFO: ==5973== Releasing lock... [2025-03-27 13:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:57:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-27 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:58:06 [end_date_ymd] => 2025-03-27 13:58:06 [RateCDR] => 1 ) [2025-03-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-03-27 10:58:06' and `end` < '2025-03-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-03-27 13:58:19] Production.INFO: count ==5426 [2025-03-27 13:58:22] Production.ERROR: pbx CDR StartTime 2025-03-27 10:58:06 - End Time 2025-03-27 13:58:06 [2025-03-27 13:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774628', 'tblTempUsageDetail_20' ) start [2025-03-27 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774628', 'tblTempUsageDetail_20' ) end [2025-03-27 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774628', 'tblTempVendorCDR_20' ) start [2025-03-27 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774628', 'tblTempVendorCDR_20' ) end [2025-03-27 13:58:22] Production.INFO: ProcessCDR(1,14774628,1,1,2) [2025-03-27 13:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774628', 'tblTempUsageDetail_20' ) start [2025-03-27 13:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774628', 'tblTempUsageDetail_20' ) end [2025-03-27 13:58:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:58:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:58:28] Production.INFO: ==6044== Releasing lock... [2025-03-27 13:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:58:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-27 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 10:59:06 [end_date_ymd] => 2025-03-27 13:59:06 [RateCDR] => 1 ) [2025-03-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-03-27 10:59:06' and `end` < '2025-03-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-03-27 13:59:19] Production.INFO: count ==5429 [2025-03-27 13:59:21] Production.ERROR: pbx CDR StartTime 2025-03-27 10:59:06 - End Time 2025-03-27 13:59:06 [2025-03-27 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774633', 'tblTempUsageDetail_20' ) start [2025-03-27 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774633', 'tblTempUsageDetail_20' ) end [2025-03-27 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774633', 'tblTempVendorCDR_20' ) start [2025-03-27 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774633', 'tblTempVendorCDR_20' ) end [2025-03-27 13:59:22] Production.INFO: ProcessCDR(1,14774633,1,1,2) [2025-03-27 13:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 13:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774633', 'tblTempUsageDetail_20' ) start [2025-03-27 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774633', 'tblTempUsageDetail_20' ) end [2025-03-27 13:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 13:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 13:59:27] Production.INFO: ==6117== Releasing lock... [2025-03-27 13:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 13:59:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-27 14:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:00:07 [end_date_ymd] => 2025-03-27 14:00:07 [RateCDR] => 1 ) [2025-03-27 14:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:00:07' and `end` < '2025-03-27 14:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:00:21] Production.INFO: count ==5435 [2025-03-27 14:00:23] Production.ERROR: pbx CDR StartTime 2025-03-27 11:00:07 - End Time 2025-03-27 14:00:07 [2025-03-27 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774639', 'tblTempUsageDetail_20' ) start [2025-03-27 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774639', 'tblTempUsageDetail_20' ) end [2025-03-27 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774639', 'tblTempVendorCDR_20' ) start [2025-03-27 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774639', 'tblTempVendorCDR_20' ) end [2025-03-27 14:00:24] Production.INFO: ProcessCDR(1,14774639,1,1,2) [2025-03-27 14:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774639', 'tblTempUsageDetail_20' ) start [2025-03-27 14:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774639', 'tblTempUsageDetail_20' ) end [2025-03-27 14:00:30] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:00:30] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:00:30] Production.INFO: ==6192== Releasing lock... [2025-03-27 14:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:00:30] Production.INFO: 68.75 MB #Memory Used# [2025-03-27 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:01:05 [end_date_ymd] => 2025-03-27 14:01:05 [RateCDR] => 1 ) [2025-03-27 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:01:05' and `end` < '2025-03-27 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:01:19] Production.INFO: count ==5481 [2025-03-27 14:01:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:01:05 - End Time 2025-03-27 14:01:05 [2025-03-27 14:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774644', 'tblTempUsageDetail_20' ) start [2025-03-27 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774644', 'tblTempUsageDetail_20' ) end [2025-03-27 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774644', 'tblTempVendorCDR_20' ) start [2025-03-27 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774644', 'tblTempVendorCDR_20' ) end [2025-03-27 14:01:22] Production.INFO: ProcessCDR(1,14774644,1,1,2) [2025-03-27 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774644', 'tblTempUsageDetail_20' ) start [2025-03-27 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774644', 'tblTempUsageDetail_20' ) end [2025-03-27 14:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:01:27] Production.INFO: ==6278== Releasing lock... [2025-03-27 14:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:01:27] Production.INFO: 69 MB #Memory Used# [2025-03-27 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:02:06 [end_date_ymd] => 2025-03-27 14:02:06 [RateCDR] => 1 ) [2025-03-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-03-27 11:02:06' and `end` < '2025-03-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-03-27 14:02:20] Production.INFO: count ==5497 [2025-03-27 14:02:23] Production.ERROR: pbx CDR StartTime 2025-03-27 11:02:06 - End Time 2025-03-27 14:02:06 [2025-03-27 14:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774649', 'tblTempUsageDetail_20' ) start [2025-03-27 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774649', 'tblTempUsageDetail_20' ) end [2025-03-27 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774649', 'tblTempVendorCDR_20' ) start [2025-03-27 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774649', 'tblTempVendorCDR_20' ) end [2025-03-27 14:02:23] Production.INFO: ProcessCDR(1,14774649,1,1,2) [2025-03-27 14:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774649', 'tblTempUsageDetail_20' ) start [2025-03-27 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774649', 'tblTempUsageDetail_20' ) end [2025-03-27 14:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:02:28] Production.INFO: ==6351== Releasing lock... [2025-03-27 14:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:02:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:03:06 [end_date_ymd] => 2025-03-27 14:03:06 [RateCDR] => 1 ) [2025-03-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-03-27 11:03:06' and `end` < '2025-03-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-03-27 14:03:20] Production.INFO: count ==5497 [2025-03-27 14:03:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:03:06 - End Time 2025-03-27 14:03:06 [2025-03-27 14:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774654', 'tblTempUsageDetail_20' ) start [2025-03-27 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774654', 'tblTempUsageDetail_20' ) end [2025-03-27 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774654', 'tblTempVendorCDR_20' ) start [2025-03-27 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774654', 'tblTempVendorCDR_20' ) end [2025-03-27 14:03:22] Production.INFO: ProcessCDR(1,14774654,1,1,2) [2025-03-27 14:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774654', 'tblTempUsageDetail_20' ) start [2025-03-27 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774654', 'tblTempUsageDetail_20' ) end [2025-03-27 14:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:03:28] Production.INFO: ==6429== Releasing lock... [2025-03-27 14:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:03:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:04:06 [end_date_ymd] => 2025-03-27 14:04:06 [RateCDR] => 1 ) [2025-03-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-03-27 11:04:06' and `end` < '2025-03-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-03-27 14:04:20] Production.INFO: count ==5514 [2025-03-27 14:04:23] Production.ERROR: pbx CDR StartTime 2025-03-27 11:04:06 - End Time 2025-03-27 14:04:06 [2025-03-27 14:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774659', 'tblTempUsageDetail_20' ) start [2025-03-27 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774659', 'tblTempUsageDetail_20' ) end [2025-03-27 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774659', 'tblTempVendorCDR_20' ) start [2025-03-27 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774659', 'tblTempVendorCDR_20' ) end [2025-03-27 14:04:23] Production.INFO: ProcessCDR(1,14774659,1,1,2) [2025-03-27 14:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774659', 'tblTempUsageDetail_20' ) start [2025-03-27 14:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774659', 'tblTempUsageDetail_20' ) end [2025-03-27 14:04:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:04:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:04:29] Production.INFO: ==6503== Releasing lock... [2025-03-27 14:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:04:29] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:05:06 [end_date_ymd] => 2025-03-27 14:05:06 [RateCDR] => 1 ) [2025-03-27 14:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:05:06' and `end` < '2025-03-27 14:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:05:20] Production.INFO: count ==5520 [2025-03-27 14:05:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:05:06 - End Time 2025-03-27 14:05:06 [2025-03-27 14:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774664', 'tblTempUsageDetail_20' ) start [2025-03-27 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774664', 'tblTempUsageDetail_20' ) end [2025-03-27 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774664', 'tblTempVendorCDR_20' ) start [2025-03-27 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774664', 'tblTempVendorCDR_20' ) end [2025-03-27 14:05:23] Production.INFO: ProcessCDR(1,14774664,1,1,2) [2025-03-27 14:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774664', 'tblTempUsageDetail_20' ) start [2025-03-27 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774664', 'tblTempUsageDetail_20' ) end [2025-03-27 14:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:05:27] Production.INFO: ==6574== Releasing lock... [2025-03-27 14:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:05:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:06:05 [end_date_ymd] => 2025-03-27 14:06:05 [RateCDR] => 1 ) [2025-03-27 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:06:05' and `end` < '2025-03-27 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:06:18] Production.INFO: count ==5554 [2025-03-27 14:06:21] Production.ERROR: pbx CDR StartTime 2025-03-27 11:06:05 - End Time 2025-03-27 14:06:05 [2025-03-27 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774669', 'tblTempUsageDetail_20' ) start [2025-03-27 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774669', 'tblTempUsageDetail_20' ) end [2025-03-27 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774669', 'tblTempVendorCDR_20' ) start [2025-03-27 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774669', 'tblTempVendorCDR_20' ) end [2025-03-27 14:06:21] Production.INFO: ProcessCDR(1,14774669,1,1,2) [2025-03-27 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774669', 'tblTempUsageDetail_20' ) start [2025-03-27 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774669', 'tblTempUsageDetail_20' ) end [2025-03-27 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:06:27] Production.INFO: ==6646== Releasing lock... [2025-03-27 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:06:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-27 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:07:06 [end_date_ymd] => 2025-03-27 14:07:06 [RateCDR] => 1 ) [2025-03-27 14:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:07:06' and `end` < '2025-03-27 14:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:07:19] Production.INFO: count ==5544 [2025-03-27 14:07:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:07:06 - End Time 2025-03-27 14:07:06 [2025-03-27 14:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774674', 'tblTempUsageDetail_20' ) start [2025-03-27 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774674', 'tblTempUsageDetail_20' ) end [2025-03-27 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774674', 'tblTempVendorCDR_20' ) start [2025-03-27 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774674', 'tblTempVendorCDR_20' ) end [2025-03-27 14:07:22] Production.INFO: ProcessCDR(1,14774674,1,1,2) [2025-03-27 14:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774674', 'tblTempUsageDetail_20' ) start [2025-03-27 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774674', 'tblTempUsageDetail_20' ) end [2025-03-27 14:07:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:07:28] Production.INFO: ==6760== Releasing lock... [2025-03-27 14:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:07:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-27 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:08:05 [end_date_ymd] => 2025-03-27 14:08:05 [RateCDR] => 1 ) [2025-03-27 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:08:05' and `end` < '2025-03-27 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:08:19] Production.INFO: count ==5544 [2025-03-27 14:08:21] Production.ERROR: pbx CDR StartTime 2025-03-27 11:08:05 - End Time 2025-03-27 14:08:05 [2025-03-27 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774679', 'tblTempUsageDetail_20' ) start [2025-03-27 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774679', 'tblTempUsageDetail_20' ) end [2025-03-27 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774679', 'tblTempVendorCDR_20' ) start [2025-03-27 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774679', 'tblTempVendorCDR_20' ) end [2025-03-27 14:08:21] Production.INFO: ProcessCDR(1,14774679,1,1,2) [2025-03-27 14:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774679', 'tblTempUsageDetail_20' ) start [2025-03-27 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774679', 'tblTempUsageDetail_20' ) end [2025-03-27 14:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:08:27] Production.INFO: ==6841== Releasing lock... [2025-03-27 14:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:08:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-27 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:09:06 [end_date_ymd] => 2025-03-27 14:09:06 [RateCDR] => 1 ) [2025-03-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-03-27 11:09:06' and `end` < '2025-03-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-03-27 14:09:20] Production.INFO: count ==5528 [2025-03-27 14:09:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:09:06 - End Time 2025-03-27 14:09:06 [2025-03-27 14:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774684', 'tblTempUsageDetail_20' ) start [2025-03-27 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774684', 'tblTempUsageDetail_20' ) end [2025-03-27 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774684', 'tblTempVendorCDR_20' ) start [2025-03-27 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774684', 'tblTempVendorCDR_20' ) end [2025-03-27 14:09:22] Production.INFO: ProcessCDR(1,14774684,1,1,2) [2025-03-27 14:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774684', 'tblTempUsageDetail_20' ) start [2025-03-27 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774684', 'tblTempUsageDetail_20' ) end [2025-03-27 14:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:09:26] Production.INFO: ==6924== Releasing lock... [2025-03-27 14:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:09:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-27 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:10:06 [end_date_ymd] => 2025-03-27 14:10:06 [RateCDR] => 1 ) [2025-03-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-03-27 11:10:06' and `end` < '2025-03-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-03-27 14:10:20] Production.INFO: count ==5529 [2025-03-27 14:10:23] Production.ERROR: pbx CDR StartTime 2025-03-27 11:10:06 - End Time 2025-03-27 14:10:06 [2025-03-27 14:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774690', 'tblTempUsageDetail_20' ) start [2025-03-27 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774690', 'tblTempUsageDetail_20' ) end [2025-03-27 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774690', 'tblTempVendorCDR_20' ) start [2025-03-27 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774690', 'tblTempVendorCDR_20' ) end [2025-03-27 14:10:23] Production.INFO: ProcessCDR(1,14774690,1,1,2) [2025-03-27 14:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774690', 'tblTempUsageDetail_20' ) start [2025-03-27 14:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774690', 'tblTempUsageDetail_20' ) end [2025-03-27 14:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:10:29] Production.INFO: ==7000== Releasing lock... [2025-03-27 14:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:10:29] Production.INFO: 69.5 MB #Memory Used# [2025-03-27 14:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:11:06 [end_date_ymd] => 2025-03-27 14:11:06 [RateCDR] => 1 ) [2025-03-27 14:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:11:06' and `end` < '2025-03-27 14:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:11:20] Production.INFO: count ==5569 [2025-03-27 14:11:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:11:06 - End Time 2025-03-27 14:11:06 [2025-03-27 14:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774695', 'tblTempUsageDetail_20' ) start [2025-03-27 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774695', 'tblTempUsageDetail_20' ) end [2025-03-27 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774695', 'tblTempVendorCDR_20' ) start [2025-03-27 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774695', 'tblTempVendorCDR_20' ) end [2025-03-27 14:11:22] Production.INFO: ProcessCDR(1,14774695,1,1,2) [2025-03-27 14:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774695', 'tblTempUsageDetail_20' ) start [2025-03-27 14:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774695', 'tblTempUsageDetail_20' ) end [2025-03-27 14:11:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:11:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:11:28] Production.INFO: ==7076== Releasing lock... [2025-03-27 14:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:11:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-27 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:12:06 [end_date_ymd] => 2025-03-27 14:12:06 [RateCDR] => 1 ) [2025-03-27 14:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:12:06' and `end` < '2025-03-27 14:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:12:19] Production.INFO: count ==5568 [2025-03-27 14:12:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:12:06 - End Time 2025-03-27 14:12:06 [2025-03-27 14:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774700', 'tblTempUsageDetail_20' ) start [2025-03-27 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774700', 'tblTempUsageDetail_20' ) end [2025-03-27 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774700', 'tblTempVendorCDR_20' ) start [2025-03-27 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774700', 'tblTempVendorCDR_20' ) end [2025-03-27 14:12:22] Production.INFO: ProcessCDR(1,14774700,1,1,2) [2025-03-27 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774700', 'tblTempUsageDetail_20' ) start [2025-03-27 14:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774700', 'tblTempUsageDetail_20' ) end [2025-03-27 14:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:12:28] Production.INFO: ==7152== Releasing lock... [2025-03-27 14:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:12:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-27 14:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:13:06 [end_date_ymd] => 2025-03-27 14:13:06 [RateCDR] => 1 ) [2025-03-27 14:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:13:06' and `end` < '2025-03-27 14:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:13:19] Production.INFO: count ==5570 [2025-03-27 14:13:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:13:06 - End Time 2025-03-27 14:13:06 [2025-03-27 14:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774705', 'tblTempUsageDetail_20' ) start [2025-03-27 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774705', 'tblTempUsageDetail_20' ) end [2025-03-27 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774705', 'tblTempVendorCDR_20' ) start [2025-03-27 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774705', 'tblTempVendorCDR_20' ) end [2025-03-27 14:13:22] Production.INFO: ProcessCDR(1,14774705,1,1,2) [2025-03-27 14:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774705', 'tblTempUsageDetail_20' ) start [2025-03-27 14:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774705', 'tblTempUsageDetail_20' ) end [2025-03-27 14:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:13:28] Production.INFO: ==7229== Releasing lock... [2025-03-27 14:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:13:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-27 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:14:06 [end_date_ymd] => 2025-03-27 14:14:06 [RateCDR] => 1 ) [2025-03-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-03-27 11:14:06' and `end` < '2025-03-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-03-27 14:14:19] Production.INFO: count ==5554 [2025-03-27 14:14:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:14:06 - End Time 2025-03-27 14:14:06 [2025-03-27 14:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774710', 'tblTempUsageDetail_20' ) start [2025-03-27 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774710', 'tblTempUsageDetail_20' ) end [2025-03-27 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774710', 'tblTempVendorCDR_20' ) start [2025-03-27 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774710', 'tblTempVendorCDR_20' ) end [2025-03-27 14:14:22] Production.INFO: ProcessCDR(1,14774710,1,1,2) [2025-03-27 14:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774710', 'tblTempUsageDetail_20' ) start [2025-03-27 14:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774710', 'tblTempUsageDetail_20' ) end [2025-03-27 14:14:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:14:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:14:28] Production.INFO: ==7302== Releasing lock... [2025-03-27 14:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:14:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-27 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:15:06 [end_date_ymd] => 2025-03-27 14:15:06 [RateCDR] => 1 ) [2025-03-27 14:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:15:06' and `end` < '2025-03-27 14:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:15:19] Production.INFO: count ==5543 [2025-03-27 14:15:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:15:06 - End Time 2025-03-27 14:15:06 [2025-03-27 14:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774715', 'tblTempUsageDetail_20' ) start [2025-03-27 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774715', 'tblTempUsageDetail_20' ) end [2025-03-27 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774715', 'tblTempVendorCDR_20' ) start [2025-03-27 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774715', 'tblTempVendorCDR_20' ) end [2025-03-27 14:15:22] Production.INFO: ProcessCDR(1,14774715,1,1,2) [2025-03-27 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774715', 'tblTempUsageDetail_20' ) start [2025-03-27 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774715', 'tblTempUsageDetail_20' ) end [2025-03-27 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:15:28] Production.INFO: ==7375== Releasing lock... [2025-03-27 14:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:15:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-27 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:16:06 [end_date_ymd] => 2025-03-27 14:16:06 [RateCDR] => 1 ) [2025-03-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-03-27 11:16:06' and `end` < '2025-03-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-03-27 14:16:19] Production.INFO: count ==5548 [2025-03-27 14:16:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:16:06 - End Time 2025-03-27 14:16:06 [2025-03-27 14:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774720', 'tblTempUsageDetail_20' ) start [2025-03-27 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774720', 'tblTempUsageDetail_20' ) end [2025-03-27 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774720', 'tblTempVendorCDR_20' ) start [2025-03-27 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774720', 'tblTempVendorCDR_20' ) end [2025-03-27 14:16:22] Production.INFO: ProcessCDR(1,14774720,1,1,2) [2025-03-27 14:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774720', 'tblTempUsageDetail_20' ) start [2025-03-27 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774720', 'tblTempUsageDetail_20' ) end [2025-03-27 14:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:16:27] Production.INFO: ==7450== Releasing lock... [2025-03-27 14:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:16:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-27 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:17:06 [end_date_ymd] => 2025-03-27 14:17:06 [RateCDR] => 1 ) [2025-03-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-03-27 11:17:06' and `end` < '2025-03-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-03-27 14:17:19] Production.INFO: count ==5546 [2025-03-27 14:17:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:17:06 - End Time 2025-03-27 14:17:06 [2025-03-27 14:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774725', 'tblTempUsageDetail_20' ) start [2025-03-27 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774725', 'tblTempUsageDetail_20' ) end [2025-03-27 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774725', 'tblTempVendorCDR_20' ) start [2025-03-27 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774725', 'tblTempVendorCDR_20' ) end [2025-03-27 14:17:22] Production.INFO: ProcessCDR(1,14774725,1,1,2) [2025-03-27 14:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774725', 'tblTempUsageDetail_20' ) start [2025-03-27 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774725', 'tblTempUsageDetail_20' ) end [2025-03-27 14:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:17:28] Production.INFO: ==7529== Releasing lock... [2025-03-27 14:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:17:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-27 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:18:05 [end_date_ymd] => 2025-03-27 14:18:05 [RateCDR] => 1 ) [2025-03-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-03-27 11:18:05' and `end` < '2025-03-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-03-27 14:18:19] Production.INFO: count ==5526 [2025-03-27 14:18:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:18:05 - End Time 2025-03-27 14:18:05 [2025-03-27 14:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774730', 'tblTempUsageDetail_20' ) start [2025-03-27 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774730', 'tblTempUsageDetail_20' ) end [2025-03-27 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774730', 'tblTempVendorCDR_20' ) start [2025-03-27 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774730', 'tblTempVendorCDR_20' ) end [2025-03-27 14:18:22] Production.INFO: ProcessCDR(1,14774730,1,1,2) [2025-03-27 14:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774730', 'tblTempUsageDetail_20' ) start [2025-03-27 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774730', 'tblTempUsageDetail_20' ) end [2025-03-27 14:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:18:27] Production.INFO: ==7607== Releasing lock... [2025-03-27 14:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:18:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:19:06 [end_date_ymd] => 2025-03-27 14:19:06 [RateCDR] => 1 ) [2025-03-27 14:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:19:06' and `end` < '2025-03-27 14:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:19:19] Production.INFO: count ==5519 [2025-03-27 14:19:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:19:06 - End Time 2025-03-27 14:19:06 [2025-03-27 14:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774735', 'tblTempUsageDetail_20' ) start [2025-03-27 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774735', 'tblTempUsageDetail_20' ) end [2025-03-27 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774735', 'tblTempVendorCDR_20' ) start [2025-03-27 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774735', 'tblTempVendorCDR_20' ) end [2025-03-27 14:19:22] Production.INFO: ProcessCDR(1,14774735,1,1,2) [2025-03-27 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774735', 'tblTempUsageDetail_20' ) start [2025-03-27 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774735', 'tblTempUsageDetail_20' ) end [2025-03-27 14:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:19:28] Production.INFO: ==7686== Releasing lock... [2025-03-27 14:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:19:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 14:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:20:07 [end_date_ymd] => 2025-03-27 14:20:07 [RateCDR] => 1 ) [2025-03-27 14:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:20:07' and `end` < '2025-03-27 14:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:20:20] Production.INFO: count ==5520 [2025-03-27 14:20:23] Production.ERROR: pbx CDR StartTime 2025-03-27 11:20:07 - End Time 2025-03-27 14:20:07 [2025-03-27 14:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774741', 'tblTempUsageDetail_20' ) start [2025-03-27 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774741', 'tblTempUsageDetail_20' ) end [2025-03-27 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774741', 'tblTempVendorCDR_20' ) start [2025-03-27 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774741', 'tblTempVendorCDR_20' ) end [2025-03-27 14:20:23] Production.INFO: ProcessCDR(1,14774741,1,1,2) [2025-03-27 14:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774741', 'tblTempUsageDetail_20' ) start [2025-03-27 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774741', 'tblTempUsageDetail_20' ) end [2025-03-27 14:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:20:27] Production.INFO: ==7763== Releasing lock... [2025-03-27 14:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:20:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:21:06 [end_date_ymd] => 2025-03-27 14:21:06 [RateCDR] => 1 ) [2025-03-27 14:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:21:06' and `end` < '2025-03-27 14:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:21:19] Production.INFO: count ==5507 [2025-03-27 14:21:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:21:06 - End Time 2025-03-27 14:21:06 [2025-03-27 14:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774746', 'tblTempUsageDetail_20' ) start [2025-03-27 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774746', 'tblTempUsageDetail_20' ) end [2025-03-27 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774746', 'tblTempVendorCDR_20' ) start [2025-03-27 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774746', 'tblTempVendorCDR_20' ) end [2025-03-27 14:21:22] Production.INFO: ProcessCDR(1,14774746,1,1,2) [2025-03-27 14:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774746', 'tblTempUsageDetail_20' ) start [2025-03-27 14:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774746', 'tblTempUsageDetail_20' ) end [2025-03-27 14:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:21:28] Production.INFO: ==7842== Releasing lock... [2025-03-27 14:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:21:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:22:05 [end_date_ymd] => 2025-03-27 14:22:05 [RateCDR] => 1 ) [2025-03-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-03-27 11:22:05' and `end` < '2025-03-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-03-27 14:22:19] Production.INFO: count ==5492 [2025-03-27 14:22:21] Production.ERROR: pbx CDR StartTime 2025-03-27 11:22:05 - End Time 2025-03-27 14:22:05 [2025-03-27 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774751', 'tblTempUsageDetail_20' ) start [2025-03-27 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774751', 'tblTempUsageDetail_20' ) end [2025-03-27 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774751', 'tblTempVendorCDR_20' ) start [2025-03-27 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774751', 'tblTempVendorCDR_20' ) end [2025-03-27 14:22:21] Production.INFO: ProcessCDR(1,14774751,1,1,2) [2025-03-27 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774751', 'tblTempUsageDetail_20' ) start [2025-03-27 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774751', 'tblTempUsageDetail_20' ) end [2025-03-27 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:22:27] Production.INFO: ==7921== Releasing lock... [2025-03-27 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:22:27] Production.INFO: 69 MB #Memory Used# [2025-03-27 14:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:23:06 [end_date_ymd] => 2025-03-27 14:23:06 [RateCDR] => 1 ) [2025-03-27 14:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:23:06' and `end` < '2025-03-27 14:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:23:20] Production.INFO: count ==5491 [2025-03-27 14:23:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:23:06 - End Time 2025-03-27 14:23:06 [2025-03-27 14:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774756', 'tblTempUsageDetail_20' ) start [2025-03-27 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774756', 'tblTempUsageDetail_20' ) end [2025-03-27 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774756', 'tblTempVendorCDR_20' ) start [2025-03-27 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774756', 'tblTempVendorCDR_20' ) end [2025-03-27 14:23:22] Production.INFO: ProcessCDR(1,14774756,1,1,2) [2025-03-27 14:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774756', 'tblTempUsageDetail_20' ) start [2025-03-27 14:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774756', 'tblTempUsageDetail_20' ) end [2025-03-27 14:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:23:28] Production.INFO: ==8038== Releasing lock... [2025-03-27 14:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:23:28] Production.INFO: 69 MB #Memory Used# [2025-03-27 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:24:05 [end_date_ymd] => 2025-03-27 14:24:05 [RateCDR] => 1 ) [2025-03-27 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:24:05' and `end` < '2025-03-27 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:24:19] Production.INFO: count ==5502 [2025-03-27 14:24:21] Production.ERROR: pbx CDR StartTime 2025-03-27 11:24:05 - End Time 2025-03-27 14:24:05 [2025-03-27 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774761', 'tblTempUsageDetail_20' ) start [2025-03-27 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774761', 'tblTempUsageDetail_20' ) end [2025-03-27 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774761', 'tblTempVendorCDR_20' ) start [2025-03-27 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774761', 'tblTempVendorCDR_20' ) end [2025-03-27 14:24:22] Production.INFO: ProcessCDR(1,14774761,1,1,2) [2025-03-27 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774761', 'tblTempUsageDetail_20' ) start [2025-03-27 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774761', 'tblTempUsageDetail_20' ) end [2025-03-27 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:24:27] Production.INFO: ==8112== Releasing lock... [2025-03-27 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:24:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-27 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:25:06 [end_date_ymd] => 2025-03-27 14:25:06 [RateCDR] => 1 ) [2025-03-27 14:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:25:06' and `end` < '2025-03-27 14:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:25:20] Production.INFO: count ==5479 [2025-03-27 14:25:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:25:06 - End Time 2025-03-27 14:25:06 [2025-03-27 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774766', 'tblTempUsageDetail_20' ) start [2025-03-27 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774766', 'tblTempUsageDetail_20' ) end [2025-03-27 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774766', 'tblTempVendorCDR_20' ) start [2025-03-27 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774766', 'tblTempVendorCDR_20' ) end [2025-03-27 14:25:22] Production.INFO: ProcessCDR(1,14774766,1,1,2) [2025-03-27 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774766', 'tblTempUsageDetail_20' ) start [2025-03-27 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774766', 'tblTempUsageDetail_20' ) end [2025-03-27 14:25:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:25:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:25:28] Production.INFO: ==8189== Releasing lock... [2025-03-27 14:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:25:28] Production.INFO: 69 MB #Memory Used# [2025-03-27 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:26:06 [end_date_ymd] => 2025-03-27 14:26:06 [RateCDR] => 1 ) [2025-03-27 14:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:26:06' and `end` < '2025-03-27 14:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:26:20] Production.INFO: count ==5465 [2025-03-27 14:26:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:26:06 - End Time 2025-03-27 14:26:06 [2025-03-27 14:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774771', 'tblTempUsageDetail_20' ) start [2025-03-27 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774771', 'tblTempUsageDetail_20' ) end [2025-03-27 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774771', 'tblTempVendorCDR_20' ) start [2025-03-27 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774771', 'tblTempVendorCDR_20' ) end [2025-03-27 14:26:22] Production.INFO: ProcessCDR(1,14774771,1,1,2) [2025-03-27 14:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774771', 'tblTempUsageDetail_20' ) start [2025-03-27 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774771', 'tblTempUsageDetail_20' ) end [2025-03-27 14:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:26:28] Production.INFO: ==8268== Releasing lock... [2025-03-27 14:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:26:28] Production.INFO: 69 MB #Memory Used# [2025-03-27 14:27:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:27:07 [end_date_ymd] => 2025-03-27 14:27:07 [RateCDR] => 1 ) [2025-03-27 14:27:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:27:07' and `end` < '2025-03-27 14:27:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:27:20] Production.INFO: count ==5459 [2025-03-27 14:27:23] Production.ERROR: pbx CDR StartTime 2025-03-27 11:27:07 - End Time 2025-03-27 14:27:07 [2025-03-27 14:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774776', 'tblTempUsageDetail_20' ) start [2025-03-27 14:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774776', 'tblTempUsageDetail_20' ) end [2025-03-27 14:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774776', 'tblTempVendorCDR_20' ) start [2025-03-27 14:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774776', 'tblTempVendorCDR_20' ) end [2025-03-27 14:27:23] Production.INFO: ProcessCDR(1,14774776,1,1,2) [2025-03-27 14:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774776', 'tblTempUsageDetail_20' ) start [2025-03-27 14:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774776', 'tblTempUsageDetail_20' ) end [2025-03-27 14:27:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:27:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:27:29] Production.INFO: ==8342== Releasing lock... [2025-03-27 14:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:27:29] Production.INFO: 68.75 MB #Memory Used# [2025-03-27 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:28:05 [end_date_ymd] => 2025-03-27 14:28:05 [RateCDR] => 1 ) [2025-03-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-03-27 11:28:05' and `end` < '2025-03-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-03-27 14:28:19] Production.INFO: count ==5462 [2025-03-27 14:28:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:28:05 - End Time 2025-03-27 14:28:05 [2025-03-27 14:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774781', 'tblTempUsageDetail_20' ) start [2025-03-27 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774781', 'tblTempUsageDetail_20' ) end [2025-03-27 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774781', 'tblTempVendorCDR_20' ) start [2025-03-27 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774781', 'tblTempVendorCDR_20' ) end [2025-03-27 14:28:22] Production.INFO: ProcessCDR(1,14774781,1,1,2) [2025-03-27 14:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774781', 'tblTempUsageDetail_20' ) start [2025-03-27 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774781', 'tblTempUsageDetail_20' ) end [2025-03-27 14:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:28:27] Production.INFO: ==8420== Releasing lock... [2025-03-27 14:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:28:27] Production.INFO: 69 MB #Memory Used# [2025-03-27 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:29:06 [end_date_ymd] => 2025-03-27 14:29:06 [RateCDR] => 1 ) [2025-03-27 14:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:29:06' and `end` < '2025-03-27 14:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:29:20] Production.INFO: count ==5452 [2025-03-27 14:29:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:29:06 - End Time 2025-03-27 14:29:06 [2025-03-27 14:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774786', 'tblTempUsageDetail_20' ) start [2025-03-27 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774786', 'tblTempUsageDetail_20' ) end [2025-03-27 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774786', 'tblTempVendorCDR_20' ) start [2025-03-27 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774786', 'tblTempVendorCDR_20' ) end [2025-03-27 14:29:23] Production.INFO: ProcessCDR(1,14774786,1,1,2) [2025-03-27 14:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774786', 'tblTempUsageDetail_20' ) start [2025-03-27 14:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774786', 'tblTempUsageDetail_20' ) end [2025-03-27 14:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:29:28] Production.INFO: ==8497== Releasing lock... [2025-03-27 14:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:29:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-27 14:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:30:07 [end_date_ymd] => 2025-03-27 14:30:07 [RateCDR] => 1 ) [2025-03-27 14:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:30:07' and `end` < '2025-03-27 14:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:30:20] Production.INFO: count ==5395 [2025-03-27 14:30:23] Production.ERROR: pbx CDR StartTime 2025-03-27 11:30:07 - End Time 2025-03-27 14:30:07 [2025-03-27 14:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774792', 'tblTempUsageDetail_20' ) start [2025-03-27 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774792', 'tblTempUsageDetail_20' ) end [2025-03-27 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774792', 'tblTempVendorCDR_20' ) start [2025-03-27 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774792', 'tblTempVendorCDR_20' ) end [2025-03-27 14:30:23] Production.INFO: ProcessCDR(1,14774792,1,1,2) [2025-03-27 14:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774792', 'tblTempUsageDetail_20' ) start [2025-03-27 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774792', 'tblTempUsageDetail_20' ) end [2025-03-27 14:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:30:29] Production.INFO: ==8576== Releasing lock... [2025-03-27 14:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:30:29] Production.INFO: 68.5 MB #Memory Used# [2025-03-27 14:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:31:06 [end_date_ymd] => 2025-03-27 14:31:06 [RateCDR] => 1 ) [2025-03-27 14:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:31:06' and `end` < '2025-03-27 14:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:31:20] Production.INFO: count ==5341 [2025-03-27 14:31:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:31:06 - End Time 2025-03-27 14:31:06 [2025-03-27 14:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774797', 'tblTempUsageDetail_20' ) start [2025-03-27 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774797', 'tblTempUsageDetail_20' ) end [2025-03-27 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774797', 'tblTempVendorCDR_20' ) start [2025-03-27 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774797', 'tblTempVendorCDR_20' ) end [2025-03-27 14:31:22] Production.INFO: ProcessCDR(1,14774797,1,1,2) [2025-03-27 14:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774797', 'tblTempUsageDetail_20' ) start [2025-03-27 14:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774797', 'tblTempUsageDetail_20' ) end [2025-03-27 14:31:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:31:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:31:29] Production.INFO: ==8671== Releasing lock... [2025-03-27 14:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:31:29] Production.INFO: 68 MB #Memory Used# [2025-03-27 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:32:05 [end_date_ymd] => 2025-03-27 14:32:05 [RateCDR] => 1 ) [2025-03-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-03-27 11:32:05' and `end` < '2025-03-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-03-27 14:32:19] Production.INFO: count ==5304 [2025-03-27 14:32:21] Production.ERROR: pbx CDR StartTime 2025-03-27 11:32:05 - End Time 2025-03-27 14:32:05 [2025-03-27 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774802', 'tblTempUsageDetail_20' ) start [2025-03-27 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774802', 'tblTempUsageDetail_20' ) end [2025-03-27 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774802', 'tblTempVendorCDR_20' ) start [2025-03-27 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774802', 'tblTempVendorCDR_20' ) end [2025-03-27 14:32:21] Production.INFO: ProcessCDR(1,14774802,1,1,2) [2025-03-27 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774802', 'tblTempUsageDetail_20' ) start [2025-03-27 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774802', 'tblTempUsageDetail_20' ) end [2025-03-27 14:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:32:27] Production.INFO: ==8757== Releasing lock... [2025-03-27 14:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:32:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-27 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:33:06 [end_date_ymd] => 2025-03-27 14:33:06 [RateCDR] => 1 ) [2025-03-27 14:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:33:06' and `end` < '2025-03-27 14:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:33:20] Production.INFO: count ==5273 [2025-03-27 14:33:23] Production.ERROR: pbx CDR StartTime 2025-03-27 11:33:06 - End Time 2025-03-27 14:33:06 [2025-03-27 14:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774807', 'tblTempUsageDetail_20' ) start [2025-03-27 14:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774807', 'tblTempUsageDetail_20' ) end [2025-03-27 14:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774807', 'tblTempVendorCDR_20' ) start [2025-03-27 14:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774807', 'tblTempVendorCDR_20' ) end [2025-03-27 14:33:23] Production.INFO: ProcessCDR(1,14774807,1,1,2) [2025-03-27 14:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774807', 'tblTempUsageDetail_20' ) start [2025-03-27 14:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774807', 'tblTempUsageDetail_20' ) end [2025-03-27 14:33:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:33:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:33:29] Production.INFO: ==8841== Releasing lock... [2025-03-27 14:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:33:29] Production.INFO: 67.5 MB #Memory Used# [2025-03-27 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:34:06 [end_date_ymd] => 2025-03-27 14:34:06 [RateCDR] => 1 ) [2025-03-27 14:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:34:06' and `end` < '2025-03-27 14:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:34:20] Production.INFO: count ==5263 [2025-03-27 14:34:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:34:06 - End Time 2025-03-27 14:34:06 [2025-03-27 14:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774812', 'tblTempUsageDetail_20' ) start [2025-03-27 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774812', 'tblTempUsageDetail_20' ) end [2025-03-27 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774812', 'tblTempVendorCDR_20' ) start [2025-03-27 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774812', 'tblTempVendorCDR_20' ) end [2025-03-27 14:34:22] Production.INFO: ProcessCDR(1,14774812,1,1,2) [2025-03-27 14:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774812', 'tblTempUsageDetail_20' ) start [2025-03-27 14:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774812', 'tblTempUsageDetail_20' ) end [2025-03-27 14:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:34:28] Production.INFO: ==8931== Releasing lock... [2025-03-27 14:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:34:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-27 14:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:35:06 [end_date_ymd] => 2025-03-27 14:35:06 [RateCDR] => 1 ) [2025-03-27 14:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:35:06' and `end` < '2025-03-27 14:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:35:20] Production.INFO: count ==5229 [2025-03-27 14:35:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:35:06 - End Time 2025-03-27 14:35:06 [2025-03-27 14:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774817', 'tblTempUsageDetail_20' ) start [2025-03-27 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774817', 'tblTempUsageDetail_20' ) end [2025-03-27 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774817', 'tblTempVendorCDR_20' ) start [2025-03-27 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774817', 'tblTempVendorCDR_20' ) end [2025-03-27 14:35:22] Production.INFO: ProcessCDR(1,14774817,1,1,2) [2025-03-27 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774817', 'tblTempUsageDetail_20' ) start [2025-03-27 14:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774817', 'tblTempUsageDetail_20' ) end [2025-03-27 14:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:35:28] Production.INFO: ==9015== Releasing lock... [2025-03-27 14:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:35:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-27 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:36:06 [end_date_ymd] => 2025-03-27 14:36:06 [RateCDR] => 1 ) [2025-03-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-03-27 11:36:06' and `end` < '2025-03-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-03-27 14:36:20] Production.INFO: count ==5227 [2025-03-27 14:36:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:36:06 - End Time 2025-03-27 14:36:06 [2025-03-27 14:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774822', 'tblTempUsageDetail_20' ) start [2025-03-27 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774822', 'tblTempUsageDetail_20' ) end [2025-03-27 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774822', 'tblTempVendorCDR_20' ) start [2025-03-27 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774822', 'tblTempVendorCDR_20' ) end [2025-03-27 14:36:22] Production.INFO: ProcessCDR(1,14774822,1,1,2) [2025-03-27 14:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774822', 'tblTempUsageDetail_20' ) start [2025-03-27 14:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774822', 'tblTempUsageDetail_20' ) end [2025-03-27 14:36:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:36:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:36:28] Production.INFO: ==9100== Releasing lock... [2025-03-27 14:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:36:28] Production.INFO: 67 MB #Memory Used# [2025-03-27 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:37:06 [end_date_ymd] => 2025-03-27 14:37:06 [RateCDR] => 1 ) [2025-03-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-03-27 11:37:06' and `end` < '2025-03-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-03-27 14:37:20] Production.INFO: count ==5218 [2025-03-27 14:37:23] Production.ERROR: pbx CDR StartTime 2025-03-27 11:37:06 - End Time 2025-03-27 14:37:06 [2025-03-27 14:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774827', 'tblTempUsageDetail_20' ) start [2025-03-27 14:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774827', 'tblTempUsageDetail_20' ) end [2025-03-27 14:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774827', 'tblTempVendorCDR_20' ) start [2025-03-27 14:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774827', 'tblTempVendorCDR_20' ) end [2025-03-27 14:37:23] Production.INFO: ProcessCDR(1,14774827,1,1,2) [2025-03-27 14:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774827', 'tblTempUsageDetail_20' ) start [2025-03-27 14:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774827', 'tblTempUsageDetail_20' ) end [2025-03-27 14:37:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:37:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:37:29] Production.INFO: ==9188== Releasing lock... [2025-03-27 14:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:37:29] Production.INFO: 67 MB #Memory Used# [2025-03-27 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:38:06 [end_date_ymd] => 2025-03-27 14:38:06 [RateCDR] => 1 ) [2025-03-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-03-27 11:38:06' and `end` < '2025-03-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-03-27 14:38:19] Production.INFO: count ==5227 [2025-03-27 14:38:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:38:06 - End Time 2025-03-27 14:38:06 [2025-03-27 14:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774832', 'tblTempUsageDetail_20' ) start [2025-03-27 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774832', 'tblTempUsageDetail_20' ) end [2025-03-27 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774832', 'tblTempVendorCDR_20' ) start [2025-03-27 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774832', 'tblTempVendorCDR_20' ) end [2025-03-27 14:38:22] Production.INFO: ProcessCDR(1,14774832,1,1,2) [2025-03-27 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774832', 'tblTempUsageDetail_20' ) start [2025-03-27 14:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774832', 'tblTempUsageDetail_20' ) end [2025-03-27 14:38:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:38:28] Production.INFO: ==9306== Releasing lock... [2025-03-27 14:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:38:28] Production.INFO: 67 MB #Memory Used# [2025-03-27 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:39:06 [end_date_ymd] => 2025-03-27 14:39:06 [RateCDR] => 1 ) [2025-03-27 14:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:39:06' and `end` < '2025-03-27 14:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:39:19] Production.INFO: count ==5230 [2025-03-27 14:39:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:39:06 - End Time 2025-03-27 14:39:06 [2025-03-27 14:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774837', 'tblTempUsageDetail_20' ) start [2025-03-27 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774837', 'tblTempUsageDetail_20' ) end [2025-03-27 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774837', 'tblTempVendorCDR_20' ) start [2025-03-27 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774837', 'tblTempVendorCDR_20' ) end [2025-03-27 14:39:22] Production.INFO: ProcessCDR(1,14774837,1,1,2) [2025-03-27 14:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774837', 'tblTempUsageDetail_20' ) start [2025-03-27 14:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774837', 'tblTempUsageDetail_20' ) end [2025-03-27 14:39:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:39:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:39:28] Production.INFO: ==9380== Releasing lock... [2025-03-27 14:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:39:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-27 14:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:40:07 [end_date_ymd] => 2025-03-27 14:40:07 [RateCDR] => 1 ) [2025-03-27 14:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:40:07' and `end` < '2025-03-27 14:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:40:20] Production.INFO: count ==5241 [2025-03-27 14:40:23] Production.ERROR: pbx CDR StartTime 2025-03-27 11:40:07 - End Time 2025-03-27 14:40:07 [2025-03-27 14:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774843', 'tblTempUsageDetail_20' ) start [2025-03-27 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774843', 'tblTempUsageDetail_20' ) end [2025-03-27 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774843', 'tblTempVendorCDR_20' ) start [2025-03-27 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774843', 'tblTempVendorCDR_20' ) end [2025-03-27 14:40:23] Production.INFO: ProcessCDR(1,14774843,1,1,2) [2025-03-27 14:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774843', 'tblTempUsageDetail_20' ) start [2025-03-27 14:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774843', 'tblTempUsageDetail_20' ) end [2025-03-27 14:40:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:40:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:40:29] Production.INFO: ==9459== Releasing lock... [2025-03-27 14:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:40:29] Production.INFO: 67.25 MB #Memory Used# [2025-03-27 14:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:41:06 [end_date_ymd] => 2025-03-27 14:41:06 [RateCDR] => 1 ) [2025-03-27 14:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:41:06' and `end` < '2025-03-27 14:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:41:20] Production.INFO: count ==5238 [2025-03-27 14:41:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:41:06 - End Time 2025-03-27 14:41:06 [2025-03-27 14:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774848', 'tblTempUsageDetail_20' ) start [2025-03-27 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774848', 'tblTempUsageDetail_20' ) end [2025-03-27 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774848', 'tblTempVendorCDR_20' ) start [2025-03-27 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774848', 'tblTempVendorCDR_20' ) end [2025-03-27 14:41:22] Production.INFO: ProcessCDR(1,14774848,1,1,2) [2025-03-27 14:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774848', 'tblTempUsageDetail_20' ) start [2025-03-27 14:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774848', 'tblTempUsageDetail_20' ) end [2025-03-27 14:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:41:28] Production.INFO: ==9536== Releasing lock... [2025-03-27 14:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:41:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-27 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:42:06 [end_date_ymd] => 2025-03-27 14:42:06 [RateCDR] => 1 ) [2025-03-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-03-27 11:42:06' and `end` < '2025-03-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-03-27 14:42:20] Production.INFO: count ==5245 [2025-03-27 14:42:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:42:06 - End Time 2025-03-27 14:42:06 [2025-03-27 14:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774853', 'tblTempUsageDetail_20' ) start [2025-03-27 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774853', 'tblTempUsageDetail_20' ) end [2025-03-27 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774853', 'tblTempVendorCDR_20' ) start [2025-03-27 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774853', 'tblTempVendorCDR_20' ) end [2025-03-27 14:42:22] Production.INFO: ProcessCDR(1,14774853,1,1,2) [2025-03-27 14:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774853', 'tblTempUsageDetail_20' ) start [2025-03-27 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774853', 'tblTempUsageDetail_20' ) end [2025-03-27 14:42:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:42:28] Production.INFO: ==9610== Releasing lock... [2025-03-27 14:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:42:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-27 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:43:05 [end_date_ymd] => 2025-03-27 14:43:05 [RateCDR] => 1 ) [2025-03-27 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:43:05' and `end` < '2025-03-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-03-27 14:43:19] Production.INFO: count ==5217 [2025-03-27 14:43:21] Production.ERROR: pbx CDR StartTime 2025-03-27 11:43:05 - End Time 2025-03-27 14:43:05 [2025-03-27 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774858', 'tblTempUsageDetail_20' ) start [2025-03-27 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774858', 'tblTempUsageDetail_20' ) end [2025-03-27 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774858', 'tblTempVendorCDR_20' ) start [2025-03-27 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774858', 'tblTempVendorCDR_20' ) end [2025-03-27 14:43:22] Production.INFO: ProcessCDR(1,14774858,1,1,2) [2025-03-27 14:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774858', 'tblTempUsageDetail_20' ) start [2025-03-27 14:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774858', 'tblTempUsageDetail_20' ) end [2025-03-27 14:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:43:28] Production.INFO: ==9681== Releasing lock... [2025-03-27 14:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:43:28] Production.INFO: 67 MB #Memory Used# [2025-03-27 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:44:06 [end_date_ymd] => 2025-03-27 14:44:06 [RateCDR] => 1 ) [2025-03-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-03-27 11:44:06' and `end` < '2025-03-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-03-27 14:44:20] Production.INFO: count ==5206 [2025-03-27 14:44:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:44:06 - End Time 2025-03-27 14:44:06 [2025-03-27 14:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774863', 'tblTempUsageDetail_20' ) start [2025-03-27 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774863', 'tblTempUsageDetail_20' ) end [2025-03-27 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774863', 'tblTempVendorCDR_20' ) start [2025-03-27 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774863', 'tblTempVendorCDR_20' ) end [2025-03-27 14:44:22] Production.INFO: ProcessCDR(1,14774863,1,1,2) [2025-03-27 14:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774863', 'tblTempUsageDetail_20' ) start [2025-03-27 14:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774863', 'tblTempUsageDetail_20' ) end [2025-03-27 14:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:44:28] Production.INFO: ==9760== Releasing lock... [2025-03-27 14:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:44:28] Production.INFO: 67 MB #Memory Used# [2025-03-27 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:45:05 [end_date_ymd] => 2025-03-27 14:45:05 [RateCDR] => 1 ) [2025-03-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-03-27 11:45:05' and `end` < '2025-03-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-03-27 14:45:19] Production.INFO: count ==5192 [2025-03-27 14:45:21] Production.ERROR: pbx CDR StartTime 2025-03-27 11:45:05 - End Time 2025-03-27 14:45:05 [2025-03-27 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774868', 'tblTempUsageDetail_20' ) start [2025-03-27 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774868', 'tblTempUsageDetail_20' ) end [2025-03-27 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774868', 'tblTempVendorCDR_20' ) start [2025-03-27 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774868', 'tblTempVendorCDR_20' ) end [2025-03-27 14:45:22] Production.INFO: ProcessCDR(1,14774868,1,1,2) [2025-03-27 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774868', 'tblTempUsageDetail_20' ) start [2025-03-27 14:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774868', 'tblTempUsageDetail_20' ) end [2025-03-27 14:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:45:25] Production.INFO: ==9839== Releasing lock... [2025-03-27 14:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:45:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:46:06 [end_date_ymd] => 2025-03-27 14:46:06 [RateCDR] => 1 ) [2025-03-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-03-27 11:46:06' and `end` < '2025-03-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-03-27 14:46:19] Production.INFO: count ==5205 [2025-03-27 14:46:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:46:06 - End Time 2025-03-27 14:46:06 [2025-03-27 14:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774873', 'tblTempUsageDetail_20' ) start [2025-03-27 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774873', 'tblTempUsageDetail_20' ) end [2025-03-27 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774873', 'tblTempVendorCDR_20' ) start [2025-03-27 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774873', 'tblTempVendorCDR_20' ) end [2025-03-27 14:46:22] Production.INFO: ProcessCDR(1,14774873,1,1,2) [2025-03-27 14:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774873', 'tblTempUsageDetail_20' ) start [2025-03-27 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774873', 'tblTempUsageDetail_20' ) end [2025-03-27 14:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:46:28] Production.INFO: ==9912== Releasing lock... [2025-03-27 14:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:46:28] Production.INFO: 67 MB #Memory Used# [2025-03-27 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:47:06 [end_date_ymd] => 2025-03-27 14:47:06 [RateCDR] => 1 ) [2025-03-27 14:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:47:06' and `end` < '2025-03-27 14:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:47:19] Production.INFO: count ==5198 [2025-03-27 14:47:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:47:06 - End Time 2025-03-27 14:47:06 [2025-03-27 14:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774878', 'tblTempUsageDetail_20' ) start [2025-03-27 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774878', 'tblTempUsageDetail_20' ) end [2025-03-27 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774878', 'tblTempVendorCDR_20' ) start [2025-03-27 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774878', 'tblTempVendorCDR_20' ) end [2025-03-27 14:47:22] Production.INFO: ProcessCDR(1,14774878,1,1,2) [2025-03-27 14:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774878', 'tblTempUsageDetail_20' ) start [2025-03-27 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774878', 'tblTempUsageDetail_20' ) end [2025-03-27 14:47:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:47:28] Production.INFO: ==9989== Releasing lock... [2025-03-27 14:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:47:28] Production.INFO: 67 MB #Memory Used# [2025-03-27 14:48:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:48:07 [end_date_ymd] => 2025-03-27 14:48:07 [RateCDR] => 1 ) [2025-03-27 14:48:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:48:07' and `end` < '2025-03-27 14:48:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:48:20] Production.INFO: count ==5178 [2025-03-27 14:48:23] Production.ERROR: pbx CDR StartTime 2025-03-27 11:48:07 - End Time 2025-03-27 14:48:07 [2025-03-27 14:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774883', 'tblTempUsageDetail_20' ) start [2025-03-27 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774883', 'tblTempUsageDetail_20' ) end [2025-03-27 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774883', 'tblTempVendorCDR_20' ) start [2025-03-27 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774883', 'tblTempVendorCDR_20' ) end [2025-03-27 14:48:23] Production.INFO: ProcessCDR(1,14774883,1,1,2) [2025-03-27 14:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774883', 'tblTempUsageDetail_20' ) start [2025-03-27 14:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774883', 'tblTempUsageDetail_20' ) end [2025-03-27 14:48:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:48:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:48:29] Production.INFO: ==10070== Releasing lock... [2025-03-27 14:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:48:29] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:49:05 [end_date_ymd] => 2025-03-27 14:49:05 [RateCDR] => 1 ) [2025-03-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-03-27 11:49:05' and `end` < '2025-03-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-03-27 14:49:19] Production.INFO: count ==5172 [2025-03-27 14:49:21] Production.ERROR: pbx CDR StartTime 2025-03-27 11:49:05 - End Time 2025-03-27 14:49:05 [2025-03-27 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774888', 'tblTempUsageDetail_20' ) start [2025-03-27 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774888', 'tblTempUsageDetail_20' ) end [2025-03-27 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774888', 'tblTempVendorCDR_20' ) start [2025-03-27 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774888', 'tblTempVendorCDR_20' ) end [2025-03-27 14:49:21] Production.INFO: ProcessCDR(1,14774888,1,1,2) [2025-03-27 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774888', 'tblTempUsageDetail_20' ) start [2025-03-27 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774888', 'tblTempUsageDetail_20' ) end [2025-03-27 14:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:49:27] Production.INFO: ==10144== Releasing lock... [2025-03-27 14:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:49:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:50:06 [end_date_ymd] => 2025-03-27 14:50:06 [RateCDR] => 1 ) [2025-03-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-03-27 11:50:06' and `end` < '2025-03-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-03-27 14:50:19] Production.INFO: count ==5163 [2025-03-27 14:50:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:50:06 - End Time 2025-03-27 14:50:06 [2025-03-27 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774893', 'tblTempUsageDetail_20' ) start [2025-03-27 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774893', 'tblTempUsageDetail_20' ) end [2025-03-27 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774893', 'tblTempVendorCDR_20' ) start [2025-03-27 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774893', 'tblTempVendorCDR_20' ) end [2025-03-27 14:50:22] Production.INFO: ProcessCDR(1,14774893,1,1,2) [2025-03-27 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774893', 'tblTempUsageDetail_20' ) start [2025-03-27 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774893', 'tblTempUsageDetail_20' ) end [2025-03-27 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:50:28] Production.INFO: ==10220== Releasing lock... [2025-03-27 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:50:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:51:05 [end_date_ymd] => 2025-03-27 14:51:05 [RateCDR] => 1 ) [2025-03-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-03-27 11:51:05' and `end` < '2025-03-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-03-27 14:51:20] Production.INFO: count ==5177 [2025-03-27 14:51:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:51:05 - End Time 2025-03-27 14:51:05 [2025-03-27 14:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774899', 'tblTempUsageDetail_20' ) start [2025-03-27 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774899', 'tblTempUsageDetail_20' ) end [2025-03-27 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774899', 'tblTempVendorCDR_20' ) start [2025-03-27 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774899', 'tblTempVendorCDR_20' ) end [2025-03-27 14:51:22] Production.INFO: ProcessCDR(1,14774899,1,1,2) [2025-03-27 14:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774899', 'tblTempUsageDetail_20' ) start [2025-03-27 14:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774899', 'tblTempUsageDetail_20' ) end [2025-03-27 14:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:51:28] Production.INFO: ==10294== Releasing lock... [2025-03-27 14:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:51:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:52:05 [end_date_ymd] => 2025-03-27 14:52:05 [RateCDR] => 1 ) [2025-03-27 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:52:05' and `end` < '2025-03-27 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:52:19] Production.INFO: count ==5179 [2025-03-27 14:52:21] Production.ERROR: pbx CDR StartTime 2025-03-27 11:52:05 - End Time 2025-03-27 14:52:05 [2025-03-27 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774904', 'tblTempUsageDetail_20' ) start [2025-03-27 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774904', 'tblTempUsageDetail_20' ) end [2025-03-27 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774904', 'tblTempVendorCDR_20' ) start [2025-03-27 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774904', 'tblTempVendorCDR_20' ) end [2025-03-27 14:52:22] Production.INFO: ProcessCDR(1,14774904,1,1,2) [2025-03-27 14:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774904', 'tblTempUsageDetail_20' ) start [2025-03-27 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774904', 'tblTempUsageDetail_20' ) end [2025-03-27 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:52:27] Production.INFO: ==10366== Releasing lock... [2025-03-27 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:52:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:53:06 [end_date_ymd] => 2025-03-27 14:53:06 [RateCDR] => 1 ) [2025-03-27 14:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:53:06' and `end` < '2025-03-27 14:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:53:20] Production.INFO: count ==5187 [2025-03-27 14:53:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:53:06 - End Time 2025-03-27 14:53:06 [2025-03-27 14:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774909', 'tblTempUsageDetail_20' ) start [2025-03-27 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774909', 'tblTempUsageDetail_20' ) end [2025-03-27 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774909', 'tblTempVendorCDR_20' ) start [2025-03-27 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774909', 'tblTempVendorCDR_20' ) end [2025-03-27 14:53:22] Production.INFO: ProcessCDR(1,14774909,1,1,2) [2025-03-27 14:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774909', 'tblTempUsageDetail_20' ) start [2025-03-27 14:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774909', 'tblTempUsageDetail_20' ) end [2025-03-27 14:53:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:53:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:53:28] Production.INFO: ==10483== Releasing lock... [2025-03-27 14:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:53:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:54:05 [end_date_ymd] => 2025-03-27 14:54:05 [RateCDR] => 1 ) [2025-03-27 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:54:05' and `end` < '2025-03-27 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:54:19] Production.INFO: count ==5179 [2025-03-27 14:54:21] Production.ERROR: pbx CDR StartTime 2025-03-27 11:54:05 - End Time 2025-03-27 14:54:05 [2025-03-27 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774914', 'tblTempUsageDetail_20' ) start [2025-03-27 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774914', 'tblTempUsageDetail_20' ) end [2025-03-27 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774914', 'tblTempVendorCDR_20' ) start [2025-03-27 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774914', 'tblTempVendorCDR_20' ) end [2025-03-27 14:54:21] Production.INFO: ProcessCDR(1,14774914,1,1,2) [2025-03-27 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774914', 'tblTempUsageDetail_20' ) start [2025-03-27 14:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774914', 'tblTempUsageDetail_20' ) end [2025-03-27 14:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:54:25] Production.INFO: ==10557== Releasing lock... [2025-03-27 14:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:54:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:55:06 [end_date_ymd] => 2025-03-27 14:55:06 [RateCDR] => 1 ) [2025-03-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-03-27 11:55:06' and `end` < '2025-03-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-03-27 14:55:20] Production.INFO: count ==5178 [2025-03-27 14:55:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:55:06 - End Time 2025-03-27 14:55:06 [2025-03-27 14:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774919', 'tblTempUsageDetail_20' ) start [2025-03-27 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774919', 'tblTempUsageDetail_20' ) end [2025-03-27 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774919', 'tblTempVendorCDR_20' ) start [2025-03-27 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774919', 'tblTempVendorCDR_20' ) end [2025-03-27 14:55:22] Production.INFO: ProcessCDR(1,14774919,1,1,2) [2025-03-27 14:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774919', 'tblTempUsageDetail_20' ) start [2025-03-27 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774919', 'tblTempUsageDetail_20' ) end [2025-03-27 14:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:55:28] Production.INFO: ==10633== Releasing lock... [2025-03-27 14:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:55:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:56:06 [end_date_ymd] => 2025-03-27 14:56:06 [RateCDR] => 1 ) [2025-03-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-03-27 11:56:06' and `end` < '2025-03-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-03-27 14:56:20] Production.INFO: count ==5183 [2025-03-27 14:56:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:56:06 - End Time 2025-03-27 14:56:06 [2025-03-27 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774924', 'tblTempUsageDetail_20' ) start [2025-03-27 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774924', 'tblTempUsageDetail_20' ) end [2025-03-27 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774924', 'tblTempVendorCDR_20' ) start [2025-03-27 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774924', 'tblTempVendorCDR_20' ) end [2025-03-27 14:56:22] Production.INFO: ProcessCDR(1,14774924,1,1,2) [2025-03-27 14:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774924', 'tblTempUsageDetail_20' ) start [2025-03-27 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774924', 'tblTempUsageDetail_20' ) end [2025-03-27 14:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:56:28] Production.INFO: ==10735== Releasing lock... [2025-03-27 14:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:56:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 14:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:57:06 [end_date_ymd] => 2025-03-27 14:57:06 [RateCDR] => 1 ) [2025-03-27 14:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:57:06' and `end` < '2025-03-27 14:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:57:20] Production.INFO: count ==5200 [2025-03-27 14:57:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:57:06 - End Time 2025-03-27 14:57:06 [2025-03-27 14:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774929', 'tblTempUsageDetail_20' ) start [2025-03-27 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774929', 'tblTempUsageDetail_20' ) end [2025-03-27 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774929', 'tblTempVendorCDR_20' ) start [2025-03-27 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774929', 'tblTempVendorCDR_20' ) end [2025-03-27 14:57:22] Production.INFO: ProcessCDR(1,14774929,1,1,2) [2025-03-27 14:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774929', 'tblTempUsageDetail_20' ) start [2025-03-27 14:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774929', 'tblTempUsageDetail_20' ) end [2025-03-27 14:57:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:57:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:57:29] Production.INFO: ==10810== Releasing lock... [2025-03-27 14:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:57:29] Production.INFO: 67 MB #Memory Used# [2025-03-27 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:58:05 [end_date_ymd] => 2025-03-27 14:58:05 [RateCDR] => 1 ) [2025-03-27 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 11:58:05' and `end` < '2025-03-27 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 14:58:19] Production.INFO: count ==5225 [2025-03-27 14:58:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:58:05 - End Time 2025-03-27 14:58:05 [2025-03-27 14:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774934', 'tblTempUsageDetail_20' ) start [2025-03-27 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774934', 'tblTempUsageDetail_20' ) end [2025-03-27 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774934', 'tblTempVendorCDR_20' ) start [2025-03-27 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774934', 'tblTempVendorCDR_20' ) end [2025-03-27 14:58:22] Production.INFO: ProcessCDR(1,14774934,1,1,2) [2025-03-27 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774934', 'tblTempUsageDetail_20' ) start [2025-03-27 14:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774934', 'tblTempUsageDetail_20' ) end [2025-03-27 14:58:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:58:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:58:28] Production.INFO: ==10887== Releasing lock... [2025-03-27 14:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:58:28] Production.INFO: 67 MB #Memory Used# [2025-03-27 14:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 11:59:06 [end_date_ymd] => 2025-03-27 14:59:06 [RateCDR] => 1 ) [2025-03-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-03-27 11:59:06' and `end` < '2025-03-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-03-27 14:59:20] Production.INFO: count ==5212 [2025-03-27 14:59:22] Production.ERROR: pbx CDR StartTime 2025-03-27 11:59:06 - End Time 2025-03-27 14:59:06 [2025-03-27 14:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774939', 'tblTempUsageDetail_20' ) start [2025-03-27 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774939', 'tblTempUsageDetail_20' ) end [2025-03-27 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774939', 'tblTempVendorCDR_20' ) start [2025-03-27 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774939', 'tblTempVendorCDR_20' ) end [2025-03-27 14:59:22] Production.INFO: ProcessCDR(1,14774939,1,1,2) [2025-03-27 14:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 14:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774939', 'tblTempUsageDetail_20' ) start [2025-03-27 14:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774939', 'tblTempUsageDetail_20' ) end [2025-03-27 14:59:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 14:59:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 14:59:28] Production.INFO: ==10957== Releasing lock... [2025-03-27 14:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 14:59:28] Production.INFO: 67 MB #Memory Used# [2025-03-27 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:00:06 [end_date_ymd] => 2025-03-27 15:00:06 [RateCDR] => 1 ) [2025-03-27 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:00:06' and `end` < '2025-03-27 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:00:20] Production.INFO: count ==5215 [2025-03-27 15:00:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:00:06 - End Time 2025-03-27 15:00:06 [2025-03-27 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774944', 'tblTempUsageDetail_20' ) start [2025-03-27 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774944', 'tblTempUsageDetail_20' ) end [2025-03-27 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774944', 'tblTempVendorCDR_20' ) start [2025-03-27 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774944', 'tblTempVendorCDR_20' ) end [2025-03-27 15:00:22] Production.INFO: ProcessCDR(1,14774944,1,1,2) [2025-03-27 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774944', 'tblTempUsageDetail_20' ) start [2025-03-27 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774944', 'tblTempUsageDetail_20' ) end [2025-03-27 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:00:28] Production.INFO: ==11032== Releasing lock... [2025-03-27 15:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:00:28] Production.INFO: 67 MB #Memory Used# [2025-03-27 15:01:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:01:07 [end_date_ymd] => 2025-03-27 15:01:07 [RateCDR] => 1 ) [2025-03-27 15:01:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:01:07' and `end` < '2025-03-27 15:01:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:01:20] Production.INFO: count ==5204 [2025-03-27 15:01:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:01:07 - End Time 2025-03-27 15:01:07 [2025-03-27 15:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774950', 'tblTempUsageDetail_20' ) start [2025-03-27 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774950', 'tblTempUsageDetail_20' ) end [2025-03-27 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774950', 'tblTempVendorCDR_20' ) start [2025-03-27 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774950', 'tblTempVendorCDR_20' ) end [2025-03-27 15:01:23] Production.INFO: ProcessCDR(1,14774950,1,1,2) [2025-03-27 15:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774950', 'tblTempUsageDetail_20' ) start [2025-03-27 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774950', 'tblTempUsageDetail_20' ) end [2025-03-27 15:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:01:28] Production.INFO: ==11200== Releasing lock... [2025-03-27 15:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:01:28] Production.INFO: 67 MB #Memory Used# [2025-03-27 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:02:05 [end_date_ymd] => 2025-03-27 15:02:05 [RateCDR] => 1 ) [2025-03-27 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:02:05' and `end` < '2025-03-27 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:02:19] Production.INFO: count ==5230 [2025-03-27 15:02:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:02:05 - End Time 2025-03-27 15:02:05 [2025-03-27 15:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774955', 'tblTempUsageDetail_20' ) start [2025-03-27 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774955', 'tblTempUsageDetail_20' ) end [2025-03-27 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774955', 'tblTempVendorCDR_20' ) start [2025-03-27 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774955', 'tblTempVendorCDR_20' ) end [2025-03-27 15:02:21] Production.INFO: ProcessCDR(1,14774955,1,1,2) [2025-03-27 15:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774955', 'tblTempUsageDetail_20' ) start [2025-03-27 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774955', 'tblTempUsageDetail_20' ) end [2025-03-27 15:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:02:27] Production.INFO: ==11268== Releasing lock... [2025-03-27 15:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:02:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-27 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:03:06 [end_date_ymd] => 2025-03-27 15:03:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:03:06' and `end` < '2025-03-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-03-27 15:03:19] Production.INFO: count ==5224 [2025-03-27 15:03:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:03:06 - End Time 2025-03-27 15:03:06 [2025-03-27 15:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774960', 'tblTempUsageDetail_20' ) start [2025-03-27 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774960', 'tblTempUsageDetail_20' ) end [2025-03-27 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774960', 'tblTempVendorCDR_20' ) start [2025-03-27 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774960', 'tblTempVendorCDR_20' ) end [2025-03-27 15:03:22] Production.INFO: ProcessCDR(1,14774960,1,1,2) [2025-03-27 15:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774960', 'tblTempUsageDetail_20' ) start [2025-03-27 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774960', 'tblTempUsageDetail_20' ) end [2025-03-27 15:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:03:28] Production.INFO: ==11342== Releasing lock... [2025-03-27 15:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:03:28] Production.INFO: 67 MB #Memory Used# [2025-03-27 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:04:06 [end_date_ymd] => 2025-03-27 15:04:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:04:06' and `end` < '2025-03-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-03-27 15:04:19] Production.INFO: count ==5184 [2025-03-27 15:04:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:04:06 - End Time 2025-03-27 15:04:06 [2025-03-27 15:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774965', 'tblTempUsageDetail_20' ) start [2025-03-27 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774965', 'tblTempUsageDetail_20' ) end [2025-03-27 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774965', 'tblTempVendorCDR_20' ) start [2025-03-27 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774965', 'tblTempVendorCDR_20' ) end [2025-03-27 15:04:21] Production.INFO: ProcessCDR(1,14774965,1,1,2) [2025-03-27 15:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774965', 'tblTempUsageDetail_20' ) start [2025-03-27 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774965', 'tblTempUsageDetail_20' ) end [2025-03-27 15:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:04:27] Production.INFO: ==11416== Releasing lock... [2025-03-27 15:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:04:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:05:06 [end_date_ymd] => 2025-03-27 15:05:06 [RateCDR] => 1 ) [2025-03-27 15:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:05:06' and `end` < '2025-03-27 15:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:05:19] Production.INFO: count ==5171 [2025-03-27 15:05:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:05:06 - End Time 2025-03-27 15:05:06 [2025-03-27 15:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774970', 'tblTempUsageDetail_20' ) start [2025-03-27 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774970', 'tblTempUsageDetail_20' ) end [2025-03-27 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774970', 'tblTempVendorCDR_20' ) start [2025-03-27 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774970', 'tblTempVendorCDR_20' ) end [2025-03-27 15:05:22] Production.INFO: ProcessCDR(1,14774970,1,1,2) [2025-03-27 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774970', 'tblTempUsageDetail_20' ) start [2025-03-27 15:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774970', 'tblTempUsageDetail_20' ) end [2025-03-27 15:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:05:28] Production.INFO: ==11566== Releasing lock... [2025-03-27 15:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:05:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:06:06 [end_date_ymd] => 2025-03-27 15:06:06 [RateCDR] => 1 ) [2025-03-27 15:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:06:06' and `end` < '2025-03-27 15:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:06:19] Production.INFO: count ==5163 [2025-03-27 15:06:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:06:06 - End Time 2025-03-27 15:06:06 [2025-03-27 15:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774975', 'tblTempUsageDetail_20' ) start [2025-03-27 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774975', 'tblTempUsageDetail_20' ) end [2025-03-27 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774975', 'tblTempVendorCDR_20' ) start [2025-03-27 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774975', 'tblTempVendorCDR_20' ) end [2025-03-27 15:06:22] Production.INFO: ProcessCDR(1,14774975,1,1,2) [2025-03-27 15:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774975', 'tblTempUsageDetail_20' ) start [2025-03-27 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774975', 'tblTempUsageDetail_20' ) end [2025-03-27 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:06:27] Production.INFO: ==11638== Releasing lock... [2025-03-27 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:06:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:07:06 [end_date_ymd] => 2025-03-27 15:07:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:07:06' and `end` < '2025-03-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-03-27 15:07:19] Production.INFO: count ==5170 [2025-03-27 15:07:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:07:06 - End Time 2025-03-27 15:07:06 [2025-03-27 15:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774980', 'tblTempUsageDetail_20' ) start [2025-03-27 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774980', 'tblTempUsageDetail_20' ) end [2025-03-27 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774980', 'tblTempVendorCDR_20' ) start [2025-03-27 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774980', 'tblTempVendorCDR_20' ) end [2025-03-27 15:07:22] Production.INFO: ProcessCDR(1,14774980,1,1,2) [2025-03-27 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774980', 'tblTempUsageDetail_20' ) start [2025-03-27 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774980', 'tblTempUsageDetail_20' ) end [2025-03-27 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:07:28] Production.INFO: ==11718== Releasing lock... [2025-03-27 15:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:07:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:08:06 [end_date_ymd] => 2025-03-27 15:08:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:08:06' and `end` < '2025-03-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-03-27 15:08:19] Production.INFO: count ==5168 [2025-03-27 15:08:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:08:06 - End Time 2025-03-27 15:08:06 [2025-03-27 15:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774985', 'tblTempUsageDetail_20' ) start [2025-03-27 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774985', 'tblTempUsageDetail_20' ) end [2025-03-27 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774985', 'tblTempVendorCDR_20' ) start [2025-03-27 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774985', 'tblTempVendorCDR_20' ) end [2025-03-27 15:08:22] Production.INFO: ProcessCDR(1,14774985,1,1,2) [2025-03-27 15:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774985', 'tblTempUsageDetail_20' ) start [2025-03-27 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774985', 'tblTempUsageDetail_20' ) end [2025-03-27 15:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:08:28] Production.INFO: ==11866== Releasing lock... [2025-03-27 15:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:08:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:09:06 [end_date_ymd] => 2025-03-27 15:09:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:09:06' and `end` < '2025-03-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-03-27 15:09:20] Production.INFO: count ==5179 [2025-03-27 15:09:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:09:06 - End Time 2025-03-27 15:09:06 [2025-03-27 15:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774990', 'tblTempUsageDetail_20' ) start [2025-03-27 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774990', 'tblTempUsageDetail_20' ) end [2025-03-27 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774990', 'tblTempVendorCDR_20' ) start [2025-03-27 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774990', 'tblTempVendorCDR_20' ) end [2025-03-27 15:09:22] Production.INFO: ProcessCDR(1,14774990,1,1,2) [2025-03-27 15:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774990', 'tblTempUsageDetail_20' ) start [2025-03-27 15:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774990', 'tblTempUsageDetail_20' ) end [2025-03-27 15:09:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:09:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:09:28] Production.INFO: ==11979== Releasing lock... [2025-03-27 15:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:09:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:10:06 [end_date_ymd] => 2025-03-27 15:10:06 [RateCDR] => 1 ) [2025-03-27 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:10:06' and `end` < '2025-03-27 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:10:20] Production.INFO: count ==5190 [2025-03-27 15:10:23] Production.ERROR: pbx CDR StartTime 2025-03-27 12:10:06 - End Time 2025-03-27 15:10:06 [2025-03-27 15:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774996', 'tblTempUsageDetail_20' ) start [2025-03-27 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14774996', 'tblTempUsageDetail_20' ) end [2025-03-27 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774996', 'tblTempVendorCDR_20' ) start [2025-03-27 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14774996', 'tblTempVendorCDR_20' ) end [2025-03-27 15:10:24] Production.INFO: ProcessCDR(1,14774996,1,1,2) [2025-03-27 15:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14774996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14774996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14774996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14774996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774996', 'tblTempUsageDetail_20' ) start [2025-03-27 15:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14774996', 'tblTempUsageDetail_20' ) end [2025-03-27 15:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:10:30] Production.INFO: ==12071== Releasing lock... [2025-03-27 15:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:10:30] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:11:05 [end_date_ymd] => 2025-03-27 15:11:05 [RateCDR] => 1 ) [2025-03-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-03-27 12:11:05' and `end` < '2025-03-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-03-27 15:11:19] Production.INFO: count ==5125 [2025-03-27 15:11:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:11:05 - End Time 2025-03-27 15:11:05 [2025-03-27 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775001', 'tblTempUsageDetail_20' ) start [2025-03-27 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775001', 'tblTempUsageDetail_20' ) end [2025-03-27 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775001', 'tblTempVendorCDR_20' ) start [2025-03-27 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775001', 'tblTempVendorCDR_20' ) end [2025-03-27 15:11:22] Production.INFO: ProcessCDR(1,14775001,1,1,2) [2025-03-27 15:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775001', 'tblTempUsageDetail_20' ) start [2025-03-27 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775001', 'tblTempUsageDetail_20' ) end [2025-03-27 15:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:11:27] Production.INFO: ==12148== Releasing lock... [2025-03-27 15:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:11:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-27 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:12:06 [end_date_ymd] => 2025-03-27 15:12:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:12:06' and `end` < '2025-03-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-03-27 15:12:19] Production.INFO: count ==5092 [2025-03-27 15:12:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:12:06 - End Time 2025-03-27 15:12:06 [2025-03-27 15:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775006', 'tblTempUsageDetail_20' ) start [2025-03-27 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775006', 'tblTempUsageDetail_20' ) end [2025-03-27 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775006', 'tblTempVendorCDR_20' ) start [2025-03-27 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775006', 'tblTempVendorCDR_20' ) end [2025-03-27 15:12:22] Production.INFO: ProcessCDR(1,14775006,1,1,2) [2025-03-27 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775006', 'tblTempUsageDetail_20' ) start [2025-03-27 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775006', 'tblTempUsageDetail_20' ) end [2025-03-27 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:12:27] Production.INFO: ==12299== Releasing lock... [2025-03-27 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:12:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-27 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:13:05 [end_date_ymd] => 2025-03-27 15:13:05 [RateCDR] => 1 ) [2025-03-27 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:13:05' and `end` < '2025-03-27 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:13:19] Production.INFO: count ==5097 [2025-03-27 15:13:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:13:05 - End Time 2025-03-27 15:13:05 [2025-03-27 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775011', 'tblTempUsageDetail_20' ) start [2025-03-27 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775011', 'tblTempUsageDetail_20' ) end [2025-03-27 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775011', 'tblTempVendorCDR_20' ) start [2025-03-27 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775011', 'tblTempVendorCDR_20' ) end [2025-03-27 15:13:21] Production.INFO: ProcessCDR(1,14775011,1,1,2) [2025-03-27 15:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775011', 'tblTempUsageDetail_20' ) start [2025-03-27 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775011', 'tblTempUsageDetail_20' ) end [2025-03-27 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:13:27] Production.INFO: ==12372== Releasing lock... [2025-03-27 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:13:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-27 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:14:06 [end_date_ymd] => 2025-03-27 15:14:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:14:06' and `end` < '2025-03-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-03-27 15:14:19] Production.INFO: count ==5098 [2025-03-27 15:14:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:14:06 - End Time 2025-03-27 15:14:06 [2025-03-27 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775016', 'tblTempUsageDetail_20' ) start [2025-03-27 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775016', 'tblTempUsageDetail_20' ) end [2025-03-27 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775016', 'tblTempVendorCDR_20' ) start [2025-03-27 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775016', 'tblTempVendorCDR_20' ) end [2025-03-27 15:14:22] Production.INFO: ProcessCDR(1,14775016,1,1,2) [2025-03-27 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775016', 'tblTempUsageDetail_20' ) start [2025-03-27 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775016', 'tblTempUsageDetail_20' ) end [2025-03-27 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:14:27] Production.INFO: ==12441== Releasing lock... [2025-03-27 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:14:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-27 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:15:05 [end_date_ymd] => 2025-03-27 15:15:05 [RateCDR] => 1 ) [2025-03-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-03-27 12:15:05' and `end` < '2025-03-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-03-27 15:15:19] Production.INFO: count ==5100 [2025-03-27 15:15:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:15:05 - End Time 2025-03-27 15:15:05 [2025-03-27 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775021', 'tblTempUsageDetail_20' ) start [2025-03-27 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775021', 'tblTempUsageDetail_20' ) end [2025-03-27 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775021', 'tblTempVendorCDR_20' ) start [2025-03-27 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775021', 'tblTempVendorCDR_20' ) end [2025-03-27 15:15:21] Production.INFO: ProcessCDR(1,14775021,1,1,2) [2025-03-27 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775021', 'tblTempUsageDetail_20' ) start [2025-03-27 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775021', 'tblTempUsageDetail_20' ) end [2025-03-27 15:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:15:27] Production.INFO: ==12595== Releasing lock... [2025-03-27 15:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:15:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-27 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:16:06 [end_date_ymd] => 2025-03-27 15:16:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:16:06' and `end` < '2025-03-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-03-27 15:16:19] Production.INFO: count ==5113 [2025-03-27 15:16:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:16:06 - End Time 2025-03-27 15:16:06 [2025-03-27 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775026', 'tblTempUsageDetail_20' ) start [2025-03-27 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775026', 'tblTempUsageDetail_20' ) end [2025-03-27 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775026', 'tblTempVendorCDR_20' ) start [2025-03-27 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775026', 'tblTempVendorCDR_20' ) end [2025-03-27 15:16:22] Production.INFO: ProcessCDR(1,14775026,1,1,2) [2025-03-27 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775026', 'tblTempUsageDetail_20' ) start [2025-03-27 15:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775026', 'tblTempUsageDetail_20' ) end [2025-03-27 15:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:16:28] Production.INFO: ==12666== Releasing lock... [2025-03-27 15:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:16:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-27 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:17:05 [end_date_ymd] => 2025-03-27 15:17:05 [RateCDR] => 1 ) [2025-03-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-03-27 12:17:05' and `end` < '2025-03-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-03-27 15:17:19] Production.INFO: count ==5122 [2025-03-27 15:17:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:17:05 - End Time 2025-03-27 15:17:05 [2025-03-27 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775031', 'tblTempUsageDetail_20' ) start [2025-03-27 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775031', 'tblTempUsageDetail_20' ) end [2025-03-27 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775031', 'tblTempVendorCDR_20' ) start [2025-03-27 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775031', 'tblTempVendorCDR_20' ) end [2025-03-27 15:17:21] Production.INFO: ProcessCDR(1,14775031,1,1,2) [2025-03-27 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775031', 'tblTempUsageDetail_20' ) start [2025-03-27 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775031', 'tblTempUsageDetail_20' ) end [2025-03-27 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:17:27] Production.INFO: ==12740== Releasing lock... [2025-03-27 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:17:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-27 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:18:06 [end_date_ymd] => 2025-03-27 15:18:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:18:06' and `end` < '2025-03-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-03-27 15:18:20] Production.INFO: count ==5113 [2025-03-27 15:18:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:18:06 - End Time 2025-03-27 15:18:06 [2025-03-27 15:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775036', 'tblTempUsageDetail_20' ) start [2025-03-27 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775036', 'tblTempUsageDetail_20' ) end [2025-03-27 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775036', 'tblTempVendorCDR_20' ) start [2025-03-27 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775036', 'tblTempVendorCDR_20' ) end [2025-03-27 15:18:22] Production.INFO: ProcessCDR(1,14775036,1,1,2) [2025-03-27 15:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775036', 'tblTempUsageDetail_20' ) start [2025-03-27 15:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775036', 'tblTempUsageDetail_20' ) end [2025-03-27 15:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:18:28] Production.INFO: ==12814== Releasing lock... [2025-03-27 15:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:18:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-27 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:19:05 [end_date_ymd] => 2025-03-27 15:19:05 [RateCDR] => 1 ) [2025-03-27 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:19:05' and `end` < '2025-03-27 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:19:19] Production.INFO: count ==5115 [2025-03-27 15:19:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:19:05 - End Time 2025-03-27 15:19:05 [2025-03-27 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775041', 'tblTempUsageDetail_20' ) start [2025-03-27 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775041', 'tblTempUsageDetail_20' ) end [2025-03-27 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775041', 'tblTempVendorCDR_20' ) start [2025-03-27 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775041', 'tblTempVendorCDR_20' ) end [2025-03-27 15:19:21] Production.INFO: ProcessCDR(1,14775041,1,1,2) [2025-03-27 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775041', 'tblTempUsageDetail_20' ) start [2025-03-27 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775041', 'tblTempUsageDetail_20' ) end [2025-03-27 15:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:19:27] Production.INFO: ==12887== Releasing lock... [2025-03-27 15:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:19:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-27 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:20:06 [end_date_ymd] => 2025-03-27 15:20:06 [RateCDR] => 1 ) [2025-03-27 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:20:06' and `end` < '2025-03-27 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:20:20] Production.INFO: count ==5111 [2025-03-27 15:20:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:20:06 - End Time 2025-03-27 15:20:06 [2025-03-27 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775047', 'tblTempUsageDetail_20' ) start [2025-03-27 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775047', 'tblTempUsageDetail_20' ) end [2025-03-27 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775047', 'tblTempVendorCDR_20' ) start [2025-03-27 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775047', 'tblTempVendorCDR_20' ) end [2025-03-27 15:20:23] Production.INFO: ProcessCDR(1,14775047,1,1,2) [2025-03-27 15:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775047', 'tblTempUsageDetail_20' ) start [2025-03-27 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775047', 'tblTempUsageDetail_20' ) end [2025-03-27 15:20:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:20:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:20:29] Production.INFO: ==12964== Releasing lock... [2025-03-27 15:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:20:29] Production.INFO: 66.25 MB #Memory Used# [2025-03-27 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:21:06 [end_date_ymd] => 2025-03-27 15:21:06 [RateCDR] => 1 ) [2025-03-27 15:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:21:06' and `end` < '2025-03-27 15:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:21:20] Production.INFO: count ==5134 [2025-03-27 15:21:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:21:06 - End Time 2025-03-27 15:21:06 [2025-03-27 15:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775052', 'tblTempUsageDetail_20' ) start [2025-03-27 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775052', 'tblTempUsageDetail_20' ) end [2025-03-27 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775052', 'tblTempVendorCDR_20' ) start [2025-03-27 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775052', 'tblTempVendorCDR_20' ) end [2025-03-27 15:21:22] Production.INFO: ProcessCDR(1,14775052,1,1,2) [2025-03-27 15:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775052', 'tblTempUsageDetail_20' ) start [2025-03-27 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775052', 'tblTempUsageDetail_20' ) end [2025-03-27 15:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:21:28] Production.INFO: ==13038== Releasing lock... [2025-03-27 15:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:21:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-27 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:22:06 [end_date_ymd] => 2025-03-27 15:22:06 [RateCDR] => 1 ) [2025-03-27 15:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:22:06' and `end` < '2025-03-27 15:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:22:19] Production.INFO: count ==5132 [2025-03-27 15:22:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:22:06 - End Time 2025-03-27 15:22:06 [2025-03-27 15:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775057', 'tblTempUsageDetail_20' ) start [2025-03-27 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775057', 'tblTempUsageDetail_20' ) end [2025-03-27 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775057', 'tblTempVendorCDR_20' ) start [2025-03-27 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775057', 'tblTempVendorCDR_20' ) end [2025-03-27 15:22:22] Production.INFO: ProcessCDR(1,14775057,1,1,2) [2025-03-27 15:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775057', 'tblTempUsageDetail_20' ) start [2025-03-27 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775057', 'tblTempUsageDetail_20' ) end [2025-03-27 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:22:27] Production.INFO: ==13110== Releasing lock... [2025-03-27 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:22:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-27 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:23:05 [end_date_ymd] => 2025-03-27 15:23:05 [RateCDR] => 1 ) [2025-03-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-03-27 12:23:05' and `end` < '2025-03-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-03-27 15:23:19] Production.INFO: count ==5149 [2025-03-27 15:23:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:23:05 - End Time 2025-03-27 15:23:05 [2025-03-27 15:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775062', 'tblTempUsageDetail_20' ) start [2025-03-27 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775062', 'tblTempUsageDetail_20' ) end [2025-03-27 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775062', 'tblTempVendorCDR_20' ) start [2025-03-27 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775062', 'tblTempVendorCDR_20' ) end [2025-03-27 15:23:22] Production.INFO: ProcessCDR(1,14775062,1,1,2) [2025-03-27 15:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775062', 'tblTempUsageDetail_20' ) start [2025-03-27 15:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775062', 'tblTempUsageDetail_20' ) end [2025-03-27 15:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:23:28] Production.INFO: ==13183== Releasing lock... [2025-03-27 15:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:23:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-27 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:24:06 [end_date_ymd] => 2025-03-27 15:24:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:24:06' and `end` < '2025-03-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-03-27 15:24:20] Production.INFO: count ==5149 [2025-03-27 15:24:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:24:06 - End Time 2025-03-27 15:24:06 [2025-03-27 15:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775067', 'tblTempUsageDetail_20' ) start [2025-03-27 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775067', 'tblTempUsageDetail_20' ) end [2025-03-27 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775067', 'tblTempVendorCDR_20' ) start [2025-03-27 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775067', 'tblTempVendorCDR_20' ) end [2025-03-27 15:24:22] Production.INFO: ProcessCDR(1,14775067,1,1,2) [2025-03-27 15:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775067', 'tblTempUsageDetail_20' ) start [2025-03-27 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775067', 'tblTempUsageDetail_20' ) end [2025-03-27 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:24:28] Production.INFO: ==13300== Releasing lock... [2025-03-27 15:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:24:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-27 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:25:05 [end_date_ymd] => 2025-03-27 15:25:05 [RateCDR] => 1 ) [2025-03-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-03-27 12:25:05' and `end` < '2025-03-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-03-27 15:25:19] Production.INFO: count ==5163 [2025-03-27 15:25:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:25:05 - End Time 2025-03-27 15:25:05 [2025-03-27 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775072', 'tblTempUsageDetail_20' ) start [2025-03-27 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775072', 'tblTempUsageDetail_20' ) end [2025-03-27 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775072', 'tblTempVendorCDR_20' ) start [2025-03-27 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775072', 'tblTempVendorCDR_20' ) end [2025-03-27 15:25:22] Production.INFO: ProcessCDR(1,14775072,1,1,2) [2025-03-27 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775072', 'tblTempUsageDetail_20' ) start [2025-03-27 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775072', 'tblTempUsageDetail_20' ) end [2025-03-27 15:25:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:25:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:25:28] Production.INFO: ==13372== Releasing lock... [2025-03-27 15:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:25:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:26:05 [end_date_ymd] => 2025-03-27 15:26:05 [RateCDR] => 1 ) [2025-03-27 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:26:05' and `end` < '2025-03-27 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:26:19] Production.INFO: count ==5140 [2025-03-27 15:26:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:26:05 - End Time 2025-03-27 15:26:05 [2025-03-27 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775077', 'tblTempUsageDetail_20' ) start [2025-03-27 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775077', 'tblTempUsageDetail_20' ) end [2025-03-27 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775077', 'tblTempVendorCDR_20' ) start [2025-03-27 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775077', 'tblTempVendorCDR_20' ) end [2025-03-27 15:26:22] Production.INFO: ProcessCDR(1,14775077,1,1,2) [2025-03-27 15:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775077', 'tblTempUsageDetail_20' ) start [2025-03-27 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775077', 'tblTempUsageDetail_20' ) end [2025-03-27 15:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:26:27] Production.INFO: ==13451== Releasing lock... [2025-03-27 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:26:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-27 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:27:05 [end_date_ymd] => 2025-03-27 15:27:05 [RateCDR] => 1 ) [2025-03-27 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:27:05' and `end` < '2025-03-27 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:27:19] Production.INFO: count ==5139 [2025-03-27 15:27:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:27:05 - End Time 2025-03-27 15:27:05 [2025-03-27 15:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775082', 'tblTempUsageDetail_20' ) start [2025-03-27 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775082', 'tblTempUsageDetail_20' ) end [2025-03-27 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775082', 'tblTempVendorCDR_20' ) start [2025-03-27 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775082', 'tblTempVendorCDR_20' ) end [2025-03-27 15:27:22] Production.INFO: ProcessCDR(1,14775082,1,1,2) [2025-03-27 15:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775082', 'tblTempUsageDetail_20' ) start [2025-03-27 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775082', 'tblTempUsageDetail_20' ) end [2025-03-27 15:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:27:27] Production.INFO: ==13522== Releasing lock... [2025-03-27 15:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:27:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-27 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:28:06 [end_date_ymd] => 2025-03-27 15:28:06 [RateCDR] => 1 ) [2025-03-27 15:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:28:06' and `end` < '2025-03-27 15:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:28:20] Production.INFO: count ==5126 [2025-03-27 15:28:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:28:06 - End Time 2025-03-27 15:28:06 [2025-03-27 15:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775087', 'tblTempUsageDetail_20' ) start [2025-03-27 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775087', 'tblTempUsageDetail_20' ) end [2025-03-27 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775087', 'tblTempVendorCDR_20' ) start [2025-03-27 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775087', 'tblTempVendorCDR_20' ) end [2025-03-27 15:28:22] Production.INFO: ProcessCDR(1,14775087,1,1,2) [2025-03-27 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775087', 'tblTempUsageDetail_20' ) start [2025-03-27 15:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775087', 'tblTempUsageDetail_20' ) end [2025-03-27 15:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:28:28] Production.INFO: ==13595== Releasing lock... [2025-03-27 15:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:28:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-27 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:29:05 [end_date_ymd] => 2025-03-27 15:29:05 [RateCDR] => 1 ) [2025-03-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-03-27 12:29:05' and `end` < '2025-03-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-03-27 15:29:20] Production.INFO: count ==5129 [2025-03-27 15:29:23] Production.ERROR: pbx CDR StartTime 2025-03-27 12:29:05 - End Time 2025-03-27 15:29:05 [2025-03-27 15:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775092', 'tblTempUsageDetail_20' ) start [2025-03-27 15:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775092', 'tblTempUsageDetail_20' ) end [2025-03-27 15:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775092', 'tblTempVendorCDR_20' ) start [2025-03-27 15:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775092', 'tblTempVendorCDR_20' ) end [2025-03-27 15:29:23] Production.INFO: ProcessCDR(1,14775092,1,1,2) [2025-03-27 15:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775092', 'tblTempUsageDetail_20' ) start [2025-03-27 15:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775092', 'tblTempUsageDetail_20' ) end [2025-03-27 15:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:29:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:29:29] Production.INFO: ==13668== Releasing lock... [2025-03-27 15:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:29:29] Production.INFO: 66.5 MB #Memory Used# [2025-03-27 15:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:30:07 [end_date_ymd] => 2025-03-27 15:30:07 [RateCDR] => 1 ) [2025-03-27 15:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:30:07' and `end` < '2025-03-27 15:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:30:20] Production.INFO: count ==5143 [2025-03-27 15:30:23] Production.ERROR: pbx CDR StartTime 2025-03-27 12:30:07 - End Time 2025-03-27 15:30:07 [2025-03-27 15:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775098', 'tblTempUsageDetail_20' ) start [2025-03-27 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775098', 'tblTempUsageDetail_20' ) end [2025-03-27 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775098', 'tblTempVendorCDR_20' ) start [2025-03-27 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775098', 'tblTempVendorCDR_20' ) end [2025-03-27 15:30:23] Production.INFO: ProcessCDR(1,14775098,1,1,2) [2025-03-27 15:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775098', 'tblTempUsageDetail_20' ) start [2025-03-27 15:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775098', 'tblTempUsageDetail_20' ) end [2025-03-27 15:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:30:29] Production.INFO: ==13742== Releasing lock... [2025-03-27 15:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:30:29] Production.INFO: 66.5 MB #Memory Used# [2025-03-27 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:31:06 [end_date_ymd] => 2025-03-27 15:31:06 [RateCDR] => 1 ) [2025-03-27 15:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:31:06' and `end` < '2025-03-27 15:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:31:20] Production.INFO: count ==5175 [2025-03-27 15:31:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:31:06 - End Time 2025-03-27 15:31:06 [2025-03-27 15:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775103', 'tblTempUsageDetail_20' ) start [2025-03-27 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775103', 'tblTempUsageDetail_20' ) end [2025-03-27 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775103', 'tblTempVendorCDR_20' ) start [2025-03-27 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775103', 'tblTempVendorCDR_20' ) end [2025-03-27 15:31:22] Production.INFO: ProcessCDR(1,14775103,1,1,2) [2025-03-27 15:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775103', 'tblTempUsageDetail_20' ) start [2025-03-27 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775103', 'tblTempUsageDetail_20' ) end [2025-03-27 15:31:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:31:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:31:28] Production.INFO: ==13816== Releasing lock... [2025-03-27 15:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:31:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:32:06 [end_date_ymd] => 2025-03-27 15:32:06 [RateCDR] => 1 ) [2025-03-27 15:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:32:06' and `end` < '2025-03-27 15:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:32:19] Production.INFO: count ==5163 [2025-03-27 15:32:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:32:06 - End Time 2025-03-27 15:32:06 [2025-03-27 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775108', 'tblTempUsageDetail_20' ) start [2025-03-27 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775108', 'tblTempUsageDetail_20' ) end [2025-03-27 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775108', 'tblTempVendorCDR_20' ) start [2025-03-27 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775108', 'tblTempVendorCDR_20' ) end [2025-03-27 15:32:22] Production.INFO: ProcessCDR(1,14775108,1,1,2) [2025-03-27 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775108', 'tblTempUsageDetail_20' ) start [2025-03-27 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775108', 'tblTempUsageDetail_20' ) end [2025-03-27 15:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:32:28] Production.INFO: ==13889== Releasing lock... [2025-03-27 15:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:32:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-27 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:33:05 [end_date_ymd] => 2025-03-27 15:33:05 [RateCDR] => 1 ) [2025-03-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-03-27 12:33:05' and `end` < '2025-03-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-03-27 15:33:19] Production.INFO: count ==5153 [2025-03-27 15:33:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:33:05 - End Time 2025-03-27 15:33:05 [2025-03-27 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775113', 'tblTempUsageDetail_20' ) start [2025-03-27 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775113', 'tblTempUsageDetail_20' ) end [2025-03-27 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775113', 'tblTempVendorCDR_20' ) start [2025-03-27 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775113', 'tblTempVendorCDR_20' ) end [2025-03-27 15:33:22] Production.INFO: ProcessCDR(1,14775113,1,1,2) [2025-03-27 15:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775113', 'tblTempUsageDetail_20' ) start [2025-03-27 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775113', 'tblTempUsageDetail_20' ) end [2025-03-27 15:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:33:27] Production.INFO: ==13958== Releasing lock... [2025-03-27 15:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:33:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-27 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:34:06 [end_date_ymd] => 2025-03-27 15:34:06 [RateCDR] => 1 ) [2025-03-27 15:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:34:06' and `end` < '2025-03-27 15:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:34:20] Production.INFO: count ==5144 [2025-03-27 15:34:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:34:06 - End Time 2025-03-27 15:34:06 [2025-03-27 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775118', 'tblTempUsageDetail_20' ) start [2025-03-27 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775118', 'tblTempUsageDetail_20' ) end [2025-03-27 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775118', 'tblTempVendorCDR_20' ) start [2025-03-27 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775118', 'tblTempVendorCDR_20' ) end [2025-03-27 15:34:22] Production.INFO: ProcessCDR(1,14775118,1,1,2) [2025-03-27 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775118', 'tblTempUsageDetail_20' ) start [2025-03-27 15:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775118', 'tblTempUsageDetail_20' ) end [2025-03-27 15:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:34:28] Production.INFO: ==14033== Releasing lock... [2025-03-27 15:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:34:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-27 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:35:05 [end_date_ymd] => 2025-03-27 15:35:05 [RateCDR] => 1 ) [2025-03-27 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:35:05' and `end` < '2025-03-27 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:35:20] Production.INFO: count ==5151 [2025-03-27 15:35:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:35:05 - End Time 2025-03-27 15:35:05 [2025-03-27 15:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775123', 'tblTempUsageDetail_20' ) start [2025-03-27 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775123', 'tblTempUsageDetail_20' ) end [2025-03-27 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775123', 'tblTempVendorCDR_20' ) start [2025-03-27 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775123', 'tblTempVendorCDR_20' ) end [2025-03-27 15:35:22] Production.INFO: ProcessCDR(1,14775123,1,1,2) [2025-03-27 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775123', 'tblTempUsageDetail_20' ) start [2025-03-27 15:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775123', 'tblTempUsageDetail_20' ) end [2025-03-27 15:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:35:28] Production.INFO: ==14118== Releasing lock... [2025-03-27 15:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:35:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-27 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:36:06 [end_date_ymd] => 2025-03-27 15:36:06 [RateCDR] => 1 ) [2025-03-27 15:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:36:06' and `end` < '2025-03-27 15:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:36:20] Production.INFO: count ==5146 [2025-03-27 15:36:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:36:06 - End Time 2025-03-27 15:36:06 [2025-03-27 15:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775128', 'tblTempUsageDetail_20' ) start [2025-03-27 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775128', 'tblTempUsageDetail_20' ) end [2025-03-27 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775128', 'tblTempVendorCDR_20' ) start [2025-03-27 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775128', 'tblTempVendorCDR_20' ) end [2025-03-27 15:36:23] Production.INFO: ProcessCDR(1,14775128,1,1,2) [2025-03-27 15:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775128', 'tblTempUsageDetail_20' ) start [2025-03-27 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775128', 'tblTempUsageDetail_20' ) end [2025-03-27 15:36:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:36:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:36:28] Production.INFO: ==14190== Releasing lock... [2025-03-27 15:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:36:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-27 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:37:05 [end_date_ymd] => 2025-03-27 15:37:05 [RateCDR] => 1 ) [2025-03-27 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:37:05' and `end` < '2025-03-27 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:37:19] Production.INFO: count ==5129 [2025-03-27 15:37:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:37:05 - End Time 2025-03-27 15:37:05 [2025-03-27 15:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775133', 'tblTempUsageDetail_20' ) start [2025-03-27 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775133', 'tblTempUsageDetail_20' ) end [2025-03-27 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775133', 'tblTempVendorCDR_20' ) start [2025-03-27 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775133', 'tblTempVendorCDR_20' ) end [2025-03-27 15:37:22] Production.INFO: ProcessCDR(1,14775133,1,1,2) [2025-03-27 15:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775133', 'tblTempUsageDetail_20' ) start [2025-03-27 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775133', 'tblTempUsageDetail_20' ) end [2025-03-27 15:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:37:28] Production.INFO: ==14265== Releasing lock... [2025-03-27 15:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:37:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-27 15:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:38:06 [end_date_ymd] => 2025-03-27 15:38:06 [RateCDR] => 1 ) [2025-03-27 15:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:38:06' and `end` < '2025-03-27 15:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:38:20] Production.INFO: count ==5125 [2025-03-27 15:38:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:38:06 - End Time 2025-03-27 15:38:06 [2025-03-27 15:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775138', 'tblTempUsageDetail_20' ) start [2025-03-27 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775138', 'tblTempUsageDetail_20' ) end [2025-03-27 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775138', 'tblTempVendorCDR_20' ) start [2025-03-27 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775138', 'tblTempVendorCDR_20' ) end [2025-03-27 15:38:22] Production.INFO: ProcessCDR(1,14775138,1,1,2) [2025-03-27 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775138', 'tblTempUsageDetail_20' ) start [2025-03-27 15:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775138', 'tblTempUsageDetail_20' ) end [2025-03-27 15:38:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:38:28] Production.INFO: ==14341== Releasing lock... [2025-03-27 15:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:38:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-27 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:39:06 [end_date_ymd] => 2025-03-27 15:39:06 [RateCDR] => 1 ) [2025-03-27 15:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:39:06' and `end` < '2025-03-27 15:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:39:19] Production.INFO: count ==5128 [2025-03-27 15:39:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:39:06 - End Time 2025-03-27 15:39:06 [2025-03-27 15:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775143', 'tblTempUsageDetail_20' ) start [2025-03-27 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775143', 'tblTempUsageDetail_20' ) end [2025-03-27 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775143', 'tblTempVendorCDR_20' ) start [2025-03-27 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775143', 'tblTempVendorCDR_20' ) end [2025-03-27 15:39:22] Production.INFO: ProcessCDR(1,14775143,1,1,2) [2025-03-27 15:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775143', 'tblTempUsageDetail_20' ) start [2025-03-27 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775143', 'tblTempUsageDetail_20' ) end [2025-03-27 15:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:39:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:39:28] Production.INFO: ==14413== Releasing lock... [2025-03-27 15:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:39:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-27 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:40:06 [end_date_ymd] => 2025-03-27 15:40:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:40:06' and `end` < '2025-03-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-03-27 15:40:20] Production.INFO: count ==5124 [2025-03-27 15:40:23] Production.ERROR: pbx CDR StartTime 2025-03-27 12:40:06 - End Time 2025-03-27 15:40:06 [2025-03-27 15:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775148', 'tblTempUsageDetail_20' ) start [2025-03-27 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775148', 'tblTempUsageDetail_20' ) end [2025-03-27 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775148', 'tblTempVendorCDR_20' ) start [2025-03-27 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775148', 'tblTempVendorCDR_20' ) end [2025-03-27 15:40:23] Production.INFO: ProcessCDR(1,14775148,1,1,2) [2025-03-27 15:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775148', 'tblTempUsageDetail_20' ) start [2025-03-27 15:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775148', 'tblTempUsageDetail_20' ) end [2025-03-27 15:40:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:40:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:40:29] Production.INFO: ==14526== Releasing lock... [2025-03-27 15:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:40:29] Production.INFO: 66.25 MB #Memory Used# [2025-03-27 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:41:05 [end_date_ymd] => 2025-03-27 15:41:05 [RateCDR] => 1 ) [2025-03-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-03-27 12:41:05' and `end` < '2025-03-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-03-27 15:41:19] Production.INFO: count ==5125 [2025-03-27 15:41:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:41:05 - End Time 2025-03-27 15:41:05 [2025-03-27 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775154', 'tblTempUsageDetail_20' ) start [2025-03-27 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775154', 'tblTempUsageDetail_20' ) end [2025-03-27 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775154', 'tblTempVendorCDR_20' ) start [2025-03-27 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775154', 'tblTempVendorCDR_20' ) end [2025-03-27 15:41:21] Production.INFO: ProcessCDR(1,14775154,1,1,2) [2025-03-27 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775154', 'tblTempUsageDetail_20' ) start [2025-03-27 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775154', 'tblTempUsageDetail_20' ) end [2025-03-27 15:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:41:27] Production.INFO: ==14600== Releasing lock... [2025-03-27 15:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:41:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-27 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:42:06 [end_date_ymd] => 2025-03-27 15:42:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:42:06' and `end` < '2025-03-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-03-27 15:42:20] Production.INFO: count ==5096 [2025-03-27 15:42:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:42:06 - End Time 2025-03-27 15:42:06 [2025-03-27 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775159', 'tblTempUsageDetail_20' ) start [2025-03-27 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775159', 'tblTempUsageDetail_20' ) end [2025-03-27 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775159', 'tblTempVendorCDR_20' ) start [2025-03-27 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775159', 'tblTempVendorCDR_20' ) end [2025-03-27 15:42:22] Production.INFO: ProcessCDR(1,14775159,1,1,2) [2025-03-27 15:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775159', 'tblTempUsageDetail_20' ) start [2025-03-27 15:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775159', 'tblTempUsageDetail_20' ) end [2025-03-27 15:42:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:42:28] Production.INFO: ==14677== Releasing lock... [2025-03-27 15:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:42:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-27 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:43:05 [end_date_ymd] => 2025-03-27 15:43:05 [RateCDR] => 1 ) [2025-03-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-03-27 12:43:05' and `end` < '2025-03-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-03-27 15:43:19] Production.INFO: count ==5087 [2025-03-27 15:43:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:43:05 - End Time 2025-03-27 15:43:05 [2025-03-27 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775164', 'tblTempUsageDetail_20' ) start [2025-03-27 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775164', 'tblTempUsageDetail_20' ) end [2025-03-27 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775164', 'tblTempVendorCDR_20' ) start [2025-03-27 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775164', 'tblTempVendorCDR_20' ) end [2025-03-27 15:43:22] Production.INFO: ProcessCDR(1,14775164,1,1,2) [2025-03-27 15:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775164', 'tblTempUsageDetail_20' ) start [2025-03-27 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775164', 'tblTempUsageDetail_20' ) end [2025-03-27 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:43:26] Production.INFO: ==14753== Releasing lock... [2025-03-27 15:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:43:26] Production.INFO: 66 MB #Memory Used# [2025-03-27 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:44:06 [end_date_ymd] => 2025-03-27 15:44:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:44:06' and `end` < '2025-03-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-03-27 15:44:20] Production.INFO: count ==5083 [2025-03-27 15:44:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:44:06 - End Time 2025-03-27 15:44:06 [2025-03-27 15:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775169', 'tblTempUsageDetail_20' ) start [2025-03-27 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775169', 'tblTempUsageDetail_20' ) end [2025-03-27 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775169', 'tblTempVendorCDR_20' ) start [2025-03-27 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775169', 'tblTempVendorCDR_20' ) end [2025-03-27 15:44:22] Production.INFO: ProcessCDR(1,14775169,1,1,2) [2025-03-27 15:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775169', 'tblTempUsageDetail_20' ) start [2025-03-27 15:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775169', 'tblTempUsageDetail_20' ) end [2025-03-27 15:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:44:28] Production.INFO: ==14827== Releasing lock... [2025-03-27 15:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:44:28] Production.INFO: 66 MB #Memory Used# [2025-03-27 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:45:06 [end_date_ymd] => 2025-03-27 15:45:06 [RateCDR] => 1 ) [2025-03-27 15:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:45:06' and `end` < '2025-03-27 15:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:45:19] Production.INFO: count ==5080 [2025-03-27 15:45:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:45:06 - End Time 2025-03-27 15:45:06 [2025-03-27 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775174', 'tblTempUsageDetail_20' ) start [2025-03-27 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775174', 'tblTempUsageDetail_20' ) end [2025-03-27 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775174', 'tblTempVendorCDR_20' ) start [2025-03-27 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775174', 'tblTempVendorCDR_20' ) end [2025-03-27 15:45:22] Production.INFO: ProcessCDR(1,14775174,1,1,2) [2025-03-27 15:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775174', 'tblTempUsageDetail_20' ) start [2025-03-27 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775174', 'tblTempUsageDetail_20' ) end [2025-03-27 15:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:45:27] Production.INFO: ==14903== Releasing lock... [2025-03-27 15:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:45:27] Production.INFO: 66 MB #Memory Used# [2025-03-27 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:46:06 [end_date_ymd] => 2025-03-27 15:46:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:46:06' and `end` < '2025-03-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-03-27 15:46:20] Production.INFO: count ==5069 [2025-03-27 15:46:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:46:06 - End Time 2025-03-27 15:46:06 [2025-03-27 15:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775179', 'tblTempUsageDetail_20' ) start [2025-03-27 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775179', 'tblTempUsageDetail_20' ) end [2025-03-27 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775179', 'tblTempVendorCDR_20' ) start [2025-03-27 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775179', 'tblTempVendorCDR_20' ) end [2025-03-27 15:46:22] Production.INFO: ProcessCDR(1,14775179,1,1,2) [2025-03-27 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775179', 'tblTempUsageDetail_20' ) start [2025-03-27 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775179', 'tblTempUsageDetail_20' ) end [2025-03-27 15:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:46:28] Production.INFO: ==14979== Releasing lock... [2025-03-27 15:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:46:28] Production.INFO: 66 MB #Memory Used# [2025-03-27 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:47:06 [end_date_ymd] => 2025-03-27 15:47:06 [RateCDR] => 1 ) [2025-03-27 15:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:47:06' and `end` < '2025-03-27 15:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:47:19] Production.INFO: count ==5045 [2025-03-27 15:47:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:47:06 - End Time 2025-03-27 15:47:06 [2025-03-27 15:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775184', 'tblTempUsageDetail_20' ) start [2025-03-27 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775184', 'tblTempUsageDetail_20' ) end [2025-03-27 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775184', 'tblTempVendorCDR_20' ) start [2025-03-27 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775184', 'tblTempVendorCDR_20' ) end [2025-03-27 15:47:22] Production.INFO: ProcessCDR(1,14775184,1,1,2) [2025-03-27 15:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775184', 'tblTempUsageDetail_20' ) start [2025-03-27 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775184', 'tblTempUsageDetail_20' ) end [2025-03-27 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:47:27] Production.INFO: ==15051== Releasing lock... [2025-03-27 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:47:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-27 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:48:06 [end_date_ymd] => 2025-03-27 15:48:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:48:06' and `end` < '2025-03-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-03-27 15:48:20] Production.INFO: count ==5046 [2025-03-27 15:48:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:48:06 - End Time 2025-03-27 15:48:06 [2025-03-27 15:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775189', 'tblTempUsageDetail_20' ) start [2025-03-27 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775189', 'tblTempUsageDetail_20' ) end [2025-03-27 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775189', 'tblTempVendorCDR_20' ) start [2025-03-27 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775189', 'tblTempVendorCDR_20' ) end [2025-03-27 15:48:22] Production.INFO: ProcessCDR(1,14775189,1,1,2) [2025-03-27 15:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775189', 'tblTempUsageDetail_20' ) start [2025-03-27 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775189', 'tblTempUsageDetail_20' ) end [2025-03-27 15:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:48:28] Production.INFO: ==15126== Releasing lock... [2025-03-27 15:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:48:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-27 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:49:06 [end_date_ymd] => 2025-03-27 15:49:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:49:06' and `end` < '2025-03-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-03-27 15:49:19] Production.INFO: count ==5041 [2025-03-27 15:49:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:49:06 - End Time 2025-03-27 15:49:06 [2025-03-27 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775194', 'tblTempUsageDetail_20' ) start [2025-03-27 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775194', 'tblTempUsageDetail_20' ) end [2025-03-27 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775194', 'tblTempVendorCDR_20' ) start [2025-03-27 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775194', 'tblTempVendorCDR_20' ) end [2025-03-27 15:49:22] Production.INFO: ProcessCDR(1,14775194,1,1,2) [2025-03-27 15:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775194', 'tblTempUsageDetail_20' ) start [2025-03-27 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775194', 'tblTempUsageDetail_20' ) end [2025-03-27 15:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:49:27] Production.INFO: ==15199== Releasing lock... [2025-03-27 15:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:49:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-27 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:50:06 [end_date_ymd] => 2025-03-27 15:50:06 [RateCDR] => 1 ) [2025-03-27 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:50:06' and `end` < '2025-03-27 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:50:19] Production.INFO: count ==5029 [2025-03-27 15:50:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:50:06 - End Time 2025-03-27 15:50:06 [2025-03-27 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775200', 'tblTempUsageDetail_20' ) start [2025-03-27 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775200', 'tblTempUsageDetail_20' ) end [2025-03-27 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775200', 'tblTempVendorCDR_20' ) start [2025-03-27 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775200', 'tblTempVendorCDR_20' ) end [2025-03-27 15:50:22] Production.INFO: ProcessCDR(1,14775200,1,1,2) [2025-03-27 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775200', 'tblTempUsageDetail_20' ) start [2025-03-27 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775200', 'tblTempUsageDetail_20' ) end [2025-03-27 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:50:28] Production.INFO: ==15279== Releasing lock... [2025-03-27 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:50:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-27 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:51:06 [end_date_ymd] => 2025-03-27 15:51:06 [RateCDR] => 1 ) [2025-03-27 15:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:51:06' and `end` < '2025-03-27 15:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:51:19] Production.INFO: count ==5030 [2025-03-27 15:51:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:51:06 - End Time 2025-03-27 15:51:06 [2025-03-27 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775205', 'tblTempUsageDetail_20' ) start [2025-03-27 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775205', 'tblTempUsageDetail_20' ) end [2025-03-27 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775205', 'tblTempVendorCDR_20' ) start [2025-03-27 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775205', 'tblTempVendorCDR_20' ) end [2025-03-27 15:51:22] Production.INFO: ProcessCDR(1,14775205,1,1,2) [2025-03-27 15:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775205', 'tblTempUsageDetail_20' ) start [2025-03-27 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775205', 'tblTempUsageDetail_20' ) end [2025-03-27 15:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:51:27] Production.INFO: ==15358== Releasing lock... [2025-03-27 15:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:51:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-27 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:52:05 [end_date_ymd] => 2025-03-27 15:52:05 [RateCDR] => 1 ) [2025-03-27 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:52:05' and `end` < '2025-03-27 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:52:19] Production.INFO: count ==5011 [2025-03-27 15:52:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:52:05 - End Time 2025-03-27 15:52:05 [2025-03-27 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775210', 'tblTempUsageDetail_20' ) start [2025-03-27 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775210', 'tblTempUsageDetail_20' ) end [2025-03-27 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775210', 'tblTempVendorCDR_20' ) start [2025-03-27 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775210', 'tblTempVendorCDR_20' ) end [2025-03-27 15:52:21] Production.INFO: ProcessCDR(1,14775210,1,1,2) [2025-03-27 15:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775210', 'tblTempUsageDetail_20' ) start [2025-03-27 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775210', 'tblTempUsageDetail_20' ) end [2025-03-27 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:52:27] Production.INFO: ==15431== Releasing lock... [2025-03-27 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:52:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-27 15:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:53:06 [end_date_ymd] => 2025-03-27 15:53:06 [RateCDR] => 1 ) [2025-03-27 15:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:53:06' and `end` < '2025-03-27 15:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:53:19] Production.INFO: count ==5003 [2025-03-27 15:53:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:53:06 - End Time 2025-03-27 15:53:06 [2025-03-27 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775215', 'tblTempUsageDetail_20' ) start [2025-03-27 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775215', 'tblTempUsageDetail_20' ) end [2025-03-27 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775215', 'tblTempVendorCDR_20' ) start [2025-03-27 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775215', 'tblTempVendorCDR_20' ) end [2025-03-27 15:53:22] Production.INFO: ProcessCDR(1,14775215,1,1,2) [2025-03-27 15:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775215', 'tblTempUsageDetail_20' ) start [2025-03-27 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775215', 'tblTempUsageDetail_20' ) end [2025-03-27 15:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:53:27] Production.INFO: ==15505== Releasing lock... [2025-03-27 15:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:53:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-27 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:54:06 [end_date_ymd] => 2025-03-27 15:54:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:54:06' and `end` < '2025-03-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-03-27 15:54:19] Production.INFO: count ==4995 [2025-03-27 15:54:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:54:06 - End Time 2025-03-27 15:54:06 [2025-03-27 15:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775220', 'tblTempUsageDetail_20' ) start [2025-03-27 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775220', 'tblTempUsageDetail_20' ) end [2025-03-27 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775220', 'tblTempVendorCDR_20' ) start [2025-03-27 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775220', 'tblTempVendorCDR_20' ) end [2025-03-27 15:54:22] Production.INFO: ProcessCDR(1,14775220,1,1,2) [2025-03-27 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775220', 'tblTempUsageDetail_20' ) start [2025-03-27 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775220', 'tblTempUsageDetail_20' ) end [2025-03-27 15:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:54:27] Production.INFO: ==15577== Releasing lock... [2025-03-27 15:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:54:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-27 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:55:06 [end_date_ymd] => 2025-03-27 15:55:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:55:06' and `end` < '2025-03-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-03-27 15:55:20] Production.INFO: count ==5016 [2025-03-27 15:55:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:55:06 - End Time 2025-03-27 15:55:06 [2025-03-27 15:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775225', 'tblTempUsageDetail_20' ) start [2025-03-27 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775225', 'tblTempUsageDetail_20' ) end [2025-03-27 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775225', 'tblTempVendorCDR_20' ) start [2025-03-27 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775225', 'tblTempVendorCDR_20' ) end [2025-03-27 15:55:22] Production.INFO: ProcessCDR(1,14775225,1,1,2) [2025-03-27 15:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775225', 'tblTempUsageDetail_20' ) start [2025-03-27 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775225', 'tblTempUsageDetail_20' ) end [2025-03-27 15:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:55:28] Production.INFO: ==15694== Releasing lock... [2025-03-27 15:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:55:28] Production.INFO: 65.5 MB #Memory Used# [2025-03-27 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:56:05 [end_date_ymd] => 2025-03-27 15:56:05 [RateCDR] => 1 ) [2025-03-27 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:56:05' and `end` < '2025-03-27 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:56:19] Production.INFO: count ==4989 [2025-03-27 15:56:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:56:05 - End Time 2025-03-27 15:56:05 [2025-03-27 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775230', 'tblTempUsageDetail_20' ) start [2025-03-27 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775230', 'tblTempUsageDetail_20' ) end [2025-03-27 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775230', 'tblTempVendorCDR_20' ) start [2025-03-27 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775230', 'tblTempVendorCDR_20' ) end [2025-03-27 15:56:21] Production.INFO: ProcessCDR(1,14775230,1,1,2) [2025-03-27 15:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775230', 'tblTempUsageDetail_20' ) start [2025-03-27 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775230', 'tblTempUsageDetail_20' ) end [2025-03-27 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:56:27] Production.INFO: ==15768== Releasing lock... [2025-03-27 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:56:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-27 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:57:06 [end_date_ymd] => 2025-03-27 15:57:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:57:06' and `end` < '2025-03-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-03-27 15:57:19] Production.INFO: count ==4963 [2025-03-27 15:57:22] Production.ERROR: pbx CDR StartTime 2025-03-27 12:57:06 - End Time 2025-03-27 15:57:06 [2025-03-27 15:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775235', 'tblTempUsageDetail_20' ) start [2025-03-27 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775235', 'tblTempUsageDetail_20' ) end [2025-03-27 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775235', 'tblTempVendorCDR_20' ) start [2025-03-27 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775235', 'tblTempVendorCDR_20' ) end [2025-03-27 15:57:22] Production.INFO: ProcessCDR(1,14775235,1,1,2) [2025-03-27 15:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775235', 'tblTempUsageDetail_20' ) start [2025-03-27 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775235', 'tblTempUsageDetail_20' ) end [2025-03-27 15:57:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:57:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:57:28] Production.INFO: ==15850== Releasing lock... [2025-03-27 15:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:57:28] Production.INFO: 65.25 MB #Memory Used# [2025-03-27 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:58:05 [end_date_ymd] => 2025-03-27 15:58:05 [RateCDR] => 1 ) [2025-03-27 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 12:58:05' and `end` < '2025-03-27 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 15:58:19] Production.INFO: count ==4941 [2025-03-27 15:58:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:58:05 - End Time 2025-03-27 15:58:05 [2025-03-27 15:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775240', 'tblTempUsageDetail_20' ) start [2025-03-27 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775240', 'tblTempUsageDetail_20' ) end [2025-03-27 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775240', 'tblTempVendorCDR_20' ) start [2025-03-27 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775240', 'tblTempVendorCDR_20' ) end [2025-03-27 15:58:21] Production.INFO: ProcessCDR(1,14775240,1,1,2) [2025-03-27 15:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775240', 'tblTempUsageDetail_20' ) start [2025-03-27 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775240', 'tblTempUsageDetail_20' ) end [2025-03-27 15:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:58:27] Production.INFO: ==15927== Releasing lock... [2025-03-27 15:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:58:27] Production.INFO: 65 MB #Memory Used# [2025-03-27 15:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 12:59:06 [end_date_ymd] => 2025-03-27 15:59:06 [RateCDR] => 1 ) [2025-03-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-03-27 12:59:06' and `end` < '2025-03-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-03-27 15:59:19] Production.INFO: count ==4946 [2025-03-27 15:59:21] Production.ERROR: pbx CDR StartTime 2025-03-27 12:59:06 - End Time 2025-03-27 15:59:06 [2025-03-27 15:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775245', 'tblTempUsageDetail_20' ) start [2025-03-27 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775245', 'tblTempUsageDetail_20' ) end [2025-03-27 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775245', 'tblTempVendorCDR_20' ) start [2025-03-27 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775245', 'tblTempVendorCDR_20' ) end [2025-03-27 15:59:21] Production.INFO: ProcessCDR(1,14775245,1,1,2) [2025-03-27 15:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 15:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775245', 'tblTempUsageDetail_20' ) start [2025-03-27 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775245', 'tblTempUsageDetail_20' ) end [2025-03-27 15:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 15:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 15:59:28] Production.INFO: ==16008== Releasing lock... [2025-03-27 15:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 15:59:28] Production.INFO: 65 MB #Memory Used# [2025-03-27 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:00:06 [end_date_ymd] => 2025-03-27 16:00:06 [RateCDR] => 1 ) [2025-03-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-03-27 13:00:06' and `end` < '2025-03-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-03-27 16:00:20] Production.INFO: count ==4942 [2025-03-27 16:00:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:00:06 - End Time 2025-03-27 16:00:06 [2025-03-27 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775250', 'tblTempUsageDetail_20' ) start [2025-03-27 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775250', 'tblTempUsageDetail_20' ) end [2025-03-27 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775250', 'tblTempVendorCDR_20' ) start [2025-03-27 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775250', 'tblTempVendorCDR_20' ) end [2025-03-27 16:00:22] Production.INFO: ProcessCDR(1,14775250,1,1,2) [2025-03-27 16:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775250', 'tblTempUsageDetail_20' ) start [2025-03-27 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775250', 'tblTempUsageDetail_20' ) end [2025-03-27 16:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:00:28] Production.INFO: ==16096== Releasing lock... [2025-03-27 16:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:00:28] Production.INFO: 65 MB #Memory Used# [2025-03-27 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:01:06 [end_date_ymd] => 2025-03-27 16:01:06 [RateCDR] => 1 ) [2025-03-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-03-27 13:01:06' and `end` < '2025-03-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-03-27 16:01:19] Production.INFO: count ==4927 [2025-03-27 16:01:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:01:06 - End Time 2025-03-27 16:01:06 [2025-03-27 16:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775256', 'tblTempUsageDetail_20' ) start [2025-03-27 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775256', 'tblTempUsageDetail_20' ) end [2025-03-27 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775256', 'tblTempVendorCDR_20' ) start [2025-03-27 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775256', 'tblTempVendorCDR_20' ) end [2025-03-27 16:01:22] Production.INFO: ProcessCDR(1,14775256,1,1,2) [2025-03-27 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775256', 'tblTempUsageDetail_20' ) start [2025-03-27 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775256', 'tblTempUsageDetail_20' ) end [2025-03-27 16:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:01:27] Production.INFO: ==16188== Releasing lock... [2025-03-27 16:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:01:27] Production.INFO: 65 MB #Memory Used# [2025-03-27 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:02:06 [end_date_ymd] => 2025-03-27 16:02:06 [RateCDR] => 1 ) [2025-03-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-03-27 13:02:06' and `end` < '2025-03-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-03-27 16:02:19] Production.INFO: count ==4923 [2025-03-27 16:02:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:02:06 - End Time 2025-03-27 16:02:06 [2025-03-27 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775261', 'tblTempUsageDetail_20' ) start [2025-03-27 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775261', 'tblTempUsageDetail_20' ) end [2025-03-27 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775261', 'tblTempVendorCDR_20' ) start [2025-03-27 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775261', 'tblTempVendorCDR_20' ) end [2025-03-27 16:02:22] Production.INFO: ProcessCDR(1,14775261,1,1,2) [2025-03-27 16:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775261', 'tblTempUsageDetail_20' ) start [2025-03-27 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775261', 'tblTempUsageDetail_20' ) end [2025-03-27 16:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:02:28] Production.INFO: ==16262== Releasing lock... [2025-03-27 16:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:02:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-27 16:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:03:06 [end_date_ymd] => 2025-03-27 16:03:06 [RateCDR] => 1 ) [2025-03-27 16:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:03:06' and `end` < '2025-03-27 16:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:03:19] Production.INFO: count ==4914 [2025-03-27 16:03:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:03:06 - End Time 2025-03-27 16:03:06 [2025-03-27 16:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775266', 'tblTempUsageDetail_20' ) start [2025-03-27 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775266', 'tblTempUsageDetail_20' ) end [2025-03-27 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775266', 'tblTempVendorCDR_20' ) start [2025-03-27 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775266', 'tblTempVendorCDR_20' ) end [2025-03-27 16:03:22] Production.INFO: ProcessCDR(1,14775266,1,1,2) [2025-03-27 16:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775266', 'tblTempUsageDetail_20' ) start [2025-03-27 16:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775266', 'tblTempUsageDetail_20' ) end [2025-03-27 16:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:03:28] Production.INFO: ==16341== Releasing lock... [2025-03-27 16:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:03:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-27 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:04:05 [end_date_ymd] => 2025-03-27 16:04:05 [RateCDR] => 1 ) [2025-03-27 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:04:05' and `end` < '2025-03-27 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:04:19] Production.INFO: count ==4922 [2025-03-27 16:04:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:04:05 - End Time 2025-03-27 16:04:05 [2025-03-27 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775271', 'tblTempUsageDetail_20' ) start [2025-03-27 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775271', 'tblTempUsageDetail_20' ) end [2025-03-27 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775271', 'tblTempVendorCDR_20' ) start [2025-03-27 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775271', 'tblTempVendorCDR_20' ) end [2025-03-27 16:04:21] Production.INFO: ProcessCDR(1,14775271,1,1,2) [2025-03-27 16:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775271', 'tblTempUsageDetail_20' ) start [2025-03-27 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775271', 'tblTempUsageDetail_20' ) end [2025-03-27 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:04:27] Production.INFO: ==16430== Releasing lock... [2025-03-27 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:04:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-27 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:05:05 [end_date_ymd] => 2025-03-27 16:05:05 [RateCDR] => 1 ) [2025-03-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-03-27 13:05:05' and `end` < '2025-03-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-03-27 16:05:19] Production.INFO: count ==4927 [2025-03-27 16:05:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:05:05 - End Time 2025-03-27 16:05:05 [2025-03-27 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775276', 'tblTempUsageDetail_20' ) start [2025-03-27 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775276', 'tblTempUsageDetail_20' ) end [2025-03-27 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775276', 'tblTempVendorCDR_20' ) start [2025-03-27 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775276', 'tblTempVendorCDR_20' ) end [2025-03-27 16:05:21] Production.INFO: ProcessCDR(1,14775276,1,1,2) [2025-03-27 16:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775276', 'tblTempUsageDetail_20' ) start [2025-03-27 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775276', 'tblTempUsageDetail_20' ) end [2025-03-27 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:05:27] Production.INFO: ==16511== Releasing lock... [2025-03-27 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:05:27] Production.INFO: 65 MB #Memory Used# [2025-03-27 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:06:06 [end_date_ymd] => 2025-03-27 16:06:06 [RateCDR] => 1 ) [2025-03-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-03-27 13:06:06' and `end` < '2025-03-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-03-27 16:06:19] Production.INFO: count ==4908 [2025-03-27 16:06:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:06:06 - End Time 2025-03-27 16:06:06 [2025-03-27 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775281', 'tblTempUsageDetail_20' ) start [2025-03-27 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775281', 'tblTempUsageDetail_20' ) end [2025-03-27 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775281', 'tblTempVendorCDR_20' ) start [2025-03-27 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775281', 'tblTempVendorCDR_20' ) end [2025-03-27 16:06:22] Production.INFO: ProcessCDR(1,14775281,1,1,2) [2025-03-27 16:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775281', 'tblTempUsageDetail_20' ) start [2025-03-27 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775281', 'tblTempUsageDetail_20' ) end [2025-03-27 16:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:06:27] Production.INFO: ==16591== Releasing lock... [2025-03-27 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:06:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-27 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:07:06 [end_date_ymd] => 2025-03-27 16:07:06 [RateCDR] => 1 ) [2025-03-27 16:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:07:06' and `end` < '2025-03-27 16:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:07:19] Production.INFO: count ==4898 [2025-03-27 16:07:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:07:06 - End Time 2025-03-27 16:07:06 [2025-03-27 16:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775286', 'tblTempUsageDetail_20' ) start [2025-03-27 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775286', 'tblTempUsageDetail_20' ) end [2025-03-27 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775286', 'tblTempVendorCDR_20' ) start [2025-03-27 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775286', 'tblTempVendorCDR_20' ) end [2025-03-27 16:07:22] Production.INFO: ProcessCDR(1,14775286,1,1,2) [2025-03-27 16:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775286', 'tblTempUsageDetail_20' ) start [2025-03-27 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775286', 'tblTempUsageDetail_20' ) end [2025-03-27 16:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:07:27] Production.INFO: ==16668== Releasing lock... [2025-03-27 16:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:07:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-27 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:08:05 [end_date_ymd] => 2025-03-27 16:08:05 [RateCDR] => 1 ) [2025-03-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-03-27 13:08:05' and `end` < '2025-03-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-03-27 16:08:19] Production.INFO: count ==4896 [2025-03-27 16:08:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:08:05 - End Time 2025-03-27 16:08:05 [2025-03-27 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775291', 'tblTempUsageDetail_20' ) start [2025-03-27 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775291', 'tblTempUsageDetail_20' ) end [2025-03-27 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775291', 'tblTempVendorCDR_20' ) start [2025-03-27 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775291', 'tblTempVendorCDR_20' ) end [2025-03-27 16:08:21] Production.INFO: ProcessCDR(1,14775291,1,1,2) [2025-03-27 16:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775291', 'tblTempUsageDetail_20' ) start [2025-03-27 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775291', 'tblTempUsageDetail_20' ) end [2025-03-27 16:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:08:27] Production.INFO: ==16742== Releasing lock... [2025-03-27 16:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:08:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-27 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:09:06 [end_date_ymd] => 2025-03-27 16:09:06 [RateCDR] => 1 ) [2025-03-27 16:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:09:06' and `end` < '2025-03-27 16:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:09:19] Production.INFO: count ==4894 [2025-03-27 16:09:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:09:06 - End Time 2025-03-27 16:09:06 [2025-03-27 16:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775296', 'tblTempUsageDetail_20' ) start [2025-03-27 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775296', 'tblTempUsageDetail_20' ) end [2025-03-27 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775296', 'tblTempVendorCDR_20' ) start [2025-03-27 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775296', 'tblTempVendorCDR_20' ) end [2025-03-27 16:09:22] Production.INFO: ProcessCDR(1,14775296,1,1,2) [2025-03-27 16:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775296', 'tblTempUsageDetail_20' ) start [2025-03-27 16:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775296', 'tblTempUsageDetail_20' ) end [2025-03-27 16:09:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:09:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:09:28] Production.INFO: ==16821== Releasing lock... [2025-03-27 16:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:09:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-27 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:10:06 [end_date_ymd] => 2025-03-27 16:10:06 [RateCDR] => 1 ) [2025-03-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-03-27 13:10:06' and `end` < '2025-03-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-03-27 16:10:20] Production.INFO: count ==4876 [2025-03-27 16:10:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:10:06 - End Time 2025-03-27 16:10:06 [2025-03-27 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775302', 'tblTempUsageDetail_20' ) start [2025-03-27 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775302', 'tblTempUsageDetail_20' ) end [2025-03-27 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775302', 'tblTempVendorCDR_20' ) start [2025-03-27 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775302', 'tblTempVendorCDR_20' ) end [2025-03-27 16:10:22] Production.INFO: ProcessCDR(1,14775302,1,1,2) [2025-03-27 16:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775302', 'tblTempUsageDetail_20' ) start [2025-03-27 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775302', 'tblTempUsageDetail_20' ) end [2025-03-27 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:10:28] Production.INFO: ==16902== Releasing lock... [2025-03-27 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:10:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-27 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:11:06 [end_date_ymd] => 2025-03-27 16:11:06 [RateCDR] => 1 ) [2025-03-27 16:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:11:06' and `end` < '2025-03-27 16:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:11:20] Production.INFO: count ==4826 [2025-03-27 16:11:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:11:06 - End Time 2025-03-27 16:11:06 [2025-03-27 16:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775307', 'tblTempUsageDetail_20' ) start [2025-03-27 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775307', 'tblTempUsageDetail_20' ) end [2025-03-27 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775307', 'tblTempVendorCDR_20' ) start [2025-03-27 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775307', 'tblTempVendorCDR_20' ) end [2025-03-27 16:11:22] Production.INFO: ProcessCDR(1,14775307,1,1,2) [2025-03-27 16:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775307', 'tblTempUsageDetail_20' ) start [2025-03-27 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775307', 'tblTempUsageDetail_20' ) end [2025-03-27 16:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:11:27] Production.INFO: ==17019== Releasing lock... [2025-03-27 16:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:11:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-27 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:12:05 [end_date_ymd] => 2025-03-27 16:12:05 [RateCDR] => 1 ) [2025-03-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-03-27 13:12:05' and `end` < '2025-03-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-03-27 16:12:19] Production.INFO: count ==4830 [2025-03-27 16:12:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:12:05 - End Time 2025-03-27 16:12:05 [2025-03-27 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775312', 'tblTempUsageDetail_20' ) start [2025-03-27 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775312', 'tblTempUsageDetail_20' ) end [2025-03-27 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775312', 'tblTempVendorCDR_20' ) start [2025-03-27 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775312', 'tblTempVendorCDR_20' ) end [2025-03-27 16:12:21] Production.INFO: ProcessCDR(1,14775312,1,1,2) [2025-03-27 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775312', 'tblTempUsageDetail_20' ) start [2025-03-27 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775312', 'tblTempUsageDetail_20' ) end [2025-03-27 16:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:12:27] Production.INFO: ==17093== Releasing lock... [2025-03-27 16:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:12:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-27 16:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:13:06 [end_date_ymd] => 2025-03-27 16:13:06 [RateCDR] => 1 ) [2025-03-27 16:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:13:06' and `end` < '2025-03-27 16:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:13:20] Production.INFO: count ==4815 [2025-03-27 16:13:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:13:06 - End Time 2025-03-27 16:13:06 [2025-03-27 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775317', 'tblTempUsageDetail_20' ) start [2025-03-27 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775317', 'tblTempUsageDetail_20' ) end [2025-03-27 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775317', 'tblTempVendorCDR_20' ) start [2025-03-27 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775317', 'tblTempVendorCDR_20' ) end [2025-03-27 16:13:22] Production.INFO: ProcessCDR(1,14775317,1,1,2) [2025-03-27 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775317', 'tblTempUsageDetail_20' ) start [2025-03-27 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775317', 'tblTempUsageDetail_20' ) end [2025-03-27 16:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:13:27] Production.INFO: ==17171== Releasing lock... [2025-03-27 16:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:13:27] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:14:05 [end_date_ymd] => 2025-03-27 16:14:05 [RateCDR] => 1 ) [2025-03-27 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:14:05' and `end` < '2025-03-27 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:14:19] Production.INFO: count ==4807 [2025-03-27 16:14:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:14:05 - End Time 2025-03-27 16:14:05 [2025-03-27 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775322', 'tblTempUsageDetail_20' ) start [2025-03-27 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775322', 'tblTempUsageDetail_20' ) end [2025-03-27 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775322', 'tblTempVendorCDR_20' ) start [2025-03-27 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775322', 'tblTempVendorCDR_20' ) end [2025-03-27 16:14:21] Production.INFO: ProcessCDR(1,14775322,1,1,2) [2025-03-27 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775322', 'tblTempUsageDetail_20' ) start [2025-03-27 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775322', 'tblTempUsageDetail_20' ) end [2025-03-27 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:14:27] Production.INFO: ==17250== Releasing lock... [2025-03-27 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:14:27] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:15:06 [end_date_ymd] => 2025-03-27 16:15:06 [RateCDR] => 1 ) [2025-03-27 16:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:15:06' and `end` < '2025-03-27 16:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:15:19] Production.INFO: count ==4806 [2025-03-27 16:15:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:15:06 - End Time 2025-03-27 16:15:06 [2025-03-27 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775327', 'tblTempUsageDetail_20' ) start [2025-03-27 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775327', 'tblTempUsageDetail_20' ) end [2025-03-27 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775327', 'tblTempVendorCDR_20' ) start [2025-03-27 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775327', 'tblTempVendorCDR_20' ) end [2025-03-27 16:15:22] Production.INFO: ProcessCDR(1,14775327,1,1,2) [2025-03-27 16:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775327', 'tblTempUsageDetail_20' ) start [2025-03-27 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775327', 'tblTempUsageDetail_20' ) end [2025-03-27 16:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:15:28] Production.INFO: ==17326== Releasing lock... [2025-03-27 16:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:15:28] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:16:05 [end_date_ymd] => 2025-03-27 16:16:05 [RateCDR] => 1 ) [2025-03-27 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:16:05' and `end` < '2025-03-27 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:16:19] Production.INFO: count ==4812 [2025-03-27 16:16:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:16:05 - End Time 2025-03-27 16:16:05 [2025-03-27 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775332', 'tblTempUsageDetail_20' ) start [2025-03-27 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775332', 'tblTempUsageDetail_20' ) end [2025-03-27 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775332', 'tblTempVendorCDR_20' ) start [2025-03-27 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775332', 'tblTempVendorCDR_20' ) end [2025-03-27 16:16:21] Production.INFO: ProcessCDR(1,14775332,1,1,2) [2025-03-27 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775332', 'tblTempUsageDetail_20' ) start [2025-03-27 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775332', 'tblTempUsageDetail_20' ) end [2025-03-27 16:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:16:27] Production.INFO: ==17411== Releasing lock... [2025-03-27 16:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:16:27] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:17:06 [end_date_ymd] => 2025-03-27 16:17:06 [RateCDR] => 1 ) [2025-03-27 16:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:17:06' and `end` < '2025-03-27 16:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:17:19] Production.INFO: count ==4796 [2025-03-27 16:17:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:17:06 - End Time 2025-03-27 16:17:06 [2025-03-27 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775337', 'tblTempUsageDetail_20' ) start [2025-03-27 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775337', 'tblTempUsageDetail_20' ) end [2025-03-27 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775337', 'tblTempVendorCDR_20' ) start [2025-03-27 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775337', 'tblTempVendorCDR_20' ) end [2025-03-27 16:17:21] Production.INFO: ProcessCDR(1,14775337,1,1,2) [2025-03-27 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775337', 'tblTempUsageDetail_20' ) start [2025-03-27 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775337', 'tblTempUsageDetail_20' ) end [2025-03-27 16:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:17:27] Production.INFO: ==17496== Releasing lock... [2025-03-27 16:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:17:27] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:18:05 [end_date_ymd] => 2025-03-27 16:18:05 [RateCDR] => 1 ) [2025-03-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-03-27 13:18:05' and `end` < '2025-03-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-03-27 16:18:19] Production.INFO: count ==4797 [2025-03-27 16:18:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:18:05 - End Time 2025-03-27 16:18:05 [2025-03-27 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775342', 'tblTempUsageDetail_20' ) start [2025-03-27 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775342', 'tblTempUsageDetail_20' ) end [2025-03-27 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775342', 'tblTempVendorCDR_20' ) start [2025-03-27 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775342', 'tblTempVendorCDR_20' ) end [2025-03-27 16:18:21] Production.INFO: ProcessCDR(1,14775342,1,1,2) [2025-03-27 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775342', 'tblTempUsageDetail_20' ) start [2025-03-27 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775342', 'tblTempUsageDetail_20' ) end [2025-03-27 16:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:18:27] Production.INFO: ==17576== Releasing lock... [2025-03-27 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:18:27] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:19:06 [end_date_ymd] => 2025-03-27 16:19:06 [RateCDR] => 1 ) [2025-03-27 16:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:19:06' and `end` < '2025-03-27 16:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:19:20] Production.INFO: count ==4815 [2025-03-27 16:19:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:19:06 - End Time 2025-03-27 16:19:06 [2025-03-27 16:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775347', 'tblTempUsageDetail_20' ) start [2025-03-27 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775347', 'tblTempUsageDetail_20' ) end [2025-03-27 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775347', 'tblTempVendorCDR_20' ) start [2025-03-27 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775347', 'tblTempVendorCDR_20' ) end [2025-03-27 16:19:22] Production.INFO: ProcessCDR(1,14775347,1,1,2) [2025-03-27 16:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775347', 'tblTempUsageDetail_20' ) start [2025-03-27 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775347', 'tblTempUsageDetail_20' ) end [2025-03-27 16:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:19:28] Production.INFO: ==17653== Releasing lock... [2025-03-27 16:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:19:28] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:20:06 [end_date_ymd] => 2025-03-27 16:20:06 [RateCDR] => 1 ) [2025-03-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-03-27 13:20:06' and `end` < '2025-03-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-03-27 16:20:20] Production.INFO: count ==4812 [2025-03-27 16:20:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:20:06 - End Time 2025-03-27 16:20:06 [2025-03-27 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775353', 'tblTempUsageDetail_20' ) start [2025-03-27 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775353', 'tblTempUsageDetail_20' ) end [2025-03-27 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775353', 'tblTempVendorCDR_20' ) start [2025-03-27 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775353', 'tblTempVendorCDR_20' ) end [2025-03-27 16:20:22] Production.INFO: ProcessCDR(1,14775353,1,1,2) [2025-03-27 16:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775353', 'tblTempUsageDetail_20' ) start [2025-03-27 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775353', 'tblTempUsageDetail_20' ) end [2025-03-27 16:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:20:28] Production.INFO: ==17731== Releasing lock... [2025-03-27 16:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:20:28] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:21:06 [end_date_ymd] => 2025-03-27 16:21:06 [RateCDR] => 1 ) [2025-03-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-03-27 13:21:06' and `end` < '2025-03-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-03-27 16:21:20] Production.INFO: count ==4787 [2025-03-27 16:21:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:21:06 - End Time 2025-03-27 16:21:06 [2025-03-27 16:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775358', 'tblTempUsageDetail_20' ) start [2025-03-27 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775358', 'tblTempUsageDetail_20' ) end [2025-03-27 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775358', 'tblTempVendorCDR_20' ) start [2025-03-27 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775358', 'tblTempVendorCDR_20' ) end [2025-03-27 16:21:22] Production.INFO: ProcessCDR(1,14775358,1,1,2) [2025-03-27 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775358', 'tblTempUsageDetail_20' ) start [2025-03-27 16:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775358', 'tblTempUsageDetail_20' ) end [2025-03-27 16:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:21:28] Production.INFO: ==17811== Releasing lock... [2025-03-27 16:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:21:28] Production.INFO: 63.75 MB #Memory Used# [2025-03-27 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:22:06 [end_date_ymd] => 2025-03-27 16:22:06 [RateCDR] => 1 ) [2025-03-27 16:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:22:06' and `end` < '2025-03-27 16:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:22:20] Production.INFO: count ==4788 [2025-03-27 16:22:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:22:06 - End Time 2025-03-27 16:22:06 [2025-03-27 16:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775363', 'tblTempUsageDetail_20' ) start [2025-03-27 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775363', 'tblTempUsageDetail_20' ) end [2025-03-27 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775363', 'tblTempVendorCDR_20' ) start [2025-03-27 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775363', 'tblTempVendorCDR_20' ) end [2025-03-27 16:22:22] Production.INFO: ProcessCDR(1,14775363,1,1,2) [2025-03-27 16:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775363', 'tblTempUsageDetail_20' ) start [2025-03-27 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775363', 'tblTempUsageDetail_20' ) end [2025-03-27 16:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:22:26] Production.INFO: ==17892== Releasing lock... [2025-03-27 16:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:22:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-27 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:23:06 [end_date_ymd] => 2025-03-27 16:23:06 [RateCDR] => 1 ) [2025-03-27 16:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:23:06' and `end` < '2025-03-27 16:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:23:20] Production.INFO: count ==4828 [2025-03-27 16:23:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:23:06 - End Time 2025-03-27 16:23:06 [2025-03-27 16:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775368', 'tblTempUsageDetail_20' ) start [2025-03-27 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775368', 'tblTempUsageDetail_20' ) end [2025-03-27 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775368', 'tblTempVendorCDR_20' ) start [2025-03-27 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775368', 'tblTempVendorCDR_20' ) end [2025-03-27 16:23:22] Production.INFO: ProcessCDR(1,14775368,1,1,2) [2025-03-27 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775368', 'tblTempUsageDetail_20' ) start [2025-03-27 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775368', 'tblTempUsageDetail_20' ) end [2025-03-27 16:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:23:28] Production.INFO: ==17971== Releasing lock... [2025-03-27 16:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:23:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-27 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:24:05 [end_date_ymd] => 2025-03-27 16:24:05 [RateCDR] => 1 ) [2025-03-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-03-27 13:24:05' and `end` < '2025-03-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-03-27 16:24:19] Production.INFO: count ==4815 [2025-03-27 16:24:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:24:05 - End Time 2025-03-27 16:24:05 [2025-03-27 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775373', 'tblTempUsageDetail_20' ) start [2025-03-27 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775373', 'tblTempUsageDetail_20' ) end [2025-03-27 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775373', 'tblTempVendorCDR_20' ) start [2025-03-27 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775373', 'tblTempVendorCDR_20' ) end [2025-03-27 16:24:22] Production.INFO: ProcessCDR(1,14775373,1,1,2) [2025-03-27 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775373', 'tblTempUsageDetail_20' ) start [2025-03-27 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775373', 'tblTempUsageDetail_20' ) end [2025-03-27 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:24:27] Production.INFO: ==18051== Releasing lock... [2025-03-27 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:24:27] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:25:06 [end_date_ymd] => 2025-03-27 16:25:06 [RateCDR] => 1 ) [2025-03-27 16:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:25:06' and `end` < '2025-03-27 16:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:25:20] Production.INFO: count ==4799 [2025-03-27 16:25:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:25:06 - End Time 2025-03-27 16:25:06 [2025-03-27 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775378', 'tblTempUsageDetail_20' ) start [2025-03-27 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775378', 'tblTempUsageDetail_20' ) end [2025-03-27 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775378', 'tblTempVendorCDR_20' ) start [2025-03-27 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775378', 'tblTempVendorCDR_20' ) end [2025-03-27 16:25:22] Production.INFO: ProcessCDR(1,14775378,1,1,2) [2025-03-27 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775378', 'tblTempUsageDetail_20' ) start [2025-03-27 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775378', 'tblTempUsageDetail_20' ) end [2025-03-27 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:25:28] Production.INFO: ==18130== Releasing lock... [2025-03-27 16:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:25:28] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:26:06 [end_date_ymd] => 2025-03-27 16:26:06 [RateCDR] => 1 ) [2025-03-27 16:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:26:06' and `end` < '2025-03-27 16:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:26:19] Production.INFO: count ==4847 [2025-03-27 16:26:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:26:06 - End Time 2025-03-27 16:26:06 [2025-03-27 16:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775383', 'tblTempUsageDetail_20' ) start [2025-03-27 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775383', 'tblTempUsageDetail_20' ) end [2025-03-27 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775383', 'tblTempVendorCDR_20' ) start [2025-03-27 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775383', 'tblTempVendorCDR_20' ) end [2025-03-27 16:26:22] Production.INFO: ProcessCDR(1,14775383,1,1,2) [2025-03-27 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775383', 'tblTempUsageDetail_20' ) start [2025-03-27 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775383', 'tblTempUsageDetail_20' ) end [2025-03-27 16:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:26:27] Production.INFO: ==18248== Releasing lock... [2025-03-27 16:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:26:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-27 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:27:06 [end_date_ymd] => 2025-03-27 16:27:06 [RateCDR] => 1 ) [2025-03-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-03-27 13:27:06' and `end` < '2025-03-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-03-27 16:27:19] Production.INFO: count ==4839 [2025-03-27 16:27:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:27:06 - End Time 2025-03-27 16:27:06 [2025-03-27 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775388', 'tblTempUsageDetail_20' ) start [2025-03-27 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775388', 'tblTempUsageDetail_20' ) end [2025-03-27 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775388', 'tblTempVendorCDR_20' ) start [2025-03-27 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775388', 'tblTempVendorCDR_20' ) end [2025-03-27 16:27:22] Production.INFO: ProcessCDR(1,14775388,1,1,2) [2025-03-27 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775388', 'tblTempUsageDetail_20' ) start [2025-03-27 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775388', 'tblTempUsageDetail_20' ) end [2025-03-27 16:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:27:27] Production.INFO: ==18324== Releasing lock... [2025-03-27 16:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:27:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-27 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:28:05 [end_date_ymd] => 2025-03-27 16:28:05 [RateCDR] => 1 ) [2025-03-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-03-27 13:28:05' and `end` < '2025-03-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-03-27 16:28:19] Production.INFO: count ==4831 [2025-03-27 16:28:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:28:05 - End Time 2025-03-27 16:28:05 [2025-03-27 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775393', 'tblTempUsageDetail_20' ) start [2025-03-27 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775393', 'tblTempUsageDetail_20' ) end [2025-03-27 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775393', 'tblTempVendorCDR_20' ) start [2025-03-27 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775393', 'tblTempVendorCDR_20' ) end [2025-03-27 16:28:21] Production.INFO: ProcessCDR(1,14775393,1,1,2) [2025-03-27 16:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775393', 'tblTempUsageDetail_20' ) start [2025-03-27 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775393', 'tblTempUsageDetail_20' ) end [2025-03-27 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:28:27] Production.INFO: ==18402== Releasing lock... [2025-03-27 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:28:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-27 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:29:06 [end_date_ymd] => 2025-03-27 16:29:06 [RateCDR] => 1 ) [2025-03-27 16:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:29:06' and `end` < '2025-03-27 16:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:29:20] Production.INFO: count ==4838 [2025-03-27 16:29:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:29:06 - End Time 2025-03-27 16:29:06 [2025-03-27 16:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775398', 'tblTempUsageDetail_20' ) start [2025-03-27 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775398', 'tblTempUsageDetail_20' ) end [2025-03-27 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775398', 'tblTempVendorCDR_20' ) start [2025-03-27 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775398', 'tblTempVendorCDR_20' ) end [2025-03-27 16:29:22] Production.INFO: ProcessCDR(1,14775398,1,1,2) [2025-03-27 16:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775398', 'tblTempUsageDetail_20' ) start [2025-03-27 16:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775398', 'tblTempUsageDetail_20' ) end [2025-03-27 16:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:29:28] Production.INFO: ==18489== Releasing lock... [2025-03-27 16:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:29:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-27 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:30:06 [end_date_ymd] => 2025-03-27 16:30:06 [RateCDR] => 1 ) [2025-03-27 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:30:06' and `end` < '2025-03-27 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:30:20] Production.INFO: count ==4847 [2025-03-27 16:30:23] Production.ERROR: pbx CDR StartTime 2025-03-27 13:30:06 - End Time 2025-03-27 16:30:06 [2025-03-27 16:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775403', 'tblTempUsageDetail_20' ) start [2025-03-27 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775403', 'tblTempUsageDetail_20' ) end [2025-03-27 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775403', 'tblTempVendorCDR_20' ) start [2025-03-27 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775403', 'tblTempVendorCDR_20' ) end [2025-03-27 16:30:23] Production.INFO: ProcessCDR(1,14775403,1,1,2) [2025-03-27 16:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775403', 'tblTempUsageDetail_20' ) start [2025-03-27 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775403', 'tblTempUsageDetail_20' ) end [2025-03-27 16:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:30:28] Production.INFO: ==18578== Releasing lock... [2025-03-27 16:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:30:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-27 16:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:31:06 [end_date_ymd] => 2025-03-27 16:31:06 [RateCDR] => 1 ) [2025-03-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-03-27 13:31:06' and `end` < '2025-03-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-03-27 16:31:19] Production.INFO: count ==4869 [2025-03-27 16:31:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:31:06 - End Time 2025-03-27 16:31:06 [2025-03-27 16:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775409', 'tblTempUsageDetail_20' ) start [2025-03-27 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775409', 'tblTempUsageDetail_20' ) end [2025-03-27 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775409', 'tblTempVendorCDR_20' ) start [2025-03-27 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775409', 'tblTempVendorCDR_20' ) end [2025-03-27 16:31:22] Production.INFO: ProcessCDR(1,14775409,1,1,2) [2025-03-27 16:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775409', 'tblTempUsageDetail_20' ) start [2025-03-27 16:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775409', 'tblTempUsageDetail_20' ) end [2025-03-27 16:31:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:31:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:31:28] Production.INFO: ==18662== Releasing lock... [2025-03-27 16:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:31:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-27 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:32:05 [end_date_ymd] => 2025-03-27 16:32:05 [RateCDR] => 1 ) [2025-03-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-03-27 13:32:05' and `end` < '2025-03-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-03-27 16:32:19] Production.INFO: count ==4865 [2025-03-27 16:32:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:32:05 - End Time 2025-03-27 16:32:05 [2025-03-27 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775414', 'tblTempUsageDetail_20' ) start [2025-03-27 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775414', 'tblTempUsageDetail_20' ) end [2025-03-27 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775414', 'tblTempVendorCDR_20' ) start [2025-03-27 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775414', 'tblTempVendorCDR_20' ) end [2025-03-27 16:32:21] Production.INFO: ProcessCDR(1,14775414,1,1,2) [2025-03-27 16:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775414', 'tblTempUsageDetail_20' ) start [2025-03-27 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775414', 'tblTempUsageDetail_20' ) end [2025-03-27 16:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:32:27] Production.INFO: ==18741== Releasing lock... [2025-03-27 16:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:32:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-27 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:33:06 [end_date_ymd] => 2025-03-27 16:33:06 [RateCDR] => 1 ) [2025-03-27 16:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:33:06' and `end` < '2025-03-27 16:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:33:20] Production.INFO: count ==4857 [2025-03-27 16:33:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:33:06 - End Time 2025-03-27 16:33:06 [2025-03-27 16:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775419', 'tblTempUsageDetail_20' ) start [2025-03-27 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775419', 'tblTempUsageDetail_20' ) end [2025-03-27 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775419', 'tblTempVendorCDR_20' ) start [2025-03-27 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775419', 'tblTempVendorCDR_20' ) end [2025-03-27 16:33:22] Production.INFO: ProcessCDR(1,14775419,1,1,2) [2025-03-27 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775419', 'tblTempUsageDetail_20' ) start [2025-03-27 16:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775419', 'tblTempUsageDetail_20' ) end [2025-03-27 16:33:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:33:28] Production.INFO: ==18820== Releasing lock... [2025-03-27 16:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:33:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-27 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:34:06 [end_date_ymd] => 2025-03-27 16:34:06 [RateCDR] => 1 ) [2025-03-27 16:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:34:06' and `end` < '2025-03-27 16:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:34:19] Production.INFO: count ==4838 [2025-03-27 16:34:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:34:06 - End Time 2025-03-27 16:34:06 [2025-03-27 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775424', 'tblTempUsageDetail_20' ) start [2025-03-27 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775424', 'tblTempUsageDetail_20' ) end [2025-03-27 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775424', 'tblTempVendorCDR_20' ) start [2025-03-27 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775424', 'tblTempVendorCDR_20' ) end [2025-03-27 16:34:22] Production.INFO: ProcessCDR(1,14775424,1,1,2) [2025-03-27 16:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775424', 'tblTempUsageDetail_20' ) start [2025-03-27 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775424', 'tblTempUsageDetail_20' ) end [2025-03-27 16:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:34:27] Production.INFO: ==18891== Releasing lock... [2025-03-27 16:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:34:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-27 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:35:06 [end_date_ymd] => 2025-03-27 16:35:06 [RateCDR] => 1 ) [2025-03-27 16:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:35:06' and `end` < '2025-03-27 16:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:35:19] Production.INFO: count ==4838 [2025-03-27 16:35:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:35:06 - End Time 2025-03-27 16:35:06 [2025-03-27 16:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775429', 'tblTempUsageDetail_20' ) start [2025-03-27 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775429', 'tblTempUsageDetail_20' ) end [2025-03-27 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775429', 'tblTempVendorCDR_20' ) start [2025-03-27 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775429', 'tblTempVendorCDR_20' ) end [2025-03-27 16:35:22] Production.INFO: ProcessCDR(1,14775429,1,1,2) [2025-03-27 16:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775429', 'tblTempUsageDetail_20' ) start [2025-03-27 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775429', 'tblTempUsageDetail_20' ) end [2025-03-27 16:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:35:28] Production.INFO: ==18967== Releasing lock... [2025-03-27 16:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:35:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-27 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:36:06 [end_date_ymd] => 2025-03-27 16:36:06 [RateCDR] => 1 ) [2025-03-27 16:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:36:06' and `end` < '2025-03-27 16:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:36:19] Production.INFO: count ==4846 [2025-03-27 16:36:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:36:06 - End Time 2025-03-27 16:36:06 [2025-03-27 16:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775434', 'tblTempUsageDetail_20' ) start [2025-03-27 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775434', 'tblTempUsageDetail_20' ) end [2025-03-27 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775434', 'tblTempVendorCDR_20' ) start [2025-03-27 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775434', 'tblTempVendorCDR_20' ) end [2025-03-27 16:36:22] Production.INFO: ProcessCDR(1,14775434,1,1,2) [2025-03-27 16:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775434', 'tblTempUsageDetail_20' ) start [2025-03-27 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775434', 'tblTempUsageDetail_20' ) end [2025-03-27 16:36:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:36:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:36:28] Production.INFO: ==19041== Releasing lock... [2025-03-27 16:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:36:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-27 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:37:06 [end_date_ymd] => 2025-03-27 16:37:06 [RateCDR] => 1 ) [2025-03-27 16:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:37:06' and `end` < '2025-03-27 16:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:37:20] Production.INFO: count ==4844 [2025-03-27 16:37:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:37:06 - End Time 2025-03-27 16:37:06 [2025-03-27 16:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775439', 'tblTempUsageDetail_20' ) start [2025-03-27 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775439', 'tblTempUsageDetail_20' ) end [2025-03-27 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775439', 'tblTempVendorCDR_20' ) start [2025-03-27 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775439', 'tblTempVendorCDR_20' ) end [2025-03-27 16:37:22] Production.INFO: ProcessCDR(1,14775439,1,1,2) [2025-03-27 16:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775439', 'tblTempUsageDetail_20' ) start [2025-03-27 16:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775439', 'tblTempUsageDetail_20' ) end [2025-03-27 16:37:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:37:28] Production.INFO: ==19119== Releasing lock... [2025-03-27 16:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:37:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-27 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:38:06 [end_date_ymd] => 2025-03-27 16:38:06 [RateCDR] => 1 ) [2025-03-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-03-27 13:38:06' and `end` < '2025-03-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-03-27 16:38:19] Production.INFO: count ==4824 [2025-03-27 16:38:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:38:06 - End Time 2025-03-27 16:38:06 [2025-03-27 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775444', 'tblTempUsageDetail_20' ) start [2025-03-27 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775444', 'tblTempUsageDetail_20' ) end [2025-03-27 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775444', 'tblTempVendorCDR_20' ) start [2025-03-27 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775444', 'tblTempVendorCDR_20' ) end [2025-03-27 16:38:22] Production.INFO: ProcessCDR(1,14775444,1,1,2) [2025-03-27 16:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775444', 'tblTempUsageDetail_20' ) start [2025-03-27 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775444', 'tblTempUsageDetail_20' ) end [2025-03-27 16:38:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:38:28] Production.INFO: ==19199== Releasing lock... [2025-03-27 16:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:38:28] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:39:06 [end_date_ymd] => 2025-03-27 16:39:06 [RateCDR] => 1 ) [2025-03-27 16:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:39:06' and `end` < '2025-03-27 16:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:39:20] Production.INFO: count ==4828 [2025-03-27 16:39:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:39:06 - End Time 2025-03-27 16:39:06 [2025-03-27 16:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775449', 'tblTempUsageDetail_20' ) start [2025-03-27 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775449', 'tblTempUsageDetail_20' ) end [2025-03-27 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775449', 'tblTempVendorCDR_20' ) start [2025-03-27 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775449', 'tblTempVendorCDR_20' ) end [2025-03-27 16:39:22] Production.INFO: ProcessCDR(1,14775449,1,1,2) [2025-03-27 16:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775449', 'tblTempUsageDetail_20' ) start [2025-03-27 16:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775449', 'tblTempUsageDetail_20' ) end [2025-03-27 16:39:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:39:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:39:29] Production.INFO: ==19281== Releasing lock... [2025-03-27 16:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:39:29] Production.INFO: 64.25 MB #Memory Used# [2025-03-27 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:40:06 [end_date_ymd] => 2025-03-27 16:40:06 [RateCDR] => 1 ) [2025-03-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-03-27 13:40:06' and `end` < '2025-03-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-03-27 16:40:20] Production.INFO: count ==4836 [2025-03-27 16:40:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:40:06 - End Time 2025-03-27 16:40:06 [2025-03-27 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775455', 'tblTempUsageDetail_20' ) start [2025-03-27 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775455', 'tblTempUsageDetail_20' ) end [2025-03-27 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775455', 'tblTempVendorCDR_20' ) start [2025-03-27 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775455', 'tblTempVendorCDR_20' ) end [2025-03-27 16:40:22] Production.INFO: ProcessCDR(1,14775455,1,1,2) [2025-03-27 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775455', 'tblTempUsageDetail_20' ) start [2025-03-27 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775455', 'tblTempUsageDetail_20' ) end [2025-03-27 16:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:40:28] Production.INFO: ==19353== Releasing lock... [2025-03-27 16:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:40:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-27 16:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:41:06 [end_date_ymd] => 2025-03-27 16:41:06 [RateCDR] => 1 ) [2025-03-27 16:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:41:06' and `end` < '2025-03-27 16:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:41:20] Production.INFO: count ==4810 [2025-03-27 16:41:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:41:06 - End Time 2025-03-27 16:41:06 [2025-03-27 16:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775460', 'tblTempUsageDetail_20' ) start [2025-03-27 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775460', 'tblTempUsageDetail_20' ) end [2025-03-27 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775460', 'tblTempVendorCDR_20' ) start [2025-03-27 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775460', 'tblTempVendorCDR_20' ) end [2025-03-27 16:41:22] Production.INFO: ProcessCDR(1,14775460,1,1,2) [2025-03-27 16:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775460', 'tblTempUsageDetail_20' ) start [2025-03-27 16:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775460', 'tblTempUsageDetail_20' ) end [2025-03-27 16:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:41:28] Production.INFO: ==19428== Releasing lock... [2025-03-27 16:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:41:28] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:42:05 [end_date_ymd] => 2025-03-27 16:42:05 [RateCDR] => 1 ) [2025-03-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-03-27 13:42:05' and `end` < '2025-03-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-03-27 16:42:19] Production.INFO: count ==4804 [2025-03-27 16:42:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:42:05 - End Time 2025-03-27 16:42:05 [2025-03-27 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775465', 'tblTempUsageDetail_20' ) start [2025-03-27 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775465', 'tblTempUsageDetail_20' ) end [2025-03-27 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775465', 'tblTempVendorCDR_20' ) start [2025-03-27 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775465', 'tblTempVendorCDR_20' ) end [2025-03-27 16:42:21] Production.INFO: ProcessCDR(1,14775465,1,1,2) [2025-03-27 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775465', 'tblTempUsageDetail_20' ) start [2025-03-27 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775465', 'tblTempUsageDetail_20' ) end [2025-03-27 16:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:42:27] Production.INFO: ==19539== Releasing lock... [2025-03-27 16:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:42:27] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:43:06 [end_date_ymd] => 2025-03-27 16:43:06 [RateCDR] => 1 ) [2025-03-27 16:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:43:06' and `end` < '2025-03-27 16:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:43:20] Production.INFO: count ==4792 [2025-03-27 16:43:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:43:06 - End Time 2025-03-27 16:43:06 [2025-03-27 16:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775470', 'tblTempUsageDetail_20' ) start [2025-03-27 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775470', 'tblTempUsageDetail_20' ) end [2025-03-27 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775470', 'tblTempVendorCDR_20' ) start [2025-03-27 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775470', 'tblTempVendorCDR_20' ) end [2025-03-27 16:43:22] Production.INFO: ProcessCDR(1,14775470,1,1,2) [2025-03-27 16:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775470', 'tblTempUsageDetail_20' ) start [2025-03-27 16:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775470', 'tblTempUsageDetail_20' ) end [2025-03-27 16:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:43:28] Production.INFO: ==19614== Releasing lock... [2025-03-27 16:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:43:28] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:44:05 [end_date_ymd] => 2025-03-27 16:44:05 [RateCDR] => 1 ) [2025-03-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-03-27 13:44:05' and `end` < '2025-03-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-03-27 16:44:19] Production.INFO: count ==4784 [2025-03-27 16:44:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:44:05 - End Time 2025-03-27 16:44:05 [2025-03-27 16:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775475', 'tblTempUsageDetail_20' ) start [2025-03-27 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775475', 'tblTempUsageDetail_20' ) end [2025-03-27 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775475', 'tblTempVendorCDR_20' ) start [2025-03-27 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775475', 'tblTempVendorCDR_20' ) end [2025-03-27 16:44:21] Production.INFO: ProcessCDR(1,14775475,1,1,2) [2025-03-27 16:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775475', 'tblTempUsageDetail_20' ) start [2025-03-27 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775475', 'tblTempUsageDetail_20' ) end [2025-03-27 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:44:27] Production.INFO: ==19696== Releasing lock... [2025-03-27 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:44:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-27 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:45:06 [end_date_ymd] => 2025-03-27 16:45:06 [RateCDR] => 1 ) [2025-03-27 16:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:45:06' and `end` < '2025-03-27 16:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:45:20] Production.INFO: count ==4808 [2025-03-27 16:45:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:45:06 - End Time 2025-03-27 16:45:06 [2025-03-27 16:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775480', 'tblTempUsageDetail_20' ) start [2025-03-27 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775480', 'tblTempUsageDetail_20' ) end [2025-03-27 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775480', 'tblTempVendorCDR_20' ) start [2025-03-27 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775480', 'tblTempVendorCDR_20' ) end [2025-03-27 16:45:23] Production.INFO: ProcessCDR(1,14775480,1,1,2) [2025-03-27 16:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775480', 'tblTempUsageDetail_20' ) start [2025-03-27 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775480', 'tblTempUsageDetail_20' ) end [2025-03-27 16:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:45:28] Production.INFO: ==19774== Releasing lock... [2025-03-27 16:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:45:28] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:46:06 [end_date_ymd] => 2025-03-27 16:46:06 [RateCDR] => 1 ) [2025-03-27 16:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:46:06' and `end` < '2025-03-27 16:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:46:20] Production.INFO: count ==4816 [2025-03-27 16:46:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:46:06 - End Time 2025-03-27 16:46:06 [2025-03-27 16:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775485', 'tblTempUsageDetail_20' ) start [2025-03-27 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775485', 'tblTempUsageDetail_20' ) end [2025-03-27 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775485', 'tblTempVendorCDR_20' ) start [2025-03-27 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775485', 'tblTempVendorCDR_20' ) end [2025-03-27 16:46:22] Production.INFO: ProcessCDR(1,14775485,1,1,2) [2025-03-27 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775485', 'tblTempUsageDetail_20' ) start [2025-03-27 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775485', 'tblTempUsageDetail_20' ) end [2025-03-27 16:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:46:28] Production.INFO: ==19844== Releasing lock... [2025-03-27 16:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:46:28] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:47:06 [end_date_ymd] => 2025-03-27 16:47:06 [RateCDR] => 1 ) [2025-03-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-03-27 13:47:06' and `end` < '2025-03-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-03-27 16:47:20] Production.INFO: count ==4806 [2025-03-27 16:47:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:47:06 - End Time 2025-03-27 16:47:06 [2025-03-27 16:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775490', 'tblTempUsageDetail_20' ) start [2025-03-27 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775490', 'tblTempUsageDetail_20' ) end [2025-03-27 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775490', 'tblTempVendorCDR_20' ) start [2025-03-27 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775490', 'tblTempVendorCDR_20' ) end [2025-03-27 16:47:22] Production.INFO: ProcessCDR(1,14775490,1,1,2) [2025-03-27 16:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775490', 'tblTempUsageDetail_20' ) start [2025-03-27 16:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775490', 'tblTempUsageDetail_20' ) end [2025-03-27 16:47:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:47:28] Production.INFO: ==19917== Releasing lock... [2025-03-27 16:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:47:28] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:48:06 [end_date_ymd] => 2025-03-27 16:48:06 [RateCDR] => 1 ) [2025-03-27 16:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:48:06' and `end` < '2025-03-27 16:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:48:20] Production.INFO: count ==4805 [2025-03-27 16:48:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:48:06 - End Time 2025-03-27 16:48:06 [2025-03-27 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775495', 'tblTempUsageDetail_20' ) start [2025-03-27 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775495', 'tblTempUsageDetail_20' ) end [2025-03-27 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775495', 'tblTempVendorCDR_20' ) start [2025-03-27 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775495', 'tblTempVendorCDR_20' ) end [2025-03-27 16:48:22] Production.INFO: ProcessCDR(1,14775495,1,1,2) [2025-03-27 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775495', 'tblTempUsageDetail_20' ) start [2025-03-27 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775495', 'tblTempUsageDetail_20' ) end [2025-03-27 16:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:48:28] Production.INFO: ==19988== Releasing lock... [2025-03-27 16:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:48:28] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:49:06 [end_date_ymd] => 2025-03-27 16:49:06 [RateCDR] => 1 ) [2025-03-27 16:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:49:06' and `end` < '2025-03-27 16:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:49:20] Production.INFO: count ==4810 [2025-03-27 16:49:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:49:06 - End Time 2025-03-27 16:49:06 [2025-03-27 16:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775500', 'tblTempUsageDetail_20' ) start [2025-03-27 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775500', 'tblTempUsageDetail_20' ) end [2025-03-27 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775500', 'tblTempVendorCDR_20' ) start [2025-03-27 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775500', 'tblTempVendorCDR_20' ) end [2025-03-27 16:49:22] Production.INFO: ProcessCDR(1,14775500,1,1,2) [2025-03-27 16:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775500', 'tblTempUsageDetail_20' ) start [2025-03-27 16:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775500', 'tblTempUsageDetail_20' ) end [2025-03-27 16:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:49:28] Production.INFO: ==20059== Releasing lock... [2025-03-27 16:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:49:28] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:50:06 [end_date_ymd] => 2025-03-27 16:50:06 [RateCDR] => 1 ) [2025-03-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-03-27 13:50:06' and `end` < '2025-03-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-03-27 16:50:20] Production.INFO: count ==4806 [2025-03-27 16:50:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:50:06 - End Time 2025-03-27 16:50:06 [2025-03-27 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775505', 'tblTempUsageDetail_20' ) start [2025-03-27 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775505', 'tblTempUsageDetail_20' ) end [2025-03-27 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775505', 'tblTempVendorCDR_20' ) start [2025-03-27 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775505', 'tblTempVendorCDR_20' ) end [2025-03-27 16:50:22] Production.INFO: ProcessCDR(1,14775505,1,1,2) [2025-03-27 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775505', 'tblTempUsageDetail_20' ) start [2025-03-27 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775505', 'tblTempUsageDetail_20' ) end [2025-03-27 16:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:50:28] Production.INFO: ==20135== Releasing lock... [2025-03-27 16:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:50:28] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:51:06 [end_date_ymd] => 2025-03-27 16:51:06 [RateCDR] => 1 ) [2025-03-27 16:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:51:06' and `end` < '2025-03-27 16:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:51:19] Production.INFO: count ==4808 [2025-03-27 16:51:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:51:06 - End Time 2025-03-27 16:51:06 [2025-03-27 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775511', 'tblTempUsageDetail_20' ) start [2025-03-27 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775511', 'tblTempUsageDetail_20' ) end [2025-03-27 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775511', 'tblTempVendorCDR_20' ) start [2025-03-27 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775511', 'tblTempVendorCDR_20' ) end [2025-03-27 16:51:22] Production.INFO: ProcessCDR(1,14775511,1,1,2) [2025-03-27 16:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775511', 'tblTempUsageDetail_20' ) start [2025-03-27 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775511', 'tblTempUsageDetail_20' ) end [2025-03-27 16:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:51:27] Production.INFO: ==20210== Releasing lock... [2025-03-27 16:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:51:27] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:52:06 [end_date_ymd] => 2025-03-27 16:52:06 [RateCDR] => 1 ) [2025-03-27 16:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:52:06' and `end` < '2025-03-27 16:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:52:20] Production.INFO: count ==4808 [2025-03-27 16:52:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:52:06 - End Time 2025-03-27 16:52:06 [2025-03-27 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775516', 'tblTempUsageDetail_20' ) start [2025-03-27 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775516', 'tblTempUsageDetail_20' ) end [2025-03-27 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775516', 'tblTempVendorCDR_20' ) start [2025-03-27 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775516', 'tblTempVendorCDR_20' ) end [2025-03-27 16:52:22] Production.INFO: ProcessCDR(1,14775516,1,1,2) [2025-03-27 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775516', 'tblTempUsageDetail_20' ) start [2025-03-27 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775516', 'tblTempUsageDetail_20' ) end [2025-03-27 16:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:52:28] Production.INFO: ==20283== Releasing lock... [2025-03-27 16:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:52:28] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:53:06 [end_date_ymd] => 2025-03-27 16:53:06 [RateCDR] => 1 ) [2025-03-27 16:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:53:06' and `end` < '2025-03-27 16:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:53:19] Production.INFO: count ==4797 [2025-03-27 16:53:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:53:06 - End Time 2025-03-27 16:53:06 [2025-03-27 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775521', 'tblTempUsageDetail_20' ) start [2025-03-27 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775521', 'tblTempUsageDetail_20' ) end [2025-03-27 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775521', 'tblTempVendorCDR_20' ) start [2025-03-27 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775521', 'tblTempVendorCDR_20' ) end [2025-03-27 16:53:22] Production.INFO: ProcessCDR(1,14775521,1,1,2) [2025-03-27 16:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775521', 'tblTempUsageDetail_20' ) start [2025-03-27 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775521', 'tblTempUsageDetail_20' ) end [2025-03-27 16:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:53:27] Production.INFO: ==20357== Releasing lock... [2025-03-27 16:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:53:27] Production.INFO: 64 MB #Memory Used# [2025-03-27 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:54:05 [end_date_ymd] => 2025-03-27 16:54:05 [RateCDR] => 1 ) [2025-03-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-03-27 13:54:05' and `end` < '2025-03-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-03-27 16:54:19] Production.INFO: count ==4787 [2025-03-27 16:54:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:54:05 - End Time 2025-03-27 16:54:05 [2025-03-27 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775526', 'tblTempUsageDetail_20' ) start [2025-03-27 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775526', 'tblTempUsageDetail_20' ) end [2025-03-27 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775526', 'tblTempVendorCDR_20' ) start [2025-03-27 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775526', 'tblTempVendorCDR_20' ) end [2025-03-27 16:54:21] Production.INFO: ProcessCDR(1,14775526,1,1,2) [2025-03-27 16:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775526', 'tblTempUsageDetail_20' ) start [2025-03-27 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775526', 'tblTempUsageDetail_20' ) end [2025-03-27 16:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:54:27] Production.INFO: ==20430== Releasing lock... [2025-03-27 16:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:54:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-27 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:55:06 [end_date_ymd] => 2025-03-27 16:55:06 [RateCDR] => 1 ) [2025-03-27 16:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:55:06' and `end` < '2025-03-27 16:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:55:19] Production.INFO: count ==4784 [2025-03-27 16:55:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:55:06 - End Time 2025-03-27 16:55:06 [2025-03-27 16:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775531', 'tblTempUsageDetail_20' ) start [2025-03-27 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775531', 'tblTempUsageDetail_20' ) end [2025-03-27 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775531', 'tblTempVendorCDR_20' ) start [2025-03-27 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775531', 'tblTempVendorCDR_20' ) end [2025-03-27 16:55:22] Production.INFO: ProcessCDR(1,14775531,1,1,2) [2025-03-27 16:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775531', 'tblTempUsageDetail_20' ) start [2025-03-27 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775531', 'tblTempUsageDetail_20' ) end [2025-03-27 16:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:55:28] Production.INFO: ==20503== Releasing lock... [2025-03-27 16:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:55:28] Production.INFO: 63.75 MB #Memory Used# [2025-03-27 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:56:06 [end_date_ymd] => 2025-03-27 16:56:06 [RateCDR] => 1 ) [2025-03-27 16:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:56:06' and `end` < '2025-03-27 16:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:56:20] Production.INFO: count ==4752 [2025-03-27 16:56:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:56:06 - End Time 2025-03-27 16:56:06 [2025-03-27 16:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775536', 'tblTempUsageDetail_20' ) start [2025-03-27 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775536', 'tblTempUsageDetail_20' ) end [2025-03-27 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775536', 'tblTempVendorCDR_20' ) start [2025-03-27 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775536', 'tblTempVendorCDR_20' ) end [2025-03-27 16:56:22] Production.INFO: ProcessCDR(1,14775536,1,1,2) [2025-03-27 16:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775536', 'tblTempUsageDetail_20' ) start [2025-03-27 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775536', 'tblTempUsageDetail_20' ) end [2025-03-27 16:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:56:28] Production.INFO: ==20575== Releasing lock... [2025-03-27 16:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:56:28] Production.INFO: 63.5 MB #Memory Used# [2025-03-27 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:57:06 [end_date_ymd] => 2025-03-27 16:57:06 [RateCDR] => 1 ) [2025-03-27 16:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:57:06' and `end` < '2025-03-27 16:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:57:19] Production.INFO: count ==4770 [2025-03-27 16:57:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:57:06 - End Time 2025-03-27 16:57:06 [2025-03-27 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775537', 'tblTempUsageDetail_20' ) start [2025-03-27 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775537', 'tblTempUsageDetail_20' ) end [2025-03-27 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775537', 'tblTempVendorCDR_20' ) start [2025-03-27 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775537', 'tblTempVendorCDR_20' ) end [2025-03-27 16:57:21] Production.INFO: ProcessCDR(1,14775537,1,1,2) [2025-03-27 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775537', 'tblTempUsageDetail_20' ) start [2025-03-27 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775537', 'tblTempUsageDetail_20' ) end [2025-03-27 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:57:27] Production.INFO: ==20692== Releasing lock... [2025-03-27 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:57:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-27 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:58:06 [end_date_ymd] => 2025-03-27 16:58:06 [RateCDR] => 1 ) [2025-03-27 16:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:58:06' and `end` < '2025-03-27 16:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:58:20] Production.INFO: count ==4774 [2025-03-27 16:58:22] Production.ERROR: pbx CDR StartTime 2025-03-27 13:58:06 - End Time 2025-03-27 16:58:06 [2025-03-27 16:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775546', 'tblTempUsageDetail_20' ) start [2025-03-27 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775546', 'tblTempUsageDetail_20' ) end [2025-03-27 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775546', 'tblTempVendorCDR_20' ) start [2025-03-27 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775546', 'tblTempVendorCDR_20' ) end [2025-03-27 16:58:22] Production.INFO: ProcessCDR(1,14775546,1,1,2) [2025-03-27 16:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775546', 'tblTempUsageDetail_20' ) start [2025-03-27 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775546', 'tblTempUsageDetail_20' ) end [2025-03-27 16:58:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:58:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:58:28] Production.INFO: ==20767== Releasing lock... [2025-03-27 16:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:58:28] Production.INFO: 63.75 MB #Memory Used# [2025-03-27 16:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 13:59:06 [end_date_ymd] => 2025-03-27 16:59:06 [RateCDR] => 1 ) [2025-03-27 16:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 13:59:06' and `end` < '2025-03-27 16:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 16:59:19] Production.INFO: count ==4771 [2025-03-27 16:59:21] Production.ERROR: pbx CDR StartTime 2025-03-27 13:59:06 - End Time 2025-03-27 16:59:06 [2025-03-27 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775551', 'tblTempUsageDetail_20' ) start [2025-03-27 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775551', 'tblTempUsageDetail_20' ) end [2025-03-27 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775551', 'tblTempVendorCDR_20' ) start [2025-03-27 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775551', 'tblTempVendorCDR_20' ) end [2025-03-27 16:59:21] Production.INFO: ProcessCDR(1,14775551,1,1,2) [2025-03-27 16:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 16:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775551', 'tblTempUsageDetail_20' ) start [2025-03-27 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775551', 'tblTempUsageDetail_20' ) end [2025-03-27 16:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 16:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 16:59:27] Production.INFO: ==20837== Releasing lock... [2025-03-27 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 16:59:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-27 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:00:06 [end_date_ymd] => 2025-03-27 17:00:06 [RateCDR] => 1 ) [2025-03-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-03-27 14:00:06' and `end` < '2025-03-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-03-27 17:00:20] Production.INFO: count ==4754 [2025-03-27 17:00:22] Production.ERROR: pbx CDR StartTime 2025-03-27 14:00:06 - End Time 2025-03-27 17:00:06 [2025-03-27 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775556', 'tblTempUsageDetail_20' ) start [2025-03-27 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775556', 'tblTempUsageDetail_20' ) end [2025-03-27 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775556', 'tblTempVendorCDR_20' ) start [2025-03-27 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775556', 'tblTempVendorCDR_20' ) end [2025-03-27 17:00:22] Production.INFO: ProcessCDR(1,14775556,1,1,2) [2025-03-27 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775556', 'tblTempUsageDetail_20' ) start [2025-03-27 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775556', 'tblTempUsageDetail_20' ) end [2025-03-27 17:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:00:28] Production.INFO: ==20913== Releasing lock... [2025-03-27 17:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:00:28] Production.INFO: 63.5 MB #Memory Used# [2025-03-27 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:01:06 [end_date_ymd] => 2025-03-27 17:01:06 [RateCDR] => 1 ) [2025-03-27 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:01:06' and `end` < '2025-03-27 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:01:20] Production.INFO: count ==4707 [2025-03-27 17:01:22] Production.ERROR: pbx CDR StartTime 2025-03-27 14:01:06 - End Time 2025-03-27 17:01:06 [2025-03-27 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775562', 'tblTempUsageDetail_20' ) start [2025-03-27 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775562', 'tblTempUsageDetail_20' ) end [2025-03-27 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775562', 'tblTempVendorCDR_20' ) start [2025-03-27 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775562', 'tblTempVendorCDR_20' ) end [2025-03-27 17:01:22] Production.INFO: ProcessCDR(1,14775562,1,1,2) [2025-03-27 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775562', 'tblTempUsageDetail_20' ) start [2025-03-27 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775562', 'tblTempUsageDetail_20' ) end [2025-03-27 17:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:01:27] Production.INFO: ==21000== Releasing lock... [2025-03-27 17:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:01:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-27 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:02:05 [end_date_ymd] => 2025-03-27 17:02:05 [RateCDR] => 1 ) [2025-03-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-03-27 14:02:05' and `end` < '2025-03-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-03-27 17:02:18] Production.INFO: count ==4685 [2025-03-27 17:02:20] Production.ERROR: pbx CDR StartTime 2025-03-27 14:02:05 - End Time 2025-03-27 17:02:05 [2025-03-27 17:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775567', 'tblTempUsageDetail_20' ) start [2025-03-27 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775567', 'tblTempUsageDetail_20' ) end [2025-03-27 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775567', 'tblTempVendorCDR_20' ) start [2025-03-27 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775567', 'tblTempVendorCDR_20' ) end [2025-03-27 17:02:20] Production.INFO: ProcessCDR(1,14775567,1,1,2) [2025-03-27 17:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775567', 'tblTempUsageDetail_20' ) start [2025-03-27 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775567', 'tblTempUsageDetail_20' ) end [2025-03-27 17:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:02:26] Production.INFO: ==21070== Releasing lock... [2025-03-27 17:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:02:26] Production.INFO: 63 MB #Memory Used# [2025-03-27 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:03:06 [end_date_ymd] => 2025-03-27 17:03:06 [RateCDR] => 1 ) [2025-03-27 17:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:03:06' and `end` < '2025-03-27 17:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:03:19] Production.INFO: count ==4668 [2025-03-27 17:03:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:03:06 - End Time 2025-03-27 17:03:06 [2025-03-27 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775572', 'tblTempUsageDetail_20' ) start [2025-03-27 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775572', 'tblTempUsageDetail_20' ) end [2025-03-27 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775572', 'tblTempVendorCDR_20' ) start [2025-03-27 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775572', 'tblTempVendorCDR_20' ) end [2025-03-27 17:03:21] Production.INFO: ProcessCDR(1,14775572,1,1,2) [2025-03-27 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775572', 'tblTempUsageDetail_20' ) start [2025-03-27 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775572', 'tblTempUsageDetail_20' ) end [2025-03-27 17:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:03:27] Production.INFO: ==21148== Releasing lock... [2025-03-27 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:03:27] Production.INFO: 63 MB #Memory Used# [2025-03-27 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:04:05 [end_date_ymd] => 2025-03-27 17:04:05 [RateCDR] => 1 ) [2025-03-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-03-27 14:04:05' and `end` < '2025-03-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-03-27 17:04:19] Production.INFO: count ==4638 [2025-03-27 17:04:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:04:05 - End Time 2025-03-27 17:04:05 [2025-03-27 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775577', 'tblTempUsageDetail_20' ) start [2025-03-27 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775577', 'tblTempUsageDetail_20' ) end [2025-03-27 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775577', 'tblTempVendorCDR_20' ) start [2025-03-27 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775577', 'tblTempVendorCDR_20' ) end [2025-03-27 17:04:21] Production.INFO: ProcessCDR(1,14775577,1,1,2) [2025-03-27 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775577', 'tblTempUsageDetail_20' ) start [2025-03-27 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775577', 'tblTempUsageDetail_20' ) end [2025-03-27 17:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:04:27] Production.INFO: ==21221== Releasing lock... [2025-03-27 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:04:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-27 17:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:05:06 [end_date_ymd] => 2025-03-27 17:05:06 [RateCDR] => 1 ) [2025-03-27 17:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:05:06' and `end` < '2025-03-27 17:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:05:20] Production.INFO: count ==4627 [2025-03-27 17:05:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:05:06 - End Time 2025-03-27 17:05:06 [2025-03-27 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775582', 'tblTempUsageDetail_20' ) start [2025-03-27 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775582', 'tblTempUsageDetail_20' ) end [2025-03-27 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775582', 'tblTempVendorCDR_20' ) start [2025-03-27 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775582', 'tblTempVendorCDR_20' ) end [2025-03-27 17:05:22] Production.INFO: ProcessCDR(1,14775582,1,1,2) [2025-03-27 17:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775582', 'tblTempUsageDetail_20' ) start [2025-03-27 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775582', 'tblTempUsageDetail_20' ) end [2025-03-27 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:05:27] Production.INFO: ==21298== Releasing lock... [2025-03-27 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:05:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-27 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:06:05 [end_date_ymd] => 2025-03-27 17:06:05 [RateCDR] => 1 ) [2025-03-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-03-27 14:06:05' and `end` < '2025-03-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-03-27 17:06:19] Production.INFO: count ==4631 [2025-03-27 17:06:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:06:05 - End Time 2025-03-27 17:06:05 [2025-03-27 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775587', 'tblTempUsageDetail_20' ) start [2025-03-27 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775587', 'tblTempUsageDetail_20' ) end [2025-03-27 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775587', 'tblTempVendorCDR_20' ) start [2025-03-27 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775587', 'tblTempVendorCDR_20' ) end [2025-03-27 17:06:21] Production.INFO: ProcessCDR(1,14775587,1,1,2) [2025-03-27 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775587', 'tblTempUsageDetail_20' ) start [2025-03-27 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775587', 'tblTempUsageDetail_20' ) end [2025-03-27 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:06:27] Production.INFO: ==21373== Releasing lock... [2025-03-27 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:06:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-27 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:07:06 [end_date_ymd] => 2025-03-27 17:07:06 [RateCDR] => 1 ) [2025-03-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-03-27 14:07:06' and `end` < '2025-03-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-03-27 17:07:20] Production.INFO: count ==4656 [2025-03-27 17:07:22] Production.ERROR: pbx CDR StartTime 2025-03-27 14:07:06 - End Time 2025-03-27 17:07:06 [2025-03-27 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775592', 'tblTempUsageDetail_20' ) start [2025-03-27 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775592', 'tblTempUsageDetail_20' ) end [2025-03-27 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775592', 'tblTempVendorCDR_20' ) start [2025-03-27 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775592', 'tblTempVendorCDR_20' ) end [2025-03-27 17:07:22] Production.INFO: ProcessCDR(1,14775592,1,1,2) [2025-03-27 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775592', 'tblTempUsageDetail_20' ) start [2025-03-27 17:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775592', 'tblTempUsageDetail_20' ) end [2025-03-27 17:07:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:07:28] Production.INFO: ==21444== Releasing lock... [2025-03-27 17:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:07:28] Production.INFO: 62.75 MB #Memory Used# [2025-03-27 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:08:05 [end_date_ymd] => 2025-03-27 17:08:05 [RateCDR] => 1 ) [2025-03-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-03-27 14:08:05' and `end` < '2025-03-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-03-27 17:08:18] Production.INFO: count ==4649 [2025-03-27 17:08:20] Production.ERROR: pbx CDR StartTime 2025-03-27 14:08:05 - End Time 2025-03-27 17:08:05 [2025-03-27 17:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775597', 'tblTempUsageDetail_20' ) start [2025-03-27 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775597', 'tblTempUsageDetail_20' ) end [2025-03-27 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775597', 'tblTempVendorCDR_20' ) start [2025-03-27 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775597', 'tblTempVendorCDR_20' ) end [2025-03-27 17:08:20] Production.INFO: ProcessCDR(1,14775597,1,1,2) [2025-03-27 17:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775597', 'tblTempUsageDetail_20' ) start [2025-03-27 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775597', 'tblTempUsageDetail_20' ) end [2025-03-27 17:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:08:26] Production.INFO: ==21517== Releasing lock... [2025-03-27 17:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:08:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-27 17:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:09:06 [end_date_ymd] => 2025-03-27 17:09:06 [RateCDR] => 1 ) [2025-03-27 17:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:09:06' and `end` < '2025-03-27 17:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:09:19] Production.INFO: count ==4663 [2025-03-27 17:09:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:09:06 - End Time 2025-03-27 17:09:06 [2025-03-27 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775602', 'tblTempUsageDetail_20' ) start [2025-03-27 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775602', 'tblTempUsageDetail_20' ) end [2025-03-27 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775602', 'tblTempVendorCDR_20' ) start [2025-03-27 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775602', 'tblTempVendorCDR_20' ) end [2025-03-27 17:09:21] Production.INFO: ProcessCDR(1,14775602,1,1,2) [2025-03-27 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775602', 'tblTempUsageDetail_20' ) start [2025-03-27 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775602', 'tblTempUsageDetail_20' ) end [2025-03-27 17:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:09:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:09:28] Production.INFO: ==21591== Releasing lock... [2025-03-27 17:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:09:28] Production.INFO: 63 MB #Memory Used# [2025-03-27 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:10:06 [end_date_ymd] => 2025-03-27 17:10:06 [RateCDR] => 1 ) [2025-03-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-03-27 14:10:06' and `end` < '2025-03-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-03-27 17:10:20] Production.INFO: count ==4674 [2025-03-27 17:10:22] Production.ERROR: pbx CDR StartTime 2025-03-27 14:10:06 - End Time 2025-03-27 17:10:06 [2025-03-27 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775608', 'tblTempUsageDetail_20' ) start [2025-03-27 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775608', 'tblTempUsageDetail_20' ) end [2025-03-27 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775608', 'tblTempVendorCDR_20' ) start [2025-03-27 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775608', 'tblTempVendorCDR_20' ) end [2025-03-27 17:10:22] Production.INFO: ProcessCDR(1,14775608,1,1,2) [2025-03-27 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775608', 'tblTempUsageDetail_20' ) start [2025-03-27 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775608', 'tblTempUsageDetail_20' ) end [2025-03-27 17:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:10:28] Production.INFO: ==21672== Releasing lock... [2025-03-27 17:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:10:28] Production.INFO: 63 MB #Memory Used# [2025-03-27 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:11:06 [end_date_ymd] => 2025-03-27 17:11:06 [RateCDR] => 1 ) [2025-03-27 17:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:11:06' and `end` < '2025-03-27 17:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:11:20] Production.INFO: count ==4691 [2025-03-27 17:11:22] Production.ERROR: pbx CDR StartTime 2025-03-27 14:11:06 - End Time 2025-03-27 17:11:06 [2025-03-27 17:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775613', 'tblTempUsageDetail_20' ) start [2025-03-27 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775613', 'tblTempUsageDetail_20' ) end [2025-03-27 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775613', 'tblTempVendorCDR_20' ) start [2025-03-27 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775613', 'tblTempVendorCDR_20' ) end [2025-03-27 17:11:22] Production.INFO: ProcessCDR(1,14775613,1,1,2) [2025-03-27 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775613', 'tblTempUsageDetail_20' ) start [2025-03-27 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775613', 'tblTempUsageDetail_20' ) end [2025-03-27 17:11:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:11:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:11:28] Production.INFO: ==21749== Releasing lock... [2025-03-27 17:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:11:28] Production.INFO: 63.25 MB #Memory Used# [2025-03-27 17:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:12:06 [end_date_ymd] => 2025-03-27 17:12:06 [RateCDR] => 1 ) [2025-03-27 17:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:12:06' and `end` < '2025-03-27 17:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:12:20] Production.INFO: count ==4692 [2025-03-27 17:12:22] Production.ERROR: pbx CDR StartTime 2025-03-27 14:12:06 - End Time 2025-03-27 17:12:06 [2025-03-27 17:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775618', 'tblTempUsageDetail_20' ) start [2025-03-27 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775618', 'tblTempUsageDetail_20' ) end [2025-03-27 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775618', 'tblTempVendorCDR_20' ) start [2025-03-27 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775618', 'tblTempVendorCDR_20' ) end [2025-03-27 17:12:22] Production.INFO: ProcessCDR(1,14775618,1,1,2) [2025-03-27 17:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775618', 'tblTempUsageDetail_20' ) start [2025-03-27 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775618', 'tblTempUsageDetail_20' ) end [2025-03-27 17:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:12:27] Production.INFO: ==21822== Releasing lock... [2025-03-27 17:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:12:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-27 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:13:06 [end_date_ymd] => 2025-03-27 17:13:06 [RateCDR] => 1 ) [2025-03-27 17:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:13:06' and `end` < '2025-03-27 17:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:13:19] Production.INFO: count ==4693 [2025-03-27 17:13:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:13:06 - End Time 2025-03-27 17:13:06 [2025-03-27 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775623', 'tblTempUsageDetail_20' ) start [2025-03-27 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775623', 'tblTempUsageDetail_20' ) end [2025-03-27 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775623', 'tblTempVendorCDR_20' ) start [2025-03-27 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775623', 'tblTempVendorCDR_20' ) end [2025-03-27 17:13:21] Production.INFO: ProcessCDR(1,14775623,1,1,2) [2025-03-27 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775623', 'tblTempUsageDetail_20' ) start [2025-03-27 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775623', 'tblTempUsageDetail_20' ) end [2025-03-27 17:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:13:27] Production.INFO: ==21934== Releasing lock... [2025-03-27 17:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:13:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-27 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:14:06 [end_date_ymd] => 2025-03-27 17:14:06 [RateCDR] => 1 ) [2025-03-27 17:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:14:06' and `end` < '2025-03-27 17:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:14:19] Production.INFO: count ==4707 [2025-03-27 17:14:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:14:06 - End Time 2025-03-27 17:14:06 [2025-03-27 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775628', 'tblTempUsageDetail_20' ) start [2025-03-27 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775628', 'tblTempUsageDetail_20' ) end [2025-03-27 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775628', 'tblTempVendorCDR_20' ) start [2025-03-27 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775628', 'tblTempVendorCDR_20' ) end [2025-03-27 17:14:22] Production.INFO: ProcessCDR(1,14775628,1,1,2) [2025-03-27 17:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775628', 'tblTempUsageDetail_20' ) start [2025-03-27 17:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775628', 'tblTempUsageDetail_20' ) end [2025-03-27 17:14:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:14:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:14:28] Production.INFO: ==22009== Releasing lock... [2025-03-27 17:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:14:28] Production.INFO: 63.25 MB #Memory Used# [2025-03-27 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:15:05 [end_date_ymd] => 2025-03-27 17:15:05 [RateCDR] => 1 ) [2025-03-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-03-27 14:15:05' and `end` < '2025-03-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-03-27 17:15:19] Production.INFO: count ==4713 [2025-03-27 17:15:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:15:05 - End Time 2025-03-27 17:15:05 [2025-03-27 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775633', 'tblTempUsageDetail_20' ) start [2025-03-27 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775633', 'tblTempUsageDetail_20' ) end [2025-03-27 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775633', 'tblTempVendorCDR_20' ) start [2025-03-27 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775633', 'tblTempVendorCDR_20' ) end [2025-03-27 17:15:21] Production.INFO: ProcessCDR(1,14775633,1,1,2) [2025-03-27 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775633', 'tblTempUsageDetail_20' ) start [2025-03-27 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775633', 'tblTempUsageDetail_20' ) end [2025-03-27 17:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:15:26] Production.INFO: ==22089== Releasing lock... [2025-03-27 17:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:15:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-27 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:16:06 [end_date_ymd] => 2025-03-27 17:16:06 [RateCDR] => 1 ) [2025-03-27 17:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:16:06' and `end` < '2025-03-27 17:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:16:20] Production.INFO: count ==4689 [2025-03-27 17:16:22] Production.ERROR: pbx CDR StartTime 2025-03-27 14:16:06 - End Time 2025-03-27 17:16:06 [2025-03-27 17:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775638', 'tblTempUsageDetail_20' ) start [2025-03-27 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775638', 'tblTempUsageDetail_20' ) end [2025-03-27 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775638', 'tblTempVendorCDR_20' ) start [2025-03-27 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775638', 'tblTempVendorCDR_20' ) end [2025-03-27 17:16:22] Production.INFO: ProcessCDR(1,14775638,1,1,2) [2025-03-27 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775638', 'tblTempUsageDetail_20' ) start [2025-03-27 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775638', 'tblTempUsageDetail_20' ) end [2025-03-27 17:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:16:27] Production.INFO: ==22172== Releasing lock... [2025-03-27 17:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:16:27] Production.INFO: 63 MB #Memory Used# [2025-03-27 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:17:06 [end_date_ymd] => 2025-03-27 17:17:06 [RateCDR] => 1 ) [2025-03-27 17:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:17:06' and `end` < '2025-03-27 17:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:17:19] Production.INFO: count ==4681 [2025-03-27 17:17:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:17:06 - End Time 2025-03-27 17:17:06 [2025-03-27 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775643', 'tblTempUsageDetail_20' ) start [2025-03-27 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775643', 'tblTempUsageDetail_20' ) end [2025-03-27 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775643', 'tblTempVendorCDR_20' ) start [2025-03-27 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775643', 'tblTempVendorCDR_20' ) end [2025-03-27 17:17:21] Production.INFO: ProcessCDR(1,14775643,1,1,2) [2025-03-27 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775643', 'tblTempUsageDetail_20' ) start [2025-03-27 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775643', 'tblTempUsageDetail_20' ) end [2025-03-27 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:17:27] Production.INFO: ==22247== Releasing lock... [2025-03-27 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:17:27] Production.INFO: 63 MB #Memory Used# [2025-03-27 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:18:05 [end_date_ymd] => 2025-03-27 17:18:05 [RateCDR] => 1 ) [2025-03-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-03-27 14:18:05' and `end` < '2025-03-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-03-27 17:18:18] Production.INFO: count ==4652 [2025-03-27 17:18:20] Production.ERROR: pbx CDR StartTime 2025-03-27 14:18:05 - End Time 2025-03-27 17:18:05 [2025-03-27 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775648', 'tblTempUsageDetail_20' ) start [2025-03-27 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775648', 'tblTempUsageDetail_20' ) end [2025-03-27 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775648', 'tblTempVendorCDR_20' ) start [2025-03-27 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775648', 'tblTempVendorCDR_20' ) end [2025-03-27 17:18:20] Production.INFO: ProcessCDR(1,14775648,1,1,2) [2025-03-27 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775648', 'tblTempUsageDetail_20' ) start [2025-03-27 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775648', 'tblTempUsageDetail_20' ) end [2025-03-27 17:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:18:26] Production.INFO: ==22330== Releasing lock... [2025-03-27 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:18:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-27 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:19:05 [end_date_ymd] => 2025-03-27 17:19:05 [RateCDR] => 1 ) [2025-03-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-03-27 14:19:05' and `end` < '2025-03-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-03-27 17:19:19] Production.INFO: count ==4641 [2025-03-27 17:19:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:19:05 - End Time 2025-03-27 17:19:05 [2025-03-27 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775653', 'tblTempUsageDetail_20' ) start [2025-03-27 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775653', 'tblTempUsageDetail_20' ) end [2025-03-27 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775653', 'tblTempVendorCDR_20' ) start [2025-03-27 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775653', 'tblTempVendorCDR_20' ) end [2025-03-27 17:19:21] Production.INFO: ProcessCDR(1,14775653,1,1,2) [2025-03-27 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775653', 'tblTempUsageDetail_20' ) start [2025-03-27 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775653', 'tblTempUsageDetail_20' ) end [2025-03-27 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:19:26] Production.INFO: ==22407== Releasing lock... [2025-03-27 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:19:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-27 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:20:06 [end_date_ymd] => 2025-03-27 17:20:06 [RateCDR] => 1 ) [2025-03-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-03-27 14:20:06' and `end` < '2025-03-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-03-27 17:20:19] Production.INFO: count ==4621 [2025-03-27 17:20:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:20:06 - End Time 2025-03-27 17:20:06 [2025-03-27 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775659', 'tblTempUsageDetail_20' ) start [2025-03-27 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775659', 'tblTempUsageDetail_20' ) end [2025-03-27 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775659', 'tblTempVendorCDR_20' ) start [2025-03-27 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775659', 'tblTempVendorCDR_20' ) end [2025-03-27 17:20:22] Production.INFO: ProcessCDR(1,14775659,1,1,2) [2025-03-27 17:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775659', 'tblTempUsageDetail_20' ) start [2025-03-27 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775659', 'tblTempUsageDetail_20' ) end [2025-03-27 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:20:28] Production.INFO: ==22485== Releasing lock... [2025-03-27 17:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:20:28] Production.INFO: 62.5 MB #Memory Used# [2025-03-27 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:21:05 [end_date_ymd] => 2025-03-27 17:21:05 [RateCDR] => 1 ) [2025-03-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-03-27 14:21:05' and `end` < '2025-03-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-03-27 17:21:19] Production.INFO: count ==4571 [2025-03-27 17:21:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:21:05 - End Time 2025-03-27 17:21:05 [2025-03-27 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775664', 'tblTempUsageDetail_20' ) start [2025-03-27 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775664', 'tblTempUsageDetail_20' ) end [2025-03-27 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775664', 'tblTempVendorCDR_20' ) start [2025-03-27 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775664', 'tblTempVendorCDR_20' ) end [2025-03-27 17:21:21] Production.INFO: ProcessCDR(1,14775664,1,1,2) [2025-03-27 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775664', 'tblTempUsageDetail_20' ) start [2025-03-27 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775664', 'tblTempUsageDetail_20' ) end [2025-03-27 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:21:26] Production.INFO: ==22561== Releasing lock... [2025-03-27 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:21:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-27 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:22:05 [end_date_ymd] => 2025-03-27 17:22:05 [RateCDR] => 1 ) [2025-03-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-03-27 14:22:05' and `end` < '2025-03-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-03-27 17:22:19] Production.INFO: count ==4575 [2025-03-27 17:22:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:22:05 - End Time 2025-03-27 17:22:05 [2025-03-27 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775669', 'tblTempUsageDetail_20' ) start [2025-03-27 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775669', 'tblTempUsageDetail_20' ) end [2025-03-27 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775669', 'tblTempVendorCDR_20' ) start [2025-03-27 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775669', 'tblTempVendorCDR_20' ) end [2025-03-27 17:22:21] Production.INFO: ProcessCDR(1,14775669,1,1,2) [2025-03-27 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775669', 'tblTempUsageDetail_20' ) start [2025-03-27 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775669', 'tblTempUsageDetail_20' ) end [2025-03-27 17:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:22:27] Production.INFO: ==22643== Releasing lock... [2025-03-27 17:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:22:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-27 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:23:05 [end_date_ymd] => 2025-03-27 17:23:05 [RateCDR] => 1 ) [2025-03-27 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:23:05' and `end` < '2025-03-27 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:23:19] Production.INFO: count ==4572 [2025-03-27 17:23:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:23:05 - End Time 2025-03-27 17:23:05 [2025-03-27 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775674', 'tblTempUsageDetail_20' ) start [2025-03-27 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775674', 'tblTempUsageDetail_20' ) end [2025-03-27 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775674', 'tblTempVendorCDR_20' ) start [2025-03-27 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775674', 'tblTempVendorCDR_20' ) end [2025-03-27 17:23:21] Production.INFO: ProcessCDR(1,14775674,1,1,2) [2025-03-27 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775674', 'tblTempUsageDetail_20' ) start [2025-03-27 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775674', 'tblTempUsageDetail_20' ) end [2025-03-27 17:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:23:27] Production.INFO: ==22724== Releasing lock... [2025-03-27 17:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:23:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-27 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:24:05 [end_date_ymd] => 2025-03-27 17:24:05 [RateCDR] => 1 ) [2025-03-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-03-27 14:24:05' and `end` < '2025-03-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-03-27 17:24:19] Production.INFO: count ==4624 [2025-03-27 17:24:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:24:05 - End Time 2025-03-27 17:24:05 [2025-03-27 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775679', 'tblTempUsageDetail_20' ) start [2025-03-27 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775679', 'tblTempUsageDetail_20' ) end [2025-03-27 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775679', 'tblTempVendorCDR_20' ) start [2025-03-27 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775679', 'tblTempVendorCDR_20' ) end [2025-03-27 17:24:21] Production.INFO: ProcessCDR(1,14775679,1,1,2) [2025-03-27 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775679', 'tblTempUsageDetail_20' ) start [2025-03-27 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775679', 'tblTempUsageDetail_20' ) end [2025-03-27 17:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:24:27] Production.INFO: ==22796== Releasing lock... [2025-03-27 17:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:24:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-27 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:25:06 [end_date_ymd] => 2025-03-27 17:25:06 [RateCDR] => 1 ) [2025-03-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-03-27 14:25:06' and `end` < '2025-03-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-03-27 17:25:19] Production.INFO: count ==4631 [2025-03-27 17:25:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:25:06 - End Time 2025-03-27 17:25:06 [2025-03-27 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775684', 'tblTempUsageDetail_20' ) start [2025-03-27 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775684', 'tblTempUsageDetail_20' ) end [2025-03-27 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775684', 'tblTempVendorCDR_20' ) start [2025-03-27 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775684', 'tblTempVendorCDR_20' ) end [2025-03-27 17:25:21] Production.INFO: ProcessCDR(1,14775684,1,1,2) [2025-03-27 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775684', 'tblTempUsageDetail_20' ) start [2025-03-27 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775684', 'tblTempUsageDetail_20' ) end [2025-03-27 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:25:27] Production.INFO: ==22876== Releasing lock... [2025-03-27 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:25:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-27 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:26:05 [end_date_ymd] => 2025-03-27 17:26:05 [RateCDR] => 1 ) [2025-03-27 17:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:26:05' and `end` < '2025-03-27 17:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:26:19] Production.INFO: count ==4621 [2025-03-27 17:26:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:26:05 - End Time 2025-03-27 17:26:05 [2025-03-27 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775689', 'tblTempUsageDetail_20' ) start [2025-03-27 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775689', 'tblTempUsageDetail_20' ) end [2025-03-27 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775689', 'tblTempVendorCDR_20' ) start [2025-03-27 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775689', 'tblTempVendorCDR_20' ) end [2025-03-27 17:26:21] Production.INFO: ProcessCDR(1,14775689,1,1,2) [2025-03-27 17:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775689', 'tblTempUsageDetail_20' ) start [2025-03-27 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775689', 'tblTempUsageDetail_20' ) end [2025-03-27 17:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:26:26] Production.INFO: ==22951== Releasing lock... [2025-03-27 17:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:26:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-27 17:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:27:06 [end_date_ymd] => 2025-03-27 17:27:06 [RateCDR] => 1 ) [2025-03-27 17:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:27:06' and `end` < '2025-03-27 17:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:27:19] Production.INFO: count ==4628 [2025-03-27 17:27:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:27:06 - End Time 2025-03-27 17:27:06 [2025-03-27 17:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775694', 'tblTempUsageDetail_20' ) start [2025-03-27 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775694', 'tblTempUsageDetail_20' ) end [2025-03-27 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775694', 'tblTempVendorCDR_20' ) start [2025-03-27 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775694', 'tblTempVendorCDR_20' ) end [2025-03-27 17:27:22] Production.INFO: ProcessCDR(1,14775694,1,1,2) [2025-03-27 17:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775694', 'tblTempUsageDetail_20' ) start [2025-03-27 17:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775694', 'tblTempUsageDetail_20' ) end [2025-03-27 17:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:27:27] Production.INFO: ==23024== Releasing lock... [2025-03-27 17:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:27:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-27 17:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:28:06 [end_date_ymd] => 2025-03-27 17:28:06 [RateCDR] => 1 ) [2025-03-27 17:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:28:06' and `end` < '2025-03-27 17:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:28:20] Production.INFO: count ==4619 [2025-03-27 17:28:22] Production.ERROR: pbx CDR StartTime 2025-03-27 14:28:06 - End Time 2025-03-27 17:28:06 [2025-03-27 17:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775699', 'tblTempUsageDetail_20' ) start [2025-03-27 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775699', 'tblTempUsageDetail_20' ) end [2025-03-27 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775699', 'tblTempVendorCDR_20' ) start [2025-03-27 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775699', 'tblTempVendorCDR_20' ) end [2025-03-27 17:28:22] Production.INFO: ProcessCDR(1,14775699,1,1,2) [2025-03-27 17:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775699', 'tblTempUsageDetail_20' ) start [2025-03-27 17:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775699', 'tblTempUsageDetail_20' ) end [2025-03-27 17:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:28:29] Production.INFO: ==23140== Releasing lock... [2025-03-27 17:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:28:29] Production.INFO: 62.5 MB #Memory Used# [2025-03-27 17:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:29:06 [end_date_ymd] => 2025-03-27 17:29:06 [RateCDR] => 1 ) [2025-03-27 17:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:29:06' and `end` < '2025-03-27 17:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:29:20] Production.INFO: count ==4641 [2025-03-27 17:29:22] Production.ERROR: pbx CDR StartTime 2025-03-27 14:29:06 - End Time 2025-03-27 17:29:06 [2025-03-27 17:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775704', 'tblTempUsageDetail_20' ) start [2025-03-27 17:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775704', 'tblTempUsageDetail_20' ) end [2025-03-27 17:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775704', 'tblTempVendorCDR_20' ) start [2025-03-27 17:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775704', 'tblTempVendorCDR_20' ) end [2025-03-27 17:29:22] Production.INFO: ProcessCDR(1,14775704,1,1,2) [2025-03-27 17:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775704', 'tblTempUsageDetail_20' ) start [2025-03-27 17:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775704', 'tblTempUsageDetail_20' ) end [2025-03-27 17:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:29:28] Production.INFO: ==23213== Releasing lock... [2025-03-27 17:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:29:28] Production.INFO: 62.75 MB #Memory Used# [2025-03-27 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:30:06 [end_date_ymd] => 2025-03-27 17:30:06 [RateCDR] => 1 ) [2025-03-27 17:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:30:06' and `end` < '2025-03-27 17:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:30:20] Production.INFO: count ==4634 [2025-03-27 17:30:22] Production.ERROR: pbx CDR StartTime 2025-03-27 14:30:06 - End Time 2025-03-27 17:30:06 [2025-03-27 17:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775709', 'tblTempUsageDetail_20' ) start [2025-03-27 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775709', 'tblTempUsageDetail_20' ) end [2025-03-27 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775709', 'tblTempVendorCDR_20' ) start [2025-03-27 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775709', 'tblTempVendorCDR_20' ) end [2025-03-27 17:30:22] Production.INFO: ProcessCDR(1,14775709,1,1,2) [2025-03-27 17:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775709', 'tblTempUsageDetail_20' ) start [2025-03-27 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775709', 'tblTempUsageDetail_20' ) end [2025-03-27 17:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:30:27] Production.INFO: ==23291== Releasing lock... [2025-03-27 17:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:30:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-27 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:31:05 [end_date_ymd] => 2025-03-27 17:31:05 [RateCDR] => 1 ) [2025-03-27 17:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:31:05' and `end` < '2025-03-27 17:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:31:19] Production.INFO: count ==4609 [2025-03-27 17:31:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:31:05 - End Time 2025-03-27 17:31:05 [2025-03-27 17:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775715', 'tblTempUsageDetail_20' ) start [2025-03-27 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775715', 'tblTempUsageDetail_20' ) end [2025-03-27 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775715', 'tblTempVendorCDR_20' ) start [2025-03-27 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775715', 'tblTempVendorCDR_20' ) end [2025-03-27 17:31:21] Production.INFO: ProcessCDR(1,14775715,1,1,2) [2025-03-27 17:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775715', 'tblTempUsageDetail_20' ) start [2025-03-27 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775715', 'tblTempUsageDetail_20' ) end [2025-03-27 17:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:31:26] Production.INFO: ==23365== Releasing lock... [2025-03-27 17:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:31:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-27 17:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:32:06 [end_date_ymd] => 2025-03-27 17:32:06 [RateCDR] => 1 ) [2025-03-27 17:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:32:06' and `end` < '2025-03-27 17:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:32:19] Production.INFO: count ==4600 [2025-03-27 17:32:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:32:06 - End Time 2025-03-27 17:32:06 [2025-03-27 17:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775720', 'tblTempUsageDetail_20' ) start [2025-03-27 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775720', 'tblTempUsageDetail_20' ) end [2025-03-27 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775720', 'tblTempVendorCDR_20' ) start [2025-03-27 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775720', 'tblTempVendorCDR_20' ) end [2025-03-27 17:32:21] Production.INFO: ProcessCDR(1,14775720,1,1,2) [2025-03-27 17:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775720', 'tblTempUsageDetail_20' ) start [2025-03-27 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775720', 'tblTempUsageDetail_20' ) end [2025-03-27 17:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:32:27] Production.INFO: ==23438== Releasing lock... [2025-03-27 17:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:32:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-27 17:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:33:06 [end_date_ymd] => 2025-03-27 17:33:06 [RateCDR] => 1 ) [2025-03-27 17:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:33:06' and `end` < '2025-03-27 17:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:33:19] Production.INFO: count ==4603 [2025-03-27 17:33:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:33:06 - End Time 2025-03-27 17:33:06 [2025-03-27 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775725', 'tblTempUsageDetail_20' ) start [2025-03-27 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775725', 'tblTempUsageDetail_20' ) end [2025-03-27 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775725', 'tblTempVendorCDR_20' ) start [2025-03-27 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775725', 'tblTempVendorCDR_20' ) end [2025-03-27 17:33:21] Production.INFO: ProcessCDR(1,14775725,1,1,2) [2025-03-27 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775725', 'tblTempUsageDetail_20' ) start [2025-03-27 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775725', 'tblTempUsageDetail_20' ) end [2025-03-27 17:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:33:27] Production.INFO: ==23512== Releasing lock... [2025-03-27 17:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:33:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-27 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:34:05 [end_date_ymd] => 2025-03-27 17:34:05 [RateCDR] => 1 ) [2025-03-27 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:34:05' and `end` < '2025-03-27 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:34:19] Production.INFO: count ==4596 [2025-03-27 17:34:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:34:05 - End Time 2025-03-27 17:34:05 [2025-03-27 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775730', 'tblTempUsageDetail_20' ) start [2025-03-27 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775730', 'tblTempUsageDetail_20' ) end [2025-03-27 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775730', 'tblTempVendorCDR_20' ) start [2025-03-27 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775730', 'tblTempVendorCDR_20' ) end [2025-03-27 17:34:21] Production.INFO: ProcessCDR(1,14775730,1,1,2) [2025-03-27 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775730', 'tblTempUsageDetail_20' ) start [2025-03-27 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775730', 'tblTempUsageDetail_20' ) end [2025-03-27 17:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:34:27] Production.INFO: ==23587== Releasing lock... [2025-03-27 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:34:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-27 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:35:05 [end_date_ymd] => 2025-03-27 17:35:05 [RateCDR] => 1 ) [2025-03-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-03-27 14:35:05' and `end` < '2025-03-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-03-27 17:35:19] Production.INFO: count ==4612 [2025-03-27 17:35:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:35:05 - End Time 2025-03-27 17:35:05 [2025-03-27 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775735', 'tblTempUsageDetail_20' ) start [2025-03-27 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775735', 'tblTempUsageDetail_20' ) end [2025-03-27 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775735', 'tblTempVendorCDR_20' ) start [2025-03-27 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775735', 'tblTempVendorCDR_20' ) end [2025-03-27 17:35:21] Production.INFO: ProcessCDR(1,14775735,1,1,2) [2025-03-27 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775735', 'tblTempUsageDetail_20' ) start [2025-03-27 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775735', 'tblTempUsageDetail_20' ) end [2025-03-27 17:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:35:27] Production.INFO: ==23663== Releasing lock... [2025-03-27 17:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:35:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-27 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:36:06 [end_date_ymd] => 2025-03-27 17:36:06 [RateCDR] => 1 ) [2025-03-27 17:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:36:06' and `end` < '2025-03-27 17:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:36:20] Production.INFO: count ==4608 [2025-03-27 17:36:22] Production.ERROR: pbx CDR StartTime 2025-03-27 14:36:06 - End Time 2025-03-27 17:36:06 [2025-03-27 17:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775740', 'tblTempUsageDetail_20' ) start [2025-03-27 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775740', 'tblTempUsageDetail_20' ) end [2025-03-27 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775740', 'tblTempVendorCDR_20' ) start [2025-03-27 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775740', 'tblTempVendorCDR_20' ) end [2025-03-27 17:36:22] Production.INFO: ProcessCDR(1,14775740,1,1,2) [2025-03-27 17:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775740', 'tblTempUsageDetail_20' ) start [2025-03-27 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775740', 'tblTempUsageDetail_20' ) end [2025-03-27 17:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:36:27] Production.INFO: ==23741== Releasing lock... [2025-03-27 17:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:36:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-27 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:37:06 [end_date_ymd] => 2025-03-27 17:37:06 [RateCDR] => 1 ) [2025-03-27 17:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:37:06' and `end` < '2025-03-27 17:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:37:20] Production.INFO: count ==4581 [2025-03-27 17:37:22] Production.ERROR: pbx CDR StartTime 2025-03-27 14:37:06 - End Time 2025-03-27 17:37:06 [2025-03-27 17:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775745', 'tblTempUsageDetail_20' ) start [2025-03-27 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775745', 'tblTempUsageDetail_20' ) end [2025-03-27 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775745', 'tblTempVendorCDR_20' ) start [2025-03-27 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775745', 'tblTempVendorCDR_20' ) end [2025-03-27 17:37:22] Production.INFO: ProcessCDR(1,14775745,1,1,2) [2025-03-27 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775745', 'tblTempUsageDetail_20' ) start [2025-03-27 17:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775745', 'tblTempUsageDetail_20' ) end [2025-03-27 17:37:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:37:28] Production.INFO: ==23817== Releasing lock... [2025-03-27 17:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:37:28] Production.INFO: 62.25 MB #Memory Used# [2025-03-27 17:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:38:06 [end_date_ymd] => 2025-03-27 17:38:06 [RateCDR] => 1 ) [2025-03-27 17:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:38:06' and `end` < '2025-03-27 17:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:38:19] Production.INFO: count ==4579 [2025-03-27 17:38:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:38:06 - End Time 2025-03-27 17:38:06 [2025-03-27 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775750', 'tblTempUsageDetail_20' ) start [2025-03-27 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775750', 'tblTempUsageDetail_20' ) end [2025-03-27 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775750', 'tblTempVendorCDR_20' ) start [2025-03-27 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775750', 'tblTempVendorCDR_20' ) end [2025-03-27 17:38:22] Production.INFO: ProcessCDR(1,14775750,1,1,2) [2025-03-27 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775750', 'tblTempUsageDetail_20' ) start [2025-03-27 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775750', 'tblTempUsageDetail_20' ) end [2025-03-27 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:38:26] Production.INFO: ==23892== Releasing lock... [2025-03-27 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:38:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-27 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:39:06 [end_date_ymd] => 2025-03-27 17:39:06 [RateCDR] => 1 ) [2025-03-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-03-27 14:39:06' and `end` < '2025-03-27 17:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:39:19] Production.INFO: count ==4578 [2025-03-27 17:39:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:39:06 - End Time 2025-03-27 17:39:06 [2025-03-27 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775755', 'tblTempUsageDetail_20' ) start [2025-03-27 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775755', 'tblTempUsageDetail_20' ) end [2025-03-27 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775755', 'tblTempVendorCDR_20' ) start [2025-03-27 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775755', 'tblTempVendorCDR_20' ) end [2025-03-27 17:39:21] Production.INFO: ProcessCDR(1,14775755,1,1,2) [2025-03-27 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775755', 'tblTempUsageDetail_20' ) start [2025-03-27 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775755', 'tblTempUsageDetail_20' ) end [2025-03-27 17:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:39:27] Production.INFO: ==23967== Releasing lock... [2025-03-27 17:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:39:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-27 17:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:40:07 [end_date_ymd] => 2025-03-27 17:40:07 [RateCDR] => 1 ) [2025-03-27 17:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:40:07' and `end` < '2025-03-27 17:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:40:20] Production.INFO: count ==4589 [2025-03-27 17:40:22] Production.ERROR: pbx CDR StartTime 2025-03-27 14:40:07 - End Time 2025-03-27 17:40:07 [2025-03-27 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775761', 'tblTempUsageDetail_20' ) start [2025-03-27 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775761', 'tblTempUsageDetail_20' ) end [2025-03-27 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775761', 'tblTempVendorCDR_20' ) start [2025-03-27 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775761', 'tblTempVendorCDR_20' ) end [2025-03-27 17:40:23] Production.INFO: ProcessCDR(1,14775761,1,1,2) [2025-03-27 17:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775761', 'tblTempUsageDetail_20' ) start [2025-03-27 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775761', 'tblTempUsageDetail_20' ) end [2025-03-27 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:40:26] Production.INFO: ==24044== Releasing lock... [2025-03-27 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:40:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-27 17:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:41:06 [end_date_ymd] => 2025-03-27 17:41:06 [RateCDR] => 1 ) [2025-03-27 17:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:41:06' and `end` < '2025-03-27 17:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:41:20] Production.INFO: count ==4574 [2025-03-27 17:41:22] Production.ERROR: pbx CDR StartTime 2025-03-27 14:41:06 - End Time 2025-03-27 17:41:06 [2025-03-27 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775766', 'tblTempUsageDetail_20' ) start [2025-03-27 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775766', 'tblTempUsageDetail_20' ) end [2025-03-27 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775766', 'tblTempVendorCDR_20' ) start [2025-03-27 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775766', 'tblTempVendorCDR_20' ) end [2025-03-27 17:41:22] Production.INFO: ProcessCDR(1,14775766,1,1,2) [2025-03-27 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775766', 'tblTempUsageDetail_20' ) start [2025-03-27 17:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775766', 'tblTempUsageDetail_20' ) end [2025-03-27 17:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:41:28] Production.INFO: ==24123== Releasing lock... [2025-03-27 17:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:41:28] Production.INFO: 62.25 MB #Memory Used# [2025-03-27 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:42:06 [end_date_ymd] => 2025-03-27 17:42:06 [RateCDR] => 1 ) [2025-03-27 17:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:42:06' and `end` < '2025-03-27 17:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:42:20] Production.INFO: count ==4604 [2025-03-27 17:42:22] Production.ERROR: pbx CDR StartTime 2025-03-27 14:42:06 - End Time 2025-03-27 17:42:06 [2025-03-27 17:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775771', 'tblTempUsageDetail_20' ) start [2025-03-27 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775771', 'tblTempUsageDetail_20' ) end [2025-03-27 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775771', 'tblTempVendorCDR_20' ) start [2025-03-27 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775771', 'tblTempVendorCDR_20' ) end [2025-03-27 17:42:22] Production.INFO: ProcessCDR(1,14775771,1,1,2) [2025-03-27 17:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775771', 'tblTempUsageDetail_20' ) start [2025-03-27 17:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775771', 'tblTempUsageDetail_20' ) end [2025-03-27 17:42:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:42:28] Production.INFO: ==24203== Releasing lock... [2025-03-27 17:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:42:28] Production.INFO: 62.5 MB #Memory Used# [2025-03-27 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:43:05 [end_date_ymd] => 2025-03-27 17:43:05 [RateCDR] => 1 ) [2025-03-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-03-27 14:43:05' and `end` < '2025-03-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-03-27 17:43:18] Production.INFO: count ==4615 [2025-03-27 17:43:20] Production.ERROR: pbx CDR StartTime 2025-03-27 14:43:05 - End Time 2025-03-27 17:43:05 [2025-03-27 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775776', 'tblTempUsageDetail_20' ) start [2025-03-27 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775776', 'tblTempUsageDetail_20' ) end [2025-03-27 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775776', 'tblTempVendorCDR_20' ) start [2025-03-27 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775776', 'tblTempVendorCDR_20' ) end [2025-03-27 17:43:21] Production.INFO: ProcessCDR(1,14775776,1,1,2) [2025-03-27 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775776', 'tblTempUsageDetail_20' ) start [2025-03-27 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775776', 'tblTempUsageDetail_20' ) end [2025-03-27 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:43:26] Production.INFO: ==24313== Releasing lock... [2025-03-27 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:43:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-27 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:44:06 [end_date_ymd] => 2025-03-27 17:44:06 [RateCDR] => 1 ) [2025-03-27 17:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:44:06' and `end` < '2025-03-27 17:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:44:19] Production.INFO: count ==4614 [2025-03-27 17:44:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:44:06 - End Time 2025-03-27 17:44:06 [2025-03-27 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775781', 'tblTempUsageDetail_20' ) start [2025-03-27 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775781', 'tblTempUsageDetail_20' ) end [2025-03-27 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775781', 'tblTempVendorCDR_20' ) start [2025-03-27 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775781', 'tblTempVendorCDR_20' ) end [2025-03-27 17:44:21] Production.INFO: ProcessCDR(1,14775781,1,1,2) [2025-03-27 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775781', 'tblTempUsageDetail_20' ) start [2025-03-27 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775781', 'tblTempUsageDetail_20' ) end [2025-03-27 17:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:44:27] Production.INFO: ==24387== Releasing lock... [2025-03-27 17:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:44:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-27 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:45:06 [end_date_ymd] => 2025-03-27 17:45:06 [RateCDR] => 1 ) [2025-03-27 17:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:45:06' and `end` < '2025-03-27 17:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:45:19] Production.INFO: count ==4609 [2025-03-27 17:45:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:45:06 - End Time 2025-03-27 17:45:06 [2025-03-27 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775786', 'tblTempUsageDetail_20' ) start [2025-03-27 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775786', 'tblTempUsageDetail_20' ) end [2025-03-27 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775786', 'tblTempVendorCDR_20' ) start [2025-03-27 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775786', 'tblTempVendorCDR_20' ) end [2025-03-27 17:45:21] Production.INFO: ProcessCDR(1,14775786,1,1,2) [2025-03-27 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775786', 'tblTempUsageDetail_20' ) start [2025-03-27 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775786', 'tblTempUsageDetail_20' ) end [2025-03-27 17:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:45:27] Production.INFO: ==24460== Releasing lock... [2025-03-27 17:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:45:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-27 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:46:06 [end_date_ymd] => 2025-03-27 17:46:06 [RateCDR] => 1 ) [2025-03-27 17:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:46:06' and `end` < '2025-03-27 17:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:46:20] Production.INFO: count ==4635 [2025-03-27 17:46:22] Production.ERROR: pbx CDR StartTime 2025-03-27 14:46:06 - End Time 2025-03-27 17:46:06 [2025-03-27 17:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775791', 'tblTempUsageDetail_20' ) start [2025-03-27 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775791', 'tblTempUsageDetail_20' ) end [2025-03-27 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775791', 'tblTempVendorCDR_20' ) start [2025-03-27 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775791', 'tblTempVendorCDR_20' ) end [2025-03-27 17:46:22] Production.INFO: ProcessCDR(1,14775791,1,1,2) [2025-03-27 17:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775791', 'tblTempUsageDetail_20' ) start [2025-03-27 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775791', 'tblTempUsageDetail_20' ) end [2025-03-27 17:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:46:27] Production.INFO: ==24534== Releasing lock... [2025-03-27 17:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:46:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-27 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:47:05 [end_date_ymd] => 2025-03-27 17:47:05 [RateCDR] => 1 ) [2025-03-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-03-27 14:47:05' and `end` < '2025-03-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-03-27 17:47:19] Production.INFO: count ==4637 [2025-03-27 17:47:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:47:05 - End Time 2025-03-27 17:47:05 [2025-03-27 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775796', 'tblTempUsageDetail_20' ) start [2025-03-27 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775796', 'tblTempUsageDetail_20' ) end [2025-03-27 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775796', 'tblTempVendorCDR_20' ) start [2025-03-27 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775796', 'tblTempVendorCDR_20' ) end [2025-03-27 17:47:21] Production.INFO: ProcessCDR(1,14775796,1,1,2) [2025-03-27 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775796', 'tblTempUsageDetail_20' ) start [2025-03-27 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775796', 'tblTempUsageDetail_20' ) end [2025-03-27 17:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:47:26] Production.INFO: ==24606== Releasing lock... [2025-03-27 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:47:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-27 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:48:06 [end_date_ymd] => 2025-03-27 17:48:06 [RateCDR] => 1 ) [2025-03-27 17:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:48:06' and `end` < '2025-03-27 17:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:48:19] Production.INFO: count ==4638 [2025-03-27 17:48:22] Production.ERROR: pbx CDR StartTime 2025-03-27 14:48:06 - End Time 2025-03-27 17:48:06 [2025-03-27 17:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775801', 'tblTempUsageDetail_20' ) start [2025-03-27 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775801', 'tblTempUsageDetail_20' ) end [2025-03-27 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775801', 'tblTempVendorCDR_20' ) start [2025-03-27 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775801', 'tblTempVendorCDR_20' ) end [2025-03-27 17:48:22] Production.INFO: ProcessCDR(1,14775801,1,1,2) [2025-03-27 17:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775801', 'tblTempUsageDetail_20' ) start [2025-03-27 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775801', 'tblTempUsageDetail_20' ) end [2025-03-27 17:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:48:27] Production.INFO: ==24684== Releasing lock... [2025-03-27 17:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:48:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-27 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:49:06 [end_date_ymd] => 2025-03-27 17:49:06 [RateCDR] => 1 ) [2025-03-27 17:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:49:06' and `end` < '2025-03-27 17:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:49:19] Production.INFO: count ==4623 [2025-03-27 17:49:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:49:06 - End Time 2025-03-27 17:49:06 [2025-03-27 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775806', 'tblTempUsageDetail_20' ) start [2025-03-27 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775806', 'tblTempUsageDetail_20' ) end [2025-03-27 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775806', 'tblTempVendorCDR_20' ) start [2025-03-27 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775806', 'tblTempVendorCDR_20' ) end [2025-03-27 17:49:21] Production.INFO: ProcessCDR(1,14775806,1,1,2) [2025-03-27 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775806', 'tblTempUsageDetail_20' ) start [2025-03-27 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775806', 'tblTempUsageDetail_20' ) end [2025-03-27 17:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:49:27] Production.INFO: ==24763== Releasing lock... [2025-03-27 17:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:49:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-27 17:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:50:07 [end_date_ymd] => 2025-03-27 17:50:07 [RateCDR] => 1 ) [2025-03-27 17:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:50:07' and `end` < '2025-03-27 17:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:50:21] Production.INFO: count ==4606 [2025-03-27 17:50:23] Production.ERROR: pbx CDR StartTime 2025-03-27 14:50:07 - End Time 2025-03-27 17:50:07 [2025-03-27 17:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775812', 'tblTempUsageDetail_20' ) start [2025-03-27 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775812', 'tblTempUsageDetail_20' ) end [2025-03-27 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775812', 'tblTempVendorCDR_20' ) start [2025-03-27 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775812', 'tblTempVendorCDR_20' ) end [2025-03-27 17:50:23] Production.INFO: ProcessCDR(1,14775812,1,1,2) [2025-03-27 17:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775812', 'tblTempUsageDetail_20' ) start [2025-03-27 17:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775812', 'tblTempUsageDetail_20' ) end [2025-03-27 17:50:29] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:50:29] Production.INFO: ==24838== Releasing lock... [2025-03-27 17:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:50:29] Production.INFO: 62.5 MB #Memory Used# [2025-03-27 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:51:06 [end_date_ymd] => 2025-03-27 17:51:06 [RateCDR] => 1 ) [2025-03-27 17:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:51:06' and `end` < '2025-03-27 17:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:51:19] Production.INFO: count ==4541 [2025-03-27 17:51:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:51:06 - End Time 2025-03-27 17:51:06 [2025-03-27 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775817', 'tblTempUsageDetail_20' ) start [2025-03-27 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775817', 'tblTempUsageDetail_20' ) end [2025-03-27 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775817', 'tblTempVendorCDR_20' ) start [2025-03-27 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775817', 'tblTempVendorCDR_20' ) end [2025-03-27 17:51:21] Production.INFO: ProcessCDR(1,14775817,1,1,2) [2025-03-27 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775817', 'tblTempUsageDetail_20' ) start [2025-03-27 17:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775817', 'tblTempUsageDetail_20' ) end [2025-03-27 17:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:51:27] Production.INFO: ==24914== Releasing lock... [2025-03-27 17:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:51:27] Production.INFO: 62 MB #Memory Used# [2025-03-27 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:52:05 [end_date_ymd] => 2025-03-27 17:52:05 [RateCDR] => 1 ) [2025-03-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-03-27 14:52:05' and `end` < '2025-03-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-03-27 17:52:18] Production.INFO: count ==4530 [2025-03-27 17:52:20] Production.ERROR: pbx CDR StartTime 2025-03-27 14:52:05 - End Time 2025-03-27 17:52:05 [2025-03-27 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775822', 'tblTempUsageDetail_20' ) start [2025-03-27 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775822', 'tblTempUsageDetail_20' ) end [2025-03-27 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775822', 'tblTempVendorCDR_20' ) start [2025-03-27 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775822', 'tblTempVendorCDR_20' ) end [2025-03-27 17:52:20] Production.INFO: ProcessCDR(1,14775822,1,1,2) [2025-03-27 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775822', 'tblTempUsageDetail_20' ) start [2025-03-27 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775822', 'tblTempUsageDetail_20' ) end [2025-03-27 17:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:52:26] Production.INFO: ==24986== Releasing lock... [2025-03-27 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:52:26] Production.INFO: 62 MB #Memory Used# [2025-03-27 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:53:06 [end_date_ymd] => 2025-03-27 17:53:06 [RateCDR] => 1 ) [2025-03-27 17:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:53:06' and `end` < '2025-03-27 17:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:53:19] Production.INFO: count ==4519 [2025-03-27 17:53:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:53:06 - End Time 2025-03-27 17:53:06 [2025-03-27 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775827', 'tblTempUsageDetail_20' ) start [2025-03-27 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775827', 'tblTempUsageDetail_20' ) end [2025-03-27 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775827', 'tblTempVendorCDR_20' ) start [2025-03-27 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775827', 'tblTempVendorCDR_20' ) end [2025-03-27 17:53:21] Production.INFO: ProcessCDR(1,14775827,1,1,2) [2025-03-27 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775827', 'tblTempUsageDetail_20' ) start [2025-03-27 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775827', 'tblTempUsageDetail_20' ) end [2025-03-27 17:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:53:27] Production.INFO: ==25060== Releasing lock... [2025-03-27 17:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:53:27] Production.INFO: 61.75 MB #Memory Used# [2025-03-27 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:54:06 [end_date_ymd] => 2025-03-27 17:54:06 [RateCDR] => 1 ) [2025-03-27 17:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:54:06' and `end` < '2025-03-27 17:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:54:19] Production.INFO: count ==4511 [2025-03-27 17:54:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:54:06 - End Time 2025-03-27 17:54:06 [2025-03-27 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775832', 'tblTempUsageDetail_20' ) start [2025-03-27 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775832', 'tblTempUsageDetail_20' ) end [2025-03-27 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775832', 'tblTempVendorCDR_20' ) start [2025-03-27 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775832', 'tblTempVendorCDR_20' ) end [2025-03-27 17:54:21] Production.INFO: ProcessCDR(1,14775832,1,1,2) [2025-03-27 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775832', 'tblTempUsageDetail_20' ) start [2025-03-27 17:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775832', 'tblTempUsageDetail_20' ) end [2025-03-27 17:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:54:27] Production.INFO: ==25133== Releasing lock... [2025-03-27 17:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:54:27] Production.INFO: 61.75 MB #Memory Used# [2025-03-27 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:55:06 [end_date_ymd] => 2025-03-27 17:55:06 [RateCDR] => 1 ) [2025-03-27 17:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:55:06' and `end` < '2025-03-27 17:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:55:19] Production.INFO: count ==4498 [2025-03-27 17:55:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:55:06 - End Time 2025-03-27 17:55:06 [2025-03-27 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775837', 'tblTempUsageDetail_20' ) start [2025-03-27 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775837', 'tblTempUsageDetail_20' ) end [2025-03-27 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775837', 'tblTempVendorCDR_20' ) start [2025-03-27 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775837', 'tblTempVendorCDR_20' ) end [2025-03-27 17:55:21] Production.INFO: ProcessCDR(1,14775837,1,1,2) [2025-03-27 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775837', 'tblTempUsageDetail_20' ) start [2025-03-27 17:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775837', 'tblTempUsageDetail_20' ) end [2025-03-27 17:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:55:28] Production.INFO: ==25209== Releasing lock... [2025-03-27 17:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:55:28] Production.INFO: 61.75 MB #Memory Used# [2025-03-27 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:56:05 [end_date_ymd] => 2025-03-27 17:56:05 [RateCDR] => 1 ) [2025-03-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-03-27 14:56:05' and `end` < '2025-03-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-03-27 17:56:19] Production.INFO: count ==4460 [2025-03-27 17:56:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:56:05 - End Time 2025-03-27 17:56:05 [2025-03-27 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775842', 'tblTempUsageDetail_20' ) start [2025-03-27 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775842', 'tblTempUsageDetail_20' ) end [2025-03-27 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775842', 'tblTempVendorCDR_20' ) start [2025-03-27 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775842', 'tblTempVendorCDR_20' ) end [2025-03-27 17:56:21] Production.INFO: ProcessCDR(1,14775842,1,1,2) [2025-03-27 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775842', 'tblTempUsageDetail_20' ) start [2025-03-27 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775842', 'tblTempUsageDetail_20' ) end [2025-03-27 17:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:56:27] Production.INFO: ==25284== Releasing lock... [2025-03-27 17:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:56:27] Production.INFO: 61.75 MB #Memory Used# [2025-03-27 17:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:57:06 [end_date_ymd] => 2025-03-27 17:57:06 [RateCDR] => 1 ) [2025-03-27 17:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:57:06' and `end` < '2025-03-27 17:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:57:19] Production.INFO: count ==4423 [2025-03-27 17:57:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:57:06 - End Time 2025-03-27 17:57:06 [2025-03-27 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775847', 'tblTempUsageDetail_20' ) start [2025-03-27 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775847', 'tblTempUsageDetail_20' ) end [2025-03-27 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775847', 'tblTempVendorCDR_20' ) start [2025-03-27 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775847', 'tblTempVendorCDR_20' ) end [2025-03-27 17:57:21] Production.INFO: ProcessCDR(1,14775847,1,1,2) [2025-03-27 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775847', 'tblTempUsageDetail_20' ) start [2025-03-27 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775847', 'tblTempUsageDetail_20' ) end [2025-03-27 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:57:25] Production.INFO: ==25357== Releasing lock... [2025-03-27 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:57:25] Production.INFO: 61 MB #Memory Used# [2025-03-27 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:58:05 [end_date_ymd] => 2025-03-27 17:58:05 [RateCDR] => 1 ) [2025-03-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-03-27 14:58:05' and `end` < '2025-03-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-03-27 17:58:19] Production.INFO: count ==4407 [2025-03-27 17:58:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:58:05 - End Time 2025-03-27 17:58:05 [2025-03-27 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775852', 'tblTempUsageDetail_20' ) start [2025-03-27 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775852', 'tblTempUsageDetail_20' ) end [2025-03-27 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775852', 'tblTempVendorCDR_20' ) start [2025-03-27 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775852', 'tblTempVendorCDR_20' ) end [2025-03-27 17:58:21] Production.INFO: ProcessCDR(1,14775852,1,1,2) [2025-03-27 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775852', 'tblTempUsageDetail_20' ) start [2025-03-27 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775852', 'tblTempUsageDetail_20' ) end [2025-03-27 17:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:58:27] Production.INFO: ==25429== Releasing lock... [2025-03-27 17:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:58:27] Production.INFO: 61 MB #Memory Used# [2025-03-27 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 14:59:06 [end_date_ymd] => 2025-03-27 17:59:06 [RateCDR] => 1 ) [2025-03-27 17:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 14:59:06' and `end` < '2025-03-27 17:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 17:59:19] Production.INFO: count ==4392 [2025-03-27 17:59:21] Production.ERROR: pbx CDR StartTime 2025-03-27 14:59:06 - End Time 2025-03-27 17:59:06 [2025-03-27 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775857', 'tblTempUsageDetail_20' ) start [2025-03-27 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775857', 'tblTempUsageDetail_20' ) end [2025-03-27 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775857', 'tblTempVendorCDR_20' ) start [2025-03-27 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775857', 'tblTempVendorCDR_20' ) end [2025-03-27 17:59:22] Production.INFO: ProcessCDR(1,14775857,1,1,2) [2025-03-27 17:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 17:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 17:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775857', 'tblTempUsageDetail_20' ) start [2025-03-27 17:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775857', 'tblTempUsageDetail_20' ) end [2025-03-27 17:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 17:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 17:59:28] Production.INFO: ==25539== Releasing lock... [2025-03-27 17:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 17:59:28] Production.INFO: 61 MB #Memory Used# [2025-03-27 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:00:06 [end_date_ymd] => 2025-03-27 18:00:06 [RateCDR] => 1 ) [2025-03-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-03-27 15:00:06' and `end` < '2025-03-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-03-27 18:00:20] Production.INFO: count ==4362 [2025-03-27 18:00:22] Production.ERROR: pbx CDR StartTime 2025-03-27 15:00:06 - End Time 2025-03-27 18:00:06 [2025-03-27 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775863', 'tblTempUsageDetail_20' ) start [2025-03-27 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775863', 'tblTempUsageDetail_20' ) end [2025-03-27 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775863', 'tblTempVendorCDR_20' ) start [2025-03-27 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775863', 'tblTempVendorCDR_20' ) end [2025-03-27 18:00:22] Production.INFO: ProcessCDR(1,14775863,1,1,2) [2025-03-27 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775863', 'tblTempUsageDetail_20' ) start [2025-03-27 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775863', 'tblTempUsageDetail_20' ) end [2025-03-27 18:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:00:26] Production.INFO: ==25617== Releasing lock... [2025-03-27 18:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:00:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-27 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:01:06 [end_date_ymd] => 2025-03-27 18:01:06 [RateCDR] => 1 ) [2025-03-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-03-27 15:01:06' and `end` < '2025-03-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-03-27 18:01:20] Production.INFO: count ==4317 [2025-03-27 18:01:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:01:06 - End Time 2025-03-27 18:01:06 [2025-03-27 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775868', 'tblTempUsageDetail_20' ) start [2025-03-27 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775868', 'tblTempUsageDetail_20' ) end [2025-03-27 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775868', 'tblTempVendorCDR_20' ) start [2025-03-27 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775868', 'tblTempVendorCDR_20' ) end [2025-03-27 18:01:22] Production.INFO: ProcessCDR(1,14775868,1,1,2) [2025-03-27 18:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775868', 'tblTempUsageDetail_20' ) start [2025-03-27 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775868', 'tblTempUsageDetail_20' ) end [2025-03-27 18:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:01:28] Production.INFO: ==25718== Releasing lock... [2025-03-27 18:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:01:28] Production.INFO: 60.25 MB #Memory Used# [2025-03-27 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:02:05 [end_date_ymd] => 2025-03-27 18:02:05 [RateCDR] => 1 ) [2025-03-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-03-27 15:02:05' and `end` < '2025-03-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-03-27 18:02:19] Production.INFO: count ==4328 [2025-03-27 18:02:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:02:05 - End Time 2025-03-27 18:02:05 [2025-03-27 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775873', 'tblTempUsageDetail_20' ) start [2025-03-27 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775873', 'tblTempUsageDetail_20' ) end [2025-03-27 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775873', 'tblTempVendorCDR_20' ) start [2025-03-27 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775873', 'tblTempVendorCDR_20' ) end [2025-03-27 18:02:21] Production.INFO: ProcessCDR(1,14775873,1,1,2) [2025-03-27 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775873', 'tblTempUsageDetail_20' ) start [2025-03-27 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775873', 'tblTempUsageDetail_20' ) end [2025-03-27 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:02:26] Production.INFO: ==25798== Releasing lock... [2025-03-27 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:02:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-27 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:03:06 [end_date_ymd] => 2025-03-27 18:03:06 [RateCDR] => 1 ) [2025-03-27 18:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:03:06' and `end` < '2025-03-27 18:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:03:20] Production.INFO: count ==4339 [2025-03-27 18:03:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:03:06 - End Time 2025-03-27 18:03:06 [2025-03-27 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775878', 'tblTempUsageDetail_20' ) start [2025-03-27 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775878', 'tblTempUsageDetail_20' ) end [2025-03-27 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775878', 'tblTempVendorCDR_20' ) start [2025-03-27 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775878', 'tblTempVendorCDR_20' ) end [2025-03-27 18:03:22] Production.INFO: ProcessCDR(1,14775878,1,1,2) [2025-03-27 18:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775878', 'tblTempUsageDetail_20' ) start [2025-03-27 18:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775878', 'tblTempUsageDetail_20' ) end [2025-03-27 18:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:03:27] Production.INFO: ==25872== Releasing lock... [2025-03-27 18:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:03:27] Production.INFO: 60.5 MB #Memory Used# [2025-03-27 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:04:06 [end_date_ymd] => 2025-03-27 18:04:06 [RateCDR] => 1 ) [2025-03-27 18:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:04:06' and `end` < '2025-03-27 18:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:04:19] Production.INFO: count ==4343 [2025-03-27 18:04:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:04:06 - End Time 2025-03-27 18:04:06 [2025-03-27 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775883', 'tblTempUsageDetail_20' ) start [2025-03-27 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775883', 'tblTempUsageDetail_20' ) end [2025-03-27 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775883', 'tblTempVendorCDR_20' ) start [2025-03-27 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775883', 'tblTempVendorCDR_20' ) end [2025-03-27 18:04:21] Production.INFO: ProcessCDR(1,14775883,1,1,2) [2025-03-27 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775883', 'tblTempUsageDetail_20' ) start [2025-03-27 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775883', 'tblTempUsageDetail_20' ) end [2025-03-27 18:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:04:27] Production.INFO: ==25946== Releasing lock... [2025-03-27 18:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:04:27] Production.INFO: 60.5 MB #Memory Used# [2025-03-27 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:05:05 [end_date_ymd] => 2025-03-27 18:05:05 [RateCDR] => 1 ) [2025-03-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-03-27 15:05:05' and `end` < '2025-03-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-03-27 18:05:18] Production.INFO: count ==4334 [2025-03-27 18:05:20] Production.ERROR: pbx CDR StartTime 2025-03-27 15:05:05 - End Time 2025-03-27 18:05:05 [2025-03-27 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775888', 'tblTempUsageDetail_20' ) start [2025-03-27 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775888', 'tblTempUsageDetail_20' ) end [2025-03-27 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775888', 'tblTempVendorCDR_20' ) start [2025-03-27 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775888', 'tblTempVendorCDR_20' ) end [2025-03-27 18:05:21] Production.INFO: ProcessCDR(1,14775888,1,1,2) [2025-03-27 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775888', 'tblTempUsageDetail_20' ) start [2025-03-27 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775888', 'tblTempUsageDetail_20' ) end [2025-03-27 18:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:05:26] Production.INFO: ==26016== Releasing lock... [2025-03-27 18:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:05:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-27 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:06:06 [end_date_ymd] => 2025-03-27 18:06:06 [RateCDR] => 1 ) [2025-03-27 18:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:06:06' and `end` < '2025-03-27 18:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:06:19] Production.INFO: count ==4321 [2025-03-27 18:06:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:06:06 - End Time 2025-03-27 18:06:06 [2025-03-27 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775893', 'tblTempUsageDetail_20' ) start [2025-03-27 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775893', 'tblTempUsageDetail_20' ) end [2025-03-27 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775893', 'tblTempVendorCDR_20' ) start [2025-03-27 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775893', 'tblTempVendorCDR_20' ) end [2025-03-27 18:06:21] Production.INFO: ProcessCDR(1,14775893,1,1,2) [2025-03-27 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775893', 'tblTempUsageDetail_20' ) start [2025-03-27 18:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775893', 'tblTempUsageDetail_20' ) end [2025-03-27 18:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:06:27] Production.INFO: ==26092== Releasing lock... [2025-03-27 18:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:06:27] Production.INFO: 60.25 MB #Memory Used# [2025-03-27 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:07:05 [end_date_ymd] => 2025-03-27 18:07:05 [RateCDR] => 1 ) [2025-03-27 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:07:05' and `end` < '2025-03-27 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:07:19] Production.INFO: count ==4316 [2025-03-27 18:07:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:07:05 - End Time 2025-03-27 18:07:05 [2025-03-27 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775898', 'tblTempUsageDetail_20' ) start [2025-03-27 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775898', 'tblTempUsageDetail_20' ) end [2025-03-27 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775898', 'tblTempVendorCDR_20' ) start [2025-03-27 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775898', 'tblTempVendorCDR_20' ) end [2025-03-27 18:07:21] Production.INFO: ProcessCDR(1,14775898,1,1,2) [2025-03-27 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775898', 'tblTempUsageDetail_20' ) start [2025-03-27 18:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775898', 'tblTempUsageDetail_20' ) end [2025-03-27 18:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:07:27] Production.INFO: ==26164== Releasing lock... [2025-03-27 18:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:07:27] Production.INFO: 60.25 MB #Memory Used# [2025-03-27 18:08:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:08:07 [end_date_ymd] => 2025-03-27 18:08:07 [RateCDR] => 1 ) [2025-03-27 18:08:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:08:07' and `end` < '2025-03-27 18:08:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:08:20] Production.INFO: count ==4312 [2025-03-27 18:08:22] Production.ERROR: pbx CDR StartTime 2025-03-27 15:08:07 - End Time 2025-03-27 18:08:07 [2025-03-27 18:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775903', 'tblTempUsageDetail_20' ) start [2025-03-27 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775903', 'tblTempUsageDetail_20' ) end [2025-03-27 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775903', 'tblTempVendorCDR_20' ) start [2025-03-27 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775903', 'tblTempVendorCDR_20' ) end [2025-03-27 18:08:22] Production.INFO: ProcessCDR(1,14775903,1,1,2) [2025-03-27 18:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775903', 'tblTempUsageDetail_20' ) start [2025-03-27 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775903', 'tblTempUsageDetail_20' ) end [2025-03-27 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:08:26] Production.INFO: ==26239== Releasing lock... [2025-03-27 18:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:08:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-27 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:09:05 [end_date_ymd] => 2025-03-27 18:09:05 [RateCDR] => 1 ) [2025-03-27 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:09:05' and `end` < '2025-03-27 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:09:19] Production.INFO: count ==4300 [2025-03-27 18:09:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:09:05 - End Time 2025-03-27 18:09:05 [2025-03-27 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775908', 'tblTempUsageDetail_20' ) start [2025-03-27 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775908', 'tblTempUsageDetail_20' ) end [2025-03-27 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775908', 'tblTempVendorCDR_20' ) start [2025-03-27 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775908', 'tblTempVendorCDR_20' ) end [2025-03-27 18:09:21] Production.INFO: ProcessCDR(1,14775908,1,1,2) [2025-03-27 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775908', 'tblTempUsageDetail_20' ) start [2025-03-27 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775908', 'tblTempUsageDetail_20' ) end [2025-03-27 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:09:25] Production.INFO: ==26308== Releasing lock... [2025-03-27 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:09:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-27 18:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:10:07 [end_date_ymd] => 2025-03-27 18:10:07 [RateCDR] => 1 ) [2025-03-27 18:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:10:07' and `end` < '2025-03-27 18:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:10:20] Production.INFO: count ==4291 [2025-03-27 18:10:22] Production.ERROR: pbx CDR StartTime 2025-03-27 15:10:07 - End Time 2025-03-27 18:10:07 [2025-03-27 18:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775914', 'tblTempUsageDetail_20' ) start [2025-03-27 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775914', 'tblTempUsageDetail_20' ) end [2025-03-27 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775914', 'tblTempVendorCDR_20' ) start [2025-03-27 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775914', 'tblTempVendorCDR_20' ) end [2025-03-27 18:10:22] Production.INFO: ProcessCDR(1,14775914,1,1,2) [2025-03-27 18:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775914', 'tblTempUsageDetail_20' ) start [2025-03-27 18:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775914', 'tblTempUsageDetail_20' ) end [2025-03-27 18:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:10:28] Production.INFO: ==26386== Releasing lock... [2025-03-27 18:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:10:28] Production.INFO: 60 MB #Memory Used# [2025-03-27 18:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:11:06 [end_date_ymd] => 2025-03-27 18:11:06 [RateCDR] => 1 ) [2025-03-27 18:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:11:06' and `end` < '2025-03-27 18:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:11:19] Production.INFO: count ==4285 [2025-03-27 18:11:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:11:06 - End Time 2025-03-27 18:11:06 [2025-03-27 18:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775919', 'tblTempUsageDetail_20' ) start [2025-03-27 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775919', 'tblTempUsageDetail_20' ) end [2025-03-27 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775919', 'tblTempVendorCDR_20' ) start [2025-03-27 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775919', 'tblTempVendorCDR_20' ) end [2025-03-27 18:11:21] Production.INFO: ProcessCDR(1,14775919,1,1,2) [2025-03-27 18:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775919', 'tblTempUsageDetail_20' ) start [2025-03-27 18:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775919', 'tblTempUsageDetail_20' ) end [2025-03-27 18:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:11:27] Production.INFO: ==26461== Releasing lock... [2025-03-27 18:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:11:27] Production.INFO: 60 MB #Memory Used# [2025-03-27 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:12:06 [end_date_ymd] => 2025-03-27 18:12:06 [RateCDR] => 1 ) [2025-03-27 18:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:12:06' and `end` < '2025-03-27 18:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:12:20] Production.INFO: count ==4289 [2025-03-27 18:12:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:12:06 - End Time 2025-03-27 18:12:06 [2025-03-27 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775924', 'tblTempUsageDetail_20' ) start [2025-03-27 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775924', 'tblTempUsageDetail_20' ) end [2025-03-27 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775924', 'tblTempVendorCDR_20' ) start [2025-03-27 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775924', 'tblTempVendorCDR_20' ) end [2025-03-27 18:12:22] Production.INFO: ProcessCDR(1,14775924,1,1,2) [2025-03-27 18:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775924', 'tblTempUsageDetail_20' ) start [2025-03-27 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775924', 'tblTempUsageDetail_20' ) end [2025-03-27 18:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:12:28] Production.INFO: ==26533== Releasing lock... [2025-03-27 18:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:12:28] Production.INFO: 60 MB #Memory Used# [2025-03-27 18:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:13:06 [end_date_ymd] => 2025-03-27 18:13:06 [RateCDR] => 1 ) [2025-03-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-03-27 15:13:06' and `end` < '2025-03-27 18:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:13:19] Production.INFO: count ==4265 [2025-03-27 18:13:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:13:06 - End Time 2025-03-27 18:13:06 [2025-03-27 18:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775929', 'tblTempUsageDetail_20' ) start [2025-03-27 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775929', 'tblTempUsageDetail_20' ) end [2025-03-27 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775929', 'tblTempVendorCDR_20' ) start [2025-03-27 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775929', 'tblTempVendorCDR_20' ) end [2025-03-27 18:13:21] Production.INFO: ProcessCDR(1,14775929,1,1,2) [2025-03-27 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775929', 'tblTempUsageDetail_20' ) start [2025-03-27 18:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775929', 'tblTempUsageDetail_20' ) end [2025-03-27 18:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:13:27] Production.INFO: ==26606== Releasing lock... [2025-03-27 18:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:13:27] Production.INFO: 60 MB #Memory Used# [2025-03-27 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:14:06 [end_date_ymd] => 2025-03-27 18:14:06 [RateCDR] => 1 ) [2025-03-27 18:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:14:06' and `end` < '2025-03-27 18:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:14:19] Production.INFO: count ==4257 [2025-03-27 18:14:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:14:06 - End Time 2025-03-27 18:14:06 [2025-03-27 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775934', 'tblTempUsageDetail_20' ) start [2025-03-27 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775934', 'tblTempUsageDetail_20' ) end [2025-03-27 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775934', 'tblTempVendorCDR_20' ) start [2025-03-27 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775934', 'tblTempVendorCDR_20' ) end [2025-03-27 18:14:21] Production.INFO: ProcessCDR(1,14775934,1,1,2) [2025-03-27 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775934', 'tblTempUsageDetail_20' ) start [2025-03-27 18:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775934', 'tblTempUsageDetail_20' ) end [2025-03-27 18:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:14:27] Production.INFO: ==26720== Releasing lock... [2025-03-27 18:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:14:27] Production.INFO: 59.75 MB #Memory Used# [2025-03-27 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:15:05 [end_date_ymd] => 2025-03-27 18:15:05 [RateCDR] => 1 ) [2025-03-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-03-27 15:15:05' and `end` < '2025-03-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-03-27 18:15:19] Production.INFO: count ==4253 [2025-03-27 18:15:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:15:05 - End Time 2025-03-27 18:15:05 [2025-03-27 18:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775939', 'tblTempUsageDetail_20' ) start [2025-03-27 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775939', 'tblTempUsageDetail_20' ) end [2025-03-27 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775939', 'tblTempVendorCDR_20' ) start [2025-03-27 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775939', 'tblTempVendorCDR_20' ) end [2025-03-27 18:15:21] Production.INFO: ProcessCDR(1,14775939,1,1,2) [2025-03-27 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775939', 'tblTempUsageDetail_20' ) start [2025-03-27 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775939', 'tblTempUsageDetail_20' ) end [2025-03-27 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:15:25] Production.INFO: ==26796== Releasing lock... [2025-03-27 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:15:25] Production.INFO: 59.75 MB #Memory Used# [2025-03-27 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:16:05 [end_date_ymd] => 2025-03-27 18:16:05 [RateCDR] => 1 ) [2025-03-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-03-27 15:16:05' and `end` < '2025-03-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-03-27 18:16:18] Production.INFO: count ==4273 [2025-03-27 18:16:20] Production.ERROR: pbx CDR StartTime 2025-03-27 15:16:05 - End Time 2025-03-27 18:16:05 [2025-03-27 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775944', 'tblTempUsageDetail_20' ) start [2025-03-27 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775944', 'tblTempUsageDetail_20' ) end [2025-03-27 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775944', 'tblTempVendorCDR_20' ) start [2025-03-27 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775944', 'tblTempVendorCDR_20' ) end [2025-03-27 18:16:20] Production.INFO: ProcessCDR(1,14775944,1,1,2) [2025-03-27 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775944', 'tblTempUsageDetail_20' ) start [2025-03-27 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775944', 'tblTempUsageDetail_20' ) end [2025-03-27 18:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:16:26] Production.INFO: ==26872== Releasing lock... [2025-03-27 18:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:16:26] Production.INFO: 60 MB #Memory Used# [2025-03-27 18:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:17:06 [end_date_ymd] => 2025-03-27 18:17:06 [RateCDR] => 1 ) [2025-03-27 18:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:17:06' and `end` < '2025-03-27 18:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:17:19] Production.INFO: count ==4258 [2025-03-27 18:17:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:17:06 - End Time 2025-03-27 18:17:06 [2025-03-27 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775949', 'tblTempUsageDetail_20' ) start [2025-03-27 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775949', 'tblTempUsageDetail_20' ) end [2025-03-27 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775949', 'tblTempVendorCDR_20' ) start [2025-03-27 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775949', 'tblTempVendorCDR_20' ) end [2025-03-27 18:17:21] Production.INFO: ProcessCDR(1,14775949,1,1,2) [2025-03-27 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775949', 'tblTempUsageDetail_20' ) start [2025-03-27 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775949', 'tblTempUsageDetail_20' ) end [2025-03-27 18:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:17:27] Production.INFO: ==26945== Releasing lock... [2025-03-27 18:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:17:27] Production.INFO: 59.75 MB #Memory Used# [2025-03-27 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:18:06 [end_date_ymd] => 2025-03-27 18:18:06 [RateCDR] => 1 ) [2025-03-27 18:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:18:06' and `end` < '2025-03-27 18:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:18:19] Production.INFO: count ==4253 [2025-03-27 18:18:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:18:06 - End Time 2025-03-27 18:18:06 [2025-03-27 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775954', 'tblTempUsageDetail_20' ) start [2025-03-27 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775954', 'tblTempUsageDetail_20' ) end [2025-03-27 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775954', 'tblTempVendorCDR_20' ) start [2025-03-27 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775954', 'tblTempVendorCDR_20' ) end [2025-03-27 18:18:21] Production.INFO: ProcessCDR(1,14775954,1,1,2) [2025-03-27 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775954', 'tblTempUsageDetail_20' ) start [2025-03-27 18:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775954', 'tblTempUsageDetail_20' ) end [2025-03-27 18:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:18:27] Production.INFO: ==27018== Releasing lock... [2025-03-27 18:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:18:27] Production.INFO: 59.75 MB #Memory Used# [2025-03-27 18:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:19:06 [end_date_ymd] => 2025-03-27 18:19:06 [RateCDR] => 1 ) [2025-03-27 18:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:19:06' and `end` < '2025-03-27 18:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:19:19] Production.INFO: count ==4244 [2025-03-27 18:19:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:19:06 - End Time 2025-03-27 18:19:06 [2025-03-27 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775959', 'tblTempUsageDetail_20' ) start [2025-03-27 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775959', 'tblTempUsageDetail_20' ) end [2025-03-27 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775959', 'tblTempVendorCDR_20' ) start [2025-03-27 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775959', 'tblTempVendorCDR_20' ) end [2025-03-27 18:19:21] Production.INFO: ProcessCDR(1,14775959,1,1,2) [2025-03-27 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775959', 'tblTempUsageDetail_20' ) start [2025-03-27 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775959', 'tblTempUsageDetail_20' ) end [2025-03-27 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:19:25] Production.INFO: ==27092== Releasing lock... [2025-03-27 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:19:25] Production.INFO: 59.75 MB #Memory Used# [2025-03-27 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:20:06 [end_date_ymd] => 2025-03-27 18:20:06 [RateCDR] => 1 ) [2025-03-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-03-27 15:20:06' and `end` < '2025-03-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-03-27 18:20:20] Production.INFO: count ==4245 [2025-03-27 18:20:22] Production.ERROR: pbx CDR StartTime 2025-03-27 15:20:06 - End Time 2025-03-27 18:20:06 [2025-03-27 18:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775965', 'tblTempUsageDetail_20' ) start [2025-03-27 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775965', 'tblTempUsageDetail_20' ) end [2025-03-27 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775965', 'tblTempVendorCDR_20' ) start [2025-03-27 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775965', 'tblTempVendorCDR_20' ) end [2025-03-27 18:20:22] Production.INFO: ProcessCDR(1,14775965,1,1,2) [2025-03-27 18:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775965', 'tblTempUsageDetail_20' ) start [2025-03-27 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775965', 'tblTempUsageDetail_20' ) end [2025-03-27 18:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:20:27] Production.INFO: ==27166== Releasing lock... [2025-03-27 18:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:20:27] Production.INFO: 60 MB #Memory Used# [2025-03-27 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:21:06 [end_date_ymd] => 2025-03-27 18:21:06 [RateCDR] => 1 ) [2025-03-27 18:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:21:06' and `end` < '2025-03-27 18:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:21:19] Production.INFO: count ==4204 [2025-03-27 18:21:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:21:06 - End Time 2025-03-27 18:21:06 [2025-03-27 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775970', 'tblTempUsageDetail_20' ) start [2025-03-27 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775970', 'tblTempUsageDetail_20' ) end [2025-03-27 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775970', 'tblTempVendorCDR_20' ) start [2025-03-27 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775970', 'tblTempVendorCDR_20' ) end [2025-03-27 18:21:21] Production.INFO: ProcessCDR(1,14775970,1,1,2) [2025-03-27 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775970', 'tblTempUsageDetail_20' ) start [2025-03-27 18:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775970', 'tblTempUsageDetail_20' ) end [2025-03-27 18:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:21:27] Production.INFO: ==27243== Releasing lock... [2025-03-27 18:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:21:27] Production.INFO: 59.5 MB #Memory Used# [2025-03-27 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:22:06 [end_date_ymd] => 2025-03-27 18:22:06 [RateCDR] => 1 ) [2025-03-27 18:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:22:06' and `end` < '2025-03-27 18:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:22:19] Production.INFO: count ==4187 [2025-03-27 18:22:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:22:06 - End Time 2025-03-27 18:22:06 [2025-03-27 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775975', 'tblTempUsageDetail_20' ) start [2025-03-27 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775975', 'tblTempUsageDetail_20' ) end [2025-03-27 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775975', 'tblTempVendorCDR_20' ) start [2025-03-27 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775975', 'tblTempVendorCDR_20' ) end [2025-03-27 18:22:21] Production.INFO: ProcessCDR(1,14775975,1,1,2) [2025-03-27 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775975', 'tblTempUsageDetail_20' ) start [2025-03-27 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775975', 'tblTempUsageDetail_20' ) end [2025-03-27 18:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:22:26] Production.INFO: ==27320== Releasing lock... [2025-03-27 18:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:22:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-27 18:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:23:06 [end_date_ymd] => 2025-03-27 18:23:06 [RateCDR] => 1 ) [2025-03-27 18:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:23:06' and `end` < '2025-03-27 18:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:23:19] Production.INFO: count ==4162 [2025-03-27 18:23:20] Production.ERROR: pbx CDR StartTime 2025-03-27 15:23:06 - End Time 2025-03-27 18:23:06 [2025-03-27 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775979', 'tblTempUsageDetail_20' ) start [2025-03-27 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775979', 'tblTempUsageDetail_20' ) end [2025-03-27 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775979', 'tblTempVendorCDR_20' ) start [2025-03-27 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775979', 'tblTempVendorCDR_20' ) end [2025-03-27 18:23:21] Production.INFO: ProcessCDR(1,14775979,1,1,2) [2025-03-27 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775979', 'tblTempUsageDetail_20' ) start [2025-03-27 18:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775979', 'tblTempUsageDetail_20' ) end [2025-03-27 18:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:23:27] Production.INFO: ==27405== Releasing lock... [2025-03-27 18:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:23:27] Production.INFO: 59.25 MB #Memory Used# [2025-03-27 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:24:05 [end_date_ymd] => 2025-03-27 18:24:05 [RateCDR] => 1 ) [2025-03-27 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:24:05' and `end` < '2025-03-27 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:24:19] Production.INFO: count ==4154 [2025-03-27 18:24:20] Production.ERROR: pbx CDR StartTime 2025-03-27 15:24:05 - End Time 2025-03-27 18:24:05 [2025-03-27 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775985', 'tblTempUsageDetail_20' ) start [2025-03-27 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775985', 'tblTempUsageDetail_20' ) end [2025-03-27 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775985', 'tblTempVendorCDR_20' ) start [2025-03-27 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775985', 'tblTempVendorCDR_20' ) end [2025-03-27 18:24:21] Production.INFO: ProcessCDR(1,14775985,1,1,2) [2025-03-27 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775985', 'tblTempUsageDetail_20' ) start [2025-03-27 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775985', 'tblTempUsageDetail_20' ) end [2025-03-27 18:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:24:26] Production.INFO: ==27480== Releasing lock... [2025-03-27 18:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:24:26] Production.INFO: 59 MB #Memory Used# [2025-03-27 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:25:06 [end_date_ymd] => 2025-03-27 18:25:06 [RateCDR] => 1 ) [2025-03-27 18:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:25:06' and `end` < '2025-03-27 18:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:25:19] Production.INFO: count ==4161 [2025-03-27 18:25:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:25:06 - End Time 2025-03-27 18:25:06 [2025-03-27 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775990', 'tblTempUsageDetail_20' ) start [2025-03-27 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775990', 'tblTempUsageDetail_20' ) end [2025-03-27 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775990', 'tblTempVendorCDR_20' ) start [2025-03-27 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775990', 'tblTempVendorCDR_20' ) end [2025-03-27 18:25:21] Production.INFO: ProcessCDR(1,14775990,1,1,2) [2025-03-27 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775990', 'tblTempUsageDetail_20' ) start [2025-03-27 18:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775990', 'tblTempUsageDetail_20' ) end [2025-03-27 18:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:25:27] Production.INFO: ==27555== Releasing lock... [2025-03-27 18:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:25:27] Production.INFO: 59.25 MB #Memory Used# [2025-03-27 18:26:16] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:26:16 [end_date_ymd] => 2025-03-27 18:26:16 [RateCDR] => 1 ) [2025-03-27 18:26:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:26:16' and `end` < '2025-03-27 18:26:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:26:29] Production.INFO: count ==4152 [2025-03-27 18:27:38] Production.ERROR: pbx CDR StartTime 2025-03-27 15:26:16 - End Time 2025-03-27 18:26:16 [2025-03-27 18:27:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:27:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775995', 'tblTempUsageDetail_20' ) start [2025-03-27 18:27:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14775995', 'tblTempUsageDetail_20' ) end [2025-03-27 18:27:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775995', 'tblTempVendorCDR_20' ) start [2025-03-27 18:27:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14775995', 'tblTempVendorCDR_20' ) end [2025-03-27 18:27:40] Production.INFO: ProcessCDR(1,14775995,1,1,2) [2025-03-27 18:27:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14775995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:28:01] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14775995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:28:01] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14775995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:28:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14775995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:28:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775995', 'tblTempUsageDetail_20' ) start [2025-03-27 18:28:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14775995', 'tblTempUsageDetail_20' ) end [2025-03-27 18:28:51] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:28:51] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:28:54] Production.INFO: ==27636== Releasing lock... [2025-03-27 18:28:54] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:28:54] Production.INFO: 59 MB #Memory Used# [2025-03-27 18:29:18] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:29:18 [end_date_ymd] => 2025-03-27 18:29:18 [RateCDR] => 1 ) [2025-03-27 18:29:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:29:18' and `end` < '2025-03-27 18:29:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:29:31] Production.INFO: count ==4114 [2025-03-27 18:30:20] Production.ERROR: pbx CDR StartTime 2025-03-27 15:29:18 - End Time 2025-03-27 18:29:18 [2025-03-27 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776006', 'tblTempUsageDetail_20' ) start [2025-03-27 18:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776006', 'tblTempUsageDetail_20' ) end [2025-03-27 18:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776006', 'tblTempVendorCDR_20' ) start [2025-03-27 18:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776006', 'tblTempVendorCDR_20' ) end [2025-03-27 18:30:26] Production.INFO: ProcessCDR(1,14776006,1,1,2) [2025-03-27 18:30:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:30:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:30:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776006', 'tblTempUsageDetail_20' ) start [2025-03-27 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776006', 'tblTempUsageDetail_20' ) end [2025-03-27 18:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:31:24] Production.INFO: ==27838== Releasing lock... [2025-03-27 18:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:31:24] Production.INFO: 58.75 MB #Memory Used# [2025-03-27 18:32:27] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:32:27 [end_date_ymd] => 2025-03-27 18:32:27 [RateCDR] => 1 ) [2025-03-27 18:32:27] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:32:27' and `end` < '2025-03-27 18:32:27' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:32:40] Production.INFO: count ==4017 [2025-03-27 18:32:42] Production.ERROR: pbx CDR StartTime 2025-03-27 15:32:27 - End Time 2025-03-27 18:32:27 [2025-03-27 18:32:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:32:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776018', 'tblTempUsageDetail_20' ) start [2025-03-27 18:32:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776018', 'tblTempUsageDetail_20' ) end [2025-03-27 18:32:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776018', 'tblTempVendorCDR_20' ) start [2025-03-27 18:32:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776018', 'tblTempVendorCDR_20' ) end [2025-03-27 18:32:42] Production.INFO: ProcessCDR(1,14776018,1,1,2) [2025-03-27 18:32:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:32:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:32:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:32:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:32:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776018', 'tblTempUsageDetail_20' ) start [2025-03-27 18:32:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776018', 'tblTempUsageDetail_20' ) end [2025-03-27 18:32:48] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:32:48] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:32:48] Production.INFO: ==28094== Releasing lock... [2025-03-27 18:32:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:32:48] Production.INFO: 58 MB #Memory Used# [2025-03-27 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:33:05 [end_date_ymd] => 2025-03-27 18:33:05 [RateCDR] => 1 ) [2025-03-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-03-27 15:33:05' and `end` < '2025-03-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-03-27 18:33:18] Production.INFO: count ==4014 [2025-03-27 18:33:20] Production.ERROR: pbx CDR StartTime 2025-03-27 15:33:05 - End Time 2025-03-27 18:33:05 [2025-03-27 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776023', 'tblTempUsageDetail_20' ) start [2025-03-27 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776023', 'tblTempUsageDetail_20' ) end [2025-03-27 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776023', 'tblTempVendorCDR_20' ) start [2025-03-27 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776023', 'tblTempVendorCDR_20' ) end [2025-03-27 18:33:20] Production.INFO: ProcessCDR(1,14776023,1,1,2) [2025-03-27 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776023', 'tblTempUsageDetail_20' ) start [2025-03-27 18:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776023', 'tblTempUsageDetail_20' ) end [2025-03-27 18:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:33:26] Production.INFO: ==28173== Releasing lock... [2025-03-27 18:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:33:26] Production.INFO: 58.25 MB #Memory Used# [2025-03-27 18:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:34:06 [end_date_ymd] => 2025-03-27 18:34:06 [RateCDR] => 1 ) [2025-03-27 18:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:34:06' and `end` < '2025-03-27 18:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:34:19] Production.INFO: count ==4005 [2025-03-27 18:34:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:34:06 - End Time 2025-03-27 18:34:06 [2025-03-27 18:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776028', 'tblTempUsageDetail_20' ) start [2025-03-27 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776028', 'tblTempUsageDetail_20' ) end [2025-03-27 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776028', 'tblTempVendorCDR_20' ) start [2025-03-27 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776028', 'tblTempVendorCDR_20' ) end [2025-03-27 18:34:21] Production.INFO: ProcessCDR(1,14776028,1,1,2) [2025-03-27 18:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776028', 'tblTempUsageDetail_20' ) start [2025-03-27 18:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776028', 'tblTempUsageDetail_20' ) end [2025-03-27 18:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:34:27] Production.INFO: ==28248== Releasing lock... [2025-03-27 18:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:34:27] Production.INFO: 58 MB #Memory Used# [2025-03-27 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:35:05 [end_date_ymd] => 2025-03-27 18:35:05 [RateCDR] => 1 ) [2025-03-27 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:35:05' and `end` < '2025-03-27 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:35:18] Production.INFO: count ==3998 [2025-03-27 18:35:20] Production.ERROR: pbx CDR StartTime 2025-03-27 15:35:05 - End Time 2025-03-27 18:35:05 [2025-03-27 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776033', 'tblTempUsageDetail_20' ) start [2025-03-27 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776033', 'tblTempUsageDetail_20' ) end [2025-03-27 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776033', 'tblTempVendorCDR_20' ) start [2025-03-27 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776033', 'tblTempVendorCDR_20' ) end [2025-03-27 18:35:20] Production.INFO: ProcessCDR(1,14776033,1,1,2) [2025-03-27 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776033', 'tblTempUsageDetail_20' ) start [2025-03-27 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776033', 'tblTempUsageDetail_20' ) end [2025-03-27 18:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:35:26] Production.INFO: ==28322== Releasing lock... [2025-03-27 18:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:35:26] Production.INFO: 57.75 MB #Memory Used# [2025-03-27 18:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:36:06 [end_date_ymd] => 2025-03-27 18:36:06 [RateCDR] => 1 ) [2025-03-27 18:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:36:06' and `end` < '2025-03-27 18:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:36:19] Production.INFO: count ==3991 [2025-03-27 18:36:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:36:06 - End Time 2025-03-27 18:36:06 [2025-03-27 18:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776038', 'tblTempUsageDetail_20' ) start [2025-03-27 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776038', 'tblTempUsageDetail_20' ) end [2025-03-27 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776038', 'tblTempVendorCDR_20' ) start [2025-03-27 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776038', 'tblTempVendorCDR_20' ) end [2025-03-27 18:36:21] Production.INFO: ProcessCDR(1,14776038,1,1,2) [2025-03-27 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776038', 'tblTempUsageDetail_20' ) start [2025-03-27 18:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776038', 'tblTempUsageDetail_20' ) end [2025-03-27 18:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:36:27] Production.INFO: ==28394== Releasing lock... [2025-03-27 18:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:36:27] Production.INFO: 57.75 MB #Memory Used# [2025-03-27 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:37:05 [end_date_ymd] => 2025-03-27 18:37:05 [RateCDR] => 1 ) [2025-03-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-03-27 15:37:05' and `end` < '2025-03-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-03-27 18:37:18] Production.INFO: count ==3976 [2025-03-27 18:37:20] Production.ERROR: pbx CDR StartTime 2025-03-27 15:37:05 - End Time 2025-03-27 18:37:05 [2025-03-27 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776043', 'tblTempUsageDetail_20' ) start [2025-03-27 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776043', 'tblTempUsageDetail_20' ) end [2025-03-27 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776043', 'tblTempVendorCDR_20' ) start [2025-03-27 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776043', 'tblTempVendorCDR_20' ) end [2025-03-27 18:37:20] Production.INFO: ProcessCDR(1,14776043,1,1,2) [2025-03-27 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776043', 'tblTempUsageDetail_20' ) start [2025-03-27 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776043', 'tblTempUsageDetail_20' ) end [2025-03-27 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:37:24] Production.INFO: ==28468== Releasing lock... [2025-03-27 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:37:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-27 18:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:38:06 [end_date_ymd] => 2025-03-27 18:38:06 [RateCDR] => 1 ) [2025-03-27 18:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:38:06' and `end` < '2025-03-27 18:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:38:19] Production.INFO: count ==3971 [2025-03-27 18:38:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:38:06 - End Time 2025-03-27 18:38:06 [2025-03-27 18:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776048', 'tblTempUsageDetail_20' ) start [2025-03-27 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776048', 'tblTempUsageDetail_20' ) end [2025-03-27 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776048', 'tblTempVendorCDR_20' ) start [2025-03-27 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776048', 'tblTempVendorCDR_20' ) end [2025-03-27 18:38:21] Production.INFO: ProcessCDR(1,14776048,1,1,2) [2025-03-27 18:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776048', 'tblTempUsageDetail_20' ) start [2025-03-27 18:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776048', 'tblTempUsageDetail_20' ) end [2025-03-27 18:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:38:27] Production.INFO: ==28554== Releasing lock... [2025-03-27 18:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:38:27] Production.INFO: 58 MB #Memory Used# [2025-03-27 18:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:39:06 [end_date_ymd] => 2025-03-27 18:39:06 [RateCDR] => 1 ) [2025-03-27 18:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:39:06' and `end` < '2025-03-27 18:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:39:20] Production.INFO: count ==3950 [2025-03-27 18:39:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:39:06 - End Time 2025-03-27 18:39:06 [2025-03-27 18:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776053', 'tblTempUsageDetail_20' ) start [2025-03-27 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776053', 'tblTempUsageDetail_20' ) end [2025-03-27 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776053', 'tblTempVendorCDR_20' ) start [2025-03-27 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776053', 'tblTempVendorCDR_20' ) end [2025-03-27 18:39:21] Production.INFO: ProcessCDR(1,14776053,1,1,2) [2025-03-27 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776053', 'tblTempUsageDetail_20' ) start [2025-03-27 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776053', 'tblTempUsageDetail_20' ) end [2025-03-27 18:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:39:25] Production.INFO: ==28639== Releasing lock... [2025-03-27 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:39:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-27 18:40:08] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:40:08 [end_date_ymd] => 2025-03-27 18:40:08 [RateCDR] => 1 ) [2025-03-27 18:40:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:40:08' and `end` < '2025-03-27 18:40:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:40:21] Production.INFO: count ==3939 [2025-03-27 18:40:22] Production.ERROR: pbx CDR StartTime 2025-03-27 15:40:08 - End Time 2025-03-27 18:40:08 [2025-03-27 18:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776059', 'tblTempUsageDetail_20' ) start [2025-03-27 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776059', 'tblTempUsageDetail_20' ) end [2025-03-27 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776059', 'tblTempVendorCDR_20' ) start [2025-03-27 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776059', 'tblTempVendorCDR_20' ) end [2025-03-27 18:40:22] Production.INFO: ProcessCDR(1,14776059,1,1,2) [2025-03-27 18:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776059', 'tblTempUsageDetail_20' ) start [2025-03-27 18:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776059', 'tblTempUsageDetail_20' ) end [2025-03-27 18:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:40:28] Production.INFO: ==28718== Releasing lock... [2025-03-27 18:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:40:28] Production.INFO: 57.5 MB #Memory Used# [2025-03-27 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:41:05 [end_date_ymd] => 2025-03-27 18:41:05 [RateCDR] => 1 ) [2025-03-27 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:41:05' and `end` < '2025-03-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-03-27 18:41:18] Production.INFO: count ==3876 [2025-03-27 18:41:20] Production.ERROR: pbx CDR StartTime 2025-03-27 15:41:05 - End Time 2025-03-27 18:41:05 [2025-03-27 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776064', 'tblTempUsageDetail_20' ) start [2025-03-27 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776064', 'tblTempUsageDetail_20' ) end [2025-03-27 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776064', 'tblTempVendorCDR_20' ) start [2025-03-27 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776064', 'tblTempVendorCDR_20' ) end [2025-03-27 18:41:20] Production.INFO: ProcessCDR(1,14776064,1,1,2) [2025-03-27 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776064', 'tblTempUsageDetail_20' ) start [2025-03-27 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776064', 'tblTempUsageDetail_20' ) end [2025-03-27 18:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:41:26] Production.INFO: ==28814== Releasing lock... [2025-03-27 18:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:41:26] Production.INFO: 57.25 MB #Memory Used# [2025-03-27 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:42:06 [end_date_ymd] => 2025-03-27 18:42:06 [RateCDR] => 1 ) [2025-03-27 18:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:42:06' and `end` < '2025-03-27 18:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:42:19] Production.INFO: count ==3866 [2025-03-27 18:42:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:42:06 - End Time 2025-03-27 18:42:06 [2025-03-27 18:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776069', 'tblTempUsageDetail_20' ) start [2025-03-27 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776069', 'tblTempUsageDetail_20' ) end [2025-03-27 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776069', 'tblTempVendorCDR_20' ) start [2025-03-27 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776069', 'tblTempVendorCDR_20' ) end [2025-03-27 18:42:21] Production.INFO: ProcessCDR(1,14776069,1,1,2) [2025-03-27 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776069', 'tblTempUsageDetail_20' ) start [2025-03-27 18:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776069', 'tblTempUsageDetail_20' ) end [2025-03-27 18:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:42:27] Production.INFO: ==28890== Releasing lock... [2025-03-27 18:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:42:27] Production.INFO: 57 MB #Memory Used# [2025-03-27 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:43:05 [end_date_ymd] => 2025-03-27 18:43:05 [RateCDR] => 1 ) [2025-03-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-03-27 15:43:05' and `end` < '2025-03-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-03-27 18:43:18] Production.INFO: count ==3862 [2025-03-27 18:43:20] Production.ERROR: pbx CDR StartTime 2025-03-27 15:43:05 - End Time 2025-03-27 18:43:05 [2025-03-27 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776074', 'tblTempUsageDetail_20' ) start [2025-03-27 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776074', 'tblTempUsageDetail_20' ) end [2025-03-27 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776074', 'tblTempVendorCDR_20' ) start [2025-03-27 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776074', 'tblTempVendorCDR_20' ) end [2025-03-27 18:43:20] Production.INFO: ProcessCDR(1,14776074,1,1,2) [2025-03-27 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776074', 'tblTempUsageDetail_20' ) start [2025-03-27 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776074', 'tblTempUsageDetail_20' ) end [2025-03-27 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:43:24] Production.INFO: ==28960== Releasing lock... [2025-03-27 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:43:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-27 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:44:06 [end_date_ymd] => 2025-03-27 18:44:06 [RateCDR] => 1 ) [2025-03-27 18:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:44:06' and `end` < '2025-03-27 18:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:44:20] Production.INFO: count ==3856 [2025-03-27 18:44:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:44:06 - End Time 2025-03-27 18:44:06 [2025-03-27 18:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776079', 'tblTempUsageDetail_20' ) start [2025-03-27 18:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776079', 'tblTempUsageDetail_20' ) end [2025-03-27 18:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776079', 'tblTempVendorCDR_20' ) start [2025-03-27 18:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776079', 'tblTempVendorCDR_20' ) end [2025-03-27 18:44:22] Production.INFO: ProcessCDR(1,14776079,1,1,2) [2025-03-27 18:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776079', 'tblTempUsageDetail_20' ) start [2025-03-27 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776079', 'tblTempUsageDetail_20' ) end [2025-03-27 18:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:44:25] Production.INFO: ==29034== Releasing lock... [2025-03-27 18:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:44:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-27 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:45:05 [end_date_ymd] => 2025-03-27 18:45:05 [RateCDR] => 1 ) [2025-03-27 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:45:05' and `end` < '2025-03-27 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:45:18] Production.INFO: count ==3849 [2025-03-27 18:45:20] Production.ERROR: pbx CDR StartTime 2025-03-27 15:45:05 - End Time 2025-03-27 18:45:05 [2025-03-27 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776084', 'tblTempUsageDetail_20' ) start [2025-03-27 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776084', 'tblTempUsageDetail_20' ) end [2025-03-27 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776084', 'tblTempVendorCDR_20' ) start [2025-03-27 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776084', 'tblTempVendorCDR_20' ) end [2025-03-27 18:45:20] Production.INFO: ProcessCDR(1,14776084,1,1,2) [2025-03-27 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776084', 'tblTempUsageDetail_20' ) start [2025-03-27 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776084', 'tblTempUsageDetail_20' ) end [2025-03-27 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:45:24] Production.INFO: ==29148== Releasing lock... [2025-03-27 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:45:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-27 18:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:46:06 [end_date_ymd] => 2025-03-27 18:46:06 [RateCDR] => 1 ) [2025-03-27 18:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:46:06' and `end` < '2025-03-27 18:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:46:19] Production.INFO: count ==3865 [2025-03-27 18:46:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:46:06 - End Time 2025-03-27 18:46:06 [2025-03-27 18:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776089', 'tblTempUsageDetail_20' ) start [2025-03-27 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776089', 'tblTempUsageDetail_20' ) end [2025-03-27 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776089', 'tblTempVendorCDR_20' ) start [2025-03-27 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776089', 'tblTempVendorCDR_20' ) end [2025-03-27 18:46:21] Production.INFO: ProcessCDR(1,14776089,1,1,2) [2025-03-27 18:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776089', 'tblTempUsageDetail_20' ) start [2025-03-27 18:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776089', 'tblTempUsageDetail_20' ) end [2025-03-27 18:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:46:27] Production.INFO: ==29220== Releasing lock... [2025-03-27 18:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:46:27] Production.INFO: 56.75 MB #Memory Used# [2025-03-27 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:47:05 [end_date_ymd] => 2025-03-27 18:47:05 [RateCDR] => 1 ) [2025-03-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-03-27 15:47:05' and `end` < '2025-03-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-03-27 18:47:19] Production.INFO: count ==3872 [2025-03-27 18:47:20] Production.ERROR: pbx CDR StartTime 2025-03-27 15:47:05 - End Time 2025-03-27 18:47:05 [2025-03-27 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776094', 'tblTempUsageDetail_20' ) start [2025-03-27 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776094', 'tblTempUsageDetail_20' ) end [2025-03-27 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776094', 'tblTempVendorCDR_20' ) start [2025-03-27 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776094', 'tblTempVendorCDR_20' ) end [2025-03-27 18:47:20] Production.INFO: ProcessCDR(1,14776094,1,1,2) [2025-03-27 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776094', 'tblTempUsageDetail_20' ) start [2025-03-27 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776094', 'tblTempUsageDetail_20' ) end [2025-03-27 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:47:24] Production.INFO: ==29295== Releasing lock... [2025-03-27 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:47:24] Production.INFO: 57 MB #Memory Used# [2025-03-27 18:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:48:06 [end_date_ymd] => 2025-03-27 18:48:06 [RateCDR] => 1 ) [2025-03-27 18:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:48:06' and `end` < '2025-03-27 18:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:48:19] Production.INFO: count ==3858 [2025-03-27 18:48:20] Production.ERROR: pbx CDR StartTime 2025-03-27 15:48:06 - End Time 2025-03-27 18:48:06 [2025-03-27 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776099', 'tblTempUsageDetail_20' ) start [2025-03-27 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776099', 'tblTempUsageDetail_20' ) end [2025-03-27 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776099', 'tblTempVendorCDR_20' ) start [2025-03-27 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776099', 'tblTempVendorCDR_20' ) end [2025-03-27 18:48:21] Production.INFO: ProcessCDR(1,14776099,1,1,2) [2025-03-27 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776099', 'tblTempUsageDetail_20' ) start [2025-03-27 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776099', 'tblTempUsageDetail_20' ) end [2025-03-27 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:48:25] Production.INFO: ==29372== Releasing lock... [2025-03-27 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:48:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-27 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:49:05 [end_date_ymd] => 2025-03-27 18:49:05 [RateCDR] => 1 ) [2025-03-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-03-27 15:49:05' and `end` < '2025-03-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-03-27 18:49:18] Production.INFO: count ==3863 [2025-03-27 18:49:20] Production.ERROR: pbx CDR StartTime 2025-03-27 15:49:05 - End Time 2025-03-27 18:49:05 [2025-03-27 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776104', 'tblTempUsageDetail_20' ) start [2025-03-27 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776104', 'tblTempUsageDetail_20' ) end [2025-03-27 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776104', 'tblTempVendorCDR_20' ) start [2025-03-27 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776104', 'tblTempVendorCDR_20' ) end [2025-03-27 18:49:20] Production.INFO: ProcessCDR(1,14776104,1,1,2) [2025-03-27 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776104', 'tblTempUsageDetail_20' ) start [2025-03-27 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776104', 'tblTempUsageDetail_20' ) end [2025-03-27 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:49:24] Production.INFO: ==29444== Releasing lock... [2025-03-27 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:49:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-27 18:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:50:07 [end_date_ymd] => 2025-03-27 18:50:07 [RateCDR] => 1 ) [2025-03-27 18:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:50:07' and `end` < '2025-03-27 18:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:50:20] Production.INFO: count ==3858 [2025-03-27 18:50:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:50:07 - End Time 2025-03-27 18:50:07 [2025-03-27 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776110', 'tblTempUsageDetail_20' ) start [2025-03-27 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776110', 'tblTempUsageDetail_20' ) end [2025-03-27 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776110', 'tblTempVendorCDR_20' ) start [2025-03-27 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776110', 'tblTempVendorCDR_20' ) end [2025-03-27 18:50:22] Production.INFO: ProcessCDR(1,14776110,1,1,2) [2025-03-27 18:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776110', 'tblTempUsageDetail_20' ) start [2025-03-27 18:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776110', 'tblTempUsageDetail_20' ) end [2025-03-27 18:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:50:27] Production.INFO: ==29515== Releasing lock... [2025-03-27 18:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:50:27] Production.INFO: 57 MB #Memory Used# [2025-03-27 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:51:05 [end_date_ymd] => 2025-03-27 18:51:05 [RateCDR] => 1 ) [2025-03-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-03-27 15:51:05' and `end` < '2025-03-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-03-27 18:51:19] Production.INFO: count ==3804 [2025-03-27 18:51:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:51:05 - End Time 2025-03-27 18:51:05 [2025-03-27 18:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776115', 'tblTempUsageDetail_20' ) start [2025-03-27 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776115', 'tblTempUsageDetail_20' ) end [2025-03-27 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776115', 'tblTempVendorCDR_20' ) start [2025-03-27 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776115', 'tblTempVendorCDR_20' ) end [2025-03-27 18:51:21] Production.INFO: ProcessCDR(1,14776115,1,1,2) [2025-03-27 18:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776115', 'tblTempUsageDetail_20' ) start [2025-03-27 18:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776115', 'tblTempUsageDetail_20' ) end [2025-03-27 18:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:51:27] Production.INFO: ==29590== Releasing lock... [2025-03-27 18:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:51:27] Production.INFO: 57 MB #Memory Used# [2025-03-27 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:52:06 [end_date_ymd] => 2025-03-27 18:52:06 [RateCDR] => 1 ) [2025-03-27 18:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:52:06' and `end` < '2025-03-27 18:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:52:19] Production.INFO: count ==3803 [2025-03-27 18:52:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:52:06 - End Time 2025-03-27 18:52:06 [2025-03-27 18:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776120', 'tblTempUsageDetail_20' ) start [2025-03-27 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776120', 'tblTempUsageDetail_20' ) end [2025-03-27 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776120', 'tblTempVendorCDR_20' ) start [2025-03-27 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776120', 'tblTempVendorCDR_20' ) end [2025-03-27 18:52:21] Production.INFO: ProcessCDR(1,14776120,1,1,2) [2025-03-27 18:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776120', 'tblTempUsageDetail_20' ) start [2025-03-27 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776120', 'tblTempUsageDetail_20' ) end [2025-03-27 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:52:25] Production.INFO: ==29665== Releasing lock... [2025-03-27 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:52:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-27 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:53:05 [end_date_ymd] => 2025-03-27 18:53:05 [RateCDR] => 1 ) [2025-03-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-03-27 15:53:05' and `end` < '2025-03-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-03-27 18:53:18] Production.INFO: count ==3803 [2025-03-27 18:53:20] Production.ERROR: pbx CDR StartTime 2025-03-27 15:53:05 - End Time 2025-03-27 18:53:05 [2025-03-27 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776125', 'tblTempUsageDetail_20' ) start [2025-03-27 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776125', 'tblTempUsageDetail_20' ) end [2025-03-27 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776125', 'tblTempVendorCDR_20' ) start [2025-03-27 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776125', 'tblTempVendorCDR_20' ) end [2025-03-27 18:53:20] Production.INFO: ProcessCDR(1,14776125,1,1,2) [2025-03-27 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776125', 'tblTempUsageDetail_20' ) start [2025-03-27 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776125', 'tblTempUsageDetail_20' ) end [2025-03-27 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:53:24] Production.INFO: ==29747== Releasing lock... [2025-03-27 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:53:24] Production.INFO: 56.5 MB #Memory Used# [2025-03-27 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:54:06 [end_date_ymd] => 2025-03-27 18:54:06 [RateCDR] => 1 ) [2025-03-27 18:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:54:06' and `end` < '2025-03-27 18:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:54:19] Production.INFO: count ==3792 [2025-03-27 18:54:20] Production.ERROR: pbx CDR StartTime 2025-03-27 15:54:06 - End Time 2025-03-27 18:54:06 [2025-03-27 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776130', 'tblTempUsageDetail_20' ) start [2025-03-27 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776130', 'tblTempUsageDetail_20' ) end [2025-03-27 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776130', 'tblTempVendorCDR_20' ) start [2025-03-27 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776130', 'tblTempVendorCDR_20' ) end [2025-03-27 18:54:21] Production.INFO: ProcessCDR(1,14776130,1,1,2) [2025-03-27 18:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776130', 'tblTempUsageDetail_20' ) start [2025-03-27 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776130', 'tblTempUsageDetail_20' ) end [2025-03-27 18:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:54:26] Production.INFO: ==29829== Releasing lock... [2025-03-27 18:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:54:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-27 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:55:06 [end_date_ymd] => 2025-03-27 18:55:06 [RateCDR] => 1 ) [2025-03-27 18:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:55:06' and `end` < '2025-03-27 18:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:55:19] Production.INFO: count ==3762 [2025-03-27 18:55:20] Production.ERROR: pbx CDR StartTime 2025-03-27 15:55:06 - End Time 2025-03-27 18:55:06 [2025-03-27 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776135', 'tblTempUsageDetail_20' ) start [2025-03-27 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776135', 'tblTempUsageDetail_20' ) end [2025-03-27 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776135', 'tblTempVendorCDR_20' ) start [2025-03-27 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776135', 'tblTempVendorCDR_20' ) end [2025-03-27 18:55:20] Production.INFO: ProcessCDR(1,14776135,1,1,2) [2025-03-27 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776135', 'tblTempUsageDetail_20' ) start [2025-03-27 18:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776135', 'tblTempUsageDetail_20' ) end [2025-03-27 18:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:55:26] Production.INFO: ==29909== Releasing lock... [2025-03-27 18:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:55:26] Production.INFO: 56 MB #Memory Used# [2025-03-27 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:56:06 [end_date_ymd] => 2025-03-27 18:56:06 [RateCDR] => 1 ) [2025-03-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-03-27 15:56:06' and `end` < '2025-03-27 18:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:56:19] Production.INFO: count ==3753 [2025-03-27 18:56:20] Production.ERROR: pbx CDR StartTime 2025-03-27 15:56:06 - End Time 2025-03-27 18:56:06 [2025-03-27 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776140', 'tblTempUsageDetail_20' ) start [2025-03-27 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776140', 'tblTempUsageDetail_20' ) end [2025-03-27 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776140', 'tblTempVendorCDR_20' ) start [2025-03-27 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776140', 'tblTempVendorCDR_20' ) end [2025-03-27 18:56:20] Production.INFO: ProcessCDR(1,14776140,1,1,2) [2025-03-27 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776140', 'tblTempUsageDetail_20' ) start [2025-03-27 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776140', 'tblTempUsageDetail_20' ) end [2025-03-27 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:56:24] Production.INFO: ==29984== Releasing lock... [2025-03-27 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:56:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-27 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:57:05 [end_date_ymd] => 2025-03-27 18:57:05 [RateCDR] => 1 ) [2025-03-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-03-27 15:57:05' and `end` < '2025-03-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-03-27 18:57:18] Production.INFO: count ==3748 [2025-03-27 18:57:19] Production.ERROR: pbx CDR StartTime 2025-03-27 15:57:05 - End Time 2025-03-27 18:57:05 [2025-03-27 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776145', 'tblTempUsageDetail_20' ) start [2025-03-27 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776145', 'tblTempUsageDetail_20' ) end [2025-03-27 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776145', 'tblTempVendorCDR_20' ) start [2025-03-27 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776145', 'tblTempVendorCDR_20' ) end [2025-03-27 18:57:20] Production.INFO: ProcessCDR(1,14776145,1,1,2) [2025-03-27 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776145', 'tblTempUsageDetail_20' ) start [2025-03-27 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776145', 'tblTempUsageDetail_20' ) end [2025-03-27 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:57:23] Production.INFO: ==30058== Releasing lock... [2025-03-27 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:57:23] Production.INFO: 56 MB #Memory Used# [2025-03-27 18:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:58:06 [end_date_ymd] => 2025-03-27 18:58:06 [RateCDR] => 1 ) [2025-03-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-03-27 15:58:06' and `end` < '2025-03-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-03-27 18:58:19] Production.INFO: count ==3718 [2025-03-27 18:58:21] Production.ERROR: pbx CDR StartTime 2025-03-27 15:58:06 - End Time 2025-03-27 18:58:06 [2025-03-27 18:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776150', 'tblTempUsageDetail_20' ) start [2025-03-27 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776150', 'tblTempUsageDetail_20' ) end [2025-03-27 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776150', 'tblTempVendorCDR_20' ) start [2025-03-27 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776150', 'tblTempVendorCDR_20' ) end [2025-03-27 18:58:21] Production.INFO: ProcessCDR(1,14776150,1,1,2) [2025-03-27 18:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776150', 'tblTempUsageDetail_20' ) start [2025-03-27 18:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776150', 'tblTempUsageDetail_20' ) end [2025-03-27 18:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:58:26] Production.INFO: ==30131== Releasing lock... [2025-03-27 18:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:58:26] Production.INFO: 55.75 MB #Memory Used# [2025-03-27 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 15:59:05 [end_date_ymd] => 2025-03-27 18:59:05 [RateCDR] => 1 ) [2025-03-27 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 15:59:05' and `end` < '2025-03-27 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 18:59:19] Production.INFO: count ==3722 [2025-03-27 18:59:20] Production.ERROR: pbx CDR StartTime 2025-03-27 15:59:05 - End Time 2025-03-27 18:59:05 [2025-03-27 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776155', 'tblTempUsageDetail_20' ) start [2025-03-27 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776155', 'tblTempUsageDetail_20' ) end [2025-03-27 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776155', 'tblTempVendorCDR_20' ) start [2025-03-27 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776155', 'tblTempVendorCDR_20' ) end [2025-03-27 18:59:20] Production.INFO: ProcessCDR(1,14776155,1,1,2) [2025-03-27 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776155', 'tblTempUsageDetail_20' ) start [2025-03-27 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776155', 'tblTempUsageDetail_20' ) end [2025-03-27 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 18:59:24] Production.INFO: ==30207== Releasing lock... [2025-03-27 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 18:59:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-27 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:00:06 [end_date_ymd] => 2025-03-27 19:00:06 [RateCDR] => 1 ) [2025-03-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-03-27 16:00:06' and `end` < '2025-03-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-03-27 19:00:20] Production.INFO: count ==3710 [2025-03-27 19:00:21] Production.ERROR: pbx CDR StartTime 2025-03-27 16:00:06 - End Time 2025-03-27 19:00:06 [2025-03-27 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776160', 'tblTempUsageDetail_20' ) start [2025-03-27 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776160', 'tblTempUsageDetail_20' ) end [2025-03-27 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776160', 'tblTempVendorCDR_20' ) start [2025-03-27 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776160', 'tblTempVendorCDR_20' ) end [2025-03-27 19:00:22] Production.INFO: ProcessCDR(1,14776160,1,1,2) [2025-03-27 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776160', 'tblTempUsageDetail_20' ) start [2025-03-27 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776160', 'tblTempUsageDetail_20' ) end [2025-03-27 19:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:00:26] Production.INFO: ==30285== Releasing lock... [2025-03-27 19:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:00:26] Production.INFO: 56 MB #Memory Used# [2025-03-27 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:01:05 [end_date_ymd] => 2025-03-27 19:01:05 [RateCDR] => 1 ) [2025-03-27 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:01:05' and `end` < '2025-03-27 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:01:18] Production.INFO: count ==3711 [2025-03-27 19:01:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:01:05 - End Time 2025-03-27 19:01:05 [2025-03-27 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776166', 'tblTempUsageDetail_20' ) start [2025-03-27 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776166', 'tblTempUsageDetail_20' ) end [2025-03-27 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776166', 'tblTempVendorCDR_20' ) start [2025-03-27 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776166', 'tblTempVendorCDR_20' ) end [2025-03-27 19:01:20] Production.INFO: ProcessCDR(1,14776166,1,1,2) [2025-03-27 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776166', 'tblTempUsageDetail_20' ) start [2025-03-27 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776166', 'tblTempUsageDetail_20' ) end [2025-03-27 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:01:24] Production.INFO: ==30422== Releasing lock... [2025-03-27 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:01:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-27 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:02:06 [end_date_ymd] => 2025-03-27 19:02:06 [RateCDR] => 1 ) [2025-03-27 19:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:02:06' and `end` < '2025-03-27 19:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:02:19] Production.INFO: count ==3707 [2025-03-27 19:02:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:02:06 - End Time 2025-03-27 19:02:06 [2025-03-27 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776171', 'tblTempUsageDetail_20' ) start [2025-03-27 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776171', 'tblTempUsageDetail_20' ) end [2025-03-27 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776171', 'tblTempVendorCDR_20' ) start [2025-03-27 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776171', 'tblTempVendorCDR_20' ) end [2025-03-27 19:02:21] Production.INFO: ProcessCDR(1,14776171,1,1,2) [2025-03-27 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776171', 'tblTempUsageDetail_20' ) start [2025-03-27 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776171', 'tblTempUsageDetail_20' ) end [2025-03-27 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:02:24] Production.INFO: ==30606== Releasing lock... [2025-03-27 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:02:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-27 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:03:05 [end_date_ymd] => 2025-03-27 19:03:05 [RateCDR] => 1 ) [2025-03-27 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:03:05' and `end` < '2025-03-27 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:03:18] Production.INFO: count ==3712 [2025-03-27 19:03:19] Production.ERROR: pbx CDR StartTime 2025-03-27 16:03:05 - End Time 2025-03-27 19:03:05 [2025-03-27 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776176', 'tblTempUsageDetail_20' ) start [2025-03-27 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776176', 'tblTempUsageDetail_20' ) end [2025-03-27 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776176', 'tblTempVendorCDR_20' ) start [2025-03-27 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776176', 'tblTempVendorCDR_20' ) end [2025-03-27 19:03:19] Production.INFO: ProcessCDR(1,14776176,1,1,2) [2025-03-27 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776176', 'tblTempUsageDetail_20' ) start [2025-03-27 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776176', 'tblTempUsageDetail_20' ) end [2025-03-27 19:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:03:25] Production.INFO: ==30712== Releasing lock... [2025-03-27 19:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:03:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-27 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:04:06 [end_date_ymd] => 2025-03-27 19:04:06 [RateCDR] => 1 ) [2025-03-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-03-27 16:04:06' and `end` < '2025-03-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-03-27 19:04:19] Production.INFO: count ==3713 [2025-03-27 19:04:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:04:06 - End Time 2025-03-27 19:04:06 [2025-03-27 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776181', 'tblTempUsageDetail_20' ) start [2025-03-27 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776181', 'tblTempUsageDetail_20' ) end [2025-03-27 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776181', 'tblTempVendorCDR_20' ) start [2025-03-27 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776181', 'tblTempVendorCDR_20' ) end [2025-03-27 19:04:20] Production.INFO: ProcessCDR(1,14776181,1,1,2) [2025-03-27 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776181', 'tblTempUsageDetail_20' ) start [2025-03-27 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776181', 'tblTempUsageDetail_20' ) end [2025-03-27 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:04:24] Production.INFO: ==30823== Releasing lock... [2025-03-27 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:04:24] Production.INFO: 56 MB #Memory Used# [2025-03-27 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:05:05 [end_date_ymd] => 2025-03-27 19:05:05 [RateCDR] => 1 ) [2025-03-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-03-27 16:05:05' and `end` < '2025-03-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-03-27 19:05:18] Production.INFO: count ==3691 [2025-03-27 19:05:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:05:05 - End Time 2025-03-27 19:05:05 [2025-03-27 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776186', 'tblTempUsageDetail_20' ) start [2025-03-27 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776186', 'tblTempUsageDetail_20' ) end [2025-03-27 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776186', 'tblTempVendorCDR_20' ) start [2025-03-27 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776186', 'tblTempVendorCDR_20' ) end [2025-03-27 19:05:20] Production.INFO: ProcessCDR(1,14776186,1,1,2) [2025-03-27 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776186', 'tblTempUsageDetail_20' ) start [2025-03-27 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776186', 'tblTempUsageDetail_20' ) end [2025-03-27 19:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:05:24] Production.INFO: ==31005== Releasing lock... [2025-03-27 19:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:05:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-27 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:06:06 [end_date_ymd] => 2025-03-27 19:06:06 [RateCDR] => 1 ) [2025-03-27 19:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:06:06' and `end` < '2025-03-27 19:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:06:19] Production.INFO: count ==3690 [2025-03-27 19:06:21] Production.ERROR: pbx CDR StartTime 2025-03-27 16:06:06 - End Time 2025-03-27 19:06:06 [2025-03-27 19:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776191', 'tblTempUsageDetail_20' ) start [2025-03-27 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776191', 'tblTempUsageDetail_20' ) end [2025-03-27 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776191', 'tblTempVendorCDR_20' ) start [2025-03-27 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776191', 'tblTempVendorCDR_20' ) end [2025-03-27 19:06:21] Production.INFO: ProcessCDR(1,14776191,1,1,2) [2025-03-27 19:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776191', 'tblTempUsageDetail_20' ) start [2025-03-27 19:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776191', 'tblTempUsageDetail_20' ) end [2025-03-27 19:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:06:27] Production.INFO: ==31117== Releasing lock... [2025-03-27 19:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:06:27] Production.INFO: 56.5 MB #Memory Used# [2025-03-27 19:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:07:06 [end_date_ymd] => 2025-03-27 19:07:06 [RateCDR] => 1 ) [2025-03-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-03-27 16:07:06' and `end` < '2025-03-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-03-27 19:07:19] Production.INFO: count ==3674 [2025-03-27 19:07:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:07:06 - End Time 2025-03-27 19:07:06 [2025-03-27 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776196', 'tblTempUsageDetail_20' ) start [2025-03-27 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776196', 'tblTempUsageDetail_20' ) end [2025-03-27 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776196', 'tblTempVendorCDR_20' ) start [2025-03-27 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776196', 'tblTempVendorCDR_20' ) end [2025-03-27 19:07:20] Production.INFO: ProcessCDR(1,14776196,1,1,2) [2025-03-27 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776196', 'tblTempUsageDetail_20' ) start [2025-03-27 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776196', 'tblTempUsageDetail_20' ) end [2025-03-27 19:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:07:25] Production.INFO: ==31231== Releasing lock... [2025-03-27 19:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:07:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-27 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:08:06 [end_date_ymd] => 2025-03-27 19:08:06 [RateCDR] => 1 ) [2025-03-27 19:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:08:06' and `end` < '2025-03-27 19:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:08:19] Production.INFO: count ==3654 [2025-03-27 19:08:21] Production.ERROR: pbx CDR StartTime 2025-03-27 16:08:06 - End Time 2025-03-27 19:08:06 [2025-03-27 19:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776201', 'tblTempUsageDetail_20' ) start [2025-03-27 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776201', 'tblTempUsageDetail_20' ) end [2025-03-27 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776201', 'tblTempVendorCDR_20' ) start [2025-03-27 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776201', 'tblTempVendorCDR_20' ) end [2025-03-27 19:08:21] Production.INFO: ProcessCDR(1,14776201,1,1,2) [2025-03-27 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776201', 'tblTempUsageDetail_20' ) start [2025-03-27 19:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776201', 'tblTempUsageDetail_20' ) end [2025-03-27 19:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:08:27] Production.INFO: ==31348== Releasing lock... [2025-03-27 19:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:08:27] Production.INFO: 56 MB #Memory Used# [2025-03-27 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:09:05 [end_date_ymd] => 2025-03-27 19:09:05 [RateCDR] => 1 ) [2025-03-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-03-27 16:09:05' and `end` < '2025-03-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-03-27 19:09:19] Production.INFO: count ==3646 [2025-03-27 19:09:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:09:05 - End Time 2025-03-27 19:09:05 [2025-03-27 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776206', 'tblTempUsageDetail_20' ) start [2025-03-27 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776206', 'tblTempUsageDetail_20' ) end [2025-03-27 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776206', 'tblTempVendorCDR_20' ) start [2025-03-27 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776206', 'tblTempVendorCDR_20' ) end [2025-03-27 19:09:20] Production.INFO: ProcessCDR(1,14776206,1,1,2) [2025-03-27 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776206', 'tblTempUsageDetail_20' ) start [2025-03-27 19:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776206', 'tblTempUsageDetail_20' ) end [2025-03-27 19:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:09:26] Production.INFO: ==31542== Releasing lock... [2025-03-27 19:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:09:26] Production.INFO: 56 MB #Memory Used# [2025-03-27 19:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:10:07 [end_date_ymd] => 2025-03-27 19:10:07 [RateCDR] => 1 ) [2025-03-27 19:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:10:07' and `end` < '2025-03-27 19:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:10:20] Production.INFO: count ==3642 [2025-03-27 19:10:21] Production.ERROR: pbx CDR StartTime 2025-03-27 16:10:07 - End Time 2025-03-27 19:10:07 [2025-03-27 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776211', 'tblTempUsageDetail_20' ) start [2025-03-27 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776211', 'tblTempUsageDetail_20' ) end [2025-03-27 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776211', 'tblTempVendorCDR_20' ) start [2025-03-27 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776211', 'tblTempVendorCDR_20' ) end [2025-03-27 19:10:21] Production.INFO: ProcessCDR(1,14776211,1,1,2) [2025-03-27 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776211', 'tblTempUsageDetail_20' ) start [2025-03-27 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776211', 'tblTempUsageDetail_20' ) end [2025-03-27 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:10:26] Production.INFO: ==31656== Releasing lock... [2025-03-27 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:10:26] Production.INFO: 55.5 MB #Memory Used# [2025-03-27 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:11:05 [end_date_ymd] => 2025-03-27 19:11:05 [RateCDR] => 1 ) [2025-03-27 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:11:05' and `end` < '2025-03-27 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:11:18] Production.INFO: count ==3666 [2025-03-27 19:11:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:11:05 - End Time 2025-03-27 19:11:05 [2025-03-27 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776217', 'tblTempUsageDetail_20' ) start [2025-03-27 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776217', 'tblTempUsageDetail_20' ) end [2025-03-27 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776217', 'tblTempVendorCDR_20' ) start [2025-03-27 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776217', 'tblTempVendorCDR_20' ) end [2025-03-27 19:11:20] Production.INFO: ProcessCDR(1,14776217,1,1,2) [2025-03-27 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776217', 'tblTempUsageDetail_20' ) start [2025-03-27 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776217', 'tblTempUsageDetail_20' ) end [2025-03-27 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:11:23] Production.INFO: ==31777== Releasing lock... [2025-03-27 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:11:23] Production.INFO: 55.75 MB #Memory Used# [2025-03-27 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:12:06 [end_date_ymd] => 2025-03-27 19:12:06 [RateCDR] => 1 ) [2025-03-27 19:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:12:06' and `end` < '2025-03-27 19:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:12:19] Production.INFO: count ==3660 [2025-03-27 19:12:21] Production.ERROR: pbx CDR StartTime 2025-03-27 16:12:06 - End Time 2025-03-27 19:12:06 [2025-03-27 19:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776222', 'tblTempUsageDetail_20' ) start [2025-03-27 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776222', 'tblTempUsageDetail_20' ) end [2025-03-27 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776222', 'tblTempVendorCDR_20' ) start [2025-03-27 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776222', 'tblTempVendorCDR_20' ) end [2025-03-27 19:12:21] Production.INFO: ProcessCDR(1,14776222,1,1,2) [2025-03-27 19:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776222', 'tblTempUsageDetail_20' ) start [2025-03-27 19:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776222', 'tblTempUsageDetail_20' ) end [2025-03-27 19:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:12:26] Production.INFO: ==31964== Releasing lock... [2025-03-27 19:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:12:26] Production.INFO: 56.25 MB #Memory Used# [2025-03-27 19:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:13:06 [end_date_ymd] => 2025-03-27 19:13:06 [RateCDR] => 1 ) [2025-03-27 19:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:13:06' and `end` < '2025-03-27 19:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:13:19] Production.INFO: count ==3657 [2025-03-27 19:13:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:13:06 - End Time 2025-03-27 19:13:06 [2025-03-27 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776227', 'tblTempUsageDetail_20' ) start [2025-03-27 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776227', 'tblTempUsageDetail_20' ) end [2025-03-27 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776227', 'tblTempVendorCDR_20' ) start [2025-03-27 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776227', 'tblTempVendorCDR_20' ) end [2025-03-27 19:13:20] Production.INFO: ProcessCDR(1,14776227,1,1,2) [2025-03-27 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776227', 'tblTempUsageDetail_20' ) start [2025-03-27 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776227', 'tblTempUsageDetail_20' ) end [2025-03-27 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:13:24] Production.INFO: ==32072== Releasing lock... [2025-03-27 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:13:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-27 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:14:06 [end_date_ymd] => 2025-03-27 19:14:06 [RateCDR] => 1 ) [2025-03-27 19:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:14:06' and `end` < '2025-03-27 19:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:14:19] Production.INFO: count ==3665 [2025-03-27 19:14:21] Production.ERROR: pbx CDR StartTime 2025-03-27 16:14:06 - End Time 2025-03-27 19:14:06 [2025-03-27 19:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776232', 'tblTempUsageDetail_20' ) start [2025-03-27 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776232', 'tblTempUsageDetail_20' ) end [2025-03-27 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776232', 'tblTempVendorCDR_20' ) start [2025-03-27 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776232', 'tblTempVendorCDR_20' ) end [2025-03-27 19:14:21] Production.INFO: ProcessCDR(1,14776232,1,1,2) [2025-03-27 19:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776232', 'tblTempUsageDetail_20' ) start [2025-03-27 19:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776232', 'tblTempUsageDetail_20' ) end [2025-03-27 19:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:14:27] Production.INFO: ==32180== Releasing lock... [2025-03-27 19:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:14:27] Production.INFO: 55.5 MB #Memory Used# [2025-03-27 19:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:15:06 [end_date_ymd] => 2025-03-27 19:15:06 [RateCDR] => 1 ) [2025-03-27 19:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:15:06' and `end` < '2025-03-27 19:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:15:19] Production.INFO: count ==3674 [2025-03-27 19:15:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:15:06 - End Time 2025-03-27 19:15:06 [2025-03-27 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776237', 'tblTempUsageDetail_20' ) start [2025-03-27 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776237', 'tblTempUsageDetail_20' ) end [2025-03-27 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776237', 'tblTempVendorCDR_20' ) start [2025-03-27 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776237', 'tblTempVendorCDR_20' ) end [2025-03-27 19:15:20] Production.INFO: ProcessCDR(1,14776237,1,1,2) [2025-03-27 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776237', 'tblTempUsageDetail_20' ) start [2025-03-27 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776237', 'tblTempUsageDetail_20' ) end [2025-03-27 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:15:24] Production.INFO: ==32318== Releasing lock... [2025-03-27 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:15:24] Production.INFO: 56 MB #Memory Used# [2025-03-27 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:16:06 [end_date_ymd] => 2025-03-27 19:16:06 [RateCDR] => 1 ) [2025-03-27 19:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:16:06' and `end` < '2025-03-27 19:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:16:19] Production.INFO: count ==3671 [2025-03-27 19:16:21] Production.ERROR: pbx CDR StartTime 2025-03-27 16:16:06 - End Time 2025-03-27 19:16:06 [2025-03-27 19:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776242', 'tblTempUsageDetail_20' ) start [2025-03-27 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776242', 'tblTempUsageDetail_20' ) end [2025-03-27 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776242', 'tblTempVendorCDR_20' ) start [2025-03-27 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776242', 'tblTempVendorCDR_20' ) end [2025-03-27 19:16:21] Production.INFO: ProcessCDR(1,14776242,1,1,2) [2025-03-27 19:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776242', 'tblTempUsageDetail_20' ) start [2025-03-27 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776242', 'tblTempUsageDetail_20' ) end [2025-03-27 19:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:16:25] Production.INFO: ==32470== Releasing lock... [2025-03-27 19:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:16:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-27 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:17:05 [end_date_ymd] => 2025-03-27 19:17:05 [RateCDR] => 1 ) [2025-03-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-03-27 16:17:05' and `end` < '2025-03-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-03-27 19:17:19] Production.INFO: count ==3650 [2025-03-27 19:17:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:17:05 - End Time 2025-03-27 19:17:05 [2025-03-27 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776247', 'tblTempUsageDetail_20' ) start [2025-03-27 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776247', 'tblTempUsageDetail_20' ) end [2025-03-27 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776247', 'tblTempVendorCDR_20' ) start [2025-03-27 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776247', 'tblTempVendorCDR_20' ) end [2025-03-27 19:17:20] Production.INFO: ProcessCDR(1,14776247,1,1,2) [2025-03-27 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776247', 'tblTempUsageDetail_20' ) start [2025-03-27 19:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776247', 'tblTempUsageDetail_20' ) end [2025-03-27 19:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:17:26] Production.INFO: ==32543== Releasing lock... [2025-03-27 19:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:17:26] Production.INFO: 56 MB #Memory Used# [2025-03-27 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:18:06 [end_date_ymd] => 2025-03-27 19:18:06 [RateCDR] => 1 ) [2025-03-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-03-27 16:18:06' and `end` < '2025-03-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-03-27 19:18:19] Production.INFO: count ==3636 [2025-03-27 19:18:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:18:06 - End Time 2025-03-27 19:18:06 [2025-03-27 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776252', 'tblTempUsageDetail_20' ) start [2025-03-27 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776252', 'tblTempUsageDetail_20' ) end [2025-03-27 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776252', 'tblTempVendorCDR_20' ) start [2025-03-27 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776252', 'tblTempVendorCDR_20' ) end [2025-03-27 19:18:21] Production.INFO: ProcessCDR(1,14776252,1,1,2) [2025-03-27 19:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776252', 'tblTempUsageDetail_20' ) start [2025-03-27 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776252', 'tblTempUsageDetail_20' ) end [2025-03-27 19:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:18:24] Production.INFO: ==32613== Releasing lock... [2025-03-27 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:18:24] Production.INFO: 55.5 MB #Memory Used# [2025-03-27 19:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:19:05 [end_date_ymd] => 2025-03-27 19:19:05 [RateCDR] => 1 ) [2025-03-27 19:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:19:05' and `end` < '2025-03-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-03-27 19:19:18] Production.INFO: count ==3626 [2025-03-27 19:19:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:19:05 - End Time 2025-03-27 19:19:05 [2025-03-27 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776257', 'tblTempUsageDetail_20' ) start [2025-03-27 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776257', 'tblTempUsageDetail_20' ) end [2025-03-27 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776257', 'tblTempVendorCDR_20' ) start [2025-03-27 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776257', 'tblTempVendorCDR_20' ) end [2025-03-27 19:19:20] Production.INFO: ProcessCDR(1,14776257,1,1,2) [2025-03-27 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776257', 'tblTempUsageDetail_20' ) start [2025-03-27 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776257', 'tblTempUsageDetail_20' ) end [2025-03-27 19:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:19:25] Production.INFO: ==32693== Releasing lock... [2025-03-27 19:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:19:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-27 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:20:06 [end_date_ymd] => 2025-03-27 19:20:06 [RateCDR] => 1 ) [2025-03-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-03-27 16:20:06' and `end` < '2025-03-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-03-27 19:20:20] Production.INFO: count ==3600 [2025-03-27 19:20:21] Production.ERROR: pbx CDR StartTime 2025-03-27 16:20:06 - End Time 2025-03-27 19:20:06 [2025-03-27 19:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776263', 'tblTempUsageDetail_20' ) start [2025-03-27 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776263', 'tblTempUsageDetail_20' ) end [2025-03-27 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776263', 'tblTempVendorCDR_20' ) start [2025-03-27 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776263', 'tblTempVendorCDR_20' ) end [2025-03-27 19:20:21] Production.INFO: ProcessCDR(1,14776263,1,1,2) [2025-03-27 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776263', 'tblTempUsageDetail_20' ) start [2025-03-27 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776263', 'tblTempUsageDetail_20' ) end [2025-03-27 19:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:20:25] Production.INFO: ==305== Releasing lock... [2025-03-27 19:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:20:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-27 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:21:05 [end_date_ymd] => 2025-03-27 19:21:05 [RateCDR] => 1 ) [2025-03-27 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:21:05' and `end` < '2025-03-27 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:21:18] Production.INFO: count ==3555 [2025-03-27 19:21:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:21:05 - End Time 2025-03-27 19:21:05 [2025-03-27 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776268', 'tblTempUsageDetail_20' ) start [2025-03-27 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776268', 'tblTempUsageDetail_20' ) end [2025-03-27 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776268', 'tblTempVendorCDR_20' ) start [2025-03-27 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776268', 'tblTempVendorCDR_20' ) end [2025-03-27 19:21:20] Production.INFO: ProcessCDR(1,14776268,1,1,2) [2025-03-27 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776268', 'tblTempUsageDetail_20' ) start [2025-03-27 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776268', 'tblTempUsageDetail_20' ) end [2025-03-27 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:21:24] Production.INFO: ==398== Releasing lock... [2025-03-27 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:21:24] Production.INFO: 56 MB #Memory Used# [2025-03-27 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:22:06 [end_date_ymd] => 2025-03-27 19:22:06 [RateCDR] => 1 ) [2025-03-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-03-27 16:22:06' and `end` < '2025-03-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-03-27 19:22:19] Production.INFO: count ==3533 [2025-03-27 19:22:21] Production.ERROR: pbx CDR StartTime 2025-03-27 16:22:06 - End Time 2025-03-27 19:22:06 [2025-03-27 19:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776273', 'tblTempUsageDetail_20' ) start [2025-03-27 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776273', 'tblTempUsageDetail_20' ) end [2025-03-27 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776273', 'tblTempVendorCDR_20' ) start [2025-03-27 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776273', 'tblTempVendorCDR_20' ) end [2025-03-27 19:22:21] Production.INFO: ProcessCDR(1,14776273,1,1,2) [2025-03-27 19:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776273', 'tblTempUsageDetail_20' ) start [2025-03-27 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776273', 'tblTempUsageDetail_20' ) end [2025-03-27 19:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:22:24] Production.INFO: ==481== Releasing lock... [2025-03-27 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:22:24] Production.INFO: 54.75 MB #Memory Used# [2025-03-27 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:23:05 [end_date_ymd] => 2025-03-27 19:23:05 [RateCDR] => 1 ) [2025-03-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-03-27 16:23:05' and `end` < '2025-03-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-03-27 19:23:18] Production.INFO: count ==3468 [2025-03-27 19:23:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:23:05 - End Time 2025-03-27 19:23:05 [2025-03-27 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776278', 'tblTempUsageDetail_20' ) start [2025-03-27 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776278', 'tblTempUsageDetail_20' ) end [2025-03-27 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776278', 'tblTempVendorCDR_20' ) start [2025-03-27 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776278', 'tblTempVendorCDR_20' ) end [2025-03-27 19:23:20] Production.INFO: ProcessCDR(1,14776278,1,1,2) [2025-03-27 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776278', 'tblTempUsageDetail_20' ) start [2025-03-27 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776278', 'tblTempUsageDetail_20' ) end [2025-03-27 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:23:23] Production.INFO: ==573== Releasing lock... [2025-03-27 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:23:23] Production.INFO: 54 MB #Memory Used# [2025-03-27 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:24:06 [end_date_ymd] => 2025-03-27 19:24:06 [RateCDR] => 1 ) [2025-03-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-03-27 16:24:06' and `end` < '2025-03-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-03-27 19:24:19] Production.INFO: count ==3465 [2025-03-27 19:24:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:24:06 - End Time 2025-03-27 19:24:06 [2025-03-27 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776283', 'tblTempUsageDetail_20' ) start [2025-03-27 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776283', 'tblTempUsageDetail_20' ) end [2025-03-27 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776283', 'tblTempVendorCDR_20' ) start [2025-03-27 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776283', 'tblTempVendorCDR_20' ) end [2025-03-27 19:24:20] Production.INFO: ProcessCDR(1,14776283,1,1,2) [2025-03-27 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776283', 'tblTempUsageDetail_20' ) start [2025-03-27 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776283', 'tblTempUsageDetail_20' ) end [2025-03-27 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:24:24] Production.INFO: ==668== Releasing lock... [2025-03-27 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:24:24] Production.INFO: 54 MB #Memory Used# [2025-03-27 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:25:05 [end_date_ymd] => 2025-03-27 19:25:05 [RateCDR] => 1 ) [2025-03-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-03-27 16:25:05' and `end` < '2025-03-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-03-27 19:25:18] Production.INFO: count ==3473 [2025-03-27 19:25:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:25:05 - End Time 2025-03-27 19:25:05 [2025-03-27 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776288', 'tblTempUsageDetail_20' ) start [2025-03-27 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776288', 'tblTempUsageDetail_20' ) end [2025-03-27 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776288', 'tblTempVendorCDR_20' ) start [2025-03-27 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776288', 'tblTempVendorCDR_20' ) end [2025-03-27 19:25:20] Production.INFO: ProcessCDR(1,14776288,1,1,2) [2025-03-27 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776288', 'tblTempUsageDetail_20' ) start [2025-03-27 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776288', 'tblTempUsageDetail_20' ) end [2025-03-27 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:25:26] Production.INFO: ==762== Releasing lock... [2025-03-27 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:25:26] Production.INFO: 54.25 MB #Memory Used# [2025-03-27 19:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:26:06 [end_date_ymd] => 2025-03-27 19:26:06 [RateCDR] => 1 ) [2025-03-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-03-27 16:26:06' and `end` < '2025-03-27 19:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:26:19] Production.INFO: count ==3459 [2025-03-27 19:26:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:26:06 - End Time 2025-03-27 19:26:06 [2025-03-27 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776293', 'tblTempUsageDetail_20' ) start [2025-03-27 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776293', 'tblTempUsageDetail_20' ) end [2025-03-27 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776293', 'tblTempVendorCDR_20' ) start [2025-03-27 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776293', 'tblTempVendorCDR_20' ) end [2025-03-27 19:26:20] Production.INFO: ProcessCDR(1,14776293,1,1,2) [2025-03-27 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776293', 'tblTempUsageDetail_20' ) start [2025-03-27 19:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776293', 'tblTempUsageDetail_20' ) end [2025-03-27 19:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:26:26] Production.INFO: ==845== Releasing lock... [2025-03-27 19:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:26:26] Production.INFO: 54.25 MB #Memory Used# [2025-03-27 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:27:05 [end_date_ymd] => 2025-03-27 19:27:05 [RateCDR] => 1 ) [2025-03-27 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:27:05' and `end` < '2025-03-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-03-27 19:27:18] Production.INFO: count ==3458 [2025-03-27 19:27:19] Production.ERROR: pbx CDR StartTime 2025-03-27 16:27:05 - End Time 2025-03-27 19:27:05 [2025-03-27 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776298', 'tblTempUsageDetail_20' ) start [2025-03-27 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776298', 'tblTempUsageDetail_20' ) end [2025-03-27 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776298', 'tblTempVendorCDR_20' ) start [2025-03-27 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776298', 'tblTempVendorCDR_20' ) end [2025-03-27 19:27:20] Production.INFO: ProcessCDR(1,14776298,1,1,2) [2025-03-27 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776298', 'tblTempUsageDetail_20' ) start [2025-03-27 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776298', 'tblTempUsageDetail_20' ) end [2025-03-27 19:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:27:25] Production.INFO: ==917== Releasing lock... [2025-03-27 19:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:27:25] Production.INFO: 54.75 MB #Memory Used# [2025-03-27 19:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:28:06 [end_date_ymd] => 2025-03-27 19:28:06 [RateCDR] => 1 ) [2025-03-27 19:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:28:06' and `end` < '2025-03-27 19:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:28:19] Production.INFO: count ==3453 [2025-03-27 19:28:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:28:06 - End Time 2025-03-27 19:28:06 [2025-03-27 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776303', 'tblTempUsageDetail_20' ) start [2025-03-27 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776303', 'tblTempUsageDetail_20' ) end [2025-03-27 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776303', 'tblTempVendorCDR_20' ) start [2025-03-27 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776303', 'tblTempVendorCDR_20' ) end [2025-03-27 19:28:20] Production.INFO: ProcessCDR(1,14776303,1,1,2) [2025-03-27 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776303', 'tblTempUsageDetail_20' ) start [2025-03-27 19:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776303', 'tblTempUsageDetail_20' ) end [2025-03-27 19:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:28:26] Production.INFO: ==988== Releasing lock... [2025-03-27 19:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:28:26] Production.INFO: 53.75 MB #Memory Used# [2025-03-27 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:29:05 [end_date_ymd] => 2025-03-27 19:29:05 [RateCDR] => 1 ) [2025-03-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-03-27 16:29:05' and `end` < '2025-03-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-03-27 19:29:18] Production.INFO: count ==3411 [2025-03-27 19:29:19] Production.ERROR: pbx CDR StartTime 2025-03-27 16:29:05 - End Time 2025-03-27 19:29:05 [2025-03-27 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776308', 'tblTempUsageDetail_20' ) start [2025-03-27 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776308', 'tblTempUsageDetail_20' ) end [2025-03-27 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776308', 'tblTempVendorCDR_20' ) start [2025-03-27 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776308', 'tblTempVendorCDR_20' ) end [2025-03-27 19:29:19] Production.INFO: ProcessCDR(1,14776308,1,1,2) [2025-03-27 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776308', 'tblTempUsageDetail_20' ) start [2025-03-27 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776308', 'tblTempUsageDetail_20' ) end [2025-03-27 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:29:23] Production.INFO: ==1061== Releasing lock... [2025-03-27 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:29:23] Production.INFO: 53.5 MB #Memory Used# [2025-03-27 19:30:08] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:30:08 [end_date_ymd] => 2025-03-27 19:30:08 [RateCDR] => 1 ) [2025-03-27 19:30:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:30:08' and `end` < '2025-03-27 19:30:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:30:21] Production.INFO: count ==3387 [2025-03-27 19:30:22] Production.ERROR: pbx CDR StartTime 2025-03-27 16:30:08 - End Time 2025-03-27 19:30:08 [2025-03-27 19:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776314', 'tblTempUsageDetail_20' ) start [2025-03-27 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776314', 'tblTempUsageDetail_20' ) end [2025-03-27 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776314', 'tblTempVendorCDR_20' ) start [2025-03-27 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776314', 'tblTempVendorCDR_20' ) end [2025-03-27 19:30:22] Production.INFO: ProcessCDR(1,14776314,1,1,2) [2025-03-27 19:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776314', 'tblTempUsageDetail_20' ) start [2025-03-27 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776314', 'tblTempUsageDetail_20' ) end [2025-03-27 19:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:30:26] Production.INFO: ==1140== Releasing lock... [2025-03-27 19:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:30:26] Production.INFO: 53.5 MB #Memory Used# [2025-03-27 19:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:31:06 [end_date_ymd] => 2025-03-27 19:31:06 [RateCDR] => 1 ) [2025-03-27 19:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:31:06' and `end` < '2025-03-27 19:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:31:19] Production.INFO: count ==3298 [2025-03-27 19:31:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:31:06 - End Time 2025-03-27 19:31:06 [2025-03-27 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776319', 'tblTempUsageDetail_20' ) start [2025-03-27 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776319', 'tblTempUsageDetail_20' ) end [2025-03-27 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776319', 'tblTempVendorCDR_20' ) start [2025-03-27 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776319', 'tblTempVendorCDR_20' ) end [2025-03-27 19:31:20] Production.INFO: ProcessCDR(1,14776319,1,1,2) [2025-03-27 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776319', 'tblTempUsageDetail_20' ) start [2025-03-27 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776319', 'tblTempUsageDetail_20' ) end [2025-03-27 19:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:31:24] Production.INFO: ==1216== Releasing lock... [2025-03-27 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:31:24] Production.INFO: 52.5 MB #Memory Used# [2025-03-27 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:32:05 [end_date_ymd] => 2025-03-27 19:32:05 [RateCDR] => 1 ) [2025-03-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-03-27 16:32:05' and `end` < '2025-03-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-03-27 19:32:19] Production.INFO: count ==3290 [2025-03-27 19:32:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:32:05 - End Time 2025-03-27 19:32:05 [2025-03-27 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776324', 'tblTempUsageDetail_20' ) start [2025-03-27 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776324', 'tblTempUsageDetail_20' ) end [2025-03-27 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776324', 'tblTempVendorCDR_20' ) start [2025-03-27 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776324', 'tblTempVendorCDR_20' ) end [2025-03-27 19:32:20] Production.INFO: ProcessCDR(1,14776324,1,1,2) [2025-03-27 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776324', 'tblTempUsageDetail_20' ) start [2025-03-27 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776324', 'tblTempUsageDetail_20' ) end [2025-03-27 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:32:24] Production.INFO: ==1342== Releasing lock... [2025-03-27 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:32:24] Production.INFO: 53 MB #Memory Used# [2025-03-27 19:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:33:06 [end_date_ymd] => 2025-03-27 19:33:06 [RateCDR] => 1 ) [2025-03-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-03-27 16:33:06' and `end` < '2025-03-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-03-27 19:33:19] Production.INFO: count ==3283 [2025-03-27 19:33:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:33:06 - End Time 2025-03-27 19:33:06 [2025-03-27 19:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776329', 'tblTempUsageDetail_20' ) start [2025-03-27 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776329', 'tblTempUsageDetail_20' ) end [2025-03-27 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776329', 'tblTempVendorCDR_20' ) start [2025-03-27 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776329', 'tblTempVendorCDR_20' ) end [2025-03-27 19:33:20] Production.INFO: ProcessCDR(1,14776329,1,1,2) [2025-03-27 19:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776329', 'tblTempUsageDetail_20' ) start [2025-03-27 19:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776329', 'tblTempUsageDetail_20' ) end [2025-03-27 19:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:33:26] Production.INFO: ==1419== Releasing lock... [2025-03-27 19:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:33:26] Production.INFO: 53 MB #Memory Used# [2025-03-27 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:34:05 [end_date_ymd] => 2025-03-27 19:34:05 [RateCDR] => 1 ) [2025-03-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-03-27 16:34:05' and `end` < '2025-03-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-03-27 19:34:18] Production.INFO: count ==3284 [2025-03-27 19:34:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:34:05 - End Time 2025-03-27 19:34:05 [2025-03-27 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776334', 'tblTempUsageDetail_20' ) start [2025-03-27 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776334', 'tblTempUsageDetail_20' ) end [2025-03-27 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776334', 'tblTempVendorCDR_20' ) start [2025-03-27 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776334', 'tblTempVendorCDR_20' ) end [2025-03-27 19:34:20] Production.INFO: ProcessCDR(1,14776334,1,1,2) [2025-03-27 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776334', 'tblTempUsageDetail_20' ) start [2025-03-27 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776334', 'tblTempUsageDetail_20' ) end [2025-03-27 19:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:34:25] Production.INFO: ==1493== Releasing lock... [2025-03-27 19:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:34:25] Production.INFO: 52.5 MB #Memory Used# [2025-03-27 19:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:35:06 [end_date_ymd] => 2025-03-27 19:35:06 [RateCDR] => 1 ) [2025-03-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-03-27 16:35:06' and `end` < '2025-03-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-03-27 19:35:19] Production.INFO: count ==3266 [2025-03-27 19:35:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:35:06 - End Time 2025-03-27 19:35:06 [2025-03-27 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776339', 'tblTempUsageDetail_20' ) start [2025-03-27 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776339', 'tblTempUsageDetail_20' ) end [2025-03-27 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776339', 'tblTempVendorCDR_20' ) start [2025-03-27 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776339', 'tblTempVendorCDR_20' ) end [2025-03-27 19:35:20] Production.INFO: ProcessCDR(1,14776339,1,1,2) [2025-03-27 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776339', 'tblTempUsageDetail_20' ) start [2025-03-27 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776339', 'tblTempUsageDetail_20' ) end [2025-03-27 19:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:35:24] Production.INFO: ==1601== Releasing lock... [2025-03-27 19:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:35:24] Production.INFO: 52.75 MB #Memory Used# [2025-03-27 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:36:05 [end_date_ymd] => 2025-03-27 19:36:05 [RateCDR] => 1 ) [2025-03-27 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:36:05' and `end` < '2025-03-27 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:36:18] Production.INFO: count ==3264 [2025-03-27 19:36:19] Production.ERROR: pbx CDR StartTime 2025-03-27 16:36:05 - End Time 2025-03-27 19:36:05 [2025-03-27 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776344', 'tblTempUsageDetail_20' ) start [2025-03-27 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776344', 'tblTempUsageDetail_20' ) end [2025-03-27 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776344', 'tblTempVendorCDR_20' ) start [2025-03-27 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776344', 'tblTempVendorCDR_20' ) end [2025-03-27 19:36:20] Production.INFO: ProcessCDR(1,14776344,1,1,2) [2025-03-27 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776344', 'tblTempUsageDetail_20' ) start [2025-03-27 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776344', 'tblTempUsageDetail_20' ) end [2025-03-27 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:36:23] Production.INFO: ==1682== Releasing lock... [2025-03-27 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:36:23] Production.INFO: 52.5 MB #Memory Used# [2025-03-27 19:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:37:06 [end_date_ymd] => 2025-03-27 19:37:06 [RateCDR] => 1 ) [2025-03-27 19:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:37:06' and `end` < '2025-03-27 19:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:37:19] Production.INFO: count ==3273 [2025-03-27 19:37:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:37:06 - End Time 2025-03-27 19:37:06 [2025-03-27 19:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776349', 'tblTempUsageDetail_20' ) start [2025-03-27 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776349', 'tblTempUsageDetail_20' ) end [2025-03-27 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776349', 'tblTempVendorCDR_20' ) start [2025-03-27 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776349', 'tblTempVendorCDR_20' ) end [2025-03-27 19:37:20] Production.INFO: ProcessCDR(1,14776349,1,1,2) [2025-03-27 19:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776349', 'tblTempUsageDetail_20' ) start [2025-03-27 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776349', 'tblTempUsageDetail_20' ) end [2025-03-27 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:37:24] Production.INFO: ==1765== Releasing lock... [2025-03-27 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:37:24] Production.INFO: 52.5 MB #Memory Used# [2025-03-27 19:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:38:06 [end_date_ymd] => 2025-03-27 19:38:06 [RateCDR] => 1 ) [2025-03-27 19:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:38:06' and `end` < '2025-03-27 19:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:38:19] Production.INFO: count ==3253 [2025-03-27 19:38:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:38:06 - End Time 2025-03-27 19:38:06 [2025-03-27 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776354', 'tblTempUsageDetail_20' ) start [2025-03-27 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776354', 'tblTempUsageDetail_20' ) end [2025-03-27 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776354', 'tblTempVendorCDR_20' ) start [2025-03-27 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776354', 'tblTempVendorCDR_20' ) end [2025-03-27 19:38:20] Production.INFO: ProcessCDR(1,14776354,1,1,2) [2025-03-27 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776354', 'tblTempUsageDetail_20' ) start [2025-03-27 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776354', 'tblTempUsageDetail_20' ) end [2025-03-27 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:38:24] Production.INFO: ==1856== Releasing lock... [2025-03-27 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:38:24] Production.INFO: 52.5 MB #Memory Used# [2025-03-27 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:39:05 [end_date_ymd] => 2025-03-27 19:39:05 [RateCDR] => 1 ) [2025-03-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-03-27 16:39:05' and `end` < '2025-03-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-03-27 19:39:18] Production.INFO: count ==3218 [2025-03-27 19:39:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:39:05 - End Time 2025-03-27 19:39:05 [2025-03-27 19:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776359', 'tblTempUsageDetail_20' ) start [2025-03-27 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776359', 'tblTempUsageDetail_20' ) end [2025-03-27 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776359', 'tblTempVendorCDR_20' ) start [2025-03-27 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776359', 'tblTempVendorCDR_20' ) end [2025-03-27 19:39:20] Production.INFO: ProcessCDR(1,14776359,1,1,2) [2025-03-27 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776359', 'tblTempUsageDetail_20' ) start [2025-03-27 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776359', 'tblTempUsageDetail_20' ) end [2025-03-27 19:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:39:24] Production.INFO: ==1932== Releasing lock... [2025-03-27 19:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:39:24] Production.INFO: 52.25 MB #Memory Used# [2025-03-27 19:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:40:07 [end_date_ymd] => 2025-03-27 19:40:07 [RateCDR] => 1 ) [2025-03-27 19:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:40:07' and `end` < '2025-03-27 19:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:40:20] Production.INFO: count ==3207 [2025-03-27 19:40:21] Production.ERROR: pbx CDR StartTime 2025-03-27 16:40:07 - End Time 2025-03-27 19:40:07 [2025-03-27 19:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776365', 'tblTempUsageDetail_20' ) start [2025-03-27 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776365', 'tblTempUsageDetail_20' ) end [2025-03-27 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776365', 'tblTempVendorCDR_20' ) start [2025-03-27 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776365', 'tblTempVendorCDR_20' ) end [2025-03-27 19:40:21] Production.INFO: ProcessCDR(1,14776365,1,1,2) [2025-03-27 19:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776365', 'tblTempUsageDetail_20' ) start [2025-03-27 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776365', 'tblTempUsageDetail_20' ) end [2025-03-27 19:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:40:25] Production.INFO: ==2020== Releasing lock... [2025-03-27 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:40:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-27 19:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:41:06 [end_date_ymd] => 2025-03-27 19:41:06 [RateCDR] => 1 ) [2025-03-27 19:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:41:06' and `end` < '2025-03-27 19:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:41:19] Production.INFO: count ==3179 [2025-03-27 19:41:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:41:06 - End Time 2025-03-27 19:41:06 [2025-03-27 19:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776370', 'tblTempUsageDetail_20' ) start [2025-03-27 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776370', 'tblTempUsageDetail_20' ) end [2025-03-27 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776370', 'tblTempVendorCDR_20' ) start [2025-03-27 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776370', 'tblTempVendorCDR_20' ) end [2025-03-27 19:41:20] Production.INFO: ProcessCDR(1,14776370,1,1,2) [2025-03-27 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776370', 'tblTempUsageDetail_20' ) start [2025-03-27 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776370', 'tblTempUsageDetail_20' ) end [2025-03-27 19:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:41:24] Production.INFO: ==2102== Releasing lock... [2025-03-27 19:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:41:24] Production.INFO: 52.75 MB #Memory Used# [2025-03-27 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:42:06 [end_date_ymd] => 2025-03-27 19:42:06 [RateCDR] => 1 ) [2025-03-27 19:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:42:06' and `end` < '2025-03-27 19:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:42:19] Production.INFO: count ==3171 [2025-03-27 19:42:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:42:06 - End Time 2025-03-27 19:42:06 [2025-03-27 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776375', 'tblTempUsageDetail_20' ) start [2025-03-27 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776375', 'tblTempUsageDetail_20' ) end [2025-03-27 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776375', 'tblTempVendorCDR_20' ) start [2025-03-27 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776375', 'tblTempVendorCDR_20' ) end [2025-03-27 19:42:20] Production.INFO: ProcessCDR(1,14776375,1,1,2) [2025-03-27 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776375', 'tblTempUsageDetail_20' ) start [2025-03-27 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776375', 'tblTempUsageDetail_20' ) end [2025-03-27 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:42:24] Production.INFO: ==2191== Releasing lock... [2025-03-27 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:42:24] Production.INFO: 51.75 MB #Memory Used# [2025-03-27 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:43:05 [end_date_ymd] => 2025-03-27 19:43:05 [RateCDR] => 1 ) [2025-03-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-03-27 16:43:05' and `end` < '2025-03-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-03-27 19:43:18] Production.INFO: count ==3159 [2025-03-27 19:43:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:43:05 - End Time 2025-03-27 19:43:05 [2025-03-27 19:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776380', 'tblTempUsageDetail_20' ) start [2025-03-27 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776380', 'tblTempUsageDetail_20' ) end [2025-03-27 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776380', 'tblTempVendorCDR_20' ) start [2025-03-27 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776380', 'tblTempVendorCDR_20' ) end [2025-03-27 19:43:20] Production.INFO: ProcessCDR(1,14776380,1,1,2) [2025-03-27 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776380', 'tblTempUsageDetail_20' ) start [2025-03-27 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776380', 'tblTempUsageDetail_20' ) end [2025-03-27 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:43:24] Production.INFO: ==2274== Releasing lock... [2025-03-27 19:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:43:24] Production.INFO: 52.25 MB #Memory Used# [2025-03-27 19:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:44:06 [end_date_ymd] => 2025-03-27 19:44:06 [RateCDR] => 1 ) [2025-03-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-03-27 16:44:06' and `end` < '2025-03-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-03-27 19:44:19] Production.INFO: count ==3155 [2025-03-27 19:44:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:44:06 - End Time 2025-03-27 19:44:06 [2025-03-27 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776385', 'tblTempUsageDetail_20' ) start [2025-03-27 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776385', 'tblTempUsageDetail_20' ) end [2025-03-27 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776385', 'tblTempVendorCDR_20' ) start [2025-03-27 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776385', 'tblTempVendorCDR_20' ) end [2025-03-27 19:44:20] Production.INFO: ProcessCDR(1,14776385,1,1,2) [2025-03-27 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776385', 'tblTempUsageDetail_20' ) start [2025-03-27 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776385', 'tblTempUsageDetail_20' ) end [2025-03-27 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:44:24] Production.INFO: ==2361== Releasing lock... [2025-03-27 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:44:24] Production.INFO: 51.5 MB #Memory Used# [2025-03-27 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:45:05 [end_date_ymd] => 2025-03-27 19:45:05 [RateCDR] => 1 ) [2025-03-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-03-27 16:45:05' and `end` < '2025-03-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-03-27 19:45:18] Production.INFO: count ==3124 [2025-03-27 19:45:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:45:05 - End Time 2025-03-27 19:45:05 [2025-03-27 19:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776390', 'tblTempUsageDetail_20' ) start [2025-03-27 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776390', 'tblTempUsageDetail_20' ) end [2025-03-27 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776390', 'tblTempVendorCDR_20' ) start [2025-03-27 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776390', 'tblTempVendorCDR_20' ) end [2025-03-27 19:45:20] Production.INFO: ProcessCDR(1,14776390,1,1,2) [2025-03-27 19:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776390', 'tblTempUsageDetail_20' ) start [2025-03-27 19:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776390', 'tblTempUsageDetail_20' ) end [2025-03-27 19:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:45:25] Production.INFO: ==2445== Releasing lock... [2025-03-27 19:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:45:25] Production.INFO: 51.5 MB #Memory Used# [2025-03-27 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:46:06 [end_date_ymd] => 2025-03-27 19:46:06 [RateCDR] => 1 ) [2025-03-27 19:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:46:06' and `end` < '2025-03-27 19:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:46:19] Production.INFO: count ==3117 [2025-03-27 19:46:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:46:06 - End Time 2025-03-27 19:46:06 [2025-03-27 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776395', 'tblTempUsageDetail_20' ) start [2025-03-27 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776395', 'tblTempUsageDetail_20' ) end [2025-03-27 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776395', 'tblTempVendorCDR_20' ) start [2025-03-27 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776395', 'tblTempVendorCDR_20' ) end [2025-03-27 19:46:21] Production.INFO: ProcessCDR(1,14776395,1,1,2) [2025-03-27 19:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776395', 'tblTempUsageDetail_20' ) start [2025-03-27 19:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776395', 'tblTempUsageDetail_20' ) end [2025-03-27 19:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:46:26] Production.INFO: ==2531== Releasing lock... [2025-03-27 19:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:46:26] Production.INFO: 51.25 MB #Memory Used# [2025-03-27 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:47:05 [end_date_ymd] => 2025-03-27 19:47:05 [RateCDR] => 1 ) [2025-03-27 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:47:05' and `end` < '2025-03-27 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:47:19] Production.INFO: count ==3100 [2025-03-27 19:47:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:47:05 - End Time 2025-03-27 19:47:05 [2025-03-27 19:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776400', 'tblTempUsageDetail_20' ) start [2025-03-27 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776400', 'tblTempUsageDetail_20' ) end [2025-03-27 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776400', 'tblTempVendorCDR_20' ) start [2025-03-27 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776400', 'tblTempVendorCDR_20' ) end [2025-03-27 19:47:20] Production.INFO: ProcessCDR(1,14776400,1,1,2) [2025-03-27 19:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776400', 'tblTempUsageDetail_20' ) start [2025-03-27 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776400', 'tblTempUsageDetail_20' ) end [2025-03-27 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:47:23] Production.INFO: ==2656== Releasing lock... [2025-03-27 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:47:23] Production.INFO: 51 MB #Memory Used# [2025-03-27 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:48:06 [end_date_ymd] => 2025-03-27 19:48:06 [RateCDR] => 1 ) [2025-03-27 19:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:48:06' and `end` < '2025-03-27 19:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:48:19] Production.INFO: count ==3098 [2025-03-27 19:48:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:48:06 - End Time 2025-03-27 19:48:06 [2025-03-27 19:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776405', 'tblTempUsageDetail_20' ) start [2025-03-27 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776405', 'tblTempUsageDetail_20' ) end [2025-03-27 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776405', 'tblTempVendorCDR_20' ) start [2025-03-27 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776405', 'tblTempVendorCDR_20' ) end [2025-03-27 19:48:20] Production.INFO: ProcessCDR(1,14776405,1,1,2) [2025-03-27 19:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776405', 'tblTempUsageDetail_20' ) start [2025-03-27 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776405', 'tblTempUsageDetail_20' ) end [2025-03-27 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:48:24] Production.INFO: ==2740== Releasing lock... [2025-03-27 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:48:24] Production.INFO: 51.75 MB #Memory Used# [2025-03-27 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:49:05 [end_date_ymd] => 2025-03-27 19:49:05 [RateCDR] => 1 ) [2025-03-27 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:49:05' and `end` < '2025-03-27 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:49:19] Production.INFO: count ==3089 [2025-03-27 19:49:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:49:05 - End Time 2025-03-27 19:49:05 [2025-03-27 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776410', 'tblTempUsageDetail_20' ) start [2025-03-27 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776410', 'tblTempUsageDetail_20' ) end [2025-03-27 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776410', 'tblTempVendorCDR_20' ) start [2025-03-27 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776410', 'tblTempVendorCDR_20' ) end [2025-03-27 19:49:20] Production.INFO: ProcessCDR(1,14776410,1,1,2) [2025-03-27 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776410', 'tblTempUsageDetail_20' ) start [2025-03-27 19:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776410', 'tblTempUsageDetail_20' ) end [2025-03-27 19:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:49:25] Production.INFO: ==2827== Releasing lock... [2025-03-27 19:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:49:25] Production.INFO: 51.5 MB #Memory Used# [2025-03-27 19:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:50:07 [end_date_ymd] => 2025-03-27 19:50:07 [RateCDR] => 1 ) [2025-03-27 19:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:50:07' and `end` < '2025-03-27 19:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:50:20] Production.INFO: count ==3089 [2025-03-27 19:50:21] Production.ERROR: pbx CDR StartTime 2025-03-27 16:50:07 - End Time 2025-03-27 19:50:07 [2025-03-27 19:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776416', 'tblTempUsageDetail_20' ) start [2025-03-27 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776416', 'tblTempUsageDetail_20' ) end [2025-03-27 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776416', 'tblTempVendorCDR_20' ) start [2025-03-27 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776416', 'tblTempVendorCDR_20' ) end [2025-03-27 19:50:21] Production.INFO: ProcessCDR(1,14776416,1,1,2) [2025-03-27 19:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776416', 'tblTempUsageDetail_20' ) start [2025-03-27 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776416', 'tblTempUsageDetail_20' ) end [2025-03-27 19:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:50:25] Production.INFO: ==2912== Releasing lock... [2025-03-27 19:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:50:25] Production.INFO: 51 MB #Memory Used# [2025-03-27 19:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:51:06 [end_date_ymd] => 2025-03-27 19:51:06 [RateCDR] => 1 ) [2025-03-27 19:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:51:06' and `end` < '2025-03-27 19:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:51:19] Production.INFO: count ==3089 [2025-03-27 19:51:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:51:06 - End Time 2025-03-27 19:51:06 [2025-03-27 19:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776421', 'tblTempUsageDetail_20' ) start [2025-03-27 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776421', 'tblTempUsageDetail_20' ) end [2025-03-27 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776421', 'tblTempVendorCDR_20' ) start [2025-03-27 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776421', 'tblTempVendorCDR_20' ) end [2025-03-27 19:51:20] Production.INFO: ProcessCDR(1,14776421,1,1,2) [2025-03-27 19:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776421', 'tblTempUsageDetail_20' ) start [2025-03-27 19:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776421', 'tblTempUsageDetail_20' ) end [2025-03-27 19:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:51:26] Production.INFO: ==3000== Releasing lock... [2025-03-27 19:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:51:26] Production.INFO: 51.5 MB #Memory Used# [2025-03-27 19:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:52:06 [end_date_ymd] => 2025-03-27 19:52:06 [RateCDR] => 1 ) [2025-03-27 19:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:52:06' and `end` < '2025-03-27 19:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:52:20] Production.INFO: count ==3093 [2025-03-27 19:52:21] Production.ERROR: pbx CDR StartTime 2025-03-27 16:52:06 - End Time 2025-03-27 19:52:06 [2025-03-27 19:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776426', 'tblTempUsageDetail_20' ) start [2025-03-27 19:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776426', 'tblTempUsageDetail_20' ) end [2025-03-27 19:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776426', 'tblTempVendorCDR_20' ) start [2025-03-27 19:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776426', 'tblTempVendorCDR_20' ) end [2025-03-27 19:52:21] Production.INFO: ProcessCDR(1,14776426,1,1,2) [2025-03-27 19:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776426', 'tblTempUsageDetail_20' ) start [2025-03-27 19:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776426', 'tblTempUsageDetail_20' ) end [2025-03-27 19:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:52:27] Production.INFO: ==3093== Releasing lock... [2025-03-27 19:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:52:27] Production.INFO: 51.5 MB #Memory Used# [2025-03-27 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:53:05 [end_date_ymd] => 2025-03-27 19:53:05 [RateCDR] => 1 ) [2025-03-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-03-27 16:53:05' and `end` < '2025-03-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-03-27 19:53:19] Production.INFO: count ==3091 [2025-03-27 19:53:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:53:05 - End Time 2025-03-27 19:53:05 [2025-03-27 19:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776431', 'tblTempUsageDetail_20' ) start [2025-03-27 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776431', 'tblTempUsageDetail_20' ) end [2025-03-27 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776431', 'tblTempVendorCDR_20' ) start [2025-03-27 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776431', 'tblTempVendorCDR_20' ) end [2025-03-27 19:53:20] Production.INFO: ProcessCDR(1,14776431,1,1,2) [2025-03-27 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776431', 'tblTempUsageDetail_20' ) start [2025-03-27 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776431', 'tblTempUsageDetail_20' ) end [2025-03-27 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:53:23] Production.INFO: ==3180== Releasing lock... [2025-03-27 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:53:23] Production.INFO: 52 MB #Memory Used# [2025-03-27 19:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:54:06 [end_date_ymd] => 2025-03-27 19:54:06 [RateCDR] => 1 ) [2025-03-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-03-27 16:54:06' and `end` < '2025-03-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-03-27 19:54:19] Production.INFO: count ==3101 [2025-03-27 19:54:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:54:06 - End Time 2025-03-27 19:54:06 [2025-03-27 19:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776436', 'tblTempUsageDetail_20' ) start [2025-03-27 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776436', 'tblTempUsageDetail_20' ) end [2025-03-27 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776436', 'tblTempVendorCDR_20' ) start [2025-03-27 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776436', 'tblTempVendorCDR_20' ) end [2025-03-27 19:54:20] Production.INFO: ProcessCDR(1,14776436,1,1,2) [2025-03-27 19:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776436', 'tblTempUsageDetail_20' ) start [2025-03-27 19:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776436', 'tblTempUsageDetail_20' ) end [2025-03-27 19:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:54:26] Production.INFO: ==3272== Releasing lock... [2025-03-27 19:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:54:26] Production.INFO: 51 MB #Memory Used# [2025-03-27 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:55:06 [end_date_ymd] => 2025-03-27 19:55:06 [RateCDR] => 1 ) [2025-03-27 19:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:55:06' and `end` < '2025-03-27 19:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:55:19] Production.INFO: count ==3099 [2025-03-27 19:55:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:55:06 - End Time 2025-03-27 19:55:06 [2025-03-27 19:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776441', 'tblTempUsageDetail_20' ) start [2025-03-27 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776441', 'tblTempUsageDetail_20' ) end [2025-03-27 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776441', 'tblTempVendorCDR_20' ) start [2025-03-27 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776441', 'tblTempVendorCDR_20' ) end [2025-03-27 19:55:20] Production.INFO: ProcessCDR(1,14776441,1,1,2) [2025-03-27 19:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776441', 'tblTempUsageDetail_20' ) start [2025-03-27 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776441', 'tblTempUsageDetail_20' ) end [2025-03-27 19:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:55:24] Production.INFO: ==3365== Releasing lock... [2025-03-27 19:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:55:24] Production.INFO: 51.5 MB #Memory Used# [2025-03-27 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:56:06 [end_date_ymd] => 2025-03-27 19:56:06 [RateCDR] => 1 ) [2025-03-27 19:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:56:06' and `end` < '2025-03-27 19:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:56:20] Production.INFO: count ==3102 [2025-03-27 19:56:21] Production.ERROR: pbx CDR StartTime 2025-03-27 16:56:06 - End Time 2025-03-27 19:56:06 [2025-03-27 19:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776446', 'tblTempUsageDetail_20' ) start [2025-03-27 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776446', 'tblTempUsageDetail_20' ) end [2025-03-27 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776446', 'tblTempVendorCDR_20' ) start [2025-03-27 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776446', 'tblTempVendorCDR_20' ) end [2025-03-27 19:56:21] Production.INFO: ProcessCDR(1,14776446,1,1,2) [2025-03-27 19:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776446', 'tblTempUsageDetail_20' ) start [2025-03-27 19:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776446', 'tblTempUsageDetail_20' ) end [2025-03-27 19:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:56:26] Production.INFO: ==3448== Releasing lock... [2025-03-27 19:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:56:26] Production.INFO: 52 MB #Memory Used# [2025-03-27 19:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:57:06 [end_date_ymd] => 2025-03-27 19:57:06 [RateCDR] => 1 ) [2025-03-27 19:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:57:06' and `end` < '2025-03-27 19:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:57:19] Production.INFO: count ==3110 [2025-03-27 19:57:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:57:06 - End Time 2025-03-27 19:57:06 [2025-03-27 19:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776451', 'tblTempUsageDetail_20' ) start [2025-03-27 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776451', 'tblTempUsageDetail_20' ) end [2025-03-27 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776451', 'tblTempVendorCDR_20' ) start [2025-03-27 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776451', 'tblTempVendorCDR_20' ) end [2025-03-27 19:57:20] Production.INFO: ProcessCDR(1,14776451,1,1,2) [2025-03-27 19:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776451', 'tblTempUsageDetail_20' ) start [2025-03-27 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776451', 'tblTempUsageDetail_20' ) end [2025-03-27 19:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:57:24] Production.INFO: ==3542== Releasing lock... [2025-03-27 19:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:57:24] Production.INFO: 51.25 MB #Memory Used# [2025-03-27 19:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:58:06 [end_date_ymd] => 2025-03-27 19:58:06 [RateCDR] => 1 ) [2025-03-27 19:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 16:58:06' and `end` < '2025-03-27 19:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 19:58:19] Production.INFO: count ==3122 [2025-03-27 19:58:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:58:06 - End Time 2025-03-27 19:58:06 [2025-03-27 19:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776456', 'tblTempUsageDetail_20' ) start [2025-03-27 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776456', 'tblTempUsageDetail_20' ) end [2025-03-27 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776456', 'tblTempVendorCDR_20' ) start [2025-03-27 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776456', 'tblTempVendorCDR_20' ) end [2025-03-27 19:58:20] Production.INFO: ProcessCDR(1,14776456,1,1,2) [2025-03-27 19:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776456', 'tblTempUsageDetail_20' ) start [2025-03-27 19:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776456', 'tblTempUsageDetail_20' ) end [2025-03-27 19:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:58:26] Production.INFO: ==3630== Releasing lock... [2025-03-27 19:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:58:26] Production.INFO: 51.75 MB #Memory Used# [2025-03-27 19:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 16:59:06 [end_date_ymd] => 2025-03-27 19:59:06 [RateCDR] => 1 ) [2025-03-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-03-27 16:59:06' and `end` < '2025-03-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-03-27 19:59:19] Production.INFO: count ==3116 [2025-03-27 19:59:20] Production.ERROR: pbx CDR StartTime 2025-03-27 16:59:06 - End Time 2025-03-27 19:59:06 [2025-03-27 19:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776461', 'tblTempUsageDetail_20' ) start [2025-03-27 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776461', 'tblTempUsageDetail_20' ) end [2025-03-27 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776461', 'tblTempVendorCDR_20' ) start [2025-03-27 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776461', 'tblTempVendorCDR_20' ) end [2025-03-27 19:59:20] Production.INFO: ProcessCDR(1,14776461,1,1,2) [2025-03-27 19:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776461', 'tblTempUsageDetail_20' ) start [2025-03-27 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776461', 'tblTempUsageDetail_20' ) end [2025-03-27 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 19:59:24] Production.INFO: ==3717== Releasing lock... [2025-03-27 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 19:59:24] Production.INFO: 51.25 MB #Memory Used# [2025-03-27 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:00:07 [end_date_ymd] => 2025-03-27 20:00:07 [RateCDR] => 1 ) [2025-03-27 20:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:00:07' and `end` < '2025-03-27 20:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:00:20] Production.INFO: count ==3119 [2025-03-27 20:00:21] Production.ERROR: pbx CDR StartTime 2025-03-27 17:00:07 - End Time 2025-03-27 20:00:07 [2025-03-27 20:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776467', 'tblTempUsageDetail_20' ) start [2025-03-27 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776467', 'tblTempUsageDetail_20' ) end [2025-03-27 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776467', 'tblTempVendorCDR_20' ) start [2025-03-27 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776467', 'tblTempVendorCDR_20' ) end [2025-03-27 20:00:21] Production.INFO: ProcessCDR(1,14776467,1,1,2) [2025-03-27 20:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776467', 'tblTempUsageDetail_20' ) start [2025-03-27 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776467', 'tblTempUsageDetail_20' ) end [2025-03-27 20:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:00:25] Production.INFO: ==3806== Releasing lock... [2025-03-27 20:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:00:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-27 20:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:01:06 [end_date_ymd] => 2025-03-27 20:01:06 [RateCDR] => 1 ) [2025-03-27 20:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:01:06' and `end` < '2025-03-27 20:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:01:19] Production.INFO: count ==3087 [2025-03-27 20:01:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:01:06 - End Time 2025-03-27 20:01:06 [2025-03-27 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776472', 'tblTempUsageDetail_20' ) start [2025-03-27 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776472', 'tblTempUsageDetail_20' ) end [2025-03-27 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776472', 'tblTempVendorCDR_20' ) start [2025-03-27 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776472', 'tblTempVendorCDR_20' ) end [2025-03-27 20:01:20] Production.INFO: ProcessCDR(1,14776472,1,1,2) [2025-03-27 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776472', 'tblTempUsageDetail_20' ) start [2025-03-27 20:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776472', 'tblTempUsageDetail_20' ) end [2025-03-27 20:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:01:25] Production.INFO: ==3935== Releasing lock... [2025-03-27 20:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:01:25] Production.INFO: 51.75 MB #Memory Used# [2025-03-27 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:02:05 [end_date_ymd] => 2025-03-27 20:02:05 [RateCDR] => 1 ) [2025-03-27 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:02:05' and `end` < '2025-03-27 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:02:19] Production.INFO: count ==3090 [2025-03-27 20:02:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:02:05 - End Time 2025-03-27 20:02:05 [2025-03-27 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776477', 'tblTempUsageDetail_20' ) start [2025-03-27 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776477', 'tblTempUsageDetail_20' ) end [2025-03-27 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776477', 'tblTempVendorCDR_20' ) start [2025-03-27 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776477', 'tblTempVendorCDR_20' ) end [2025-03-27 20:02:20] Production.INFO: ProcessCDR(1,14776477,1,1,2) [2025-03-27 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776477', 'tblTempUsageDetail_20' ) start [2025-03-27 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776477', 'tblTempUsageDetail_20' ) end [2025-03-27 20:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:02:24] Production.INFO: ==4066== Releasing lock... [2025-03-27 20:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:02:24] Production.INFO: 51 MB #Memory Used# [2025-03-27 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:03:06 [end_date_ymd] => 2025-03-27 20:03:06 [RateCDR] => 1 ) [2025-03-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-03-27 17:03:06' and `end` < '2025-03-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-03-27 20:03:19] Production.INFO: count ==3095 [2025-03-27 20:03:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:03:06 - End Time 2025-03-27 20:03:06 [2025-03-27 20:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776482', 'tblTempUsageDetail_20' ) start [2025-03-27 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776482', 'tblTempUsageDetail_20' ) end [2025-03-27 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776482', 'tblTempVendorCDR_20' ) start [2025-03-27 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776482', 'tblTempVendorCDR_20' ) end [2025-03-27 20:03:20] Production.INFO: ProcessCDR(1,14776482,1,1,2) [2025-03-27 20:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776482', 'tblTempUsageDetail_20' ) start [2025-03-27 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776482', 'tblTempUsageDetail_20' ) end [2025-03-27 20:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:03:24] Production.INFO: ==4152== Releasing lock... [2025-03-27 20:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:03:24] Production.INFO: 51.5 MB #Memory Used# [2025-03-27 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:04:05 [end_date_ymd] => 2025-03-27 20:04:05 [RateCDR] => 1 ) [2025-03-27 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:04:05' and `end` < '2025-03-27 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:04:18] Production.INFO: count ==3101 [2025-03-27 20:04:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:04:05 - End Time 2025-03-27 20:04:05 [2025-03-27 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776487', 'tblTempUsageDetail_20' ) start [2025-03-27 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776487', 'tblTempUsageDetail_20' ) end [2025-03-27 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776487', 'tblTempVendorCDR_20' ) start [2025-03-27 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776487', 'tblTempVendorCDR_20' ) end [2025-03-27 20:04:19] Production.INFO: ProcessCDR(1,14776487,1,1,2) [2025-03-27 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776487', 'tblTempUsageDetail_20' ) start [2025-03-27 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776487', 'tblTempUsageDetail_20' ) end [2025-03-27 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:04:23] Production.INFO: ==4238== Releasing lock... [2025-03-27 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:04:23] Production.INFO: 51 MB #Memory Used# [2025-03-27 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:05:05 [end_date_ymd] => 2025-03-27 20:05:05 [RateCDR] => 1 ) [2025-03-27 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:05:05' and `end` < '2025-03-27 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:05:18] Production.INFO: count ==3084 [2025-03-27 20:05:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:05:05 - End Time 2025-03-27 20:05:05 [2025-03-27 20:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776492', 'tblTempUsageDetail_20' ) start [2025-03-27 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776492', 'tblTempUsageDetail_20' ) end [2025-03-27 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776492', 'tblTempVendorCDR_20' ) start [2025-03-27 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776492', 'tblTempVendorCDR_20' ) end [2025-03-27 20:05:20] Production.INFO: ProcessCDR(1,14776492,1,1,2) [2025-03-27 20:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776492', 'tblTempUsageDetail_20' ) start [2025-03-27 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776492', 'tblTempUsageDetail_20' ) end [2025-03-27 20:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:05:24] Production.INFO: ==4324== Releasing lock... [2025-03-27 20:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:05:24] Production.INFO: 51.25 MB #Memory Used# [2025-03-27 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:06:05 [end_date_ymd] => 2025-03-27 20:06:05 [RateCDR] => 1 ) [2025-03-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-03-27 17:06:05' and `end` < '2025-03-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-03-27 20:06:18] Production.INFO: count ==3053 [2025-03-27 20:06:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:06:05 - End Time 2025-03-27 20:06:05 [2025-03-27 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776497', 'tblTempUsageDetail_20' ) start [2025-03-27 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776497', 'tblTempUsageDetail_20' ) end [2025-03-27 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776497', 'tblTempVendorCDR_20' ) start [2025-03-27 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776497', 'tblTempVendorCDR_20' ) end [2025-03-27 20:06:19] Production.INFO: ProcessCDR(1,14776497,1,1,2) [2025-03-27 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776497', 'tblTempUsageDetail_20' ) start [2025-03-27 20:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776497', 'tblTempUsageDetail_20' ) end [2025-03-27 20:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:06:25] Production.INFO: ==4402== Releasing lock... [2025-03-27 20:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:06:25] Production.INFO: 50.75 MB #Memory Used# [2025-03-27 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:07:06 [end_date_ymd] => 2025-03-27 20:07:06 [RateCDR] => 1 ) [2025-03-27 20:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:07:06' and `end` < '2025-03-27 20:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:07:19] Production.INFO: count ==3036 [2025-03-27 20:07:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:07:06 - End Time 2025-03-27 20:07:06 [2025-03-27 20:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776502', 'tblTempUsageDetail_20' ) start [2025-03-27 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776502', 'tblTempUsageDetail_20' ) end [2025-03-27 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776502', 'tblTempVendorCDR_20' ) start [2025-03-27 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776502', 'tblTempVendorCDR_20' ) end [2025-03-27 20:07:20] Production.INFO: ProcessCDR(1,14776502,1,1,2) [2025-03-27 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776502', 'tblTempUsageDetail_20' ) start [2025-03-27 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776502', 'tblTempUsageDetail_20' ) end [2025-03-27 20:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:07:24] Production.INFO: ==4484== Releasing lock... [2025-03-27 20:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:07:24] Production.INFO: 50.5 MB #Memory Used# [2025-03-27 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:08:05 [end_date_ymd] => 2025-03-27 20:08:05 [RateCDR] => 1 ) [2025-03-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-03-27 17:08:05' and `end` < '2025-03-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-03-27 20:08:18] Production.INFO: count ==3021 [2025-03-27 20:08:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:08:05 - End Time 2025-03-27 20:08:05 [2025-03-27 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776507', 'tblTempUsageDetail_20' ) start [2025-03-27 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776507', 'tblTempUsageDetail_20' ) end [2025-03-27 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776507', 'tblTempVendorCDR_20' ) start [2025-03-27 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776507', 'tblTempVendorCDR_20' ) end [2025-03-27 20:08:20] Production.INFO: ProcessCDR(1,14776507,1,1,2) [2025-03-27 20:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776507', 'tblTempUsageDetail_20' ) start [2025-03-27 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776507', 'tblTempUsageDetail_20' ) end [2025-03-27 20:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:08:24] Production.INFO: ==4583== Releasing lock... [2025-03-27 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:08:24] Production.INFO: 50.5 MB #Memory Used# [2025-03-27 20:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:09:06 [end_date_ymd] => 2025-03-27 20:09:06 [RateCDR] => 1 ) [2025-03-27 20:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:09:06' and `end` < '2025-03-27 20:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:09:19] Production.INFO: count ==3010 [2025-03-27 20:09:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:09:06 - End Time 2025-03-27 20:09:06 [2025-03-27 20:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776512', 'tblTempUsageDetail_20' ) start [2025-03-27 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776512', 'tblTempUsageDetail_20' ) end [2025-03-27 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776512', 'tblTempVendorCDR_20' ) start [2025-03-27 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776512', 'tblTempVendorCDR_20' ) end [2025-03-27 20:09:20] Production.INFO: ProcessCDR(1,14776512,1,1,2) [2025-03-27 20:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776512', 'tblTempUsageDetail_20' ) start [2025-03-27 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776512', 'tblTempUsageDetail_20' ) end [2025-03-27 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:09:24] Production.INFO: ==4663== Releasing lock... [2025-03-27 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:09:24] Production.INFO: 50.5 MB #Memory Used# [2025-03-27 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:10:06 [end_date_ymd] => 2025-03-27 20:10:06 [RateCDR] => 1 ) [2025-03-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-03-27 17:10:06' and `end` < '2025-03-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-03-27 20:10:19] Production.INFO: count ==3010 [2025-03-27 20:10:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:10:06 - End Time 2025-03-27 20:10:06 [2025-03-27 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776517', 'tblTempUsageDetail_20' ) start [2025-03-27 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776517', 'tblTempUsageDetail_20' ) end [2025-03-27 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776517', 'tblTempVendorCDR_20' ) start [2025-03-27 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776517', 'tblTempVendorCDR_20' ) end [2025-03-27 20:10:20] Production.INFO: ProcessCDR(1,14776517,1,1,2) [2025-03-27 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776517', 'tblTempUsageDetail_20' ) start [2025-03-27 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776517', 'tblTempUsageDetail_20' ) end [2025-03-27 20:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:10:24] Production.INFO: ==4760== Releasing lock... [2025-03-27 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:10:24] Production.INFO: 50.5 MB #Memory Used# [2025-03-27 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:11:05 [end_date_ymd] => 2025-03-27 20:11:05 [RateCDR] => 1 ) [2025-03-27 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:11:05' and `end` < '2025-03-27 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:11:18] Production.INFO: count ==2924 [2025-03-27 20:11:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:11:05 - End Time 2025-03-27 20:11:05 [2025-03-27 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776523', 'tblTempUsageDetail_20' ) start [2025-03-27 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776523', 'tblTempUsageDetail_20' ) end [2025-03-27 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776523', 'tblTempVendorCDR_20' ) start [2025-03-27 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776523', 'tblTempVendorCDR_20' ) end [2025-03-27 20:11:19] Production.INFO: ProcessCDR(1,14776523,1,1,2) [2025-03-27 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776523', 'tblTempUsageDetail_20' ) start [2025-03-27 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776523', 'tblTempUsageDetail_20' ) end [2025-03-27 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:11:23] Production.INFO: ==4853== Releasing lock... [2025-03-27 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:11:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-27 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:12:06 [end_date_ymd] => 2025-03-27 20:12:06 [RateCDR] => 1 ) [2025-03-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-03-27 17:12:06' and `end` < '2025-03-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-03-27 20:12:19] Production.INFO: count ==2927 [2025-03-27 20:12:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:12:06 - End Time 2025-03-27 20:12:06 [2025-03-27 20:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776528', 'tblTempUsageDetail_20' ) start [2025-03-27 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776528', 'tblTempUsageDetail_20' ) end [2025-03-27 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776528', 'tblTempVendorCDR_20' ) start [2025-03-27 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776528', 'tblTempVendorCDR_20' ) end [2025-03-27 20:12:20] Production.INFO: ProcessCDR(1,14776528,1,1,2) [2025-03-27 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776528', 'tblTempUsageDetail_20' ) start [2025-03-27 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776528', 'tblTempUsageDetail_20' ) end [2025-03-27 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:12:24] Production.INFO: ==4940== Releasing lock... [2025-03-27 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:12:24] Production.INFO: 50 MB #Memory Used# [2025-03-27 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:13:05 [end_date_ymd] => 2025-03-27 20:13:05 [RateCDR] => 1 ) [2025-03-27 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:13:05' and `end` < '2025-03-27 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:13:18] Production.INFO: count ==2919 [2025-03-27 20:13:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:13:05 - End Time 2025-03-27 20:13:05 [2025-03-27 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776533', 'tblTempUsageDetail_20' ) start [2025-03-27 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776533', 'tblTempUsageDetail_20' ) end [2025-03-27 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776533', 'tblTempVendorCDR_20' ) start [2025-03-27 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776533', 'tblTempVendorCDR_20' ) end [2025-03-27 20:13:19] Production.INFO: ProcessCDR(1,14776533,1,1,2) [2025-03-27 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776533', 'tblTempUsageDetail_20' ) start [2025-03-27 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776533', 'tblTempUsageDetail_20' ) end [2025-03-27 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:13:23] Production.INFO: ==5028== Releasing lock... [2025-03-27 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:13:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-27 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:14:05 [end_date_ymd] => 2025-03-27 20:14:05 [RateCDR] => 1 ) [2025-03-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-03-27 17:14:05' and `end` < '2025-03-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-03-27 20:14:18] Production.INFO: count ==2897 [2025-03-27 20:14:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:14:05 - End Time 2025-03-27 20:14:05 [2025-03-27 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776538', 'tblTempUsageDetail_20' ) start [2025-03-27 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776538', 'tblTempUsageDetail_20' ) end [2025-03-27 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776538', 'tblTempVendorCDR_20' ) start [2025-03-27 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776538', 'tblTempVendorCDR_20' ) end [2025-03-27 20:14:19] Production.INFO: ProcessCDR(1,14776538,1,1,2) [2025-03-27 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776538', 'tblTempUsageDetail_20' ) start [2025-03-27 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776538', 'tblTempUsageDetail_20' ) end [2025-03-27 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:14:23] Production.INFO: ==5108== Releasing lock... [2025-03-27 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:14:23] Production.INFO: 49.5 MB #Memory Used# [2025-03-27 20:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:15:06 [end_date_ymd] => 2025-03-27 20:15:06 [RateCDR] => 1 ) [2025-03-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-03-27 17:15:06' and `end` < '2025-03-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-03-27 20:15:19] Production.INFO: count ==2891 [2025-03-27 20:15:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:15:06 - End Time 2025-03-27 20:15:06 [2025-03-27 20:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776543', 'tblTempUsageDetail_20' ) start [2025-03-27 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776543', 'tblTempUsageDetail_20' ) end [2025-03-27 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776543', 'tblTempVendorCDR_20' ) start [2025-03-27 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776543', 'tblTempVendorCDR_20' ) end [2025-03-27 20:15:20] Production.INFO: ProcessCDR(1,14776543,1,1,2) [2025-03-27 20:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776543', 'tblTempUsageDetail_20' ) start [2025-03-27 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776543', 'tblTempUsageDetail_20' ) end [2025-03-27 20:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:15:24] Production.INFO: ==5193== Releasing lock... [2025-03-27 20:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:15:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-27 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:16:05 [end_date_ymd] => 2025-03-27 20:16:05 [RateCDR] => 1 ) [2025-03-27 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:16:05' and `end` < '2025-03-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-03-27 20:16:18] Production.INFO: count ==2886 [2025-03-27 20:16:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:16:05 - End Time 2025-03-27 20:16:05 [2025-03-27 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776548', 'tblTempUsageDetail_20' ) start [2025-03-27 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776548', 'tblTempUsageDetail_20' ) end [2025-03-27 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776548', 'tblTempVendorCDR_20' ) start [2025-03-27 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776548', 'tblTempVendorCDR_20' ) end [2025-03-27 20:16:19] Production.INFO: ProcessCDR(1,14776548,1,1,2) [2025-03-27 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776548', 'tblTempUsageDetail_20' ) start [2025-03-27 20:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776548', 'tblTempUsageDetail_20' ) end [2025-03-27 20:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:16:25] Production.INFO: ==5270== Releasing lock... [2025-03-27 20:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:16:25] Production.INFO: 49.75 MB #Memory Used# [2025-03-27 20:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:17:06 [end_date_ymd] => 2025-03-27 20:17:06 [RateCDR] => 1 ) [2025-03-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-03-27 17:17:06' and `end` < '2025-03-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-03-27 20:17:19] Production.INFO: count ==2893 [2025-03-27 20:17:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:17:06 - End Time 2025-03-27 20:17:06 [2025-03-27 20:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776553', 'tblTempUsageDetail_20' ) start [2025-03-27 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776553', 'tblTempUsageDetail_20' ) end [2025-03-27 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776553', 'tblTempVendorCDR_20' ) start [2025-03-27 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776553', 'tblTempVendorCDR_20' ) end [2025-03-27 20:17:20] Production.INFO: ProcessCDR(1,14776553,1,1,2) [2025-03-27 20:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776553', 'tblTempUsageDetail_20' ) start [2025-03-27 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776553', 'tblTempUsageDetail_20' ) end [2025-03-27 20:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:17:24] Production.INFO: ==5354== Releasing lock... [2025-03-27 20:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:17:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-27 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:18:05 [end_date_ymd] => 2025-03-27 20:18:05 [RateCDR] => 1 ) [2025-03-27 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:18:05' and `end` < '2025-03-27 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:18:18] Production.INFO: count ==2891 [2025-03-27 20:18:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:18:05 - End Time 2025-03-27 20:18:05 [2025-03-27 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776558', 'tblTempUsageDetail_20' ) start [2025-03-27 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776558', 'tblTempUsageDetail_20' ) end [2025-03-27 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776558', 'tblTempVendorCDR_20' ) start [2025-03-27 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776558', 'tblTempVendorCDR_20' ) end [2025-03-27 20:18:19] Production.INFO: ProcessCDR(1,14776558,1,1,2) [2025-03-27 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776558', 'tblTempUsageDetail_20' ) start [2025-03-27 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776558', 'tblTempUsageDetail_20' ) end [2025-03-27 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:18:23] Production.INFO: ==5468== Releasing lock... [2025-03-27 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:18:23] Production.INFO: 49.5 MB #Memory Used# [2025-03-27 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:19:06 [end_date_ymd] => 2025-03-27 20:19:06 [RateCDR] => 1 ) [2025-03-27 20:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:19:06' and `end` < '2025-03-27 20:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:19:18] Production.INFO: count ==2887 [2025-03-27 20:19:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:19:06 - End Time 2025-03-27 20:19:06 [2025-03-27 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776563', 'tblTempUsageDetail_20' ) start [2025-03-27 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776563', 'tblTempUsageDetail_20' ) end [2025-03-27 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776563', 'tblTempVendorCDR_20' ) start [2025-03-27 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776563', 'tblTempVendorCDR_20' ) end [2025-03-27 20:19:20] Production.INFO: ProcessCDR(1,14776563,1,1,2) [2025-03-27 20:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776563', 'tblTempUsageDetail_20' ) start [2025-03-27 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776563', 'tblTempUsageDetail_20' ) end [2025-03-27 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:19:23] Production.INFO: ==5547== Releasing lock... [2025-03-27 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:19:23] Production.INFO: 49.5 MB #Memory Used# [2025-03-27 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:20:06 [end_date_ymd] => 2025-03-27 20:20:06 [RateCDR] => 1 ) [2025-03-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-03-27 17:20:06' and `end` < '2025-03-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-03-27 20:20:19] Production.INFO: count ==2896 [2025-03-27 20:20:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:20:06 - End Time 2025-03-27 20:20:06 [2025-03-27 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776569', 'tblTempUsageDetail_20' ) start [2025-03-27 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776569', 'tblTempUsageDetail_20' ) end [2025-03-27 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776569', 'tblTempVendorCDR_20' ) start [2025-03-27 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776569', 'tblTempVendorCDR_20' ) end [2025-03-27 20:20:20] Production.INFO: ProcessCDR(1,14776569,1,1,2) [2025-03-27 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776569', 'tblTempUsageDetail_20' ) start [2025-03-27 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776569', 'tblTempUsageDetail_20' ) end [2025-03-27 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:20:24] Production.INFO: ==5626== Releasing lock... [2025-03-27 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:20:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-27 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:21:05 [end_date_ymd] => 2025-03-27 20:21:05 [RateCDR] => 1 ) [2025-03-27 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:21:05' and `end` < '2025-03-27 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:21:18] Production.INFO: count ==2869 [2025-03-27 20:21:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:21:05 - End Time 2025-03-27 20:21:05 [2025-03-27 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776574', 'tblTempUsageDetail_20' ) start [2025-03-27 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776574', 'tblTempUsageDetail_20' ) end [2025-03-27 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776574', 'tblTempVendorCDR_20' ) start [2025-03-27 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776574', 'tblTempVendorCDR_20' ) end [2025-03-27 20:21:19] Production.INFO: ProcessCDR(1,14776574,1,1,2) [2025-03-27 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776574', 'tblTempUsageDetail_20' ) start [2025-03-27 20:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776574', 'tblTempUsageDetail_20' ) end [2025-03-27 20:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:21:25] Production.INFO: ==5705== Releasing lock... [2025-03-27 20:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:21:25] Production.INFO: 49.5 MB #Memory Used# [2025-03-27 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:22:05 [end_date_ymd] => 2025-03-27 20:22:05 [RateCDR] => 1 ) [2025-03-27 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:22:05' and `end` < '2025-03-27 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:22:18] Production.INFO: count ==2860 [2025-03-27 20:22:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:22:05 - End Time 2025-03-27 20:22:05 [2025-03-27 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776579', 'tblTempUsageDetail_20' ) start [2025-03-27 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776579', 'tblTempUsageDetail_20' ) end [2025-03-27 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776579', 'tblTempVendorCDR_20' ) start [2025-03-27 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776579', 'tblTempVendorCDR_20' ) end [2025-03-27 20:22:19] Production.INFO: ProcessCDR(1,14776579,1,1,2) [2025-03-27 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776579', 'tblTempUsageDetail_20' ) start [2025-03-27 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776579', 'tblTempUsageDetail_20' ) end [2025-03-27 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:22:22] Production.INFO: ==5777== Releasing lock... [2025-03-27 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:22:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-27 20:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:23:06 [end_date_ymd] => 2025-03-27 20:23:06 [RateCDR] => 1 ) [2025-03-27 20:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:23:06' and `end` < '2025-03-27 20:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:23:19] Production.INFO: count ==2826 [2025-03-27 20:23:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:23:06 - End Time 2025-03-27 20:23:06 [2025-03-27 20:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776584', 'tblTempUsageDetail_20' ) start [2025-03-27 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776584', 'tblTempUsageDetail_20' ) end [2025-03-27 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776584', 'tblTempVendorCDR_20' ) start [2025-03-27 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776584', 'tblTempVendorCDR_20' ) end [2025-03-27 20:23:20] Production.INFO: ProcessCDR(1,14776584,1,1,2) [2025-03-27 20:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776584', 'tblTempUsageDetail_20' ) start [2025-03-27 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776584', 'tblTempUsageDetail_20' ) end [2025-03-27 20:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:23:24] Production.INFO: ==5864== Releasing lock... [2025-03-27 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:23:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-27 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:24:06 [end_date_ymd] => 2025-03-27 20:24:06 [RateCDR] => 1 ) [2025-03-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-03-27 17:24:06' and `end` < '2025-03-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-03-27 20:24:19] Production.INFO: count ==2785 [2025-03-27 20:24:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:24:06 - End Time 2025-03-27 20:24:06 [2025-03-27 20:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776589', 'tblTempUsageDetail_20' ) start [2025-03-27 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776589', 'tblTempUsageDetail_20' ) end [2025-03-27 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776589', 'tblTempVendorCDR_20' ) start [2025-03-27 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776589', 'tblTempVendorCDR_20' ) end [2025-03-27 20:24:20] Production.INFO: ProcessCDR(1,14776589,1,1,2) [2025-03-27 20:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776589', 'tblTempUsageDetail_20' ) start [2025-03-27 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776589', 'tblTempUsageDetail_20' ) end [2025-03-27 20:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:24:24] Production.INFO: ==5940== Releasing lock... [2025-03-27 20:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:24:24] Production.INFO: 49 MB #Memory Used# [2025-03-27 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:25:05 [end_date_ymd] => 2025-03-27 20:25:05 [RateCDR] => 1 ) [2025-03-27 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:25:05' and `end` < '2025-03-27 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:25:18] Production.INFO: count ==2778 [2025-03-27 20:25:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:25:05 - End Time 2025-03-27 20:25:05 [2025-03-27 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776594', 'tblTempUsageDetail_20' ) start [2025-03-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776594', 'tblTempUsageDetail_20' ) end [2025-03-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776594', 'tblTempVendorCDR_20' ) start [2025-03-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776594', 'tblTempVendorCDR_20' ) end [2025-03-27 20:25:19] Production.INFO: ProcessCDR(1,14776594,1,1,2) [2025-03-27 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776594', 'tblTempUsageDetail_20' ) start [2025-03-27 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776594', 'tblTempUsageDetail_20' ) end [2025-03-27 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:25:23] Production.INFO: ==6028== Releasing lock... [2025-03-27 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:25:23] Production.INFO: 49 MB #Memory Used# [2025-03-27 20:26:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:26:07 [end_date_ymd] => 2025-03-27 20:26:07 [RateCDR] => 1 ) [2025-03-27 20:26:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:26:07' and `end` < '2025-03-27 20:26:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:26:19] Production.INFO: count ==2764 [2025-03-27 20:26:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:26:07 - End Time 2025-03-27 20:26:07 [2025-03-27 20:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776599', 'tblTempUsageDetail_20' ) start [2025-03-27 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776599', 'tblTempUsageDetail_20' ) end [2025-03-27 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776599', 'tblTempVendorCDR_20' ) start [2025-03-27 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776599', 'tblTempVendorCDR_20' ) end [2025-03-27 20:26:20] Production.INFO: ProcessCDR(1,14776599,1,1,2) [2025-03-27 20:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776599', 'tblTempUsageDetail_20' ) start [2025-03-27 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776599', 'tblTempUsageDetail_20' ) end [2025-03-27 20:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:26:24] Production.INFO: ==6110== Releasing lock... [2025-03-27 20:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:26:24] Production.INFO: 49 MB #Memory Used# [2025-03-27 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:27:05 [end_date_ymd] => 2025-03-27 20:27:05 [RateCDR] => 1 ) [2025-03-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-03-27 17:27:05' and `end` < '2025-03-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-03-27 20:27:18] Production.INFO: count ==2756 [2025-03-27 20:27:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:27:05 - End Time 2025-03-27 20:27:05 [2025-03-27 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776604', 'tblTempUsageDetail_20' ) start [2025-03-27 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776604', 'tblTempUsageDetail_20' ) end [2025-03-27 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776604', 'tblTempVendorCDR_20' ) start [2025-03-27 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776604', 'tblTempVendorCDR_20' ) end [2025-03-27 20:27:19] Production.INFO: ProcessCDR(1,14776604,1,1,2) [2025-03-27 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776604', 'tblTempUsageDetail_20' ) start [2025-03-27 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776604', 'tblTempUsageDetail_20' ) end [2025-03-27 20:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:27:23] Production.INFO: ==6183== Releasing lock... [2025-03-27 20:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:27:23] Production.INFO: 49 MB #Memory Used# [2025-03-27 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:28:05 [end_date_ymd] => 2025-03-27 20:28:05 [RateCDR] => 1 ) [2025-03-27 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:28:05' and `end` < '2025-03-27 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:28:18] Production.INFO: count ==2718 [2025-03-27 20:28:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:28:05 - End Time 2025-03-27 20:28:05 [2025-03-27 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776609', 'tblTempUsageDetail_20' ) start [2025-03-27 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776609', 'tblTempUsageDetail_20' ) end [2025-03-27 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776609', 'tblTempVendorCDR_20' ) start [2025-03-27 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776609', 'tblTempVendorCDR_20' ) end [2025-03-27 20:28:19] Production.INFO: ProcessCDR(1,14776609,1,1,2) [2025-03-27 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776609', 'tblTempUsageDetail_20' ) start [2025-03-27 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776609', 'tblTempUsageDetail_20' ) end [2025-03-27 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:28:23] Production.INFO: ==6266== Releasing lock... [2025-03-27 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:28:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-27 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:29:05 [end_date_ymd] => 2025-03-27 20:29:05 [RateCDR] => 1 ) [2025-03-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-03-27 17:29:05' and `end` < '2025-03-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-03-27 20:29:18] Production.INFO: count ==2705 [2025-03-27 20:29:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:29:05 - End Time 2025-03-27 20:29:05 [2025-03-27 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776614', 'tblTempUsageDetail_20' ) start [2025-03-27 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776614', 'tblTempUsageDetail_20' ) end [2025-03-27 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776614', 'tblTempVendorCDR_20' ) start [2025-03-27 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776614', 'tblTempVendorCDR_20' ) end [2025-03-27 20:29:19] Production.INFO: ProcessCDR(1,14776614,1,1,2) [2025-03-27 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776614', 'tblTempUsageDetail_20' ) start [2025-03-27 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776614', 'tblTempUsageDetail_20' ) end [2025-03-27 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:29:23] Production.INFO: ==6348== Releasing lock... [2025-03-27 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:29:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-27 20:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:30:07 [end_date_ymd] => 2025-03-27 20:30:07 [RateCDR] => 1 ) [2025-03-27 20:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:30:07' and `end` < '2025-03-27 20:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:30:20] Production.INFO: count ==2705 [2025-03-27 20:30:21] Production.ERROR: pbx CDR StartTime 2025-03-27 17:30:07 - End Time 2025-03-27 20:30:07 [2025-03-27 20:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776620', 'tblTempUsageDetail_20' ) start [2025-03-27 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776620', 'tblTempUsageDetail_20' ) end [2025-03-27 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776620', 'tblTempVendorCDR_20' ) start [2025-03-27 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776620', 'tblTempVendorCDR_20' ) end [2025-03-27 20:30:21] Production.INFO: ProcessCDR(1,14776620,1,1,2) [2025-03-27 20:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776620', 'tblTempUsageDetail_20' ) start [2025-03-27 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776620', 'tblTempUsageDetail_20' ) end [2025-03-27 20:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:30:25] Production.INFO: ==6433== Releasing lock... [2025-03-27 20:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:30:25] Production.INFO: 48.25 MB #Memory Used# [2025-03-27 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:31:06 [end_date_ymd] => 2025-03-27 20:31:06 [RateCDR] => 1 ) [2025-03-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-03-27 17:31:06' and `end` < '2025-03-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-03-27 20:31:18] Production.INFO: count ==2647 [2025-03-27 20:31:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:31:06 - End Time 2025-03-27 20:31:06 [2025-03-27 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776625', 'tblTempUsageDetail_20' ) start [2025-03-27 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776625', 'tblTempUsageDetail_20' ) end [2025-03-27 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776625', 'tblTempVendorCDR_20' ) start [2025-03-27 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776625', 'tblTempVendorCDR_20' ) end [2025-03-27 20:31:19] Production.INFO: ProcessCDR(1,14776625,1,1,2) [2025-03-27 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776625', 'tblTempUsageDetail_20' ) start [2025-03-27 20:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776625', 'tblTempUsageDetail_20' ) end [2025-03-27 20:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:31:25] Production.INFO: ==6513== Releasing lock... [2025-03-27 20:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:31:25] Production.INFO: 48 MB #Memory Used# [2025-03-27 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:32:06 [end_date_ymd] => 2025-03-27 20:32:06 [RateCDR] => 1 ) [2025-03-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-03-27 17:32:06' and `end` < '2025-03-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-03-27 20:32:19] Production.INFO: count ==2657 [2025-03-27 20:32:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:32:06 - End Time 2025-03-27 20:32:06 [2025-03-27 20:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776630', 'tblTempUsageDetail_20' ) start [2025-03-27 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776630', 'tblTempUsageDetail_20' ) end [2025-03-27 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776630', 'tblTempVendorCDR_20' ) start [2025-03-27 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776630', 'tblTempVendorCDR_20' ) end [2025-03-27 20:32:20] Production.INFO: ProcessCDR(1,14776630,1,1,2) [2025-03-27 20:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776630', 'tblTempUsageDetail_20' ) start [2025-03-27 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776630', 'tblTempUsageDetail_20' ) end [2025-03-27 20:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:32:24] Production.INFO: ==6593== Releasing lock... [2025-03-27 20:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:32:24] Production.INFO: 48 MB #Memory Used# [2025-03-27 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:33:06 [end_date_ymd] => 2025-03-27 20:33:06 [RateCDR] => 1 ) [2025-03-27 20:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:33:06' and `end` < '2025-03-27 20:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:33:19] Production.INFO: count ==2656 [2025-03-27 20:33:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:33:06 - End Time 2025-03-27 20:33:06 [2025-03-27 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776635', 'tblTempUsageDetail_20' ) start [2025-03-27 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776635', 'tblTempUsageDetail_20' ) end [2025-03-27 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776635', 'tblTempVendorCDR_20' ) start [2025-03-27 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776635', 'tblTempVendorCDR_20' ) end [2025-03-27 20:33:20] Production.INFO: ProcessCDR(1,14776635,1,1,2) [2025-03-27 20:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776635', 'tblTempUsageDetail_20' ) start [2025-03-27 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776635', 'tblTempUsageDetail_20' ) end [2025-03-27 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:33:23] Production.INFO: ==6708== Releasing lock... [2025-03-27 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:33:23] Production.INFO: 48 MB #Memory Used# [2025-03-27 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:34:06 [end_date_ymd] => 2025-03-27 20:34:06 [RateCDR] => 1 ) [2025-03-27 20:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:34:06' and `end` < '2025-03-27 20:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:34:19] Production.INFO: count ==2623 [2025-03-27 20:34:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:34:06 - End Time 2025-03-27 20:34:06 [2025-03-27 20:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776640', 'tblTempUsageDetail_20' ) start [2025-03-27 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776640', 'tblTempUsageDetail_20' ) end [2025-03-27 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776640', 'tblTempVendorCDR_20' ) start [2025-03-27 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776640', 'tblTempVendorCDR_20' ) end [2025-03-27 20:34:20] Production.INFO: ProcessCDR(1,14776640,1,1,2) [2025-03-27 20:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776640', 'tblTempUsageDetail_20' ) start [2025-03-27 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776640', 'tblTempUsageDetail_20' ) end [2025-03-27 20:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:34:24] Production.INFO: ==6792== Releasing lock... [2025-03-27 20:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:34:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-27 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:35:06 [end_date_ymd] => 2025-03-27 20:35:06 [RateCDR] => 1 ) [2025-03-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-03-27 17:35:06' and `end` < '2025-03-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-03-27 20:35:19] Production.INFO: count ==2613 [2025-03-27 20:35:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:35:06 - End Time 2025-03-27 20:35:06 [2025-03-27 20:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776645', 'tblTempUsageDetail_20' ) start [2025-03-27 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776645', 'tblTempUsageDetail_20' ) end [2025-03-27 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776645', 'tblTempVendorCDR_20' ) start [2025-03-27 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776645', 'tblTempVendorCDR_20' ) end [2025-03-27 20:35:20] Production.INFO: ProcessCDR(1,14776645,1,1,2) [2025-03-27 20:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776645', 'tblTempUsageDetail_20' ) start [2025-03-27 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776645', 'tblTempUsageDetail_20' ) end [2025-03-27 20:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:35:24] Production.INFO: ==6876== Releasing lock... [2025-03-27 20:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:35:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-27 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:36:06 [end_date_ymd] => 2025-03-27 20:36:06 [RateCDR] => 1 ) [2025-03-27 20:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:36:06' and `end` < '2025-03-27 20:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:36:19] Production.INFO: count ==2616 [2025-03-27 20:36:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:36:06 - End Time 2025-03-27 20:36:06 [2025-03-27 20:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776650', 'tblTempUsageDetail_20' ) start [2025-03-27 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776650', 'tblTempUsageDetail_20' ) end [2025-03-27 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776650', 'tblTempVendorCDR_20' ) start [2025-03-27 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776650', 'tblTempVendorCDR_20' ) end [2025-03-27 20:36:20] Production.INFO: ProcessCDR(1,14776650,1,1,2) [2025-03-27 20:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776650', 'tblTempUsageDetail_20' ) start [2025-03-27 20:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776650', 'tblTempUsageDetail_20' ) end [2025-03-27 20:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:36:24] Production.INFO: ==6961== Releasing lock... [2025-03-27 20:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:36:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-27 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:37:05 [end_date_ymd] => 2025-03-27 20:37:05 [RateCDR] => 1 ) [2025-03-27 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:37:05' and `end` < '2025-03-27 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:37:18] Production.INFO: count ==2614 [2025-03-27 20:37:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:37:05 - End Time 2025-03-27 20:37:05 [2025-03-27 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776655', 'tblTempUsageDetail_20' ) start [2025-03-27 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776655', 'tblTempUsageDetail_20' ) end [2025-03-27 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776655', 'tblTempVendorCDR_20' ) start [2025-03-27 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776655', 'tblTempVendorCDR_20' ) end [2025-03-27 20:37:19] Production.INFO: ProcessCDR(1,14776655,1,1,2) [2025-03-27 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776655', 'tblTempUsageDetail_20' ) start [2025-03-27 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776655', 'tblTempUsageDetail_20' ) end [2025-03-27 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:37:23] Production.INFO: ==7037== Releasing lock... [2025-03-27 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:37:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-27 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:38:06 [end_date_ymd] => 2025-03-27 20:38:06 [RateCDR] => 1 ) [2025-03-27 20:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:38:06' and `end` < '2025-03-27 20:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:38:19] Production.INFO: count ==2600 [2025-03-27 20:38:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:38:06 - End Time 2025-03-27 20:38:06 [2025-03-27 20:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776660', 'tblTempUsageDetail_20' ) start [2025-03-27 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776660', 'tblTempUsageDetail_20' ) end [2025-03-27 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776660', 'tblTempVendorCDR_20' ) start [2025-03-27 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776660', 'tblTempVendorCDR_20' ) end [2025-03-27 20:38:20] Production.INFO: ProcessCDR(1,14776660,1,1,2) [2025-03-27 20:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776660', 'tblTempUsageDetail_20' ) start [2025-03-27 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776660', 'tblTempUsageDetail_20' ) end [2025-03-27 20:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:38:24] Production.INFO: ==7122== Releasing lock... [2025-03-27 20:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:38:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-27 20:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:39:06 [end_date_ymd] => 2025-03-27 20:39:06 [RateCDR] => 1 ) [2025-03-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-03-27 17:39:06' and `end` < '2025-03-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-03-27 20:39:19] Production.INFO: count ==2579 [2025-03-27 20:39:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:39:06 - End Time 2025-03-27 20:39:06 [2025-03-27 20:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776665', 'tblTempUsageDetail_20' ) start [2025-03-27 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776665', 'tblTempUsageDetail_20' ) end [2025-03-27 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776665', 'tblTempVendorCDR_20' ) start [2025-03-27 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776665', 'tblTempVendorCDR_20' ) end [2025-03-27 20:39:20] Production.INFO: ProcessCDR(1,14776665,1,1,2) [2025-03-27 20:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776665', 'tblTempUsageDetail_20' ) start [2025-03-27 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776665', 'tblTempUsageDetail_20' ) end [2025-03-27 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:39:23] Production.INFO: ==7207== Releasing lock... [2025-03-27 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:39:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-27 20:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:40:07 [end_date_ymd] => 2025-03-27 20:40:07 [RateCDR] => 1 ) [2025-03-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-03-27 17:40:07' and `end` < '2025-03-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-03-27 20:40:20] Production.INFO: count ==2553 [2025-03-27 20:40:21] Production.ERROR: pbx CDR StartTime 2025-03-27 17:40:07 - End Time 2025-03-27 20:40:07 [2025-03-27 20:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776671', 'tblTempUsageDetail_20' ) start [2025-03-27 20:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776671', 'tblTempUsageDetail_20' ) end [2025-03-27 20:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776671', 'tblTempVendorCDR_20' ) start [2025-03-27 20:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776671', 'tblTempVendorCDR_20' ) end [2025-03-27 20:40:21] Production.INFO: ProcessCDR(1,14776671,1,1,2) [2025-03-27 20:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776671', 'tblTempUsageDetail_20' ) start [2025-03-27 20:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776671', 'tblTempUsageDetail_20' ) end [2025-03-27 20:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:40:27] Production.INFO: ==7294== Releasing lock... [2025-03-27 20:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:40:27] Production.INFO: 47 MB #Memory Used# [2025-03-27 20:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:41:06 [end_date_ymd] => 2025-03-27 20:41:06 [RateCDR] => 1 ) [2025-03-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-03-27 17:41:06' and `end` < '2025-03-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-03-27 20:41:19] Production.INFO: count ==2495 [2025-03-27 20:41:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:41:06 - End Time 2025-03-27 20:41:06 [2025-03-27 20:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776676', 'tblTempUsageDetail_20' ) start [2025-03-27 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776676', 'tblTempUsageDetail_20' ) end [2025-03-27 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776676', 'tblTempVendorCDR_20' ) start [2025-03-27 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776676', 'tblTempVendorCDR_20' ) end [2025-03-27 20:41:20] Production.INFO: ProcessCDR(1,14776676,1,1,2) [2025-03-27 20:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776676', 'tblTempUsageDetail_20' ) start [2025-03-27 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776676', 'tblTempUsageDetail_20' ) end [2025-03-27 20:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:41:24] Production.INFO: ==7381== Releasing lock... [2025-03-27 20:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:41:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-27 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:42:06 [end_date_ymd] => 2025-03-27 20:42:06 [RateCDR] => 1 ) [2025-03-27 20:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:42:06' and `end` < '2025-03-27 20:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:42:19] Production.INFO: count ==2472 [2025-03-27 20:42:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:42:06 - End Time 2025-03-27 20:42:06 [2025-03-27 20:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776681', 'tblTempUsageDetail_20' ) start [2025-03-27 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776681', 'tblTempUsageDetail_20' ) end [2025-03-27 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776681', 'tblTempVendorCDR_20' ) start [2025-03-27 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776681', 'tblTempVendorCDR_20' ) end [2025-03-27 20:42:20] Production.INFO: ProcessCDR(1,14776681,1,1,2) [2025-03-27 20:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776681', 'tblTempUsageDetail_20' ) start [2025-03-27 20:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776681', 'tblTempUsageDetail_20' ) end [2025-03-27 20:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:42:26] Production.INFO: ==7462== Releasing lock... [2025-03-27 20:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:42:26] Production.INFO: 46.5 MB #Memory Used# [2025-03-27 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:43:05 [end_date_ymd] => 2025-03-27 20:43:05 [RateCDR] => 1 ) [2025-03-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-03-27 17:43:05' and `end` < '2025-03-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-03-27 20:43:19] Production.INFO: count ==2454 [2025-03-27 20:43:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:43:05 - End Time 2025-03-27 20:43:05 [2025-03-27 20:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776686', 'tblTempUsageDetail_20' ) start [2025-03-27 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776686', 'tblTempUsageDetail_20' ) end [2025-03-27 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776686', 'tblTempVendorCDR_20' ) start [2025-03-27 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776686', 'tblTempVendorCDR_20' ) end [2025-03-27 20:43:20] Production.INFO: ProcessCDR(1,14776686,1,1,2) [2025-03-27 20:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776686', 'tblTempUsageDetail_20' ) start [2025-03-27 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776686', 'tblTempUsageDetail_20' ) end [2025-03-27 20:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:43:23] Production.INFO: ==7539== Releasing lock... [2025-03-27 20:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:43:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-27 20:44:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:44:07 [end_date_ymd] => 2025-03-27 20:44:07 [RateCDR] => 1 ) [2025-03-27 20:44:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:44:07' and `end` < '2025-03-27 20:44:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:44:19] Production.INFO: count ==2452 [2025-03-27 20:44:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:44:07 - End Time 2025-03-27 20:44:07 [2025-03-27 20:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776691', 'tblTempUsageDetail_20' ) start [2025-03-27 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776691', 'tblTempUsageDetail_20' ) end [2025-03-27 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776691', 'tblTempVendorCDR_20' ) start [2025-03-27 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776691', 'tblTempVendorCDR_20' ) end [2025-03-27 20:44:20] Production.INFO: ProcessCDR(1,14776691,1,1,2) [2025-03-27 20:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776691', 'tblTempUsageDetail_20' ) start [2025-03-27 20:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776691', 'tblTempUsageDetail_20' ) end [2025-03-27 20:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:44:26] Production.INFO: ==7618== Releasing lock... [2025-03-27 20:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:44:26] Production.INFO: 46.5 MB #Memory Used# [2025-03-27 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:45:05 [end_date_ymd] => 2025-03-27 20:45:05 [RateCDR] => 1 ) [2025-03-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-03-27 17:45:05' and `end` < '2025-03-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-03-27 20:45:18] Production.INFO: count ==2434 [2025-03-27 20:45:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:45:05 - End Time 2025-03-27 20:45:05 [2025-03-27 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776696', 'tblTempUsageDetail_20' ) start [2025-03-27 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776696', 'tblTempUsageDetail_20' ) end [2025-03-27 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776696', 'tblTempVendorCDR_20' ) start [2025-03-27 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776696', 'tblTempVendorCDR_20' ) end [2025-03-27 20:45:19] Production.INFO: ProcessCDR(1,14776696,1,1,2) [2025-03-27 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776696', 'tblTempUsageDetail_20' ) start [2025-03-27 20:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776696', 'tblTempUsageDetail_20' ) end [2025-03-27 20:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:45:24] Production.INFO: ==7704== Releasing lock... [2025-03-27 20:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:45:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-27 20:46:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:46:07 [end_date_ymd] => 2025-03-27 20:46:07 [RateCDR] => 1 ) [2025-03-27 20:46:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:46:07' and `end` < '2025-03-27 20:46:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:46:20] Production.INFO: count ==2412 [2025-03-27 20:46:21] Production.ERROR: pbx CDR StartTime 2025-03-27 17:46:07 - End Time 2025-03-27 20:46:07 [2025-03-27 20:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776701', 'tblTempUsageDetail_20' ) start [2025-03-27 20:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776701', 'tblTempUsageDetail_20' ) end [2025-03-27 20:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776701', 'tblTempVendorCDR_20' ) start [2025-03-27 20:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776701', 'tblTempVendorCDR_20' ) end [2025-03-27 20:46:21] Production.INFO: ProcessCDR(1,14776701,1,1,2) [2025-03-27 20:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776701', 'tblTempUsageDetail_20' ) start [2025-03-27 20:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776701', 'tblTempUsageDetail_20' ) end [2025-03-27 20:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:46:25] Production.INFO: ==7782== Releasing lock... [2025-03-27 20:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:46:25] Production.INFO: 46.25 MB #Memory Used# [2025-03-27 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:47:06 [end_date_ymd] => 2025-03-27 20:47:06 [RateCDR] => 1 ) [2025-03-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-03-27 17:47:06' and `end` < '2025-03-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-03-27 20:47:19] Production.INFO: count ==2406 [2025-03-27 20:47:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:47:06 - End Time 2025-03-27 20:47:06 [2025-03-27 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776706', 'tblTempUsageDetail_20' ) start [2025-03-27 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776706', 'tblTempUsageDetail_20' ) end [2025-03-27 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776706', 'tblTempVendorCDR_20' ) start [2025-03-27 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776706', 'tblTempVendorCDR_20' ) end [2025-03-27 20:47:20] Production.INFO: ProcessCDR(1,14776706,1,1,2) [2025-03-27 20:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776706', 'tblTempUsageDetail_20' ) start [2025-03-27 20:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776706', 'tblTempUsageDetail_20' ) end [2025-03-27 20:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:47:25] Production.INFO: ==7861== Releasing lock... [2025-03-27 20:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:47:25] Production.INFO: 46 MB #Memory Used# [2025-03-27 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:48:06 [end_date_ymd] => 2025-03-27 20:48:06 [RateCDR] => 1 ) [2025-03-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-03-27 17:48:06' and `end` < '2025-03-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-03-27 20:48:19] Production.INFO: count ==2389 [2025-03-27 20:48:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:48:06 - End Time 2025-03-27 20:48:06 [2025-03-27 20:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776711', 'tblTempUsageDetail_20' ) start [2025-03-27 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776711', 'tblTempUsageDetail_20' ) end [2025-03-27 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776711', 'tblTempVendorCDR_20' ) start [2025-03-27 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776711', 'tblTempVendorCDR_20' ) end [2025-03-27 20:48:20] Production.INFO: ProcessCDR(1,14776711,1,1,2) [2025-03-27 20:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776711', 'tblTempUsageDetail_20' ) start [2025-03-27 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776711', 'tblTempUsageDetail_20' ) end [2025-03-27 20:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:48:24] Production.INFO: ==7944== Releasing lock... [2025-03-27 20:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:48:24] Production.INFO: 46 MB #Memory Used# [2025-03-27 20:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:49:06 [end_date_ymd] => 2025-03-27 20:49:06 [RateCDR] => 1 ) [2025-03-27 20:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:49:06' and `end` < '2025-03-27 20:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:49:18] Production.INFO: count ==2387 [2025-03-27 20:49:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:49:06 - End Time 2025-03-27 20:49:06 [2025-03-27 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776716', 'tblTempUsageDetail_20' ) start [2025-03-27 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776716', 'tblTempUsageDetail_20' ) end [2025-03-27 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776716', 'tblTempVendorCDR_20' ) start [2025-03-27 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776716', 'tblTempVendorCDR_20' ) end [2025-03-27 20:49:19] Production.INFO: ProcessCDR(1,14776716,1,1,2) [2025-03-27 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776716', 'tblTempUsageDetail_20' ) start [2025-03-27 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776716', 'tblTempUsageDetail_20' ) end [2025-03-27 20:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:49:24] Production.INFO: ==8063== Releasing lock... [2025-03-27 20:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:49:24] Production.INFO: 46 MB #Memory Used# [2025-03-27 20:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:50:07 [end_date_ymd] => 2025-03-27 20:50:07 [RateCDR] => 1 ) [2025-03-27 20:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:50:07' and `end` < '2025-03-27 20:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:50:20] Production.INFO: count ==2385 [2025-03-27 20:50:21] Production.ERROR: pbx CDR StartTime 2025-03-27 17:50:07 - End Time 2025-03-27 20:50:07 [2025-03-27 20:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776722', 'tblTempUsageDetail_20' ) start [2025-03-27 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776722', 'tblTempUsageDetail_20' ) end [2025-03-27 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776722', 'tblTempVendorCDR_20' ) start [2025-03-27 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776722', 'tblTempVendorCDR_20' ) end [2025-03-27 20:50:21] Production.INFO: ProcessCDR(1,14776722,1,1,2) [2025-03-27 20:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776722', 'tblTempUsageDetail_20' ) start [2025-03-27 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776722', 'tblTempUsageDetail_20' ) end [2025-03-27 20:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:50:24] Production.INFO: ==8141== Releasing lock... [2025-03-27 20:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:50:24] Production.INFO: 46 MB #Memory Used# [2025-03-27 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:51:05 [end_date_ymd] => 2025-03-27 20:51:05 [RateCDR] => 1 ) [2025-03-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-03-27 17:51:05' and `end` < '2025-03-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-03-27 20:51:18] Production.INFO: count ==2341 [2025-03-27 20:51:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:51:05 - End Time 2025-03-27 20:51:05 [2025-03-27 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776727', 'tblTempUsageDetail_20' ) start [2025-03-27 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776727', 'tblTempUsageDetail_20' ) end [2025-03-27 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776727', 'tblTempVendorCDR_20' ) start [2025-03-27 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776727', 'tblTempVendorCDR_20' ) end [2025-03-27 20:51:19] Production.INFO: ProcessCDR(1,14776727,1,1,2) [2025-03-27 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776727', 'tblTempUsageDetail_20' ) start [2025-03-27 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776727', 'tblTempUsageDetail_20' ) end [2025-03-27 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:51:23] Production.INFO: ==8231== Releasing lock... [2025-03-27 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:51:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-27 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:52:05 [end_date_ymd] => 2025-03-27 20:52:05 [RateCDR] => 1 ) [2025-03-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-03-27 17:52:05' and `end` < '2025-03-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-03-27 20:52:18] Production.INFO: count ==2341 [2025-03-27 20:52:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:52:05 - End Time 2025-03-27 20:52:05 [2025-03-27 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776732', 'tblTempUsageDetail_20' ) start [2025-03-27 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776732', 'tblTempUsageDetail_20' ) end [2025-03-27 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776732', 'tblTempVendorCDR_20' ) start [2025-03-27 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776732', 'tblTempVendorCDR_20' ) end [2025-03-27 20:52:19] Production.INFO: ProcessCDR(1,14776732,1,1,2) [2025-03-27 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776732', 'tblTempUsageDetail_20' ) start [2025-03-27 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776732', 'tblTempUsageDetail_20' ) end [2025-03-27 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:52:23] Production.INFO: ==8315== Releasing lock... [2025-03-27 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:52:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-27 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:53:05 [end_date_ymd] => 2025-03-27 20:53:05 [RateCDR] => 1 ) [2025-03-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-03-27 17:53:05' and `end` < '2025-03-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-03-27 20:53:18] Production.INFO: count ==2338 [2025-03-27 20:53:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:53:05 - End Time 2025-03-27 20:53:05 [2025-03-27 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776737', 'tblTempUsageDetail_20' ) start [2025-03-27 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776737', 'tblTempUsageDetail_20' ) end [2025-03-27 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776737', 'tblTempVendorCDR_20' ) start [2025-03-27 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776737', 'tblTempVendorCDR_20' ) end [2025-03-27 20:53:19] Production.INFO: ProcessCDR(1,14776737,1,1,2) [2025-03-27 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776737', 'tblTempUsageDetail_20' ) start [2025-03-27 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776737', 'tblTempUsageDetail_20' ) end [2025-03-27 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:53:23] Production.INFO: ==8407== Releasing lock... [2025-03-27 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:53:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-27 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:54:05 [end_date_ymd] => 2025-03-27 20:54:05 [RateCDR] => 1 ) [2025-03-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-03-27 17:54:05' and `end` < '2025-03-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-03-27 20:54:17] Production.INFO: count ==2328 [2025-03-27 20:54:18] Production.ERROR: pbx CDR StartTime 2025-03-27 17:54:05 - End Time 2025-03-27 20:54:05 [2025-03-27 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776742', 'tblTempUsageDetail_20' ) start [2025-03-27 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776742', 'tblTempUsageDetail_20' ) end [2025-03-27 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776742', 'tblTempVendorCDR_20' ) start [2025-03-27 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776742', 'tblTempVendorCDR_20' ) end [2025-03-27 20:54:18] Production.INFO: ProcessCDR(1,14776742,1,1,2) [2025-03-27 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776742', 'tblTempUsageDetail_20' ) start [2025-03-27 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776742', 'tblTempUsageDetail_20' ) end [2025-03-27 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:54:22] Production.INFO: ==8490== Releasing lock... [2025-03-27 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:54:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-27 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:55:06 [end_date_ymd] => 2025-03-27 20:55:06 [RateCDR] => 1 ) [2025-03-27 20:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:55:06' and `end` < '2025-03-27 20:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:55:19] Production.INFO: count ==2331 [2025-03-27 20:55:20] Production.ERROR: pbx CDR StartTime 2025-03-27 17:55:06 - End Time 2025-03-27 20:55:06 [2025-03-27 20:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776747', 'tblTempUsageDetail_20' ) start [2025-03-27 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776747', 'tblTempUsageDetail_20' ) end [2025-03-27 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776747', 'tblTempVendorCDR_20' ) start [2025-03-27 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776747', 'tblTempVendorCDR_20' ) end [2025-03-27 20:55:20] Production.INFO: ProcessCDR(1,14776747,1,1,2) [2025-03-27 20:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776747', 'tblTempUsageDetail_20' ) start [2025-03-27 20:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776747', 'tblTempUsageDetail_20' ) end [2025-03-27 20:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:55:24] Production.INFO: ==8579== Releasing lock... [2025-03-27 20:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:55:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-27 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:56:06 [end_date_ymd] => 2025-03-27 20:56:06 [RateCDR] => 1 ) [2025-03-27 20:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 17:56:06' and `end` < '2025-03-27 20:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 20:56:18] Production.INFO: count ==2328 [2025-03-27 20:56:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:56:06 - End Time 2025-03-27 20:56:06 [2025-03-27 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776752', 'tblTempUsageDetail_20' ) start [2025-03-27 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776752', 'tblTempUsageDetail_20' ) end [2025-03-27 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776752', 'tblTempVendorCDR_20' ) start [2025-03-27 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776752', 'tblTempVendorCDR_20' ) end [2025-03-27 20:56:19] Production.INFO: ProcessCDR(1,14776752,1,1,2) [2025-03-27 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776752', 'tblTempUsageDetail_20' ) start [2025-03-27 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776752', 'tblTempUsageDetail_20' ) end [2025-03-27 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:56:23] Production.INFO: ==8671== Releasing lock... [2025-03-27 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:56:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-27 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:57:06 [end_date_ymd] => 2025-03-27 20:57:06 [RateCDR] => 1 ) [2025-03-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-03-27 17:57:06' and `end` < '2025-03-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-03-27 20:57:18] Production.INFO: count ==2335 [2025-03-27 20:57:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:57:06 - End Time 2025-03-27 20:57:06 [2025-03-27 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776757', 'tblTempUsageDetail_20' ) start [2025-03-27 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776757', 'tblTempUsageDetail_20' ) end [2025-03-27 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776757', 'tblTempVendorCDR_20' ) start [2025-03-27 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776757', 'tblTempVendorCDR_20' ) end [2025-03-27 20:57:19] Production.INFO: ProcessCDR(1,14776757,1,1,2) [2025-03-27 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776757', 'tblTempUsageDetail_20' ) start [2025-03-27 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776757', 'tblTempUsageDetail_20' ) end [2025-03-27 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:57:23] Production.INFO: ==8758== Releasing lock... [2025-03-27 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:57:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-27 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:58:05 [end_date_ymd] => 2025-03-27 20:58:05 [RateCDR] => 1 ) [2025-03-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-03-27 17:58:05' and `end` < '2025-03-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-03-27 20:58:18] Production.INFO: count ==2339 [2025-03-27 20:58:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:58:05 - End Time 2025-03-27 20:58:05 [2025-03-27 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776762', 'tblTempUsageDetail_20' ) start [2025-03-27 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776762', 'tblTempUsageDetail_20' ) end [2025-03-27 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776762', 'tblTempVendorCDR_20' ) start [2025-03-27 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776762', 'tblTempVendorCDR_20' ) end [2025-03-27 20:58:19] Production.INFO: ProcessCDR(1,14776762,1,1,2) [2025-03-27 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776762', 'tblTempUsageDetail_20' ) start [2025-03-27 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776762', 'tblTempUsageDetail_20' ) end [2025-03-27 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:58:23] Production.INFO: ==8840== Releasing lock... [2025-03-27 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:58:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-27 20:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 17:59:06 [end_date_ymd] => 2025-03-27 20:59:06 [RateCDR] => 1 ) [2025-03-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-03-27 17:59:06' and `end` < '2025-03-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-03-27 20:59:18] Production.INFO: count ==2340 [2025-03-27 20:59:19] Production.ERROR: pbx CDR StartTime 2025-03-27 17:59:06 - End Time 2025-03-27 20:59:06 [2025-03-27 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776767', 'tblTempUsageDetail_20' ) start [2025-03-27 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776767', 'tblTempUsageDetail_20' ) end [2025-03-27 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776767', 'tblTempVendorCDR_20' ) start [2025-03-27 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776767', 'tblTempVendorCDR_20' ) end [2025-03-27 20:59:19] Production.INFO: ProcessCDR(1,14776767,1,1,2) [2025-03-27 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 20:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 20:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776767', 'tblTempUsageDetail_20' ) start [2025-03-27 20:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776767', 'tblTempUsageDetail_20' ) end [2025-03-27 20:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 20:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 20:59:25] Production.INFO: ==8926== Releasing lock... [2025-03-27 20:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 20:59:25] Production.INFO: 45.5 MB #Memory Used# [2025-03-27 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:00:06 [end_date_ymd] => 2025-03-27 21:00:06 [RateCDR] => 1 ) [2025-03-27 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:00:06' and `end` < '2025-03-27 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:00:19] Production.INFO: count ==2338 [2025-03-27 21:00:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:00:06 - End Time 2025-03-27 21:00:06 [2025-03-27 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776773', 'tblTempUsageDetail_20' ) start [2025-03-27 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776773', 'tblTempUsageDetail_20' ) end [2025-03-27 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776773', 'tblTempVendorCDR_20' ) start [2025-03-27 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776773', 'tblTempVendorCDR_20' ) end [2025-03-27 21:00:20] Production.INFO: ProcessCDR(1,14776773,1,1,2) [2025-03-27 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776773', 'tblTempUsageDetail_20' ) start [2025-03-27 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776773', 'tblTempUsageDetail_20' ) end [2025-03-27 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:00:24] Production.INFO: ==9023== Releasing lock... [2025-03-27 21:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:00:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-27 21:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:01:06 [end_date_ymd] => 2025-03-27 21:01:06 [RateCDR] => 1 ) [2025-03-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-03-27 18:01:06' and `end` < '2025-03-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-03-27 21:01:19] Production.INFO: count ==2303 [2025-03-27 21:01:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:01:06 - End Time 2025-03-27 21:01:06 [2025-03-27 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776778', 'tblTempUsageDetail_20' ) start [2025-03-27 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776778', 'tblTempUsageDetail_20' ) end [2025-03-27 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776778', 'tblTempVendorCDR_20' ) start [2025-03-27 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776778', 'tblTempVendorCDR_20' ) end [2025-03-27 21:01:20] Production.INFO: ProcessCDR(1,14776778,1,1,2) [2025-03-27 21:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776778', 'tblTempUsageDetail_20' ) start [2025-03-27 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776778', 'tblTempUsageDetail_20' ) end [2025-03-27 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:01:23] Production.INFO: ==9120== Releasing lock... [2025-03-27 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:01:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-27 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:02:05 [end_date_ymd] => 2025-03-27 21:02:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:02:05' and `end` < '2025-03-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-03-27 21:02:18] Production.INFO: count ==2284 [2025-03-27 21:02:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:02:05 - End Time 2025-03-27 21:02:05 [2025-03-27 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776783', 'tblTempUsageDetail_20' ) start [2025-03-27 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776783', 'tblTempUsageDetail_20' ) end [2025-03-27 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776783', 'tblTempVendorCDR_20' ) start [2025-03-27 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776783', 'tblTempVendorCDR_20' ) end [2025-03-27 21:02:19] Production.INFO: ProcessCDR(1,14776783,1,1,2) [2025-03-27 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776783', 'tblTempUsageDetail_20' ) start [2025-03-27 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776783', 'tblTempUsageDetail_20' ) end [2025-03-27 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:02:22] Production.INFO: ==9200== Releasing lock... [2025-03-27 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:02:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-27 21:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:03:06 [end_date_ymd] => 2025-03-27 21:03:06 [RateCDR] => 1 ) [2025-03-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-03-27 18:03:06' and `end` < '2025-03-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-03-27 21:03:18] Production.INFO: count ==2267 [2025-03-27 21:03:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:03:06 - End Time 2025-03-27 21:03:06 [2025-03-27 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776788', 'tblTempUsageDetail_20' ) start [2025-03-27 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776788', 'tblTempUsageDetail_20' ) end [2025-03-27 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776788', 'tblTempVendorCDR_20' ) start [2025-03-27 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776788', 'tblTempVendorCDR_20' ) end [2025-03-27 21:03:19] Production.INFO: ProcessCDR(1,14776788,1,1,2) [2025-03-27 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776788', 'tblTempUsageDetail_20' ) start [2025-03-27 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776788', 'tblTempUsageDetail_20' ) end [2025-03-27 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:03:23] Production.INFO: ==9282== Releasing lock... [2025-03-27 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:03:23] Production.INFO: 45 MB #Memory Used# [2025-03-27 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:04:05 [end_date_ymd] => 2025-03-27 21:04:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:04:05' and `end` < '2025-03-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-03-27 21:04:18] Production.INFO: count ==2260 [2025-03-27 21:04:18] Production.ERROR: pbx CDR StartTime 2025-03-27 18:04:05 - End Time 2025-03-27 21:04:05 [2025-03-27 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776793', 'tblTempUsageDetail_20' ) start [2025-03-27 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776793', 'tblTempUsageDetail_20' ) end [2025-03-27 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776793', 'tblTempVendorCDR_20' ) start [2025-03-27 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776793', 'tblTempVendorCDR_20' ) end [2025-03-27 21:04:18] Production.INFO: ProcessCDR(1,14776793,1,1,2) [2025-03-27 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776793', 'tblTempUsageDetail_20' ) start [2025-03-27 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776793', 'tblTempUsageDetail_20' ) end [2025-03-27 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:04:22] Production.INFO: ==9412== Releasing lock... [2025-03-27 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:04:22] Production.INFO: 45 MB #Memory Used# [2025-03-27 21:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:05:06 [end_date_ymd] => 2025-03-27 21:05:06 [RateCDR] => 1 ) [2025-03-27 21:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:05:06' and `end` < '2025-03-27 21:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:05:19] Production.INFO: count ==2261 [2025-03-27 21:05:20] Production.ERROR: pbx CDR StartTime 2025-03-27 18:05:06 - End Time 2025-03-27 21:05:06 [2025-03-27 21:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776798', 'tblTempUsageDetail_20' ) start [2025-03-27 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776798', 'tblTempUsageDetail_20' ) end [2025-03-27 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776798', 'tblTempVendorCDR_20' ) start [2025-03-27 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776798', 'tblTempVendorCDR_20' ) end [2025-03-27 21:05:20] Production.INFO: ProcessCDR(1,14776798,1,1,2) [2025-03-27 21:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776798', 'tblTempUsageDetail_20' ) start [2025-03-27 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776798', 'tblTempUsageDetail_20' ) end [2025-03-27 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:05:23] Production.INFO: ==9500== Releasing lock... [2025-03-27 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:05:23] Production.INFO: 45 MB #Memory Used# [2025-03-27 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:06:05 [end_date_ymd] => 2025-03-27 21:06:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:06:05' and `end` < '2025-03-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-03-27 21:06:18] Production.INFO: count ==2258 [2025-03-27 21:06:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:06:05 - End Time 2025-03-27 21:06:05 [2025-03-27 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776803', 'tblTempUsageDetail_20' ) start [2025-03-27 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776803', 'tblTempUsageDetail_20' ) end [2025-03-27 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776803', 'tblTempVendorCDR_20' ) start [2025-03-27 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776803', 'tblTempVendorCDR_20' ) end [2025-03-27 21:06:19] Production.INFO: ProcessCDR(1,14776803,1,1,2) [2025-03-27 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776803', 'tblTempUsageDetail_20' ) start [2025-03-27 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776803', 'tblTempUsageDetail_20' ) end [2025-03-27 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:06:23] Production.INFO: ==9582== Releasing lock... [2025-03-27 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:06:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-27 21:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:07:06 [end_date_ymd] => 2025-03-27 21:07:06 [RateCDR] => 1 ) [2025-03-27 21:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:07:06' and `end` < '2025-03-27 21:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:07:18] Production.INFO: count ==2239 [2025-03-27 21:07:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:07:06 - End Time 2025-03-27 21:07:06 [2025-03-27 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776808', 'tblTempUsageDetail_20' ) start [2025-03-27 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776808', 'tblTempUsageDetail_20' ) end [2025-03-27 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776808', 'tblTempVendorCDR_20' ) start [2025-03-27 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776808', 'tblTempVendorCDR_20' ) end [2025-03-27 21:07:19] Production.INFO: ProcessCDR(1,14776808,1,1,2) [2025-03-27 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776808', 'tblTempUsageDetail_20' ) start [2025-03-27 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776808', 'tblTempUsageDetail_20' ) end [2025-03-27 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:07:23] Production.INFO: ==9675== Releasing lock... [2025-03-27 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:07:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-27 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:08:05 [end_date_ymd] => 2025-03-27 21:08:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:08:05' and `end` < '2025-03-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-03-27 21:08:18] Production.INFO: count ==2238 [2025-03-27 21:08:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:08:05 - End Time 2025-03-27 21:08:05 [2025-03-27 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776813', 'tblTempUsageDetail_20' ) start [2025-03-27 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776813', 'tblTempUsageDetail_20' ) end [2025-03-27 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776813', 'tblTempVendorCDR_20' ) start [2025-03-27 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776813', 'tblTempVendorCDR_20' ) end [2025-03-27 21:08:19] Production.INFO: ProcessCDR(1,14776813,1,1,2) [2025-03-27 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776813', 'tblTempUsageDetail_20' ) start [2025-03-27 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776813', 'tblTempUsageDetail_20' ) end [2025-03-27 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:08:23] Production.INFO: ==9763== Releasing lock... [2025-03-27 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:08:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-27 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:09:05 [end_date_ymd] => 2025-03-27 21:09:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:09:05' and `end` < '2025-03-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-03-27 21:09:18] Production.INFO: count ==2240 [2025-03-27 21:09:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:09:05 - End Time 2025-03-27 21:09:05 [2025-03-27 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776818', 'tblTempUsageDetail_20' ) start [2025-03-27 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776818', 'tblTempUsageDetail_20' ) end [2025-03-27 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776818', 'tblTempVendorCDR_20' ) start [2025-03-27 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776818', 'tblTempVendorCDR_20' ) end [2025-03-27 21:09:19] Production.INFO: ProcessCDR(1,14776818,1,1,2) [2025-03-27 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776818', 'tblTempUsageDetail_20' ) start [2025-03-27 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776818', 'tblTempUsageDetail_20' ) end [2025-03-27 21:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:09:24] Production.INFO: ==9849== Releasing lock... [2025-03-27 21:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:09:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-27 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:10:06 [end_date_ymd] => 2025-03-27 21:10:06 [RateCDR] => 1 ) [2025-03-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-03-27 18:10:06' and `end` < '2025-03-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-03-27 21:10:19] Production.INFO: count ==2242 [2025-03-27 21:10:20] Production.ERROR: pbx CDR StartTime 2025-03-27 18:10:06 - End Time 2025-03-27 21:10:06 [2025-03-27 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776824', 'tblTempUsageDetail_20' ) start [2025-03-27 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776824', 'tblTempUsageDetail_20' ) end [2025-03-27 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776824', 'tblTempVendorCDR_20' ) start [2025-03-27 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776824', 'tblTempVendorCDR_20' ) end [2025-03-27 21:10:20] Production.INFO: ProcessCDR(1,14776824,1,1,2) [2025-03-27 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776824', 'tblTempUsageDetail_20' ) start [2025-03-27 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776824', 'tblTempUsageDetail_20' ) end [2025-03-27 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:10:24] Production.INFO: ==9937== Releasing lock... [2025-03-27 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:10:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-27 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:11:05 [end_date_ymd] => 2025-03-27 21:11:05 [RateCDR] => 1 ) [2025-03-27 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:11:05' and `end` < '2025-03-27 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:11:18] Production.INFO: count ==2174 [2025-03-27 21:11:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:11:05 - End Time 2025-03-27 21:11:05 [2025-03-27 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776829', 'tblTempUsageDetail_20' ) start [2025-03-27 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776829', 'tblTempUsageDetail_20' ) end [2025-03-27 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776829', 'tblTempVendorCDR_20' ) start [2025-03-27 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776829', 'tblTempVendorCDR_20' ) end [2025-03-27 21:11:19] Production.INFO: ProcessCDR(1,14776829,1,1,2) [2025-03-27 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776829', 'tblTempUsageDetail_20' ) start [2025-03-27 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776829', 'tblTempUsageDetail_20' ) end [2025-03-27 21:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:11:24] Production.INFO: ==10028== Releasing lock... [2025-03-27 21:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:11:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-27 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:12:05 [end_date_ymd] => 2025-03-27 21:12:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:12:05' and `end` < '2025-03-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-03-27 21:12:18] Production.INFO: count ==2161 [2025-03-27 21:12:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:12:05 - End Time 2025-03-27 21:12:05 [2025-03-27 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776834', 'tblTempUsageDetail_20' ) start [2025-03-27 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776834', 'tblTempUsageDetail_20' ) end [2025-03-27 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776834', 'tblTempVendorCDR_20' ) start [2025-03-27 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776834', 'tblTempVendorCDR_20' ) end [2025-03-27 21:12:19] Production.INFO: ProcessCDR(1,14776834,1,1,2) [2025-03-27 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776834', 'tblTempUsageDetail_20' ) start [2025-03-27 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776834', 'tblTempUsageDetail_20' ) end [2025-03-27 21:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:12:23] Production.INFO: ==10110== Releasing lock... [2025-03-27 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:12:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-27 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:13:05 [end_date_ymd] => 2025-03-27 21:13:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:13:05' and `end` < '2025-03-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-03-27 21:13:18] Production.INFO: count ==2157 [2025-03-27 21:13:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:13:05 - End Time 2025-03-27 21:13:05 [2025-03-27 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776839', 'tblTempUsageDetail_20' ) start [2025-03-27 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776839', 'tblTempUsageDetail_20' ) end [2025-03-27 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776839', 'tblTempVendorCDR_20' ) start [2025-03-27 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776839', 'tblTempVendorCDR_20' ) end [2025-03-27 21:13:19] Production.INFO: ProcessCDR(1,14776839,1,1,2) [2025-03-27 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776839', 'tblTempUsageDetail_20' ) start [2025-03-27 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776839', 'tblTempUsageDetail_20' ) end [2025-03-27 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:13:22] Production.INFO: ==10199== Releasing lock... [2025-03-27 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:13:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-27 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:14:06 [end_date_ymd] => 2025-03-27 21:14:06 [RateCDR] => 1 ) [2025-03-27 21:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:14:06' and `end` < '2025-03-27 21:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:14:19] Production.INFO: count ==2153 [2025-03-27 21:14:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:14:06 - End Time 2025-03-27 21:14:06 [2025-03-27 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776844', 'tblTempUsageDetail_20' ) start [2025-03-27 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776844', 'tblTempUsageDetail_20' ) end [2025-03-27 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776844', 'tblTempVendorCDR_20' ) start [2025-03-27 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776844', 'tblTempVendorCDR_20' ) end [2025-03-27 21:14:19] Production.INFO: ProcessCDR(1,14776844,1,1,2) [2025-03-27 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776844', 'tblTempUsageDetail_20' ) start [2025-03-27 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776844', 'tblTempUsageDetail_20' ) end [2025-03-27 21:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:14:23] Production.INFO: ==10283== Releasing lock... [2025-03-27 21:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:14:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-27 21:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:15:06 [end_date_ymd] => 2025-03-27 21:15:06 [RateCDR] => 1 ) [2025-03-27 21:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:15:06' and `end` < '2025-03-27 21:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:15:18] Production.INFO: count ==2153 [2025-03-27 21:15:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:15:06 - End Time 2025-03-27 21:15:06 [2025-03-27 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776849', 'tblTempUsageDetail_20' ) start [2025-03-27 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776849', 'tblTempUsageDetail_20' ) end [2025-03-27 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776849', 'tblTempVendorCDR_20' ) start [2025-03-27 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776849', 'tblTempVendorCDR_20' ) end [2025-03-27 21:15:19] Production.INFO: ProcessCDR(1,14776849,1,1,2) [2025-03-27 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776849', 'tblTempUsageDetail_20' ) start [2025-03-27 21:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776849', 'tblTempUsageDetail_20' ) end [2025-03-27 21:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:15:25] Production.INFO: ==10365== Releasing lock... [2025-03-27 21:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:15:25] Production.INFO: 44.25 MB #Memory Used# [2025-03-27 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:16:06 [end_date_ymd] => 2025-03-27 21:16:06 [RateCDR] => 1 ) [2025-03-27 21:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:16:06' and `end` < '2025-03-27 21:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:16:19] Production.INFO: count ==2122 [2025-03-27 21:16:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:16:06 - End Time 2025-03-27 21:16:06 [2025-03-27 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776854', 'tblTempUsageDetail_20' ) start [2025-03-27 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776854', 'tblTempUsageDetail_20' ) end [2025-03-27 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776854', 'tblTempVendorCDR_20' ) start [2025-03-27 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776854', 'tblTempVendorCDR_20' ) end [2025-03-27 21:16:19] Production.INFO: ProcessCDR(1,14776854,1,1,2) [2025-03-27 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776854', 'tblTempUsageDetail_20' ) start [2025-03-27 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776854', 'tblTempUsageDetail_20' ) end [2025-03-27 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:16:23] Production.INFO: ==10456== Releasing lock... [2025-03-27 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:16:23] Production.INFO: 44 MB #Memory Used# [2025-03-27 21:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:17:06 [end_date_ymd] => 2025-03-27 21:17:06 [RateCDR] => 1 ) [2025-03-27 21:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:17:06' and `end` < '2025-03-27 21:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:17:19] Production.INFO: count ==2124 [2025-03-27 21:17:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:17:06 - End Time 2025-03-27 21:17:06 [2025-03-27 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776859', 'tblTempUsageDetail_20' ) start [2025-03-27 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776859', 'tblTempUsageDetail_20' ) end [2025-03-27 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776859', 'tblTempVendorCDR_20' ) start [2025-03-27 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776859', 'tblTempVendorCDR_20' ) end [2025-03-27 21:17:19] Production.INFO: ProcessCDR(1,14776859,1,1,2) [2025-03-27 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776859', 'tblTempUsageDetail_20' ) start [2025-03-27 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776859', 'tblTempUsageDetail_20' ) end [2025-03-27 21:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:17:23] Production.INFO: ==10540== Releasing lock... [2025-03-27 21:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:17:23] Production.INFO: 44 MB #Memory Used# [2025-03-27 21:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:18:06 [end_date_ymd] => 2025-03-27 21:18:06 [RateCDR] => 1 ) [2025-03-27 21:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:18:06' and `end` < '2025-03-27 21:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:18:19] Production.INFO: count ==2132 [2025-03-27 21:18:20] Production.ERROR: pbx CDR StartTime 2025-03-27 18:18:06 - End Time 2025-03-27 21:18:06 [2025-03-27 21:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776864', 'tblTempUsageDetail_20' ) start [2025-03-27 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776864', 'tblTempUsageDetail_20' ) end [2025-03-27 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776864', 'tblTempVendorCDR_20' ) start [2025-03-27 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776864', 'tblTempVendorCDR_20' ) end [2025-03-27 21:18:20] Production.INFO: ProcessCDR(1,14776864,1,1,2) [2025-03-27 21:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776864', 'tblTempUsageDetail_20' ) start [2025-03-27 21:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776864', 'tblTempUsageDetail_20' ) end [2025-03-27 21:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:18:24] Production.INFO: ==10633== Releasing lock... [2025-03-27 21:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:18:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-27 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:19:05 [end_date_ymd] => 2025-03-27 21:19:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:19:05' and `end` < '2025-03-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-03-27 21:19:18] Production.INFO: count ==2136 [2025-03-27 21:19:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:19:05 - End Time 2025-03-27 21:19:05 [2025-03-27 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776869', 'tblTempUsageDetail_20' ) start [2025-03-27 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776869', 'tblTempUsageDetail_20' ) end [2025-03-27 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776869', 'tblTempVendorCDR_20' ) start [2025-03-27 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776869', 'tblTempVendorCDR_20' ) end [2025-03-27 21:19:19] Production.INFO: ProcessCDR(1,14776869,1,1,2) [2025-03-27 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776869', 'tblTempUsageDetail_20' ) start [2025-03-27 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776869', 'tblTempUsageDetail_20' ) end [2025-03-27 21:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:19:23] Production.INFO: ==10720== Releasing lock... [2025-03-27 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:19:23] Production.INFO: 44 MB #Memory Used# [2025-03-27 21:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:20:07 [end_date_ymd] => 2025-03-27 21:20:07 [RateCDR] => 1 ) [2025-03-27 21:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:20:07' and `end` < '2025-03-27 21:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:20:20] Production.INFO: count ==2120 [2025-03-27 21:20:21] Production.ERROR: pbx CDR StartTime 2025-03-27 18:20:07 - End Time 2025-03-27 21:20:07 [2025-03-27 21:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776875', 'tblTempUsageDetail_20' ) start [2025-03-27 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776875', 'tblTempUsageDetail_20' ) end [2025-03-27 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776875', 'tblTempVendorCDR_20' ) start [2025-03-27 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776875', 'tblTempVendorCDR_20' ) end [2025-03-27 21:20:21] Production.INFO: ProcessCDR(1,14776875,1,1,2) [2025-03-27 21:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776875', 'tblTempUsageDetail_20' ) start [2025-03-27 21:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776875', 'tblTempUsageDetail_20' ) end [2025-03-27 21:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:20:25] Production.INFO: ==10849== Releasing lock... [2025-03-27 21:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:20:25] Production.INFO: 44 MB #Memory Used# [2025-03-27 21:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:21:05 [end_date_ymd] => 2025-03-27 21:21:05 [RateCDR] => 1 ) [2025-03-27 21:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:21:05' and `end` < '2025-03-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-03-27 21:21:18] Production.INFO: count ==2076 [2025-03-27 21:21:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:21:05 - End Time 2025-03-27 21:21:05 [2025-03-27 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776880', 'tblTempUsageDetail_20' ) start [2025-03-27 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776880', 'tblTempUsageDetail_20' ) end [2025-03-27 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776880', 'tblTempVendorCDR_20' ) start [2025-03-27 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776880', 'tblTempVendorCDR_20' ) end [2025-03-27 21:21:19] Production.INFO: ProcessCDR(1,14776880,1,1,2) [2025-03-27 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776880', 'tblTempUsageDetail_20' ) start [2025-03-27 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776880', 'tblTempUsageDetail_20' ) end [2025-03-27 21:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:21:23] Production.INFO: ==10935== Releasing lock... [2025-03-27 21:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:21:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-27 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:22:06 [end_date_ymd] => 2025-03-27 21:22:06 [RateCDR] => 1 ) [2025-03-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-03-27 18:22:06' and `end` < '2025-03-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-03-27 21:22:19] Production.INFO: count ==2079 [2025-03-27 21:22:20] Production.ERROR: pbx CDR StartTime 2025-03-27 18:22:06 - End Time 2025-03-27 21:22:06 [2025-03-27 21:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776885', 'tblTempUsageDetail_20' ) start [2025-03-27 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776885', 'tblTempUsageDetail_20' ) end [2025-03-27 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776885', 'tblTempVendorCDR_20' ) start [2025-03-27 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776885', 'tblTempVendorCDR_20' ) end [2025-03-27 21:22:20] Production.INFO: ProcessCDR(1,14776885,1,1,2) [2025-03-27 21:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776885', 'tblTempUsageDetail_20' ) start [2025-03-27 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776885', 'tblTempUsageDetail_20' ) end [2025-03-27 21:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:22:24] Production.INFO: ==11015== Releasing lock... [2025-03-27 21:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:22:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-27 21:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:23:06 [end_date_ymd] => 2025-03-27 21:23:06 [RateCDR] => 1 ) [2025-03-27 21:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:23:06' and `end` < '2025-03-27 21:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:23:19] Production.INFO: count ==2059 [2025-03-27 21:23:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:23:06 - End Time 2025-03-27 21:23:06 [2025-03-27 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776890', 'tblTempUsageDetail_20' ) start [2025-03-27 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776890', 'tblTempUsageDetail_20' ) end [2025-03-27 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776890', 'tblTempVendorCDR_20' ) start [2025-03-27 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776890', 'tblTempVendorCDR_20' ) end [2025-03-27 21:23:19] Production.INFO: ProcessCDR(1,14776890,1,1,2) [2025-03-27 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776890', 'tblTempUsageDetail_20' ) start [2025-03-27 21:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776890', 'tblTempUsageDetail_20' ) end [2025-03-27 21:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:23:25] Production.INFO: ==11106== Releasing lock... [2025-03-27 21:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:23:25] Production.INFO: 43.5 MB #Memory Used# [2025-03-27 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:24:06 [end_date_ymd] => 2025-03-27 21:24:06 [RateCDR] => 1 ) [2025-03-27 21:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:24:06' and `end` < '2025-03-27 21:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:24:19] Production.INFO: count ==2044 [2025-03-27 21:24:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:24:06 - End Time 2025-03-27 21:24:06 [2025-03-27 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776895', 'tblTempUsageDetail_20' ) start [2025-03-27 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776895', 'tblTempUsageDetail_20' ) end [2025-03-27 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776895', 'tblTempVendorCDR_20' ) start [2025-03-27 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776895', 'tblTempVendorCDR_20' ) end [2025-03-27 21:24:19] Production.INFO: ProcessCDR(1,14776895,1,1,2) [2025-03-27 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776895', 'tblTempUsageDetail_20' ) start [2025-03-27 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776895', 'tblTempUsageDetail_20' ) end [2025-03-27 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:24:23] Production.INFO: ==11192== Releasing lock... [2025-03-27 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:24:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:25:05 [end_date_ymd] => 2025-03-27 21:25:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:25:05' and `end` < '2025-03-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-03-27 21:25:18] Production.INFO: count ==2036 [2025-03-27 21:25:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:25:05 - End Time 2025-03-27 21:25:05 [2025-03-27 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776900', 'tblTempUsageDetail_20' ) start [2025-03-27 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776900', 'tblTempUsageDetail_20' ) end [2025-03-27 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776900', 'tblTempVendorCDR_20' ) start [2025-03-27 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776900', 'tblTempVendorCDR_20' ) end [2025-03-27 21:25:19] Production.INFO: ProcessCDR(1,14776900,1,1,2) [2025-03-27 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776900', 'tblTempUsageDetail_20' ) start [2025-03-27 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776900', 'tblTempUsageDetail_20' ) end [2025-03-27 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:25:23] Production.INFO: ==11272== Releasing lock... [2025-03-27 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:25:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 21:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:26:06 [end_date_ymd] => 2025-03-27 21:26:06 [RateCDR] => 1 ) [2025-03-27 21:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:26:06' and `end` < '2025-03-27 21:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:26:19] Production.INFO: count ==2038 [2025-03-27 21:26:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:26:06 - End Time 2025-03-27 21:26:06 [2025-03-27 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776905', 'tblTempUsageDetail_20' ) start [2025-03-27 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776905', 'tblTempUsageDetail_20' ) end [2025-03-27 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776905', 'tblTempVendorCDR_20' ) start [2025-03-27 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776905', 'tblTempVendorCDR_20' ) end [2025-03-27 21:26:19] Production.INFO: ProcessCDR(1,14776905,1,1,2) [2025-03-27 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776905', 'tblTempUsageDetail_20' ) start [2025-03-27 21:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776905', 'tblTempUsageDetail_20' ) end [2025-03-27 21:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:26:25] Production.INFO: ==11365== Releasing lock... [2025-03-27 21:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:26:25] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 21:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:27:06 [end_date_ymd] => 2025-03-27 21:27:06 [RateCDR] => 1 ) [2025-03-27 21:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:27:06' and `end` < '2025-03-27 21:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:27:19] Production.INFO: count ==2046 [2025-03-27 21:27:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:27:06 - End Time 2025-03-27 21:27:06 [2025-03-27 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776910', 'tblTempUsageDetail_20' ) start [2025-03-27 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776910', 'tblTempUsageDetail_20' ) end [2025-03-27 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776910', 'tblTempVendorCDR_20' ) start [2025-03-27 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776910', 'tblTempVendorCDR_20' ) end [2025-03-27 21:27:19] Production.INFO: ProcessCDR(1,14776910,1,1,2) [2025-03-27 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776910', 'tblTempUsageDetail_20' ) start [2025-03-27 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776910', 'tblTempUsageDetail_20' ) end [2025-03-27 21:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:27:23] Production.INFO: ==11447== Releasing lock... [2025-03-27 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:27:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-27 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:28:06 [end_date_ymd] => 2025-03-27 21:28:06 [RateCDR] => 1 ) [2025-03-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-03-27 18:28:06' and `end` < '2025-03-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-03-27 21:28:19] Production.INFO: count ==2053 [2025-03-27 21:28:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:28:06 - End Time 2025-03-27 21:28:06 [2025-03-27 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776915', 'tblTempUsageDetail_20' ) start [2025-03-27 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776915', 'tblTempUsageDetail_20' ) end [2025-03-27 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776915', 'tblTempVendorCDR_20' ) start [2025-03-27 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776915', 'tblTempVendorCDR_20' ) end [2025-03-27 21:28:19] Production.INFO: ProcessCDR(1,14776915,1,1,2) [2025-03-27 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776915', 'tblTempUsageDetail_20' ) start [2025-03-27 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776915', 'tblTempUsageDetail_20' ) end [2025-03-27 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:28:23] Production.INFO: ==11526== Releasing lock... [2025-03-27 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:28:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-27 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:29:06 [end_date_ymd] => 2025-03-27 21:29:06 [RateCDR] => 1 ) [2025-03-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-03-27 18:29:06' and `end` < '2025-03-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-03-27 21:29:18] Production.INFO: count ==2059 [2025-03-27 21:29:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:29:06 - End Time 2025-03-27 21:29:06 [2025-03-27 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776920', 'tblTempUsageDetail_20' ) start [2025-03-27 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776920', 'tblTempUsageDetail_20' ) end [2025-03-27 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776920', 'tblTempVendorCDR_20' ) start [2025-03-27 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776920', 'tblTempVendorCDR_20' ) end [2025-03-27 21:29:19] Production.INFO: ProcessCDR(1,14776920,1,1,2) [2025-03-27 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776920', 'tblTempUsageDetail_20' ) start [2025-03-27 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776920', 'tblTempUsageDetail_20' ) end [2025-03-27 21:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:29:23] Production.INFO: ==11608== Releasing lock... [2025-03-27 21:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:29:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-27 21:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:30:07 [end_date_ymd] => 2025-03-27 21:30:07 [RateCDR] => 1 ) [2025-03-27 21:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:30:07' and `end` < '2025-03-27 21:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:30:20] Production.INFO: count ==2043 [2025-03-27 21:30:20] Production.ERROR: pbx CDR StartTime 2025-03-27 18:30:07 - End Time 2025-03-27 21:30:07 [2025-03-27 21:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776925', 'tblTempUsageDetail_20' ) start [2025-03-27 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776925', 'tblTempUsageDetail_20' ) end [2025-03-27 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776925', 'tblTempVendorCDR_20' ) start [2025-03-27 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776925', 'tblTempVendorCDR_20' ) end [2025-03-27 21:30:20] Production.INFO: ProcessCDR(1,14776925,1,1,2) [2025-03-27 21:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776925', 'tblTempUsageDetail_20' ) start [2025-03-27 21:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776925', 'tblTempUsageDetail_20' ) end [2025-03-27 21:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:30:26] Production.INFO: ==11695== Releasing lock... [2025-03-27 21:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:30:26] Production.INFO: 43.5 MB #Memory Used# [2025-03-27 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:31:05 [end_date_ymd] => 2025-03-27 21:31:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:31:05' and `end` < '2025-03-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-03-27 21:31:18] Production.INFO: count ==1996 [2025-03-27 21:31:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:31:05 - End Time 2025-03-27 21:31:05 [2025-03-27 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776931', 'tblTempUsageDetail_20' ) start [2025-03-27 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776931', 'tblTempUsageDetail_20' ) end [2025-03-27 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776931', 'tblTempVendorCDR_20' ) start [2025-03-27 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776931', 'tblTempVendorCDR_20' ) end [2025-03-27 21:31:19] Production.INFO: ProcessCDR(1,14776931,1,1,2) [2025-03-27 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776931', 'tblTempUsageDetail_20' ) start [2025-03-27 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776931', 'tblTempUsageDetail_20' ) end [2025-03-27 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:31:23] Production.INFO: ==11774== Releasing lock... [2025-03-27 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:31:23] Production.INFO: 43 MB #Memory Used# [2025-03-27 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:32:06 [end_date_ymd] => 2025-03-27 21:32:06 [RateCDR] => 1 ) [2025-03-27 21:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:32:06' and `end` < '2025-03-27 21:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:32:20] Production.INFO: count ==2016 [2025-03-27 21:32:20] Production.ERROR: pbx CDR StartTime 2025-03-27 18:32:06 - End Time 2025-03-27 21:32:06 [2025-03-27 21:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776936', 'tblTempUsageDetail_20' ) start [2025-03-27 21:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776936', 'tblTempUsageDetail_20' ) end [2025-03-27 21:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776936', 'tblTempVendorCDR_20' ) start [2025-03-27 21:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776936', 'tblTempVendorCDR_20' ) end [2025-03-27 21:32:21] Production.INFO: ProcessCDR(1,14776936,1,1,2) [2025-03-27 21:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776936', 'tblTempUsageDetail_20' ) start [2025-03-27 21:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776936', 'tblTempUsageDetail_20' ) end [2025-03-27 21:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:32:26] Production.INFO: ==11863== Releasing lock... [2025-03-27 21:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:32:26] Production.INFO: 43.75 MB #Memory Used# [2025-03-27 21:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:33:06 [end_date_ymd] => 2025-03-27 21:33:06 [RateCDR] => 1 ) [2025-03-27 21:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:33:06' and `end` < '2025-03-27 21:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:33:19] Production.INFO: count ==2017 [2025-03-27 21:33:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:33:06 - End Time 2025-03-27 21:33:06 [2025-03-27 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776940', 'tblTempUsageDetail_20' ) start [2025-03-27 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776940', 'tblTempUsageDetail_20' ) end [2025-03-27 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776940', 'tblTempVendorCDR_20' ) start [2025-03-27 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776940', 'tblTempVendorCDR_20' ) end [2025-03-27 21:33:19] Production.INFO: ProcessCDR(1,14776940,1,1,2) [2025-03-27 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776940', 'tblTempUsageDetail_20' ) start [2025-03-27 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776940', 'tblTempUsageDetail_20' ) end [2025-03-27 21:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:33:23] Production.INFO: ==11943== Releasing lock... [2025-03-27 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:33:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-27 21:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:34:06 [end_date_ymd] => 2025-03-27 21:34:06 [RateCDR] => 1 ) [2025-03-27 21:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:34:06' and `end` < '2025-03-27 21:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:34:18] Production.INFO: count ==2025 [2025-03-27 21:34:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:34:06 - End Time 2025-03-27 21:34:06 [2025-03-27 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776946', 'tblTempUsageDetail_20' ) start [2025-03-27 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776946', 'tblTempUsageDetail_20' ) end [2025-03-27 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776946', 'tblTempVendorCDR_20' ) start [2025-03-27 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776946', 'tblTempVendorCDR_20' ) end [2025-03-27 21:34:19] Production.INFO: ProcessCDR(1,14776946,1,1,2) [2025-03-27 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776946', 'tblTempUsageDetail_20' ) start [2025-03-27 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776946', 'tblTempUsageDetail_20' ) end [2025-03-27 21:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:34:25] Production.INFO: ==12030== Releasing lock... [2025-03-27 21:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:34:25] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:35:05 [end_date_ymd] => 2025-03-27 21:35:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:35:05' and `end` < '2025-03-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-03-27 21:35:18] Production.INFO: count ==2041 [2025-03-27 21:35:18] Production.ERROR: pbx CDR StartTime 2025-03-27 18:35:05 - End Time 2025-03-27 21:35:05 [2025-03-27 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776951', 'tblTempUsageDetail_20' ) start [2025-03-27 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776951', 'tblTempUsageDetail_20' ) end [2025-03-27 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776951', 'tblTempVendorCDR_20' ) start [2025-03-27 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776951', 'tblTempVendorCDR_20' ) end [2025-03-27 21:35:18] Production.INFO: ProcessCDR(1,14776951,1,1,2) [2025-03-27 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776951', 'tblTempUsageDetail_20' ) start [2025-03-27 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776951', 'tblTempUsageDetail_20' ) end [2025-03-27 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:35:22] Production.INFO: ==12151== Releasing lock... [2025-03-27 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:35:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:36:05 [end_date_ymd] => 2025-03-27 21:36:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:36:05' and `end` < '2025-03-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-03-27 21:36:18] Production.INFO: count ==2041 [2025-03-27 21:36:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:36:05 - End Time 2025-03-27 21:36:05 [2025-03-27 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776956', 'tblTempUsageDetail_20' ) start [2025-03-27 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776956', 'tblTempUsageDetail_20' ) end [2025-03-27 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776956', 'tblTempVendorCDR_20' ) start [2025-03-27 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776956', 'tblTempVendorCDR_20' ) end [2025-03-27 21:36:19] Production.INFO: ProcessCDR(1,14776956,1,1,2) [2025-03-27 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776956', 'tblTempUsageDetail_20' ) start [2025-03-27 21:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776956', 'tblTempUsageDetail_20' ) end [2025-03-27 21:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:36:24] Production.INFO: ==12232== Releasing lock... [2025-03-27 21:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:36:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 21:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:37:06 [end_date_ymd] => 2025-03-27 21:37:06 [RateCDR] => 1 ) [2025-03-27 21:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:37:06' and `end` < '2025-03-27 21:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:37:19] Production.INFO: count ==2039 [2025-03-27 21:37:20] Production.ERROR: pbx CDR StartTime 2025-03-27 18:37:06 - End Time 2025-03-27 21:37:06 [2025-03-27 21:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776961', 'tblTempUsageDetail_20' ) start [2025-03-27 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776961', 'tblTempUsageDetail_20' ) end [2025-03-27 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776961', 'tblTempVendorCDR_20' ) start [2025-03-27 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776961', 'tblTempVendorCDR_20' ) end [2025-03-27 21:37:20] Production.INFO: ProcessCDR(1,14776961,1,1,2) [2025-03-27 21:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776961', 'tblTempUsageDetail_20' ) start [2025-03-27 21:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776961', 'tblTempUsageDetail_20' ) end [2025-03-27 21:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:37:25] Production.INFO: ==12307== Releasing lock... [2025-03-27 21:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:37:25] Production.INFO: 43.5 MB #Memory Used# [2025-03-27 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:38:05 [end_date_ymd] => 2025-03-27 21:38:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:38:05' and `end` < '2025-03-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-03-27 21:38:18] Production.INFO: count ==2039 [2025-03-27 21:38:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:38:05 - End Time 2025-03-27 21:38:05 [2025-03-27 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776966', 'tblTempUsageDetail_20' ) start [2025-03-27 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776966', 'tblTempUsageDetail_20' ) end [2025-03-27 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776966', 'tblTempVendorCDR_20' ) start [2025-03-27 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776966', 'tblTempVendorCDR_20' ) end [2025-03-27 21:38:19] Production.INFO: ProcessCDR(1,14776966,1,1,2) [2025-03-27 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776966', 'tblTempUsageDetail_20' ) start [2025-03-27 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776966', 'tblTempUsageDetail_20' ) end [2025-03-27 21:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:38:24] Production.INFO: ==12396== Releasing lock... [2025-03-27 21:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:38:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 21:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:39:06 [end_date_ymd] => 2025-03-27 21:39:06 [RateCDR] => 1 ) [2025-03-27 21:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:39:06' and `end` < '2025-03-27 21:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:39:18] Production.INFO: count ==2037 [2025-03-27 21:39:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:39:06 - End Time 2025-03-27 21:39:06 [2025-03-27 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776971', 'tblTempUsageDetail_20' ) start [2025-03-27 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776971', 'tblTempUsageDetail_20' ) end [2025-03-27 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776971', 'tblTempVendorCDR_20' ) start [2025-03-27 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776971', 'tblTempVendorCDR_20' ) end [2025-03-27 21:39:19] Production.INFO: ProcessCDR(1,14776971,1,1,2) [2025-03-27 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776971', 'tblTempUsageDetail_20' ) start [2025-03-27 21:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776971', 'tblTempUsageDetail_20' ) end [2025-03-27 21:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:39:24] Production.INFO: ==12479== Releasing lock... [2025-03-27 21:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:39:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:40:06 [end_date_ymd] => 2025-03-27 21:40:06 [RateCDR] => 1 ) [2025-03-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-03-27 18:40:06' and `end` < '2025-03-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-03-27 21:40:19] Production.INFO: count ==2029 [2025-03-27 21:40:20] Production.ERROR: pbx CDR StartTime 2025-03-27 18:40:06 - End Time 2025-03-27 21:40:06 [2025-03-27 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776976', 'tblTempUsageDetail_20' ) start [2025-03-27 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776976', 'tblTempUsageDetail_20' ) end [2025-03-27 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776976', 'tblTempVendorCDR_20' ) start [2025-03-27 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776976', 'tblTempVendorCDR_20' ) end [2025-03-27 21:40:20] Production.INFO: ProcessCDR(1,14776976,1,1,2) [2025-03-27 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776976', 'tblTempUsageDetail_20' ) start [2025-03-27 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776976', 'tblTempUsageDetail_20' ) end [2025-03-27 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:40:23] Production.INFO: ==12561== Releasing lock... [2025-03-27 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:40:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:41:05 [end_date_ymd] => 2025-03-27 21:41:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:41:05' and `end` < '2025-03-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-03-27 21:41:18] Production.INFO: count ==1996 [2025-03-27 21:41:18] Production.ERROR: pbx CDR StartTime 2025-03-27 18:41:05 - End Time 2025-03-27 21:41:05 [2025-03-27 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776982', 'tblTempUsageDetail_20' ) start [2025-03-27 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776982', 'tblTempUsageDetail_20' ) end [2025-03-27 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776982', 'tblTempVendorCDR_20' ) start [2025-03-27 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776982', 'tblTempVendorCDR_20' ) end [2025-03-27 21:41:19] Production.INFO: ProcessCDR(1,14776982,1,1,2) [2025-03-27 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776982', 'tblTempUsageDetail_20' ) start [2025-03-27 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776982', 'tblTempUsageDetail_20' ) end [2025-03-27 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:41:22] Production.INFO: ==12654== Releasing lock... [2025-03-27 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:41:22] Production.INFO: 43 MB #Memory Used# [2025-03-27 21:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:42:06 [end_date_ymd] => 2025-03-27 21:42:06 [RateCDR] => 1 ) [2025-03-27 21:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:42:06' and `end` < '2025-03-27 21:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:42:18] Production.INFO: count ==2014 [2025-03-27 21:42:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:42:06 - End Time 2025-03-27 21:42:06 [2025-03-27 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776987', 'tblTempUsageDetail_20' ) start [2025-03-27 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776987', 'tblTempUsageDetail_20' ) end [2025-03-27 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776987', 'tblTempVendorCDR_20' ) start [2025-03-27 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776987', 'tblTempVendorCDR_20' ) end [2025-03-27 21:42:19] Production.INFO: ProcessCDR(1,14776987,1,1,2) [2025-03-27 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776987', 'tblTempUsageDetail_20' ) start [2025-03-27 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776987', 'tblTempUsageDetail_20' ) end [2025-03-27 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:42:23] Production.INFO: ==12736== Releasing lock... [2025-03-27 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:42:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:43:05 [end_date_ymd] => 2025-03-27 21:43:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:43:05' and `end` < '2025-03-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-03-27 21:43:18] Production.INFO: count ==2027 [2025-03-27 21:43:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:43:05 - End Time 2025-03-27 21:43:05 [2025-03-27 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776992', 'tblTempUsageDetail_20' ) start [2025-03-27 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776992', 'tblTempUsageDetail_20' ) end [2025-03-27 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776992', 'tblTempVendorCDR_20' ) start [2025-03-27 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776992', 'tblTempVendorCDR_20' ) end [2025-03-27 21:43:19] Production.INFO: ProcessCDR(1,14776992,1,1,2) [2025-03-27 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776992', 'tblTempUsageDetail_20' ) start [2025-03-27 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776992', 'tblTempUsageDetail_20' ) end [2025-03-27 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:43:22] Production.INFO: ==12821== Releasing lock... [2025-03-27 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:43:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-27 21:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:44:06 [end_date_ymd] => 2025-03-27 21:44:06 [RateCDR] => 1 ) [2025-03-27 21:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:44:06' and `end` < '2025-03-27 21:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:44:19] Production.INFO: count ==2039 [2025-03-27 21:44:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:44:06 - End Time 2025-03-27 21:44:06 [2025-03-27 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776997', 'tblTempUsageDetail_20' ) start [2025-03-27 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14776997', 'tblTempUsageDetail_20' ) end [2025-03-27 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776997', 'tblTempVendorCDR_20' ) start [2025-03-27 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14776997', 'tblTempVendorCDR_20' ) end [2025-03-27 21:44:19] Production.INFO: ProcessCDR(1,14776997,1,1,2) [2025-03-27 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14776997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14776997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14776997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14776997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776997', 'tblTempUsageDetail_20' ) start [2025-03-27 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14776997', 'tblTempUsageDetail_20' ) end [2025-03-27 21:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:44:23] Production.INFO: ==12900== Releasing lock... [2025-03-27 21:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:44:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:45:05 [end_date_ymd] => 2025-03-27 21:45:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:45:05' and `end` < '2025-03-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-03-27 21:45:18] Production.INFO: count ==2022 [2025-03-27 21:45:18] Production.ERROR: pbx CDR StartTime 2025-03-27 18:45:05 - End Time 2025-03-27 21:45:05 [2025-03-27 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777002', 'tblTempUsageDetail_20' ) start [2025-03-27 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777002', 'tblTempUsageDetail_20' ) end [2025-03-27 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777002', 'tblTempVendorCDR_20' ) start [2025-03-27 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777002', 'tblTempVendorCDR_20' ) end [2025-03-27 21:45:18] Production.INFO: ProcessCDR(1,14777002,1,1,2) [2025-03-27 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777002', 'tblTempUsageDetail_20' ) start [2025-03-27 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777002', 'tblTempUsageDetail_20' ) end [2025-03-27 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:45:22] Production.INFO: ==12985== Releasing lock... [2025-03-27 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:45:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:46:06 [end_date_ymd] => 2025-03-27 21:46:06 [RateCDR] => 1 ) [2025-03-27 21:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:46:06' and `end` < '2025-03-27 21:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:46:19] Production.INFO: count ==2019 [2025-03-27 21:46:20] Production.ERROR: pbx CDR StartTime 2025-03-27 18:46:06 - End Time 2025-03-27 21:46:06 [2025-03-27 21:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777007', 'tblTempUsageDetail_20' ) start [2025-03-27 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777007', 'tblTempUsageDetail_20' ) end [2025-03-27 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777007', 'tblTempVendorCDR_20' ) start [2025-03-27 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777007', 'tblTempVendorCDR_20' ) end [2025-03-27 21:46:20] Production.INFO: ProcessCDR(1,14777007,1,1,2) [2025-03-27 21:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777007', 'tblTempUsageDetail_20' ) start [2025-03-27 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777007', 'tblTempUsageDetail_20' ) end [2025-03-27 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:46:23] Production.INFO: ==13066== Releasing lock... [2025-03-27 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:46:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:47:05 [end_date_ymd] => 2025-03-27 21:47:05 [RateCDR] => 1 ) [2025-03-27 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:47:05' and `end` < '2025-03-27 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:47:18] Production.INFO: count ==2028 [2025-03-27 21:47:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:47:05 - End Time 2025-03-27 21:47:05 [2025-03-27 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777012', 'tblTempUsageDetail_20' ) start [2025-03-27 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777012', 'tblTempUsageDetail_20' ) end [2025-03-27 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777012', 'tblTempVendorCDR_20' ) start [2025-03-27 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777012', 'tblTempVendorCDR_20' ) end [2025-03-27 21:47:19] Production.INFO: ProcessCDR(1,14777012,1,1,2) [2025-03-27 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777012', 'tblTempUsageDetail_20' ) start [2025-03-27 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777012', 'tblTempUsageDetail_20' ) end [2025-03-27 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:47:22] Production.INFO: ==13143== Releasing lock... [2025-03-27 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:47:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-27 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:48:06 [end_date_ymd] => 2025-03-27 21:48:06 [RateCDR] => 1 ) [2025-03-27 21:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:48:06' and `end` < '2025-03-27 21:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:48:19] Production.INFO: count ==2048 [2025-03-27 21:48:20] Production.ERROR: pbx CDR StartTime 2025-03-27 18:48:06 - End Time 2025-03-27 21:48:06 [2025-03-27 21:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777017', 'tblTempUsageDetail_20' ) start [2025-03-27 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777017', 'tblTempUsageDetail_20' ) end [2025-03-27 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777017', 'tblTempVendorCDR_20' ) start [2025-03-27 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777017', 'tblTempVendorCDR_20' ) end [2025-03-27 21:48:20] Production.INFO: ProcessCDR(1,14777017,1,1,2) [2025-03-27 21:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777017', 'tblTempUsageDetail_20' ) start [2025-03-27 21:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777017', 'tblTempUsageDetail_20' ) end [2025-03-27 21:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:48:25] Production.INFO: ==13230== Releasing lock... [2025-03-27 21:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:48:25] Production.INFO: 43.5 MB #Memory Used# [2025-03-27 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:49:05 [end_date_ymd] => 2025-03-27 21:49:05 [RateCDR] => 1 ) [2025-03-27 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:49:05' and `end` < '2025-03-27 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:49:18] Production.INFO: count ==2044 [2025-03-27 21:49:18] Production.ERROR: pbx CDR StartTime 2025-03-27 18:49:05 - End Time 2025-03-27 21:49:05 [2025-03-27 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777022', 'tblTempUsageDetail_20' ) start [2025-03-27 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777022', 'tblTempUsageDetail_20' ) end [2025-03-27 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777022', 'tblTempVendorCDR_20' ) start [2025-03-27 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777022', 'tblTempVendorCDR_20' ) end [2025-03-27 21:49:18] Production.INFO: ProcessCDR(1,14777022,1,1,2) [2025-03-27 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777022', 'tblTempUsageDetail_20' ) start [2025-03-27 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777022', 'tblTempUsageDetail_20' ) end [2025-03-27 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:49:22] Production.INFO: ==13312== Releasing lock... [2025-03-27 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:49:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:50:06 [end_date_ymd] => 2025-03-27 21:50:06 [RateCDR] => 1 ) [2025-03-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-03-27 18:50:06' and `end` < '2025-03-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-03-27 21:50:19] Production.INFO: count ==2360 [2025-03-27 21:50:20] Production.ERROR: pbx CDR StartTime 2025-03-27 18:50:06 - End Time 2025-03-27 21:50:06 [2025-03-27 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777028', 'tblTempUsageDetail_20' ) start [2025-03-27 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777028', 'tblTempUsageDetail_20' ) end [2025-03-27 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777028', 'tblTempVendorCDR_20' ) start [2025-03-27 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777028', 'tblTempVendorCDR_20' ) end [2025-03-27 21:50:20] Production.INFO: ProcessCDR(1,14777028,1,1,2) [2025-03-27 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777028', 'tblTempUsageDetail_20' ) start [2025-03-27 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777028', 'tblTempUsageDetail_20' ) end [2025-03-27 21:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:50:24] Production.INFO: ==13393== Releasing lock... [2025-03-27 21:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:50:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-27 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:51:05 [end_date_ymd] => 2025-03-27 21:51:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:51:05' and `end` < '2025-03-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-03-27 21:51:18] Production.INFO: count ==2336 [2025-03-27 21:51:18] Production.ERROR: pbx CDR StartTime 2025-03-27 18:51:05 - End Time 2025-03-27 21:51:05 [2025-03-27 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777033', 'tblTempUsageDetail_20' ) start [2025-03-27 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777033', 'tblTempUsageDetail_20' ) end [2025-03-27 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777033', 'tblTempVendorCDR_20' ) start [2025-03-27 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777033', 'tblTempVendorCDR_20' ) end [2025-03-27 21:51:18] Production.INFO: ProcessCDR(1,14777033,1,1,2) [2025-03-27 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777033', 'tblTempUsageDetail_20' ) start [2025-03-27 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777033', 'tblTempUsageDetail_20' ) end [2025-03-27 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:51:22] Production.INFO: ==13518== Releasing lock... [2025-03-27 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:51:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-27 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:52:06 [end_date_ymd] => 2025-03-27 21:52:06 [RateCDR] => 1 ) [2025-03-27 21:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:52:06' and `end` < '2025-03-27 21:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:52:19] Production.INFO: count ==2310 [2025-03-27 21:52:20] Production.ERROR: pbx CDR StartTime 2025-03-27 18:52:06 - End Time 2025-03-27 21:52:06 [2025-03-27 21:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777038', 'tblTempUsageDetail_20' ) start [2025-03-27 21:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777038', 'tblTempUsageDetail_20' ) end [2025-03-27 21:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777038', 'tblTempVendorCDR_20' ) start [2025-03-27 21:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777038', 'tblTempVendorCDR_20' ) end [2025-03-27 21:52:20] Production.INFO: ProcessCDR(1,14777038,1,1,2) [2025-03-27 21:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777038', 'tblTempUsageDetail_20' ) start [2025-03-27 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777038', 'tblTempUsageDetail_20' ) end [2025-03-27 21:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:52:24] Production.INFO: ==13597== Releasing lock... [2025-03-27 21:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:52:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-27 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:53:05 [end_date_ymd] => 2025-03-27 21:53:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:53:05' and `end` < '2025-03-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-03-27 21:53:18] Production.INFO: count ==2312 [2025-03-27 21:53:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:53:05 - End Time 2025-03-27 21:53:05 [2025-03-27 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777043', 'tblTempUsageDetail_20' ) start [2025-03-27 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777043', 'tblTempUsageDetail_20' ) end [2025-03-27 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777043', 'tblTempVendorCDR_20' ) start [2025-03-27 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777043', 'tblTempVendorCDR_20' ) end [2025-03-27 21:53:19] Production.INFO: ProcessCDR(1,14777043,1,1,2) [2025-03-27 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777043', 'tblTempUsageDetail_20' ) start [2025-03-27 21:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777043', 'tblTempUsageDetail_20' ) end [2025-03-27 21:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:53:24] Production.INFO: ==13683== Releasing lock... [2025-03-27 21:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:53:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-27 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:54:06 [end_date_ymd] => 2025-03-27 21:54:06 [RateCDR] => 1 ) [2025-03-27 21:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:54:06' and `end` < '2025-03-27 21:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:54:18] Production.INFO: count ==2320 [2025-03-27 21:54:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:54:06 - End Time 2025-03-27 21:54:06 [2025-03-27 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777048', 'tblTempUsageDetail_20' ) start [2025-03-27 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777048', 'tblTempUsageDetail_20' ) end [2025-03-27 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777048', 'tblTempVendorCDR_20' ) start [2025-03-27 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777048', 'tblTempVendorCDR_20' ) end [2025-03-27 21:54:19] Production.INFO: ProcessCDR(1,14777048,1,1,2) [2025-03-27 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777048', 'tblTempUsageDetail_20' ) start [2025-03-27 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777048', 'tblTempUsageDetail_20' ) end [2025-03-27 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:54:23] Production.INFO: ==13768== Releasing lock... [2025-03-27 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:54:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-27 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:55:05 [end_date_ymd] => 2025-03-27 21:55:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:55:05' and `end` < '2025-03-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-03-27 21:55:18] Production.INFO: count ==2305 [2025-03-27 21:55:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:55:05 - End Time 2025-03-27 21:55:05 [2025-03-27 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777053', 'tblTempUsageDetail_20' ) start [2025-03-27 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777053', 'tblTempUsageDetail_20' ) end [2025-03-27 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777053', 'tblTempVendorCDR_20' ) start [2025-03-27 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777053', 'tblTempVendorCDR_20' ) end [2025-03-27 21:55:19] Production.INFO: ProcessCDR(1,14777053,1,1,2) [2025-03-27 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777053', 'tblTempUsageDetail_20' ) start [2025-03-27 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777053', 'tblTempUsageDetail_20' ) end [2025-03-27 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:55:23] Production.INFO: ==13862== Releasing lock... [2025-03-27 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:55:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-27 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:56:06 [end_date_ymd] => 2025-03-27 21:56:06 [RateCDR] => 1 ) [2025-03-27 21:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:56:06' and `end` < '2025-03-27 21:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:56:18] Production.INFO: count ==2314 [2025-03-27 21:56:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:56:06 - End Time 2025-03-27 21:56:06 [2025-03-27 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777058', 'tblTempUsageDetail_20' ) start [2025-03-27 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777058', 'tblTempUsageDetail_20' ) end [2025-03-27 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777058', 'tblTempVendorCDR_20' ) start [2025-03-27 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777058', 'tblTempVendorCDR_20' ) end [2025-03-27 21:56:19] Production.INFO: ProcessCDR(1,14777058,1,1,2) [2025-03-27 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777058', 'tblTempUsageDetail_20' ) start [2025-03-27 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777058', 'tblTempUsageDetail_20' ) end [2025-03-27 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:56:23] Production.INFO: ==13972== Releasing lock... [2025-03-27 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:56:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-27 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:57:05 [end_date_ymd] => 2025-03-27 21:57:05 [RateCDR] => 1 ) [2025-03-27 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:57:05' and `end` < '2025-03-27 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:57:18] Production.INFO: count ==2308 [2025-03-27 21:57:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:57:05 - End Time 2025-03-27 21:57:05 [2025-03-27 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777063', 'tblTempUsageDetail_20' ) start [2025-03-27 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777063', 'tblTempUsageDetail_20' ) end [2025-03-27 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777063', 'tblTempVendorCDR_20' ) start [2025-03-27 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777063', 'tblTempVendorCDR_20' ) end [2025-03-27 21:57:19] Production.INFO: ProcessCDR(1,14777063,1,1,2) [2025-03-27 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777063', 'tblTempUsageDetail_20' ) start [2025-03-27 21:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777063', 'tblTempUsageDetail_20' ) end [2025-03-27 21:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:57:24] Production.INFO: ==14069== Releasing lock... [2025-03-27 21:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:57:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-27 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:58:05 [end_date_ymd] => 2025-03-27 21:58:05 [RateCDR] => 1 ) [2025-03-27 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 18:58:05' and `end` < '2025-03-27 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 21:58:18] Production.INFO: count ==2303 [2025-03-27 21:58:19] Production.ERROR: pbx CDR StartTime 2025-03-27 18:58:05 - End Time 2025-03-27 21:58:05 [2025-03-27 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777068', 'tblTempUsageDetail_20' ) start [2025-03-27 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777068', 'tblTempUsageDetail_20' ) end [2025-03-27 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777068', 'tblTempVendorCDR_20' ) start [2025-03-27 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777068', 'tblTempVendorCDR_20' ) end [2025-03-27 21:58:19] Production.INFO: ProcessCDR(1,14777068,1,1,2) [2025-03-27 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777068', 'tblTempUsageDetail_20' ) start [2025-03-27 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777068', 'tblTempUsageDetail_20' ) end [2025-03-27 21:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:58:23] Production.INFO: ==14166== Releasing lock... [2025-03-27 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:58:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-27 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 18:59:05 [end_date_ymd] => 2025-03-27 21:59:05 [RateCDR] => 1 ) [2025-03-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-03-27 18:59:05' and `end` < '2025-03-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-03-27 21:59:18] Production.INFO: count ==2285 [2025-03-27 21:59:18] Production.ERROR: pbx CDR StartTime 2025-03-27 18:59:05 - End Time 2025-03-27 21:59:05 [2025-03-27 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777073', 'tblTempUsageDetail_20' ) start [2025-03-27 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777073', 'tblTempUsageDetail_20' ) end [2025-03-27 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777073', 'tblTempVendorCDR_20' ) start [2025-03-27 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777073', 'tblTempVendorCDR_20' ) end [2025-03-27 21:59:19] Production.INFO: ProcessCDR(1,14777073,1,1,2) [2025-03-27 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777073', 'tblTempUsageDetail_20' ) start [2025-03-27 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777073', 'tblTempUsageDetail_20' ) end [2025-03-27 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 21:59:22] Production.INFO: ==14261== Releasing lock... [2025-03-27 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 21:59:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-27 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:00:06 [end_date_ymd] => 2025-03-27 22:00:06 [RateCDR] => 1 ) [2025-03-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-03-27 19:00:06' and `end` < '2025-03-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-03-27 22:00:20] Production.INFO: count ==2277 [2025-03-27 22:00:20] Production.ERROR: pbx CDR StartTime 2025-03-27 19:00:06 - End Time 2025-03-27 22:00:06 [2025-03-27 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777079', 'tblTempUsageDetail_20' ) start [2025-03-27 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777079', 'tblTempUsageDetail_20' ) end [2025-03-27 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777079', 'tblTempVendorCDR_20' ) start [2025-03-27 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777079', 'tblTempVendorCDR_20' ) end [2025-03-27 22:00:20] Production.INFO: ProcessCDR(1,14777079,1,1,2) [2025-03-27 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777079', 'tblTempUsageDetail_20' ) start [2025-03-27 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777079', 'tblTempUsageDetail_20' ) end [2025-03-27 22:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:00:24] Production.INFO: ==14361== Releasing lock... [2025-03-27 22:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:00:24] Production.INFO: 45 MB #Memory Used# [2025-03-27 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:01:05 [end_date_ymd] => 2025-03-27 22:01:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:01:05' and `end` < '2025-03-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-03-27 22:01:18] Production.INFO: count ==2196 [2025-03-27 22:01:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:01:05 - End Time 2025-03-27 22:01:05 [2025-03-27 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777084', 'tblTempUsageDetail_20' ) start [2025-03-27 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777084', 'tblTempUsageDetail_20' ) end [2025-03-27 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777084', 'tblTempVendorCDR_20' ) start [2025-03-27 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777084', 'tblTempVendorCDR_20' ) end [2025-03-27 22:01:19] Production.INFO: ProcessCDR(1,14777084,1,1,2) [2025-03-27 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777084', 'tblTempUsageDetail_20' ) start [2025-03-27 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777084', 'tblTempUsageDetail_20' ) end [2025-03-27 22:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:01:24] Production.INFO: ==14470== Releasing lock... [2025-03-27 22:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:01:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-27 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:02:06 [end_date_ymd] => 2025-03-27 22:02:06 [RateCDR] => 1 ) [2025-03-27 22:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:02:06' and `end` < '2025-03-27 22:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:02:19] Production.INFO: count ==2199 [2025-03-27 22:02:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:02:06 - End Time 2025-03-27 22:02:06 [2025-03-27 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777089', 'tblTempUsageDetail_20' ) start [2025-03-27 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777089', 'tblTempUsageDetail_20' ) end [2025-03-27 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777089', 'tblTempVendorCDR_20' ) start [2025-03-27 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777089', 'tblTempVendorCDR_20' ) end [2025-03-27 22:02:19] Production.INFO: ProcessCDR(1,14777089,1,1,2) [2025-03-27 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777089', 'tblTempUsageDetail_20' ) start [2025-03-27 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777089', 'tblTempUsageDetail_20' ) end [2025-03-27 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:02:23] Production.INFO: ==14566== Releasing lock... [2025-03-27 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:02:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-27 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:03:05 [end_date_ymd] => 2025-03-27 22:03:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:03:05' and `end` < '2025-03-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-03-27 22:03:18] Production.INFO: count ==2192 [2025-03-27 22:03:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:03:05 - End Time 2025-03-27 22:03:05 [2025-03-27 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777094', 'tblTempUsageDetail_20' ) start [2025-03-27 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777094', 'tblTempUsageDetail_20' ) end [2025-03-27 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777094', 'tblTempVendorCDR_20' ) start [2025-03-27 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777094', 'tblTempVendorCDR_20' ) end [2025-03-27 22:03:19] Production.INFO: ProcessCDR(1,14777094,1,1,2) [2025-03-27 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777094', 'tblTempUsageDetail_20' ) start [2025-03-27 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777094', 'tblTempUsageDetail_20' ) end [2025-03-27 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:03:22] Production.INFO: ==14656== Releasing lock... [2025-03-27 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:03:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-27 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:04:05 [end_date_ymd] => 2025-03-27 22:04:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:04:05' and `end` < '2025-03-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-03-27 22:04:18] Production.INFO: count ==2175 [2025-03-27 22:04:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:04:05 - End Time 2025-03-27 22:04:05 [2025-03-27 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777099', 'tblTempUsageDetail_20' ) start [2025-03-27 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777099', 'tblTempUsageDetail_20' ) end [2025-03-27 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777099', 'tblTempVendorCDR_20' ) start [2025-03-27 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777099', 'tblTempVendorCDR_20' ) end [2025-03-27 22:04:19] Production.INFO: ProcessCDR(1,14777099,1,1,2) [2025-03-27 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777099', 'tblTempUsageDetail_20' ) start [2025-03-27 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777099', 'tblTempUsageDetail_20' ) end [2025-03-27 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:04:22] Production.INFO: ==14762== Releasing lock... [2025-03-27 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:04:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-27 22:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:05:06 [end_date_ymd] => 2025-03-27 22:05:06 [RateCDR] => 1 ) [2025-03-27 22:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:05:06' and `end` < '2025-03-27 22:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:05:18] Production.INFO: count ==2173 [2025-03-27 22:05:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:05:06 - End Time 2025-03-27 22:05:06 [2025-03-27 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777104', 'tblTempUsageDetail_20' ) start [2025-03-27 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777104', 'tblTempUsageDetail_20' ) end [2025-03-27 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777104', 'tblTempVendorCDR_20' ) start [2025-03-27 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777104', 'tblTempVendorCDR_20' ) end [2025-03-27 22:05:19] Production.INFO: ProcessCDR(1,14777104,1,1,2) [2025-03-27 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777104', 'tblTempUsageDetail_20' ) start [2025-03-27 22:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777104', 'tblTempUsageDetail_20' ) end [2025-03-27 22:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:05:25] Production.INFO: ==14859== Releasing lock... [2025-03-27 22:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:05:25] Production.INFO: 44.25 MB #Memory Used# [2025-03-27 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:06:06 [end_date_ymd] => 2025-03-27 22:06:06 [RateCDR] => 1 ) [2025-03-27 22:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:06:06' and `end` < '2025-03-27 22:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:06:19] Production.INFO: count ==2170 [2025-03-27 22:06:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:06:06 - End Time 2025-03-27 22:06:06 [2025-03-27 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777109', 'tblTempUsageDetail_20' ) start [2025-03-27 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777109', 'tblTempUsageDetail_20' ) end [2025-03-27 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777109', 'tblTempVendorCDR_20' ) start [2025-03-27 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777109', 'tblTempVendorCDR_20' ) end [2025-03-27 22:06:19] Production.INFO: ProcessCDR(1,14777109,1,1,2) [2025-03-27 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777109', 'tblTempUsageDetail_20' ) start [2025-03-27 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777109', 'tblTempUsageDetail_20' ) end [2025-03-27 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:06:23] Production.INFO: ==14989== Releasing lock... [2025-03-27 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:06:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-27 22:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:07:06 [end_date_ymd] => 2025-03-27 22:07:06 [RateCDR] => 1 ) [2025-03-27 22:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:07:06' and `end` < '2025-03-27 22:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:07:18] Production.INFO: count ==2164 [2025-03-27 22:07:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:07:06 - End Time 2025-03-27 22:07:06 [2025-03-27 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777114', 'tblTempUsageDetail_20' ) start [2025-03-27 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777114', 'tblTempUsageDetail_20' ) end [2025-03-27 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777114', 'tblTempVendorCDR_20' ) start [2025-03-27 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777114', 'tblTempVendorCDR_20' ) end [2025-03-27 22:07:19] Production.INFO: ProcessCDR(1,14777114,1,1,2) [2025-03-27 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777114', 'tblTempUsageDetail_20' ) start [2025-03-27 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777114', 'tblTempUsageDetail_20' ) end [2025-03-27 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:07:23] Production.INFO: ==15085== Releasing lock... [2025-03-27 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:07:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-27 22:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:08:06 [end_date_ymd] => 2025-03-27 22:08:06 [RateCDR] => 1 ) [2025-03-27 22:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:08:06' and `end` < '2025-03-27 22:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:08:18] Production.INFO: count ==2161 [2025-03-27 22:08:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:08:06 - End Time 2025-03-27 22:08:06 [2025-03-27 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777119', 'tblTempUsageDetail_20' ) start [2025-03-27 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777119', 'tblTempUsageDetail_20' ) end [2025-03-27 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777119', 'tblTempVendorCDR_20' ) start [2025-03-27 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777119', 'tblTempVendorCDR_20' ) end [2025-03-27 22:08:19] Production.INFO: ProcessCDR(1,14777119,1,1,2) [2025-03-27 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777119', 'tblTempUsageDetail_20' ) start [2025-03-27 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777119', 'tblTempUsageDetail_20' ) end [2025-03-27 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:08:23] Production.INFO: ==15187== Releasing lock... [2025-03-27 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:08:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-27 22:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:09:06 [end_date_ymd] => 2025-03-27 22:09:06 [RateCDR] => 1 ) [2025-03-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-03-27 19:09:06' and `end` < '2025-03-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-03-27 22:09:19] Production.INFO: count ==2158 [2025-03-27 22:09:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:09:06 - End Time 2025-03-27 22:09:06 [2025-03-27 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777124', 'tblTempUsageDetail_20' ) start [2025-03-27 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777124', 'tblTempUsageDetail_20' ) end [2025-03-27 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777124', 'tblTempVendorCDR_20' ) start [2025-03-27 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777124', 'tblTempVendorCDR_20' ) end [2025-03-27 22:09:19] Production.INFO: ProcessCDR(1,14777124,1,1,2) [2025-03-27 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777124', 'tblTempUsageDetail_20' ) start [2025-03-27 22:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777124', 'tblTempUsageDetail_20' ) end [2025-03-27 22:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:09:24] Production.INFO: ==15285== Releasing lock... [2025-03-27 22:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:09:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-27 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:10:06 [end_date_ymd] => 2025-03-27 22:10:06 [RateCDR] => 1 ) [2025-03-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-03-27 19:10:06' and `end` < '2025-03-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-03-27 22:10:19] Production.INFO: count ==2163 [2025-03-27 22:10:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:10:06 - End Time 2025-03-27 22:10:06 [2025-03-27 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777130', 'tblTempUsageDetail_20' ) start [2025-03-27 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777130', 'tblTempUsageDetail_20' ) end [2025-03-27 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777130', 'tblTempVendorCDR_20' ) start [2025-03-27 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777130', 'tblTempVendorCDR_20' ) end [2025-03-27 22:10:19] Production.INFO: ProcessCDR(1,14777130,1,1,2) [2025-03-27 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777130', 'tblTempUsageDetail_20' ) start [2025-03-27 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777130', 'tblTempUsageDetail_20' ) end [2025-03-27 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:10:23] Production.INFO: ==15385== Releasing lock... [2025-03-27 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:10:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-27 22:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:11:06 [end_date_ymd] => 2025-03-27 22:11:06 [RateCDR] => 1 ) [2025-03-27 22:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:11:06' and `end` < '2025-03-27 22:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:11:18] Production.INFO: count ==2114 [2025-03-27 22:11:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:11:06 - End Time 2025-03-27 22:11:06 [2025-03-27 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777135', 'tblTempUsageDetail_20' ) start [2025-03-27 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777135', 'tblTempUsageDetail_20' ) end [2025-03-27 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777135', 'tblTempVendorCDR_20' ) start [2025-03-27 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777135', 'tblTempVendorCDR_20' ) end [2025-03-27 22:11:19] Production.INFO: ProcessCDR(1,14777135,1,1,2) [2025-03-27 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777135', 'tblTempUsageDetail_20' ) start [2025-03-27 22:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777135', 'tblTempUsageDetail_20' ) end [2025-03-27 22:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:11:24] Production.INFO: ==15490== Releasing lock... [2025-03-27 22:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:11:24] Production.INFO: 44 MB #Memory Used# [2025-03-27 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:12:05 [end_date_ymd] => 2025-03-27 22:12:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:12:05' and `end` < '2025-03-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-03-27 22:12:18] Production.INFO: count ==2106 [2025-03-27 22:12:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:12:05 - End Time 2025-03-27 22:12:05 [2025-03-27 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777140', 'tblTempUsageDetail_20' ) start [2025-03-27 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777140', 'tblTempUsageDetail_20' ) end [2025-03-27 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777140', 'tblTempVendorCDR_20' ) start [2025-03-27 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777140', 'tblTempVendorCDR_20' ) end [2025-03-27 22:12:19] Production.INFO: ProcessCDR(1,14777140,1,1,2) [2025-03-27 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777140', 'tblTempUsageDetail_20' ) start [2025-03-27 22:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777140', 'tblTempUsageDetail_20' ) end [2025-03-27 22:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:12:24] Production.INFO: ==15590== Releasing lock... [2025-03-27 22:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:12:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-27 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:13:05 [end_date_ymd] => 2025-03-27 22:13:05 [RateCDR] => 1 ) [2025-03-27 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:13:05' and `end` < '2025-03-27 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:13:18] Production.INFO: count ==2094 [2025-03-27 22:13:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:13:05 - End Time 2025-03-27 22:13:05 [2025-03-27 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777145', 'tblTempUsageDetail_20' ) start [2025-03-27 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777145', 'tblTempUsageDetail_20' ) end [2025-03-27 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777145', 'tblTempVendorCDR_20' ) start [2025-03-27 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777145', 'tblTempVendorCDR_20' ) end [2025-03-27 22:13:19] Production.INFO: ProcessCDR(1,14777145,1,1,2) [2025-03-27 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777145', 'tblTempUsageDetail_20' ) start [2025-03-27 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777145', 'tblTempUsageDetail_20' ) end [2025-03-27 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:13:22] Production.INFO: ==15695== Releasing lock... [2025-03-27 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:13:22] Production.INFO: 44 MB #Memory Used# [2025-03-27 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:14:05 [end_date_ymd] => 2025-03-27 22:14:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:14:05' and `end` < '2025-03-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-03-27 22:14:18] Production.INFO: count ==2094 [2025-03-27 22:14:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:14:05 - End Time 2025-03-27 22:14:05 [2025-03-27 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777150', 'tblTempUsageDetail_20' ) start [2025-03-27 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777150', 'tblTempUsageDetail_20' ) end [2025-03-27 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777150', 'tblTempVendorCDR_20' ) start [2025-03-27 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777150', 'tblTempVendorCDR_20' ) end [2025-03-27 22:14:19] Production.INFO: ProcessCDR(1,14777150,1,1,2) [2025-03-27 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777150', 'tblTempUsageDetail_20' ) start [2025-03-27 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777150', 'tblTempUsageDetail_20' ) end [2025-03-27 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:14:22] Production.INFO: ==15793== Releasing lock... [2025-03-27 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:14:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-27 22:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:15:06 [end_date_ymd] => 2025-03-27 22:15:06 [RateCDR] => 1 ) [2025-03-27 22:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:15:06' and `end` < '2025-03-27 22:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:15:18] Production.INFO: count ==2081 [2025-03-27 22:15:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:15:06 - End Time 2025-03-27 22:15:06 [2025-03-27 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777155', 'tblTempUsageDetail_20' ) start [2025-03-27 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777155', 'tblTempUsageDetail_20' ) end [2025-03-27 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777155', 'tblTempVendorCDR_20' ) start [2025-03-27 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777155', 'tblTempVendorCDR_20' ) end [2025-03-27 22:15:19] Production.INFO: ProcessCDR(1,14777155,1,1,2) [2025-03-27 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777155', 'tblTempUsageDetail_20' ) start [2025-03-27 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777155', 'tblTempUsageDetail_20' ) end [2025-03-27 22:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:15:23] Production.INFO: ==15889== Releasing lock... [2025-03-27 22:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:15:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-27 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:16:05 [end_date_ymd] => 2025-03-27 22:16:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:16:05' and `end` < '2025-03-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-03-27 22:16:18] Production.INFO: count ==2083 [2025-03-27 22:16:18] Production.ERROR: pbx CDR StartTime 2025-03-27 19:16:05 - End Time 2025-03-27 22:16:05 [2025-03-27 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777160', 'tblTempUsageDetail_20' ) start [2025-03-27 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777160', 'tblTempUsageDetail_20' ) end [2025-03-27 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777160', 'tblTempVendorCDR_20' ) start [2025-03-27 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777160', 'tblTempVendorCDR_20' ) end [2025-03-27 22:16:18] Production.INFO: ProcessCDR(1,14777160,1,1,2) [2025-03-27 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777160', 'tblTempUsageDetail_20' ) start [2025-03-27 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777160', 'tblTempUsageDetail_20' ) end [2025-03-27 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:16:22] Production.INFO: ==15988== Releasing lock... [2025-03-27 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:16:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-27 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:17:05 [end_date_ymd] => 2025-03-27 22:17:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:17:05' and `end` < '2025-03-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-03-27 22:17:18] Production.INFO: count ==2081 [2025-03-27 22:17:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:17:05 - End Time 2025-03-27 22:17:05 [2025-03-27 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777165', 'tblTempUsageDetail_20' ) start [2025-03-27 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777165', 'tblTempUsageDetail_20' ) end [2025-03-27 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777165', 'tblTempVendorCDR_20' ) start [2025-03-27 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777165', 'tblTempVendorCDR_20' ) end [2025-03-27 22:17:19] Production.INFO: ProcessCDR(1,14777165,1,1,2) [2025-03-27 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777165', 'tblTempUsageDetail_20' ) start [2025-03-27 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777165', 'tblTempUsageDetail_20' ) end [2025-03-27 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:17:22] Production.INFO: ==16086== Releasing lock... [2025-03-27 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:17:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-27 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:18:05 [end_date_ymd] => 2025-03-27 22:18:05 [RateCDR] => 1 ) [2025-03-27 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:18:05' and `end` < '2025-03-27 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:18:17] Production.INFO: count ==2071 [2025-03-27 22:18:18] Production.ERROR: pbx CDR StartTime 2025-03-27 19:18:05 - End Time 2025-03-27 22:18:05 [2025-03-27 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777170', 'tblTempUsageDetail_20' ) start [2025-03-27 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777170', 'tblTempUsageDetail_20' ) end [2025-03-27 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777170', 'tblTempVendorCDR_20' ) start [2025-03-27 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777170', 'tblTempVendorCDR_20' ) end [2025-03-27 22:18:18] Production.INFO: ProcessCDR(1,14777170,1,1,2) [2025-03-27 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777170', 'tblTempUsageDetail_20' ) start [2025-03-27 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777170', 'tblTempUsageDetail_20' ) end [2025-03-27 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:18:22] Production.INFO: ==16166== Releasing lock... [2025-03-27 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:18:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-27 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:19:05 [end_date_ymd] => 2025-03-27 22:19:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:19:05' and `end` < '2025-03-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-03-27 22:19:18] Production.INFO: count ==2073 [2025-03-27 22:19:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:19:05 - End Time 2025-03-27 22:19:05 [2025-03-27 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777175', 'tblTempUsageDetail_20' ) start [2025-03-27 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777175', 'tblTempUsageDetail_20' ) end [2025-03-27 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777175', 'tblTempVendorCDR_20' ) start [2025-03-27 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777175', 'tblTempVendorCDR_20' ) end [2025-03-27 22:19:19] Production.INFO: ProcessCDR(1,14777175,1,1,2) [2025-03-27 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777175', 'tblTempUsageDetail_20' ) start [2025-03-27 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777175', 'tblTempUsageDetail_20' ) end [2025-03-27 22:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:19:23] Production.INFO: ==16240== Releasing lock... [2025-03-27 22:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:19:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-27 22:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:20:07 [end_date_ymd] => 2025-03-27 22:20:07 [RateCDR] => 1 ) [2025-03-27 22:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:20:07' and `end` < '2025-03-27 22:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:20:20] Production.INFO: count ==2075 [2025-03-27 22:20:21] Production.ERROR: pbx CDR StartTime 2025-03-27 19:20:07 - End Time 2025-03-27 22:20:07 [2025-03-27 22:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777181', 'tblTempUsageDetail_20' ) start [2025-03-27 22:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777181', 'tblTempUsageDetail_20' ) end [2025-03-27 22:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777181', 'tblTempVendorCDR_20' ) start [2025-03-27 22:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777181', 'tblTempVendorCDR_20' ) end [2025-03-27 22:20:21] Production.INFO: ProcessCDR(1,14777181,1,1,2) [2025-03-27 22:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777181', 'tblTempUsageDetail_20' ) start [2025-03-27 22:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777181', 'tblTempUsageDetail_20' ) end [2025-03-27 22:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:20:25] Production.INFO: ==16316== Releasing lock... [2025-03-27 22:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:20:25] Production.INFO: 43.75 MB #Memory Used# [2025-03-27 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:21:05 [end_date_ymd] => 2025-03-27 22:21:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:21:05' and `end` < '2025-03-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-03-27 22:21:18] Production.INFO: count ==2044 [2025-03-27 22:21:18] Production.ERROR: pbx CDR StartTime 2025-03-27 19:21:05 - End Time 2025-03-27 22:21:05 [2025-03-27 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777186', 'tblTempUsageDetail_20' ) start [2025-03-27 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777186', 'tblTempUsageDetail_20' ) end [2025-03-27 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777186', 'tblTempVendorCDR_20' ) start [2025-03-27 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777186', 'tblTempVendorCDR_20' ) end [2025-03-27 22:21:19] Production.INFO: ProcessCDR(1,14777186,1,1,2) [2025-03-27 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777186', 'tblTempUsageDetail_20' ) start [2025-03-27 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777186', 'tblTempUsageDetail_20' ) end [2025-03-27 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:21:22] Production.INFO: ==16396== Releasing lock... [2025-03-27 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:21:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-27 22:22:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:22:07 [end_date_ymd] => 2025-03-27 22:22:07 [RateCDR] => 1 ) [2025-03-27 22:22:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:22:07' and `end` < '2025-03-27 22:22:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:22:19] Production.INFO: count ==2026 [2025-03-27 22:22:20] Production.ERROR: pbx CDR StartTime 2025-03-27 19:22:07 - End Time 2025-03-27 22:22:07 [2025-03-27 22:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777191', 'tblTempUsageDetail_20' ) start [2025-03-27 22:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777191', 'tblTempUsageDetail_20' ) end [2025-03-27 22:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777191', 'tblTempVendorCDR_20' ) start [2025-03-27 22:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777191', 'tblTempVendorCDR_20' ) end [2025-03-27 22:22:20] Production.INFO: ProcessCDR(1,14777191,1,1,2) [2025-03-27 22:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777191', 'tblTempUsageDetail_20' ) start [2025-03-27 22:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777191', 'tblTempUsageDetail_20' ) end [2025-03-27 22:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:22:24] Production.INFO: ==16512== Releasing lock... [2025-03-27 22:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:22:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:23:05 [end_date_ymd] => 2025-03-27 22:23:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:23:05' and `end` < '2025-03-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-03-27 22:23:18] Production.INFO: count ==2019 [2025-03-27 22:23:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:23:05 - End Time 2025-03-27 22:23:05 [2025-03-27 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777196', 'tblTempUsageDetail_20' ) start [2025-03-27 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777196', 'tblTempUsageDetail_20' ) end [2025-03-27 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777196', 'tblTempVendorCDR_20' ) start [2025-03-27 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777196', 'tblTempVendorCDR_20' ) end [2025-03-27 22:23:19] Production.INFO: ProcessCDR(1,14777196,1,1,2) [2025-03-27 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777196', 'tblTempUsageDetail_20' ) start [2025-03-27 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777196', 'tblTempUsageDetail_20' ) end [2025-03-27 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:23:22] Production.INFO: ==16594== Releasing lock... [2025-03-27 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:23:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:24:06 [end_date_ymd] => 2025-03-27 22:24:06 [RateCDR] => 1 ) [2025-03-27 22:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:24:06' and `end` < '2025-03-27 22:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:24:18] Production.INFO: count ==2020 [2025-03-27 22:24:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:24:06 - End Time 2025-03-27 22:24:06 [2025-03-27 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777201', 'tblTempUsageDetail_20' ) start [2025-03-27 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777201', 'tblTempUsageDetail_20' ) end [2025-03-27 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777201', 'tblTempVendorCDR_20' ) start [2025-03-27 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777201', 'tblTempVendorCDR_20' ) end [2025-03-27 22:24:19] Production.INFO: ProcessCDR(1,14777201,1,1,2) [2025-03-27 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777201', 'tblTempUsageDetail_20' ) start [2025-03-27 22:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777201', 'tblTempUsageDetail_20' ) end [2025-03-27 22:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:24:25] Production.INFO: ==16671== Releasing lock... [2025-03-27 22:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:24:25] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:25:05 [end_date_ymd] => 2025-03-27 22:25:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:25:05' and `end` < '2025-03-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-03-27 22:25:18] Production.INFO: count ==2032 [2025-03-27 22:25:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:25:05 - End Time 2025-03-27 22:25:05 [2025-03-27 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777206', 'tblTempUsageDetail_20' ) start [2025-03-27 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777206', 'tblTempUsageDetail_20' ) end [2025-03-27 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777206', 'tblTempVendorCDR_20' ) start [2025-03-27 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777206', 'tblTempVendorCDR_20' ) end [2025-03-27 22:25:19] Production.INFO: ProcessCDR(1,14777206,1,1,2) [2025-03-27 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777206', 'tblTempUsageDetail_20' ) start [2025-03-27 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777206', 'tblTempUsageDetail_20' ) end [2025-03-27 22:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:25:23] Production.INFO: ==16742== Releasing lock... [2025-03-27 22:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:25:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 22:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:26:06 [end_date_ymd] => 2025-03-27 22:26:06 [RateCDR] => 1 ) [2025-03-27 22:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:26:06' and `end` < '2025-03-27 22:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:26:19] Production.INFO: count ==2035 [2025-03-27 22:26:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:26:06 - End Time 2025-03-27 22:26:06 [2025-03-27 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777211', 'tblTempUsageDetail_20' ) start [2025-03-27 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777211', 'tblTempUsageDetail_20' ) end [2025-03-27 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777211', 'tblTempVendorCDR_20' ) start [2025-03-27 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777211', 'tblTempVendorCDR_20' ) end [2025-03-27 22:26:19] Production.INFO: ProcessCDR(1,14777211,1,1,2) [2025-03-27 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777211', 'tblTempUsageDetail_20' ) start [2025-03-27 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777211', 'tblTempUsageDetail_20' ) end [2025-03-27 22:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:26:23] Production.INFO: ==16827== Releasing lock... [2025-03-27 22:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:26:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:27:05 [end_date_ymd] => 2025-03-27 22:27:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:27:05' and `end` < '2025-03-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-03-27 22:27:18] Production.INFO: count ==2038 [2025-03-27 22:27:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:27:05 - End Time 2025-03-27 22:27:05 [2025-03-27 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777216', 'tblTempUsageDetail_20' ) start [2025-03-27 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777216', 'tblTempUsageDetail_20' ) end [2025-03-27 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777216', 'tblTempVendorCDR_20' ) start [2025-03-27 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777216', 'tblTempVendorCDR_20' ) end [2025-03-27 22:27:19] Production.INFO: ProcessCDR(1,14777216,1,1,2) [2025-03-27 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777216', 'tblTempUsageDetail_20' ) start [2025-03-27 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777216', 'tblTempUsageDetail_20' ) end [2025-03-27 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:27:22] Production.INFO: ==16901== Releasing lock... [2025-03-27 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:27:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 22:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:28:06 [end_date_ymd] => 2025-03-27 22:28:06 [RateCDR] => 1 ) [2025-03-27 22:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:28:06' and `end` < '2025-03-27 22:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:28:18] Production.INFO: count ==2041 [2025-03-27 22:28:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:28:06 - End Time 2025-03-27 22:28:06 [2025-03-27 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777221', 'tblTempUsageDetail_20' ) start [2025-03-27 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777221', 'tblTempUsageDetail_20' ) end [2025-03-27 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777221', 'tblTempVendorCDR_20' ) start [2025-03-27 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777221', 'tblTempVendorCDR_20' ) end [2025-03-27 22:28:19] Production.INFO: ProcessCDR(1,14777221,1,1,2) [2025-03-27 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777221', 'tblTempUsageDetail_20' ) start [2025-03-27 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777221', 'tblTempUsageDetail_20' ) end [2025-03-27 22:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:28:23] Production.INFO: ==16977== Releasing lock... [2025-03-27 22:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:28:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:29:05 [end_date_ymd] => 2025-03-27 22:29:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:29:05' and `end` < '2025-03-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-03-27 22:29:18] Production.INFO: count ==2048 [2025-03-27 22:29:18] Production.ERROR: pbx CDR StartTime 2025-03-27 19:29:05 - End Time 2025-03-27 22:29:05 [2025-03-27 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777226', 'tblTempUsageDetail_20' ) start [2025-03-27 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777226', 'tblTempUsageDetail_20' ) end [2025-03-27 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777226', 'tblTempVendorCDR_20' ) start [2025-03-27 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777226', 'tblTempVendorCDR_20' ) end [2025-03-27 22:29:18] Production.INFO: ProcessCDR(1,14777226,1,1,2) [2025-03-27 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777226', 'tblTempUsageDetail_20' ) start [2025-03-27 22:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777226', 'tblTempUsageDetail_20' ) end [2025-03-27 22:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:29:24] Production.INFO: ==17056== Releasing lock... [2025-03-27 22:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:29:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-27 22:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:30:07 [end_date_ymd] => 2025-03-27 22:30:07 [RateCDR] => 1 ) [2025-03-27 22:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:30:07' and `end` < '2025-03-27 22:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:30:19] Production.INFO: count ==2035 [2025-03-27 22:30:20] Production.ERROR: pbx CDR StartTime 2025-03-27 19:30:07 - End Time 2025-03-27 22:30:07 [2025-03-27 22:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777232', 'tblTempUsageDetail_20' ) start [2025-03-27 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777232', 'tblTempUsageDetail_20' ) end [2025-03-27 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777232', 'tblTempVendorCDR_20' ) start [2025-03-27 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777232', 'tblTempVendorCDR_20' ) end [2025-03-27 22:30:20] Production.INFO: ProcessCDR(1,14777232,1,1,2) [2025-03-27 22:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777232', 'tblTempUsageDetail_20' ) start [2025-03-27 22:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777232', 'tblTempUsageDetail_20' ) end [2025-03-27 22:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:30:25] Production.INFO: ==17136== Releasing lock... [2025-03-27 22:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:30:25] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:31:05 [end_date_ymd] => 2025-03-27 22:31:05 [RateCDR] => 1 ) [2025-03-27 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:31:05' and `end` < '2025-03-27 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:31:18] Production.INFO: count ==2007 [2025-03-27 22:31:18] Production.ERROR: pbx CDR StartTime 2025-03-27 19:31:05 - End Time 2025-03-27 22:31:05 [2025-03-27 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777237', 'tblTempUsageDetail_20' ) start [2025-03-27 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777237', 'tblTempUsageDetail_20' ) end [2025-03-27 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777237', 'tblTempVendorCDR_20' ) start [2025-03-27 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777237', 'tblTempVendorCDR_20' ) end [2025-03-27 22:31:19] Production.INFO: ProcessCDR(1,14777237,1,1,2) [2025-03-27 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777237', 'tblTempUsageDetail_20' ) start [2025-03-27 22:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777237', 'tblTempUsageDetail_20' ) end [2025-03-27 22:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:31:24] Production.INFO: ==17210== Releasing lock... [2025-03-27 22:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:31:24] Production.INFO: 43 MB #Memory Used# [2025-03-27 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:32:06 [end_date_ymd] => 2025-03-27 22:32:06 [RateCDR] => 1 ) [2025-03-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-03-27 19:32:06' and `end` < '2025-03-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-03-27 22:32:19] Production.INFO: count ==2011 [2025-03-27 22:32:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:32:06 - End Time 2025-03-27 22:32:06 [2025-03-27 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777242', 'tblTempUsageDetail_20' ) start [2025-03-27 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777242', 'tblTempUsageDetail_20' ) end [2025-03-27 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777242', 'tblTempVendorCDR_20' ) start [2025-03-27 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777242', 'tblTempVendorCDR_20' ) end [2025-03-27 22:32:19] Production.INFO: ProcessCDR(1,14777242,1,1,2) [2025-03-27 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777242', 'tblTempUsageDetail_20' ) start [2025-03-27 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777242', 'tblTempUsageDetail_20' ) end [2025-03-27 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:32:23] Production.INFO: ==17292== Releasing lock... [2025-03-27 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:32:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:33:05 [end_date_ymd] => 2025-03-27 22:33:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:33:05' and `end` < '2025-03-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-03-27 22:33:18] Production.INFO: count ==2008 [2025-03-27 22:33:18] Production.ERROR: pbx CDR StartTime 2025-03-27 19:33:05 - End Time 2025-03-27 22:33:05 [2025-03-27 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777247', 'tblTempUsageDetail_20' ) start [2025-03-27 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777247', 'tblTempUsageDetail_20' ) end [2025-03-27 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777247', 'tblTempVendorCDR_20' ) start [2025-03-27 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777247', 'tblTempVendorCDR_20' ) end [2025-03-27 22:33:19] Production.INFO: ProcessCDR(1,14777247,1,1,2) [2025-03-27 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777247', 'tblTempUsageDetail_20' ) start [2025-03-27 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777247', 'tblTempUsageDetail_20' ) end [2025-03-27 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:33:22] Production.INFO: ==17364== Releasing lock... [2025-03-27 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:33:22] Production.INFO: 43 MB #Memory Used# [2025-03-27 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:34:05 [end_date_ymd] => 2025-03-27 22:34:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:34:05' and `end` < '2025-03-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-03-27 22:34:18] Production.INFO: count ==2004 [2025-03-27 22:34:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:34:05 - End Time 2025-03-27 22:34:05 [2025-03-27 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777252', 'tblTempUsageDetail_20' ) start [2025-03-27 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777252', 'tblTempUsageDetail_20' ) end [2025-03-27 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777252', 'tblTempVendorCDR_20' ) start [2025-03-27 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777252', 'tblTempVendorCDR_20' ) end [2025-03-27 22:34:19] Production.INFO: ProcessCDR(1,14777252,1,1,2) [2025-03-27 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777252', 'tblTempUsageDetail_20' ) start [2025-03-27 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777252', 'tblTempUsageDetail_20' ) end [2025-03-27 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:34:22] Production.INFO: ==17436== Releasing lock... [2025-03-27 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:34:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-27 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:35:05 [end_date_ymd] => 2025-03-27 22:35:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:35:05' and `end` < '2025-03-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-03-27 22:35:18] Production.INFO: count ==2004 [2025-03-27 22:35:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:35:05 - End Time 2025-03-27 22:35:05 [2025-03-27 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777257', 'tblTempUsageDetail_20' ) start [2025-03-27 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777257', 'tblTempUsageDetail_20' ) end [2025-03-27 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777257', 'tblTempVendorCDR_20' ) start [2025-03-27 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777257', 'tblTempVendorCDR_20' ) end [2025-03-27 22:35:19] Production.INFO: ProcessCDR(1,14777257,1,1,2) [2025-03-27 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777257', 'tblTempUsageDetail_20' ) start [2025-03-27 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777257', 'tblTempUsageDetail_20' ) end [2025-03-27 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:35:22] Production.INFO: ==17518== Releasing lock... [2025-03-27 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:35:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-27 22:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:36:06 [end_date_ymd] => 2025-03-27 22:36:06 [RateCDR] => 1 ) [2025-03-27 22:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:36:06' and `end` < '2025-03-27 22:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:36:18] Production.INFO: count ==2003 [2025-03-27 22:36:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:36:06 - End Time 2025-03-27 22:36:06 [2025-03-27 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777262', 'tblTempUsageDetail_20' ) start [2025-03-27 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777262', 'tblTempUsageDetail_20' ) end [2025-03-27 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777262', 'tblTempVendorCDR_20' ) start [2025-03-27 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777262', 'tblTempVendorCDR_20' ) end [2025-03-27 22:36:19] Production.INFO: ProcessCDR(1,14777262,1,1,2) [2025-03-27 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777262', 'tblTempUsageDetail_20' ) start [2025-03-27 22:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777262', 'tblTempUsageDetail_20' ) end [2025-03-27 22:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:36:24] Production.INFO: ==17595== Releasing lock... [2025-03-27 22:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:36:24] Production.INFO: 43 MB #Memory Used# [2025-03-27 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:37:05 [end_date_ymd] => 2025-03-27 22:37:05 [RateCDR] => 1 ) [2025-03-27 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:37:05' and `end` < '2025-03-27 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:37:18] Production.INFO: count ==1998 [2025-03-27 22:37:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:37:05 - End Time 2025-03-27 22:37:05 [2025-03-27 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777267', 'tblTempUsageDetail_20' ) start [2025-03-27 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777267', 'tblTempUsageDetail_20' ) end [2025-03-27 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777267', 'tblTempVendorCDR_20' ) start [2025-03-27 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777267', 'tblTempVendorCDR_20' ) end [2025-03-27 22:37:19] Production.INFO: ProcessCDR(1,14777267,1,1,2) [2025-03-27 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777267', 'tblTempUsageDetail_20' ) start [2025-03-27 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777267', 'tblTempUsageDetail_20' ) end [2025-03-27 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:37:22] Production.INFO: ==17707== Releasing lock... [2025-03-27 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:37:22] Production.INFO: 43 MB #Memory Used# [2025-03-27 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:38:05 [end_date_ymd] => 2025-03-27 22:38:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:38:05' and `end` < '2025-03-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-03-27 22:38:18] Production.INFO: count ==2001 [2025-03-27 22:38:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:38:05 - End Time 2025-03-27 22:38:05 [2025-03-27 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777272', 'tblTempUsageDetail_20' ) start [2025-03-27 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777272', 'tblTempUsageDetail_20' ) end [2025-03-27 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777272', 'tblTempVendorCDR_20' ) start [2025-03-27 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777272', 'tblTempVendorCDR_20' ) end [2025-03-27 22:38:19] Production.INFO: ProcessCDR(1,14777272,1,1,2) [2025-03-27 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777272', 'tblTempUsageDetail_20' ) start [2025-03-27 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777272', 'tblTempUsageDetail_20' ) end [2025-03-27 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:38:22] Production.INFO: ==17788== Releasing lock... [2025-03-27 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:38:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-27 22:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:39:06 [end_date_ymd] => 2025-03-27 22:39:06 [RateCDR] => 1 ) [2025-03-27 22:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:39:06' and `end` < '2025-03-27 22:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:39:19] Production.INFO: count ==1996 [2025-03-27 22:39:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:39:06 - End Time 2025-03-27 22:39:06 [2025-03-27 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777277', 'tblTempUsageDetail_20' ) start [2025-03-27 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777277', 'tblTempUsageDetail_20' ) end [2025-03-27 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777277', 'tblTempVendorCDR_20' ) start [2025-03-27 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777277', 'tblTempVendorCDR_20' ) end [2025-03-27 22:39:19] Production.INFO: ProcessCDR(1,14777277,1,1,2) [2025-03-27 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777277', 'tblTempUsageDetail_20' ) start [2025-03-27 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777277', 'tblTempUsageDetail_20' ) end [2025-03-27 22:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:39:23] Production.INFO: ==17864== Releasing lock... [2025-03-27 22:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:39:23] Production.INFO: 43 MB #Memory Used# [2025-03-27 22:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:40:07 [end_date_ymd] => 2025-03-27 22:40:07 [RateCDR] => 1 ) [2025-03-27 22:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:40:07' and `end` < '2025-03-27 22:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:40:19] Production.INFO: count ==2000 [2025-03-27 22:40:20] Production.ERROR: pbx CDR StartTime 2025-03-27 19:40:07 - End Time 2025-03-27 22:40:07 [2025-03-27 22:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777283', 'tblTempUsageDetail_20' ) start [2025-03-27 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777283', 'tblTempUsageDetail_20' ) end [2025-03-27 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777283', 'tblTempVendorCDR_20' ) start [2025-03-27 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777283', 'tblTempVendorCDR_20' ) end [2025-03-27 22:40:20] Production.INFO: ProcessCDR(1,14777283,1,1,2) [2025-03-27 22:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777283', 'tblTempUsageDetail_20' ) start [2025-03-27 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777283', 'tblTempUsageDetail_20' ) end [2025-03-27 22:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:40:24] Production.INFO: ==17939== Releasing lock... [2025-03-27 22:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:40:24] Production.INFO: 43 MB #Memory Used# [2025-03-27 22:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:41:04 [end_date_ymd] => 2025-03-27 22:41:04 [RateCDR] => 1 ) [2025-03-27 22: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-03-27 19:41:04' and `end` < '2025-03-27 22: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-03-27 22:41:17] Production.INFO: count ==1964 [2025-03-27 22:41:18] Production.ERROR: pbx CDR StartTime 2025-03-27 19:41:04 - End Time 2025-03-27 22:41:04 [2025-03-27 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777288', 'tblTempUsageDetail_20' ) start [2025-03-27 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777288', 'tblTempUsageDetail_20' ) end [2025-03-27 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777288', 'tblTempVendorCDR_20' ) start [2025-03-27 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777288', 'tblTempVendorCDR_20' ) end [2025-03-27 22:41:18] Production.INFO: ProcessCDR(1,14777288,1,1,2) [2025-03-27 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777288', 'tblTempUsageDetail_20' ) start [2025-03-27 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777288', 'tblTempUsageDetail_20' ) end [2025-03-27 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:41:21] Production.INFO: ==18014== Releasing lock... [2025-03-27 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:41:21] Production.INFO: 42.75 MB #Memory Used# [2025-03-27 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:42:05 [end_date_ymd] => 2025-03-27 22:42:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:42:05' and `end` < '2025-03-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-03-27 22:42:18] Production.INFO: count ==1964 [2025-03-27 22:42:18] Production.ERROR: pbx CDR StartTime 2025-03-27 19:42:05 - End Time 2025-03-27 22:42:05 [2025-03-27 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777293', 'tblTempUsageDetail_20' ) start [2025-03-27 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777293', 'tblTempUsageDetail_20' ) end [2025-03-27 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777293', 'tblTempVendorCDR_20' ) start [2025-03-27 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777293', 'tblTempVendorCDR_20' ) end [2025-03-27 22:42:18] Production.INFO: ProcessCDR(1,14777293,1,1,2) [2025-03-27 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777293', 'tblTempUsageDetail_20' ) start [2025-03-27 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777293', 'tblTempUsageDetail_20' ) end [2025-03-27 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:42:22] Production.INFO: ==18093== Releasing lock... [2025-03-27 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:42:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-27 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:43:05 [end_date_ymd] => 2025-03-27 22:43:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:43:05' and `end` < '2025-03-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-03-27 22:43:18] Production.INFO: count ==1962 [2025-03-27 22:43:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:43:05 - End Time 2025-03-27 22:43:05 [2025-03-27 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777298', 'tblTempUsageDetail_20' ) start [2025-03-27 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777298', 'tblTempUsageDetail_20' ) end [2025-03-27 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777298', 'tblTempVendorCDR_20' ) start [2025-03-27 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777298', 'tblTempVendorCDR_20' ) end [2025-03-27 22:43:19] Production.INFO: ProcessCDR(1,14777298,1,1,2) [2025-03-27 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777298', 'tblTempUsageDetail_20' ) start [2025-03-27 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777298', 'tblTempUsageDetail_20' ) end [2025-03-27 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:43:22] Production.INFO: ==18170== Releasing lock... [2025-03-27 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:43:22] Production.INFO: 43 MB #Memory Used# [2025-03-27 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:44:05 [end_date_ymd] => 2025-03-27 22:44:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:44:05' and `end` < '2025-03-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-03-27 22:44:18] Production.INFO: count ==1961 [2025-03-27 22:44:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:44:05 - End Time 2025-03-27 22:44:05 [2025-03-27 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777303', 'tblTempUsageDetail_20' ) start [2025-03-27 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777303', 'tblTempUsageDetail_20' ) end [2025-03-27 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777303', 'tblTempVendorCDR_20' ) start [2025-03-27 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777303', 'tblTempVendorCDR_20' ) end [2025-03-27 22:44:19] Production.INFO: ProcessCDR(1,14777303,1,1,2) [2025-03-27 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777303', 'tblTempUsageDetail_20' ) start [2025-03-27 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777303', 'tblTempUsageDetail_20' ) end [2025-03-27 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:44:22] Production.INFO: ==18247== Releasing lock... [2025-03-27 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:44:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-27 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:45:05 [end_date_ymd] => 2025-03-27 22:45:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:45:05' and `end` < '2025-03-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-03-27 22:45:17] Production.INFO: count ==1946 [2025-03-27 22:45:18] Production.ERROR: pbx CDR StartTime 2025-03-27 19:45:05 - End Time 2025-03-27 22:45:05 [2025-03-27 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777308', 'tblTempUsageDetail_20' ) start [2025-03-27 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777308', 'tblTempUsageDetail_20' ) end [2025-03-27 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777308', 'tblTempVendorCDR_20' ) start [2025-03-27 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777308', 'tblTempVendorCDR_20' ) end [2025-03-27 22:45:18] Production.INFO: ProcessCDR(1,14777308,1,1,2) [2025-03-27 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777308', 'tblTempUsageDetail_20' ) start [2025-03-27 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777308', 'tblTempUsageDetail_20' ) end [2025-03-27 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:45:22] Production.INFO: ==18320== Releasing lock... [2025-03-27 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:45:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-27 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:46:06 [end_date_ymd] => 2025-03-27 22:46:06 [RateCDR] => 1 ) [2025-03-27 22:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:46:06' and `end` < '2025-03-27 22:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:46:18] Production.INFO: count ==1950 [2025-03-27 22:46:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:46:06 - End Time 2025-03-27 22:46:06 [2025-03-27 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777313', 'tblTempUsageDetail_20' ) start [2025-03-27 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777313', 'tblTempUsageDetail_20' ) end [2025-03-27 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777313', 'tblTempVendorCDR_20' ) start [2025-03-27 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777313', 'tblTempVendorCDR_20' ) end [2025-03-27 22:46:19] Production.INFO: ProcessCDR(1,14777313,1,1,2) [2025-03-27 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777313', 'tblTempUsageDetail_20' ) start [2025-03-27 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777313', 'tblTempUsageDetail_20' ) end [2025-03-27 22:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:46:23] Production.INFO: ==18393== Releasing lock... [2025-03-27 22:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:46:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-27 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:47:05 [end_date_ymd] => 2025-03-27 22:47:05 [RateCDR] => 1 ) [2025-03-27 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:47:05' and `end` < '2025-03-27 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:47:18] Production.INFO: count ==1956 [2025-03-27 22:47:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:47:05 - End Time 2025-03-27 22:47:05 [2025-03-27 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777318', 'tblTempUsageDetail_20' ) start [2025-03-27 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777318', 'tblTempUsageDetail_20' ) end [2025-03-27 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777318', 'tblTempVendorCDR_20' ) start [2025-03-27 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777318', 'tblTempVendorCDR_20' ) end [2025-03-27 22:47:19] Production.INFO: ProcessCDR(1,14777318,1,1,2) [2025-03-27 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777318', 'tblTempUsageDetail_20' ) start [2025-03-27 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777318', 'tblTempUsageDetail_20' ) end [2025-03-27 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:47:22] Production.INFO: ==18463== Releasing lock... [2025-03-27 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:47:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-27 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:48:05 [end_date_ymd] => 2025-03-27 22:48:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:48:05' and `end` < '2025-03-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-03-27 22:48:18] Production.INFO: count ==1941 [2025-03-27 22:48:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:48:05 - End Time 2025-03-27 22:48:05 [2025-03-27 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777323', 'tblTempUsageDetail_20' ) start [2025-03-27 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777323', 'tblTempUsageDetail_20' ) end [2025-03-27 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777323', 'tblTempVendorCDR_20' ) start [2025-03-27 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777323', 'tblTempVendorCDR_20' ) end [2025-03-27 22:48:19] Production.INFO: ProcessCDR(1,14777323,1,1,2) [2025-03-27 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777323', 'tblTempUsageDetail_20' ) start [2025-03-27 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777323', 'tblTempUsageDetail_20' ) end [2025-03-27 22:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:48:23] Production.INFO: ==18540== Releasing lock... [2025-03-27 22:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:48:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-27 22:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:49:04 [end_date_ymd] => 2025-03-27 22:49:04 [RateCDR] => 1 ) [2025-03-27 22:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:49:04' and `end` < '2025-03-27 22:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:49:17] Production.INFO: count ==1937 [2025-03-27 22:49:17] Production.ERROR: pbx CDR StartTime 2025-03-27 19:49:04 - End Time 2025-03-27 22:49:04 [2025-03-27 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777324', 'tblTempUsageDetail_20' ) start [2025-03-27 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777324', 'tblTempUsageDetail_20' ) end [2025-03-27 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777324', 'tblTempVendorCDR_20' ) start [2025-03-27 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777324', 'tblTempVendorCDR_20' ) end [2025-03-27 22:49:18] Production.INFO: ProcessCDR(1,14777324,1,1,2) [2025-03-27 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777324', 'tblTempUsageDetail_20' ) start [2025-03-27 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777324', 'tblTempUsageDetail_20' ) end [2025-03-27 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:49:21] Production.INFO: ==18623== Releasing lock... [2025-03-27 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:49:21] Production.INFO: 42.75 MB #Memory Used# [2025-03-27 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:50:06 [end_date_ymd] => 2025-03-27 22:50:06 [RateCDR] => 1 ) [2025-03-27 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:50:06' and `end` < '2025-03-27 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:50:19] Production.INFO: count ==1922 [2025-03-27 22:50:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:50:06 - End Time 2025-03-27 22:50:06 [2025-03-27 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777334', 'tblTempUsageDetail_20' ) start [2025-03-27 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777334', 'tblTempUsageDetail_20' ) end [2025-03-27 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777334', 'tblTempVendorCDR_20' ) start [2025-03-27 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777334', 'tblTempVendorCDR_20' ) end [2025-03-27 22:50:20] Production.INFO: ProcessCDR(1,14777334,1,1,2) [2025-03-27 22:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777334', 'tblTempUsageDetail_20' ) start [2025-03-27 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777334', 'tblTempUsageDetail_20' ) end [2025-03-27 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:50:23] Production.INFO: ==18699== Releasing lock... [2025-03-27 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:50:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-27 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:51:05 [end_date_ymd] => 2025-03-27 22:51:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:51:05' and `end` < '2025-03-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-03-27 22:51:17] Production.INFO: count ==1838 [2025-03-27 22:51:18] Production.ERROR: pbx CDR StartTime 2025-03-27 19:51:05 - End Time 2025-03-27 22:51:05 [2025-03-27 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777339', 'tblTempUsageDetail_20' ) start [2025-03-27 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777339', 'tblTempUsageDetail_20' ) end [2025-03-27 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777339', 'tblTempVendorCDR_20' ) start [2025-03-27 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777339', 'tblTempVendorCDR_20' ) end [2025-03-27 22:51:18] Production.INFO: ProcessCDR(1,14777339,1,1,2) [2025-03-27 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777339', 'tblTempUsageDetail_20' ) start [2025-03-27 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777339', 'tblTempUsageDetail_20' ) end [2025-03-27 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:51:22] Production.INFO: ==18780== Releasing lock... [2025-03-27 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:51:22] Production.INFO: 42 MB #Memory Used# [2025-03-27 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:52:05 [end_date_ymd] => 2025-03-27 22:52:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:52:05' and `end` < '2025-03-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-03-27 22:52:18] Production.INFO: count ==1836 [2025-03-27 22:52:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:52:05 - End Time 2025-03-27 22:52:05 [2025-03-27 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777344', 'tblTempUsageDetail_20' ) start [2025-03-27 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777344', 'tblTempUsageDetail_20' ) end [2025-03-27 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777344', 'tblTempVendorCDR_20' ) start [2025-03-27 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777344', 'tblTempVendorCDR_20' ) end [2025-03-27 22:52:19] Production.INFO: ProcessCDR(1,14777344,1,1,2) [2025-03-27 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777344', 'tblTempUsageDetail_20' ) start [2025-03-27 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777344', 'tblTempUsageDetail_20' ) end [2025-03-27 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:52:22] Production.INFO: ==18899== Releasing lock... [2025-03-27 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:52:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-27 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:53:05 [end_date_ymd] => 2025-03-27 22:53:05 [RateCDR] => 1 ) [2025-03-27 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:53:05' and `end` < '2025-03-27 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:53:18] Production.INFO: count ==1827 [2025-03-27 22:53:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:53:05 - End Time 2025-03-27 22:53:05 [2025-03-27 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777349', 'tblTempUsageDetail_20' ) start [2025-03-27 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777349', 'tblTempUsageDetail_20' ) end [2025-03-27 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777349', 'tblTempVendorCDR_20' ) start [2025-03-27 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777349', 'tblTempVendorCDR_20' ) end [2025-03-27 22:53:19] Production.INFO: ProcessCDR(1,14777349,1,1,2) [2025-03-27 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777349', 'tblTempUsageDetail_20' ) start [2025-03-27 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777349', 'tblTempUsageDetail_20' ) end [2025-03-27 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:53:22] Production.INFO: ==18985== Releasing lock... [2025-03-27 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:53:22] Production.INFO: 42 MB #Memory Used# [2025-03-27 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:54:05 [end_date_ymd] => 2025-03-27 22:54:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:54:05' and `end` < '2025-03-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-03-27 22:54:18] Production.INFO: count ==1816 [2025-03-27 22:54:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:54:05 - End Time 2025-03-27 22:54:05 [2025-03-27 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777354', 'tblTempUsageDetail_20' ) start [2025-03-27 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777354', 'tblTempUsageDetail_20' ) end [2025-03-27 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777354', 'tblTempVendorCDR_20' ) start [2025-03-27 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777354', 'tblTempVendorCDR_20' ) end [2025-03-27 22:54:19] Production.INFO: ProcessCDR(1,14777354,1,1,2) [2025-03-27 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777354', 'tblTempUsageDetail_20' ) start [2025-03-27 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777354', 'tblTempUsageDetail_20' ) end [2025-03-27 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:54:22] Production.INFO: ==19073== Releasing lock... [2025-03-27 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:54:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-27 22:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:55:06 [end_date_ymd] => 2025-03-27 22:55:06 [RateCDR] => 1 ) [2025-03-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-03-27 19:55:06' and `end` < '2025-03-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-03-27 22:55:18] Production.INFO: count ==1819 [2025-03-27 22:55:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:55:06 - End Time 2025-03-27 22:55:06 [2025-03-27 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777359', 'tblTempUsageDetail_20' ) start [2025-03-27 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777359', 'tblTempUsageDetail_20' ) end [2025-03-27 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777359', 'tblTempVendorCDR_20' ) start [2025-03-27 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777359', 'tblTempVendorCDR_20' ) end [2025-03-27 22:55:19] Production.INFO: ProcessCDR(1,14777359,1,1,2) [2025-03-27 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777359', 'tblTempUsageDetail_20' ) start [2025-03-27 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777359', 'tblTempUsageDetail_20' ) end [2025-03-27 22:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:55:23] Production.INFO: ==19165== Releasing lock... [2025-03-27 22:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:55:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-27 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:56:06 [end_date_ymd] => 2025-03-27 22:56:06 [RateCDR] => 1 ) [2025-03-27 22:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 19:56:06' and `end` < '2025-03-27 22:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 22:56:19] Production.INFO: count ==1806 [2025-03-27 22:56:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:56:06 - End Time 2025-03-27 22:56:06 [2025-03-27 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777364', 'tblTempUsageDetail_20' ) start [2025-03-27 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777364', 'tblTempUsageDetail_20' ) end [2025-03-27 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777364', 'tblTempVendorCDR_20' ) start [2025-03-27 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777364', 'tblTempVendorCDR_20' ) end [2025-03-27 22:56:19] Production.INFO: ProcessCDR(1,14777364,1,1,2) [2025-03-27 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777364', 'tblTempUsageDetail_20' ) start [2025-03-27 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777364', 'tblTempUsageDetail_20' ) end [2025-03-27 22:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:56:23] Production.INFO: ==19251== Releasing lock... [2025-03-27 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:56:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-27 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:57:05 [end_date_ymd] => 2025-03-27 22:57:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:57:05' and `end` < '2025-03-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-03-27 22:57:18] Production.INFO: count ==1778 [2025-03-27 22:57:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:57:05 - End Time 2025-03-27 22:57:05 [2025-03-27 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777369', 'tblTempUsageDetail_20' ) start [2025-03-27 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777369', 'tblTempUsageDetail_20' ) end [2025-03-27 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777369', 'tblTempVendorCDR_20' ) start [2025-03-27 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777369', 'tblTempVendorCDR_20' ) end [2025-03-27 22:57:19] Production.INFO: ProcessCDR(1,14777369,1,1,2) [2025-03-27 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777369', 'tblTempUsageDetail_20' ) start [2025-03-27 22:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777369', 'tblTempUsageDetail_20' ) end [2025-03-27 22:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:57:24] Production.INFO: ==19347== Releasing lock... [2025-03-27 22:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:57:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-27 22:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:58:06 [end_date_ymd] => 2025-03-27 22:58:06 [RateCDR] => 1 ) [2025-03-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-03-27 19:58:06' and `end` < '2025-03-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-03-27 22:58:19] Production.INFO: count ==1770 [2025-03-27 22:58:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:58:06 - End Time 2025-03-27 22:58:06 [2025-03-27 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777374', 'tblTempUsageDetail_20' ) start [2025-03-27 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777374', 'tblTempUsageDetail_20' ) end [2025-03-27 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777374', 'tblTempVendorCDR_20' ) start [2025-03-27 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777374', 'tblTempVendorCDR_20' ) end [2025-03-27 22:58:19] Production.INFO: ProcessCDR(1,14777374,1,1,2) [2025-03-27 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777374', 'tblTempUsageDetail_20' ) start [2025-03-27 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777374', 'tblTempUsageDetail_20' ) end [2025-03-27 22:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:58:23] Production.INFO: ==19432== Releasing lock... [2025-03-27 22:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:58:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-27 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 19:59:05 [end_date_ymd] => 2025-03-27 22:59:05 [RateCDR] => 1 ) [2025-03-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-03-27 19:59:05' and `end` < '2025-03-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-03-27 22:59:18] Production.INFO: count ==1761 [2025-03-27 22:59:19] Production.ERROR: pbx CDR StartTime 2025-03-27 19:59:05 - End Time 2025-03-27 22:59:05 [2025-03-27 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777379', 'tblTempUsageDetail_20' ) start [2025-03-27 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777379', 'tblTempUsageDetail_20' ) end [2025-03-27 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777379', 'tblTempVendorCDR_20' ) start [2025-03-27 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777379', 'tblTempVendorCDR_20' ) end [2025-03-27 22:59:19] Production.INFO: ProcessCDR(1,14777379,1,1,2) [2025-03-27 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777379', 'tblTempUsageDetail_20' ) start [2025-03-27 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777379', 'tblTempUsageDetail_20' ) end [2025-03-27 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 22:59:22] Production.INFO: ==19513== Releasing lock... [2025-03-27 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 22:59:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-27 23:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:00:07 [end_date_ymd] => 2025-03-27 23:00:07 [RateCDR] => 1 ) [2025-03-27 23:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:00:07' and `end` < '2025-03-27 23:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:00:19] Production.INFO: count ==1802 [2025-03-27 23:00:20] Production.ERROR: pbx CDR StartTime 2025-03-27 20:00:07 - End Time 2025-03-27 23:00:07 [2025-03-27 23:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777385', 'tblTempUsageDetail_20' ) start [2025-03-27 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777385', 'tblTempUsageDetail_20' ) end [2025-03-27 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777385', 'tblTempVendorCDR_20' ) start [2025-03-27 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777385', 'tblTempVendorCDR_20' ) end [2025-03-27 23:00:20] Production.INFO: ProcessCDR(1,14777385,1,1,2) [2025-03-27 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777385', 'tblTempUsageDetail_20' ) start [2025-03-27 23:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777385', 'tblTempUsageDetail_20' ) end [2025-03-27 23:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:00:25] Production.INFO: ==19591== Releasing lock... [2025-03-27 23:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:00:25] Production.INFO: 41.5 MB #Memory Used# [2025-03-27 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:01:05 [end_date_ymd] => 2025-03-27 23:01:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:01:05' and `end` < '2025-03-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-03-27 23:01:17] Production.INFO: count ==1771 [2025-03-27 23:01:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:01:05 - End Time 2025-03-27 23:01:05 [2025-03-27 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777390', 'tblTempUsageDetail_20' ) start [2025-03-27 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777390', 'tblTempUsageDetail_20' ) end [2025-03-27 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777390', 'tblTempVendorCDR_20' ) start [2025-03-27 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777390', 'tblTempVendorCDR_20' ) end [2025-03-27 23:01:18] Production.INFO: ProcessCDR(1,14777390,1,1,2) [2025-03-27 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777390', 'tblTempUsageDetail_20' ) start [2025-03-27 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777390', 'tblTempUsageDetail_20' ) end [2025-03-27 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:01:22] Production.INFO: ==19688== Releasing lock... [2025-03-27 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:01:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-27 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:02:06 [end_date_ymd] => 2025-03-27 23:02:06 [RateCDR] => 1 ) [2025-03-27 23:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:02:06' and `end` < '2025-03-27 23:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:02:18] Production.INFO: count ==1771 [2025-03-27 23:02:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:02:06 - End Time 2025-03-27 23:02:06 [2025-03-27 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777395', 'tblTempUsageDetail_20' ) start [2025-03-27 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777395', 'tblTempUsageDetail_20' ) end [2025-03-27 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777395', 'tblTempVendorCDR_20' ) start [2025-03-27 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777395', 'tblTempVendorCDR_20' ) end [2025-03-27 23:02:19] Production.INFO: ProcessCDR(1,14777395,1,1,2) [2025-03-27 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777395', 'tblTempUsageDetail_20' ) start [2025-03-27 23:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777395', 'tblTempUsageDetail_20' ) end [2025-03-27 23:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:02:24] Production.INFO: ==19847== Releasing lock... [2025-03-27 23:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:02:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-27 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:03:05 [end_date_ymd] => 2025-03-27 23:03:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:03:05' and `end` < '2025-03-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-03-27 23:03:18] Production.INFO: count ==1755 [2025-03-27 23:03:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:03:05 - End Time 2025-03-27 23:03:05 [2025-03-27 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777400', 'tblTempUsageDetail_20' ) start [2025-03-27 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777400', 'tblTempUsageDetail_20' ) end [2025-03-27 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777400', 'tblTempVendorCDR_20' ) start [2025-03-27 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777400', 'tblTempVendorCDR_20' ) end [2025-03-27 23:03:18] Production.INFO: ProcessCDR(1,14777400,1,1,2) [2025-03-27 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777400', 'tblTempUsageDetail_20' ) start [2025-03-27 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777400', 'tblTempUsageDetail_20' ) end [2025-03-27 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:03:22] Production.INFO: ==19923== Releasing lock... [2025-03-27 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:03:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-27 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:04:05 [end_date_ymd] => 2025-03-27 23:04:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:04:05' and `end` < '2025-03-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-03-27 23:04:18] Production.INFO: count ==1755 [2025-03-27 23:04:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:04:05 - End Time 2025-03-27 23:04:05 [2025-03-27 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777405', 'tblTempUsageDetail_20' ) start [2025-03-27 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777405', 'tblTempUsageDetail_20' ) end [2025-03-27 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777405', 'tblTempVendorCDR_20' ) start [2025-03-27 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777405', 'tblTempVendorCDR_20' ) end [2025-03-27 23:04:18] Production.INFO: ProcessCDR(1,14777405,1,1,2) [2025-03-27 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777405', 'tblTempUsageDetail_20' ) start [2025-03-27 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777405', 'tblTempUsageDetail_20' ) end [2025-03-27 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:04:22] Production.INFO: ==19998== Releasing lock... [2025-03-27 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:04:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-27 23:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:05:06 [end_date_ymd] => 2025-03-27 23:05:06 [RateCDR] => 1 ) [2025-03-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-03-27 20:05:06' and `end` < '2025-03-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-03-27 23:05:18] Production.INFO: count ==1753 [2025-03-27 23:05:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:05:06 - End Time 2025-03-27 23:05:06 [2025-03-27 23:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777410', 'tblTempUsageDetail_20' ) start [2025-03-27 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777410', 'tblTempUsageDetail_20' ) end [2025-03-27 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777410', 'tblTempVendorCDR_20' ) start [2025-03-27 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777410', 'tblTempVendorCDR_20' ) end [2025-03-27 23:05:19] Production.INFO: ProcessCDR(1,14777410,1,1,2) [2025-03-27 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777410', 'tblTempUsageDetail_20' ) start [2025-03-27 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777410', 'tblTempUsageDetail_20' ) end [2025-03-27 23:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:05:23] Production.INFO: ==20155== Releasing lock... [2025-03-27 23:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:05:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-27 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:06:05 [end_date_ymd] => 2025-03-27 23:06:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:06:05' and `end` < '2025-03-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-03-27 23:06:18] Production.INFO: count ==1749 [2025-03-27 23:06:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:06:05 - End Time 2025-03-27 23:06:05 [2025-03-27 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777415', 'tblTempUsageDetail_20' ) start [2025-03-27 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777415', 'tblTempUsageDetail_20' ) end [2025-03-27 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777415', 'tblTempVendorCDR_20' ) start [2025-03-27 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777415', 'tblTempVendorCDR_20' ) end [2025-03-27 23:06:19] Production.INFO: ProcessCDR(1,14777415,1,1,2) [2025-03-27 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777415', 'tblTempUsageDetail_20' ) start [2025-03-27 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777415', 'tblTempUsageDetail_20' ) end [2025-03-27 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:06:22] Production.INFO: ==20229== Releasing lock... [2025-03-27 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:06:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-27 23:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:07:06 [end_date_ymd] => 2025-03-27 23:07:06 [RateCDR] => 1 ) [2025-03-27 23:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:07:06' and `end` < '2025-03-27 23:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:07:18] Production.INFO: count ==1746 [2025-03-27 23:07:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:07:06 - End Time 2025-03-27 23:07:06 [2025-03-27 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777420', 'tblTempUsageDetail_20' ) start [2025-03-27 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777420', 'tblTempUsageDetail_20' ) end [2025-03-27 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777420', 'tblTempVendorCDR_20' ) start [2025-03-27 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777420', 'tblTempVendorCDR_20' ) end [2025-03-27 23:07:19] Production.INFO: ProcessCDR(1,14777420,1,1,2) [2025-03-27 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777420', 'tblTempUsageDetail_20' ) start [2025-03-27 23:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777420', 'tblTempUsageDetail_20' ) end [2025-03-27 23:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:07:23] Production.INFO: ==20310== Releasing lock... [2025-03-27 23:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:07:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-27 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:08:05 [end_date_ymd] => 2025-03-27 23:08:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:08:05' and `end` < '2025-03-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-03-27 23:08:17] Production.INFO: count ==1780 [2025-03-27 23:08:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:08:05 - End Time 2025-03-27 23:08:05 [2025-03-27 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777425', 'tblTempUsageDetail_20' ) start [2025-03-27 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777425', 'tblTempUsageDetail_20' ) end [2025-03-27 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777425', 'tblTempVendorCDR_20' ) start [2025-03-27 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777425', 'tblTempVendorCDR_20' ) end [2025-03-27 23:08:18] Production.INFO: ProcessCDR(1,14777425,1,1,2) [2025-03-27 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777425', 'tblTempUsageDetail_20' ) start [2025-03-27 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777425', 'tblTempUsageDetail_20' ) end [2025-03-27 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:08:21] Production.INFO: ==20470== Releasing lock... [2025-03-27 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:08:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-27 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:09:05 [end_date_ymd] => 2025-03-27 23:09:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:09:05' and `end` < '2025-03-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-03-27 23:09:18] Production.INFO: count ==1778 [2025-03-27 23:09:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:09:05 - End Time 2025-03-27 23:09:05 [2025-03-27 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777430', 'tblTempUsageDetail_20' ) start [2025-03-27 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777430', 'tblTempUsageDetail_20' ) end [2025-03-27 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777430', 'tblTempVendorCDR_20' ) start [2025-03-27 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777430', 'tblTempVendorCDR_20' ) end [2025-03-27 23:09:19] Production.INFO: ProcessCDR(1,14777430,1,1,2) [2025-03-27 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777430', 'tblTempUsageDetail_20' ) start [2025-03-27 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777430', 'tblTempUsageDetail_20' ) end [2025-03-27 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:09:22] Production.INFO: ==20606== Releasing lock... [2025-03-27 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:09:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-27 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:10:06 [end_date_ymd] => 2025-03-27 23:10:06 [RateCDR] => 1 ) [2025-03-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-03-27 20:10:06' and `end` < '2025-03-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-03-27 23:10:19] Production.INFO: count ==1751 [2025-03-27 23:10:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:10:06 - End Time 2025-03-27 23:10:06 [2025-03-27 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777435', 'tblTempUsageDetail_20' ) start [2025-03-27 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777435', 'tblTempUsageDetail_20' ) end [2025-03-27 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777435', 'tblTempVendorCDR_20' ) start [2025-03-27 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777435', 'tblTempVendorCDR_20' ) end [2025-03-27 23:10:19] Production.INFO: ProcessCDR(1,14777435,1,1,2) [2025-03-27 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777435', 'tblTempUsageDetail_20' ) start [2025-03-27 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777435', 'tblTempUsageDetail_20' ) end [2025-03-27 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:10:23] Production.INFO: ==20713== Releasing lock... [2025-03-27 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:10:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-27 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:11:06 [end_date_ymd] => 2025-03-27 23:11:06 [RateCDR] => 1 ) [2025-03-27 23:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:11:06' and `end` < '2025-03-27 23:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:11:18] Production.INFO: count ==1712 [2025-03-27 23:11:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:11:06 - End Time 2025-03-27 23:11:06 [2025-03-27 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777441', 'tblTempUsageDetail_20' ) start [2025-03-27 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777441', 'tblTempUsageDetail_20' ) end [2025-03-27 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777441', 'tblTempVendorCDR_20' ) start [2025-03-27 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777441', 'tblTempVendorCDR_20' ) end [2025-03-27 23:11:19] Production.INFO: ProcessCDR(1,14777441,1,1,2) [2025-03-27 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777441', 'tblTempUsageDetail_20' ) start [2025-03-27 23:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777441', 'tblTempUsageDetail_20' ) end [2025-03-27 23:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:11:24] Production.INFO: ==20829== Releasing lock... [2025-03-27 23:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:11:24] Production.INFO: 41 MB #Memory Used# [2025-03-27 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:12:05 [end_date_ymd] => 2025-03-27 23:12:05 [RateCDR] => 1 ) [2025-03-27 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:12:05' and `end` < '2025-03-27 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:12:17] Production.INFO: count ==1722 [2025-03-27 23:12:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:12:05 - End Time 2025-03-27 23:12:05 [2025-03-27 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777446', 'tblTempUsageDetail_20' ) start [2025-03-27 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777446', 'tblTempUsageDetail_20' ) end [2025-03-27 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777446', 'tblTempVendorCDR_20' ) start [2025-03-27 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777446', 'tblTempVendorCDR_20' ) end [2025-03-27 23:12:18] Production.INFO: ProcessCDR(1,14777446,1,1,2) [2025-03-27 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777446', 'tblTempUsageDetail_20' ) start [2025-03-27 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777446', 'tblTempUsageDetail_20' ) end [2025-03-27 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:12:22] Production.INFO: ==21017== Releasing lock... [2025-03-27 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:12:22] Production.INFO: 41 MB #Memory Used# [2025-03-27 23:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:13:06 [end_date_ymd] => 2025-03-27 23:13:06 [RateCDR] => 1 ) [2025-03-27 23:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:13:06' and `end` < '2025-03-27 23:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:13:18] Production.INFO: count ==1730 [2025-03-27 23:13:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:13:06 - End Time 2025-03-27 23:13:06 [2025-03-27 23:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777451', 'tblTempUsageDetail_20' ) start [2025-03-27 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777451', 'tblTempUsageDetail_20' ) end [2025-03-27 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777451', 'tblTempVendorCDR_20' ) start [2025-03-27 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777451', 'tblTempVendorCDR_20' ) end [2025-03-27 23:13:19] Production.INFO: ProcessCDR(1,14777451,1,1,2) [2025-03-27 23:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777451', 'tblTempUsageDetail_20' ) start [2025-03-27 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777451', 'tblTempUsageDetail_20' ) end [2025-03-27 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:13:22] Production.INFO: ==21121== Releasing lock... [2025-03-27 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:13:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-27 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:14:05 [end_date_ymd] => 2025-03-27 23:14:05 [RateCDR] => 1 ) [2025-03-27 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:14:05' and `end` < '2025-03-27 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:14:17] Production.INFO: count ==1730 [2025-03-27 23:14:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:14:05 - End Time 2025-03-27 23:14:05 [2025-03-27 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777456', 'tblTempUsageDetail_20' ) start [2025-03-27 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777456', 'tblTempUsageDetail_20' ) end [2025-03-27 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777456', 'tblTempVendorCDR_20' ) start [2025-03-27 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777456', 'tblTempVendorCDR_20' ) end [2025-03-27 23:14:18] Production.INFO: ProcessCDR(1,14777456,1,1,2) [2025-03-27 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777456', 'tblTempUsageDetail_20' ) start [2025-03-27 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777456', 'tblTempUsageDetail_20' ) end [2025-03-27 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:14:21] Production.INFO: ==21229== Releasing lock... [2025-03-27 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:14:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-27 23:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:15:06 [end_date_ymd] => 2025-03-27 23:15:06 [RateCDR] => 1 ) [2025-03-27 23:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:15:06' and `end` < '2025-03-27 23:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:15:18] Production.INFO: count ==1730 [2025-03-27 23:15:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:15:06 - End Time 2025-03-27 23:15:06 [2025-03-27 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777461', 'tblTempUsageDetail_20' ) start [2025-03-27 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777461', 'tblTempUsageDetail_20' ) end [2025-03-27 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777461', 'tblTempVendorCDR_20' ) start [2025-03-27 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777461', 'tblTempVendorCDR_20' ) end [2025-03-27 23:15:19] Production.INFO: ProcessCDR(1,14777461,1,1,2) [2025-03-27 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777461', 'tblTempUsageDetail_20' ) start [2025-03-27 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777461', 'tblTempUsageDetail_20' ) end [2025-03-27 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:15:22] Production.INFO: ==21418== Releasing lock... [2025-03-27 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:15:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-27 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:16:06 [end_date_ymd] => 2025-03-27 23:16:06 [RateCDR] => 1 ) [2025-03-27 23:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:16:06' and `end` < '2025-03-27 23:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:16:18] Production.INFO: count ==1726 [2025-03-27 23:16:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:16:06 - End Time 2025-03-27 23:16:06 [2025-03-27 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777466', 'tblTempUsageDetail_20' ) start [2025-03-27 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777466', 'tblTempUsageDetail_20' ) end [2025-03-27 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777466', 'tblTempVendorCDR_20' ) start [2025-03-27 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777466', 'tblTempVendorCDR_20' ) end [2025-03-27 23:16:19] Production.INFO: ProcessCDR(1,14777466,1,1,2) [2025-03-27 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777466', 'tblTempUsageDetail_20' ) start [2025-03-27 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777466', 'tblTempUsageDetail_20' ) end [2025-03-27 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:16:22] Production.INFO: ==21524== Releasing lock... [2025-03-27 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:16:22] Production.INFO: 41 MB #Memory Used# [2025-03-27 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:17:05 [end_date_ymd] => 2025-03-27 23:17:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:17:05' and `end` < '2025-03-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-03-27 23:17:18] Production.INFO: count ==1723 [2025-03-27 23:17:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:17:05 - End Time 2025-03-27 23:17:05 [2025-03-27 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777471', 'tblTempUsageDetail_20' ) start [2025-03-27 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777471', 'tblTempUsageDetail_20' ) end [2025-03-27 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777471', 'tblTempVendorCDR_20' ) start [2025-03-27 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777471', 'tblTempVendorCDR_20' ) end [2025-03-27 23:17:18] Production.INFO: ProcessCDR(1,14777471,1,1,2) [2025-03-27 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777471', 'tblTempUsageDetail_20' ) start [2025-03-27 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777471', 'tblTempUsageDetail_20' ) end [2025-03-27 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:17:22] Production.INFO: ==21626== Releasing lock... [2025-03-27 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:17:22] Production.INFO: 41 MB #Memory Used# [2025-03-27 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:18:05 [end_date_ymd] => 2025-03-27 23:18:05 [RateCDR] => 1 ) [2025-03-27 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:18:05' and `end` < '2025-03-27 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:18:18] Production.INFO: count ==1727 [2025-03-27 23:18:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:18:05 - End Time 2025-03-27 23:18:05 [2025-03-27 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777476', 'tblTempUsageDetail_20' ) start [2025-03-27 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777476', 'tblTempUsageDetail_20' ) end [2025-03-27 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777476', 'tblTempVendorCDR_20' ) start [2025-03-27 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777476', 'tblTempVendorCDR_20' ) end [2025-03-27 23:18:19] Production.INFO: ProcessCDR(1,14777476,1,1,2) [2025-03-27 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777476', 'tblTempUsageDetail_20' ) start [2025-03-27 23:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777476', 'tblTempUsageDetail_20' ) end [2025-03-27 23:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:18:24] Production.INFO: ==21737== Releasing lock... [2025-03-27 23:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:18:24] Production.INFO: 41 MB #Memory Used# [2025-03-27 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:19:05 [end_date_ymd] => 2025-03-27 23:19:05 [RateCDR] => 1 ) [2025-03-27 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:19:05' and `end` < '2025-03-27 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:19:18] Production.INFO: count ==1724 [2025-03-27 23:19:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:19:05 - End Time 2025-03-27 23:19:05 [2025-03-27 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777481', 'tblTempUsageDetail_20' ) start [2025-03-27 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777481', 'tblTempUsageDetail_20' ) end [2025-03-27 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777481', 'tblTempVendorCDR_20' ) start [2025-03-27 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777481', 'tblTempVendorCDR_20' ) end [2025-03-27 23:19:19] Production.INFO: ProcessCDR(1,14777481,1,1,2) [2025-03-27 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777481', 'tblTempUsageDetail_20' ) start [2025-03-27 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777481', 'tblTempUsageDetail_20' ) end [2025-03-27 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:19:22] Production.INFO: ==21838== Releasing lock... [2025-03-27 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:19:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-27 23:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:20:07 [end_date_ymd] => 2025-03-27 23:20:07 [RateCDR] => 1 ) [2025-03-27 23:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:20:07' and `end` < '2025-03-27 23:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:20:19] Production.INFO: count ==1696 [2025-03-27 23:20:20] Production.ERROR: pbx CDR StartTime 2025-03-27 20:20:07 - End Time 2025-03-27 23:20:07 [2025-03-27 23:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777487', 'tblTempUsageDetail_20' ) start [2025-03-27 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777487', 'tblTempUsageDetail_20' ) end [2025-03-27 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777487', 'tblTempVendorCDR_20' ) start [2025-03-27 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777487', 'tblTempVendorCDR_20' ) end [2025-03-27 23:20:20] Production.INFO: ProcessCDR(1,14777487,1,1,2) [2025-03-27 23:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777487', 'tblTempUsageDetail_20' ) start [2025-03-27 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777487', 'tblTempUsageDetail_20' ) end [2025-03-27 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:20:23] Production.INFO: ==21947== Releasing lock... [2025-03-27 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:20:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-27 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:21:05 [end_date_ymd] => 2025-03-27 23:21:05 [RateCDR] => 1 ) [2025-03-27 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:21:05' and `end` < '2025-03-27 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:21:18] Production.INFO: count ==1668 [2025-03-27 23:21:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:21:05 - End Time 2025-03-27 23:21:05 [2025-03-27 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777492', 'tblTempUsageDetail_20' ) start [2025-03-27 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777492', 'tblTempUsageDetail_20' ) end [2025-03-27 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777492', 'tblTempVendorCDR_20' ) start [2025-03-27 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777492', 'tblTempVendorCDR_20' ) end [2025-03-27 23:21:18] Production.INFO: ProcessCDR(1,14777492,1,1,2) [2025-03-27 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777492', 'tblTempUsageDetail_20' ) start [2025-03-27 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777492', 'tblTempUsageDetail_20' ) end [2025-03-27 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:21:22] Production.INFO: ==22053== Releasing lock... [2025-03-27 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:21:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-27 23:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:22:06 [end_date_ymd] => 2025-03-27 23:22:06 [RateCDR] => 1 ) [2025-03-27 23:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:22:06' and `end` < '2025-03-27 23:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:22:18] Production.INFO: count ==1665 [2025-03-27 23:22:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:22:06 - End Time 2025-03-27 23:22:06 [2025-03-27 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777497', 'tblTempUsageDetail_20' ) start [2025-03-27 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777497', 'tblTempUsageDetail_20' ) end [2025-03-27 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777497', 'tblTempVendorCDR_20' ) start [2025-03-27 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777497', 'tblTempVendorCDR_20' ) end [2025-03-27 23:22:19] Production.INFO: ProcessCDR(1,14777497,1,1,2) [2025-03-27 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777497', 'tblTempUsageDetail_20' ) start [2025-03-27 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777497', 'tblTempUsageDetail_20' ) end [2025-03-27 23:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:22:23] Production.INFO: ==22158== Releasing lock... [2025-03-27 23:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:22:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-27 23:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:23:04 [end_date_ymd] => 2025-03-27 23:23:04 [RateCDR] => 1 ) [2025-03-27 23:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:23:04' and `end` < '2025-03-27 23:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:23:17] Production.INFO: count ==1663 [2025-03-27 23:23:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:23:04 - End Time 2025-03-27 23:23:04 [2025-03-27 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777502', 'tblTempUsageDetail_20' ) start [2025-03-27 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777502', 'tblTempUsageDetail_20' ) end [2025-03-27 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777502', 'tblTempVendorCDR_20' ) start [2025-03-27 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777502', 'tblTempVendorCDR_20' ) end [2025-03-27 23:23:18] Production.INFO: ProcessCDR(1,14777502,1,1,2) [2025-03-27 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777502', 'tblTempUsageDetail_20' ) start [2025-03-27 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777502', 'tblTempUsageDetail_20' ) end [2025-03-27 23:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:23:23] Production.INFO: ==22305== Releasing lock... [2025-03-27 23:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:23:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-27 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:24:05 [end_date_ymd] => 2025-03-27 23:24:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:24:05' and `end` < '2025-03-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-03-27 23:24:17] Production.INFO: count ==1661 [2025-03-27 23:24:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:24:05 - End Time 2025-03-27 23:24:05 [2025-03-27 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777507', 'tblTempUsageDetail_20' ) start [2025-03-27 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777507', 'tblTempUsageDetail_20' ) end [2025-03-27 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777507', 'tblTempVendorCDR_20' ) start [2025-03-27 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777507', 'tblTempVendorCDR_20' ) end [2025-03-27 23:24:18] Production.INFO: ProcessCDR(1,14777507,1,1,2) [2025-03-27 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777507', 'tblTempUsageDetail_20' ) start [2025-03-27 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777507', 'tblTempUsageDetail_20' ) end [2025-03-27 23:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:24:23] Production.INFO: ==22419== Releasing lock... [2025-03-27 23:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:24:23] Production.INFO: 41 MB #Memory Used# [2025-03-27 23:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:25:04 [end_date_ymd] => 2025-03-27 23:25:04 [RateCDR] => 1 ) [2025-03-27 23:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:25:04' and `end` < '2025-03-27 23:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:25:17] Production.INFO: count ==1662 [2025-03-27 23:25:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:25:04 - End Time 2025-03-27 23:25:04 [2025-03-27 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777512', 'tblTempUsageDetail_20' ) start [2025-03-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777512', 'tblTempUsageDetail_20' ) end [2025-03-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777512', 'tblTempVendorCDR_20' ) start [2025-03-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777512', 'tblTempVendorCDR_20' ) end [2025-03-27 23:25:18] Production.INFO: ProcessCDR(1,14777512,1,1,2) [2025-03-27 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777512', 'tblTempUsageDetail_20' ) start [2025-03-27 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777512', 'tblTempUsageDetail_20' ) end [2025-03-27 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:25:21] Production.INFO: ==22526== Releasing lock... [2025-03-27 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:25:21] Production.INFO: 41 MB #Memory Used# [2025-03-27 23:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:26:06 [end_date_ymd] => 2025-03-27 23:26:06 [RateCDR] => 1 ) [2025-03-27 23:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:26:06' and `end` < '2025-03-27 23:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:26:18] Production.INFO: count ==1661 [2025-03-27 23:26:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:26:06 - End Time 2025-03-27 23:26:06 [2025-03-27 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777517', 'tblTempUsageDetail_20' ) start [2025-03-27 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777517', 'tblTempUsageDetail_20' ) end [2025-03-27 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777517', 'tblTempVendorCDR_20' ) start [2025-03-27 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777517', 'tblTempVendorCDR_20' ) end [2025-03-27 23:26:19] Production.INFO: ProcessCDR(1,14777517,1,1,2) [2025-03-27 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777517', 'tblTempUsageDetail_20' ) start [2025-03-27 23:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777517', 'tblTempUsageDetail_20' ) end [2025-03-27 23:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:26:24] Production.INFO: ==22633== Releasing lock... [2025-03-27 23:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:26:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-27 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:27:05 [end_date_ymd] => 2025-03-27 23:27:05 [RateCDR] => 1 ) [2025-03-27 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:27:05' and `end` < '2025-03-27 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:27:18] Production.INFO: count ==1653 [2025-03-27 23:27:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:27:05 - End Time 2025-03-27 23:27:05 [2025-03-27 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777522', 'tblTempUsageDetail_20' ) start [2025-03-27 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777522', 'tblTempUsageDetail_20' ) end [2025-03-27 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777522', 'tblTempVendorCDR_20' ) start [2025-03-27 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777522', 'tblTempVendorCDR_20' ) end [2025-03-27 23:27:18] Production.INFO: ProcessCDR(1,14777522,1,1,2) [2025-03-27 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777522', 'tblTempUsageDetail_20' ) start [2025-03-27 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777522', 'tblTempUsageDetail_20' ) end [2025-03-27 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:27:22] Production.INFO: ==22726== Releasing lock... [2025-03-27 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:27:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-27 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:28:05 [end_date_ymd] => 2025-03-27 23:28:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:28:05' and `end` < '2025-03-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-03-27 23:28:18] Production.INFO: count ==1649 [2025-03-27 23:28:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:28:05 - End Time 2025-03-27 23:28:05 [2025-03-27 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777527', 'tblTempUsageDetail_20' ) start [2025-03-27 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777527', 'tblTempUsageDetail_20' ) end [2025-03-27 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777527', 'tblTempVendorCDR_20' ) start [2025-03-27 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777527', 'tblTempVendorCDR_20' ) end [2025-03-27 23:28:19] Production.INFO: ProcessCDR(1,14777527,1,1,2) [2025-03-27 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777527', 'tblTempUsageDetail_20' ) start [2025-03-27 23:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777527', 'tblTempUsageDetail_20' ) end [2025-03-27 23:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:28:24] Production.INFO: ==22810== Releasing lock... [2025-03-27 23:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:28:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-27 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:29:05 [end_date_ymd] => 2025-03-27 23:29:05 [RateCDR] => 1 ) [2025-03-27 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:29:05' and `end` < '2025-03-27 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:29:18] Production.INFO: count ==1649 [2025-03-27 23:29:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:29:05 - End Time 2025-03-27 23:29:05 [2025-03-27 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777532', 'tblTempUsageDetail_20' ) start [2025-03-27 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777532', 'tblTempUsageDetail_20' ) end [2025-03-27 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777532', 'tblTempVendorCDR_20' ) start [2025-03-27 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777532', 'tblTempVendorCDR_20' ) end [2025-03-27 23:29:19] Production.INFO: ProcessCDR(1,14777532,1,1,2) [2025-03-27 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777532', 'tblTempUsageDetail_20' ) start [2025-03-27 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777532', 'tblTempUsageDetail_20' ) end [2025-03-27 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:29:22] Production.INFO: ==22888== Releasing lock... [2025-03-27 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:29:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-27 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:30:06 [end_date_ymd] => 2025-03-27 23:30:06 [RateCDR] => 1 ) [2025-03-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-03-27 20:30:06' and `end` < '2025-03-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-03-27 23:30:19] Production.INFO: count ==1647 [2025-03-27 23:30:20] Production.ERROR: pbx CDR StartTime 2025-03-27 20:30:06 - End Time 2025-03-27 23:30:06 [2025-03-27 23:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777538', 'tblTempUsageDetail_20' ) start [2025-03-27 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777538', 'tblTempUsageDetail_20' ) end [2025-03-27 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777538', 'tblTempVendorCDR_20' ) start [2025-03-27 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777538', 'tblTempVendorCDR_20' ) end [2025-03-27 23:30:20] Production.INFO: ProcessCDR(1,14777538,1,1,2) [2025-03-27 23:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777538', 'tblTempUsageDetail_20' ) start [2025-03-27 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777538', 'tblTempUsageDetail_20' ) end [2025-03-27 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:30:23] Production.INFO: ==22978== Releasing lock... [2025-03-27 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:30:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-27 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:31:05 [end_date_ymd] => 2025-03-27 23:31:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:31:05' and `end` < '2025-03-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-03-27 23:31:18] Production.INFO: count ==1644 [2025-03-27 23:31:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:31:05 - End Time 2025-03-27 23:31:05 [2025-03-27 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777543', 'tblTempUsageDetail_20' ) start [2025-03-27 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777543', 'tblTempUsageDetail_20' ) end [2025-03-27 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777543', 'tblTempVendorCDR_20' ) start [2025-03-27 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777543', 'tblTempVendorCDR_20' ) end [2025-03-27 23:31:18] Production.INFO: ProcessCDR(1,14777543,1,1,2) [2025-03-27 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777543', 'tblTempUsageDetail_20' ) start [2025-03-27 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777543', 'tblTempUsageDetail_20' ) end [2025-03-27 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:31:22] Production.INFO: ==23056== Releasing lock... [2025-03-27 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:31:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-27 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:32:06 [end_date_ymd] => 2025-03-27 23:32:06 [RateCDR] => 1 ) [2025-03-27 23:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:32:06' and `end` < '2025-03-27 23:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:32:18] Production.INFO: count ==1629 [2025-03-27 23:32:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:32:06 - End Time 2025-03-27 23:32:06 [2025-03-27 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777548', 'tblTempUsageDetail_20' ) start [2025-03-27 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777548', 'tblTempUsageDetail_20' ) end [2025-03-27 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777548', 'tblTempVendorCDR_20' ) start [2025-03-27 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777548', 'tblTempVendorCDR_20' ) end [2025-03-27 23:32:19] Production.INFO: ProcessCDR(1,14777548,1,1,2) [2025-03-27 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777548', 'tblTempUsageDetail_20' ) start [2025-03-27 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777548', 'tblTempUsageDetail_20' ) end [2025-03-27 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:32:23] Production.INFO: ==23135== Releasing lock... [2025-03-27 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:32:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-27 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:33:05 [end_date_ymd] => 2025-03-27 23:33:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:33:05' and `end` < '2025-03-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-03-27 23:33:18] Production.INFO: count ==1609 [2025-03-27 23:33:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:33:05 - End Time 2025-03-27 23:33:05 [2025-03-27 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777553', 'tblTempUsageDetail_20' ) start [2025-03-27 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777553', 'tblTempUsageDetail_20' ) end [2025-03-27 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777553', 'tblTempVendorCDR_20' ) start [2025-03-27 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777553', 'tblTempVendorCDR_20' ) end [2025-03-27 23:33:18] Production.INFO: ProcessCDR(1,14777553,1,1,2) [2025-03-27 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777553', 'tblTempUsageDetail_20' ) start [2025-03-27 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777553', 'tblTempUsageDetail_20' ) end [2025-03-27 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:33:22] Production.INFO: ==23210== Releasing lock... [2025-03-27 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:33:22] Production.INFO: 40 MB #Memory Used# [2025-03-27 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:34:05 [end_date_ymd] => 2025-03-27 23:34:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:34:05' and `end` < '2025-03-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-03-27 23:34:18] Production.INFO: count ==1609 [2025-03-27 23:34:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:34:05 - End Time 2025-03-27 23:34:05 [2025-03-27 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777558', 'tblTempUsageDetail_20' ) start [2025-03-27 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777558', 'tblTempUsageDetail_20' ) end [2025-03-27 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777558', 'tblTempVendorCDR_20' ) start [2025-03-27 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777558', 'tblTempVendorCDR_20' ) end [2025-03-27 23:34:18] Production.INFO: ProcessCDR(1,14777558,1,1,2) [2025-03-27 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777558', 'tblTempUsageDetail_20' ) start [2025-03-27 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777558', 'tblTempUsageDetail_20' ) end [2025-03-27 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:34:22] Production.INFO: ==23291== Releasing lock... [2025-03-27 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:34:22] Production.INFO: 40 MB #Memory Used# [2025-03-27 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:35:05 [end_date_ymd] => 2025-03-27 23:35:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:35:05' and `end` < '2025-03-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-03-27 23:35:18] Production.INFO: count ==1607 [2025-03-27 23:35:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:35:05 - End Time 2025-03-27 23:35:05 [2025-03-27 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777563', 'tblTempUsageDetail_20' ) start [2025-03-27 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777563', 'tblTempUsageDetail_20' ) end [2025-03-27 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777563', 'tblTempVendorCDR_20' ) start [2025-03-27 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777563', 'tblTempVendorCDR_20' ) end [2025-03-27 23:35:18] Production.INFO: ProcessCDR(1,14777563,1,1,2) [2025-03-27 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777563', 'tblTempUsageDetail_20' ) start [2025-03-27 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777563', 'tblTempUsageDetail_20' ) end [2025-03-27 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:35:22] Production.INFO: ==23372== Releasing lock... [2025-03-27 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:35:22] Production.INFO: 40 MB #Memory Used# [2025-03-27 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:36:05 [end_date_ymd] => 2025-03-27 23:36:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:36:05' and `end` < '2025-03-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-03-27 23:36:18] Production.INFO: count ==1606 [2025-03-27 23:36:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:36:05 - End Time 2025-03-27 23:36:05 [2025-03-27 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777568', 'tblTempUsageDetail_20' ) start [2025-03-27 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777568', 'tblTempUsageDetail_20' ) end [2025-03-27 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777568', 'tblTempVendorCDR_20' ) start [2025-03-27 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777568', 'tblTempVendorCDR_20' ) end [2025-03-27 23:36:19] Production.INFO: ProcessCDR(1,14777568,1,1,2) [2025-03-27 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777568', 'tblTempUsageDetail_20' ) start [2025-03-27 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777568', 'tblTempUsageDetail_20' ) end [2025-03-27 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:36:22] Production.INFO: ==23452== Releasing lock... [2025-03-27 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:36:22] Production.INFO: 40 MB #Memory Used# [2025-03-27 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:37:05 [end_date_ymd] => 2025-03-27 23:37:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:37:05' and `end` < '2025-03-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-03-27 23:37:18] Production.INFO: count ==1606 [2025-03-27 23:37:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:37:05 - End Time 2025-03-27 23:37:05 [2025-03-27 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777573', 'tblTempUsageDetail_20' ) start [2025-03-27 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777573', 'tblTempUsageDetail_20' ) end [2025-03-27 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777573', 'tblTempVendorCDR_20' ) start [2025-03-27 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777573', 'tblTempVendorCDR_20' ) end [2025-03-27 23:37:18] Production.INFO: ProcessCDR(1,14777573,1,1,2) [2025-03-27 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777573', 'tblTempUsageDetail_20' ) start [2025-03-27 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777573', 'tblTempUsageDetail_20' ) end [2025-03-27 23:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:37:24] Production.INFO: ==23534== Releasing lock... [2025-03-27 23:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:37:24] Production.INFO: 40 MB #Memory Used# [2025-03-27 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:38:05 [end_date_ymd] => 2025-03-27 23:38:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:38:05' and `end` < '2025-03-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-03-27 23:38:18] Production.INFO: count ==1609 [2025-03-27 23:38:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:38:05 - End Time 2025-03-27 23:38:05 [2025-03-27 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777578', 'tblTempUsageDetail_20' ) start [2025-03-27 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777578', 'tblTempUsageDetail_20' ) end [2025-03-27 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777578', 'tblTempVendorCDR_20' ) start [2025-03-27 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777578', 'tblTempVendorCDR_20' ) end [2025-03-27 23:38:19] Production.INFO: ProcessCDR(1,14777578,1,1,2) [2025-03-27 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777578', 'tblTempUsageDetail_20' ) start [2025-03-27 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777578', 'tblTempUsageDetail_20' ) end [2025-03-27 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:38:22] Production.INFO: ==23613== Releasing lock... [2025-03-27 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:38:22] Production.INFO: 40 MB #Memory Used# [2025-03-27 23:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:39:06 [end_date_ymd] => 2025-03-27 23:39:06 [RateCDR] => 1 ) [2025-03-27 23:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:39:06' and `end` < '2025-03-27 23:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:39:18] Production.INFO: count ==1609 [2025-03-27 23:39:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:39:06 - End Time 2025-03-27 23:39:06 [2025-03-27 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777583', 'tblTempUsageDetail_20' ) start [2025-03-27 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777583', 'tblTempUsageDetail_20' ) end [2025-03-27 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777583', 'tblTempVendorCDR_20' ) start [2025-03-27 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777583', 'tblTempVendorCDR_20' ) end [2025-03-27 23:39:19] Production.INFO: ProcessCDR(1,14777583,1,1,2) [2025-03-27 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777583', 'tblTempUsageDetail_20' ) start [2025-03-27 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777583', 'tblTempUsageDetail_20' ) end [2025-03-27 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:39:22] Production.INFO: ==23741== Releasing lock... [2025-03-27 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:39:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-27 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:40:06 [end_date_ymd] => 2025-03-27 23:40:06 [RateCDR] => 1 ) [2025-03-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-03-27 20:40:06' and `end` < '2025-03-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-03-27 23:40:18] Production.INFO: count ==1611 [2025-03-27 23:40:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:40:06 - End Time 2025-03-27 23:40:06 [2025-03-27 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777589', 'tblTempUsageDetail_20' ) start [2025-03-27 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777589', 'tblTempUsageDetail_20' ) end [2025-03-27 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777589', 'tblTempVendorCDR_20' ) start [2025-03-27 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777589', 'tblTempVendorCDR_20' ) end [2025-03-27 23:40:19] Production.INFO: ProcessCDR(1,14777589,1,1,2) [2025-03-27 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777589', 'tblTempUsageDetail_20' ) start [2025-03-27 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777589', 'tblTempUsageDetail_20' ) end [2025-03-27 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:40:22] Production.INFO: ==23827== Releasing lock... [2025-03-27 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:40:22] Production.INFO: 40 MB #Memory Used# [2025-03-27 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:41:05 [end_date_ymd] => 2025-03-27 23:41:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:41:05' and `end` < '2025-03-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-03-27 23:41:18] Production.INFO: count ==1573 [2025-03-27 23:41:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:41:05 - End Time 2025-03-27 23:41:05 [2025-03-27 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777594', 'tblTempUsageDetail_20' ) start [2025-03-27 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777594', 'tblTempUsageDetail_20' ) end [2025-03-27 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777594', 'tblTempVendorCDR_20' ) start [2025-03-27 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777594', 'tblTempVendorCDR_20' ) end [2025-03-27 23:41:19] Production.INFO: ProcessCDR(1,14777594,1,1,2) [2025-03-27 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777594', 'tblTempUsageDetail_20' ) start [2025-03-27 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777594', 'tblTempUsageDetail_20' ) end [2025-03-27 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:41:22] Production.INFO: ==23911== Releasing lock... [2025-03-27 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:41:22] Production.INFO: 40 MB #Memory Used# [2025-03-27 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:42:05 [end_date_ymd] => 2025-03-27 23:42:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:42:05' and `end` < '2025-03-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-03-27 23:42:18] Production.INFO: count ==1557 [2025-03-27 23:42:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:42:05 - End Time 2025-03-27 23:42:05 [2025-03-27 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777599', 'tblTempUsageDetail_20' ) start [2025-03-27 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777599', 'tblTempUsageDetail_20' ) end [2025-03-27 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777599', 'tblTempVendorCDR_20' ) start [2025-03-27 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777599', 'tblTempVendorCDR_20' ) end [2025-03-27 23:42:18] Production.INFO: ProcessCDR(1,14777599,1,1,2) [2025-03-27 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777599', 'tblTempUsageDetail_20' ) start [2025-03-27 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777599', 'tblTempUsageDetail_20' ) end [2025-03-27 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:42:22] Production.INFO: ==23997== Releasing lock... [2025-03-27 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:42:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-27 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:43:05 [end_date_ymd] => 2025-03-27 23:43:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:43:05' and `end` < '2025-03-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-03-27 23:43:18] Production.INFO: count ==1562 [2025-03-27 23:43:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:43:05 - End Time 2025-03-27 23:43:05 [2025-03-27 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777604', 'tblTempUsageDetail_20' ) start [2025-03-27 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777604', 'tblTempUsageDetail_20' ) end [2025-03-27 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777604', 'tblTempVendorCDR_20' ) start [2025-03-27 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777604', 'tblTempVendorCDR_20' ) end [2025-03-27 23:43:18] Production.INFO: ProcessCDR(1,14777604,1,1,2) [2025-03-27 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777604', 'tblTempUsageDetail_20' ) start [2025-03-27 23:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777604', 'tblTempUsageDetail_20' ) end [2025-03-27 23:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:43:24] Production.INFO: ==24082== Releasing lock... [2025-03-27 23:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:43:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-27 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:44:05 [end_date_ymd] => 2025-03-27 23:44:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:44:05' and `end` < '2025-03-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-03-27 23:44:18] Production.INFO: count ==1563 [2025-03-27 23:44:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:44:05 - End Time 2025-03-27 23:44:05 [2025-03-27 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777609', 'tblTempUsageDetail_20' ) start [2025-03-27 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777609', 'tblTempUsageDetail_20' ) end [2025-03-27 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777609', 'tblTempVendorCDR_20' ) start [2025-03-27 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777609', 'tblTempVendorCDR_20' ) end [2025-03-27 23:44:18] Production.INFO: ProcessCDR(1,14777609,1,1,2) [2025-03-27 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777609', 'tblTempUsageDetail_20' ) start [2025-03-27 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777609', 'tblTempUsageDetail_20' ) end [2025-03-27 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:44:22] Production.INFO: ==24160== Releasing lock... [2025-03-27 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:44:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-27 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:45:05 [end_date_ymd] => 2025-03-27 23:45:05 [RateCDR] => 1 ) [2025-03-27 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:45:05' and `end` < '2025-03-27 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:45:18] Production.INFO: count ==1566 [2025-03-27 23:45:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:45:05 - End Time 2025-03-27 23:45:05 [2025-03-27 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777614', 'tblTempUsageDetail_20' ) start [2025-03-27 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777614', 'tblTempUsageDetail_20' ) end [2025-03-27 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777614', 'tblTempVendorCDR_20' ) start [2025-03-27 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777614', 'tblTempVendorCDR_20' ) end [2025-03-27 23:45:19] Production.INFO: ProcessCDR(1,14777614,1,1,2) [2025-03-27 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777614', 'tblTempUsageDetail_20' ) start [2025-03-27 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777614', 'tblTempUsageDetail_20' ) end [2025-03-27 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:45:22] Production.INFO: ==24238== Releasing lock... [2025-03-27 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:45:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-27 23:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:46:06 [end_date_ymd] => 2025-03-27 23:46:06 [RateCDR] => 1 ) [2025-03-27 23:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:46:06' and `end` < '2025-03-27 23:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:46:19] Production.INFO: count ==1563 [2025-03-27 23:46:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:46:06 - End Time 2025-03-27 23:46:06 [2025-03-27 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777619', 'tblTempUsageDetail_20' ) start [2025-03-27 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777619', 'tblTempUsageDetail_20' ) end [2025-03-27 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777619', 'tblTempVendorCDR_20' ) start [2025-03-27 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777619', 'tblTempVendorCDR_20' ) end [2025-03-27 23:46:19] Production.INFO: ProcessCDR(1,14777619,1,1,2) [2025-03-27 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777619', 'tblTempUsageDetail_20' ) start [2025-03-27 23:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777619', 'tblTempUsageDetail_20' ) end [2025-03-27 23:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:46:23] Production.INFO: ==24324== Releasing lock... [2025-03-27 23:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:46:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-27 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:47:05 [end_date_ymd] => 2025-03-27 23:47:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:47:05' and `end` < '2025-03-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-03-27 23:47:18] Production.INFO: count ==1569 [2025-03-27 23:47:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:47:05 - End Time 2025-03-27 23:47:05 [2025-03-27 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777624', 'tblTempUsageDetail_20' ) start [2025-03-27 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777624', 'tblTempUsageDetail_20' ) end [2025-03-27 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777624', 'tblTempVendorCDR_20' ) start [2025-03-27 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777624', 'tblTempVendorCDR_20' ) end [2025-03-27 23:47:18] Production.INFO: ProcessCDR(1,14777624,1,1,2) [2025-03-27 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777624', 'tblTempUsageDetail_20' ) start [2025-03-27 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777624', 'tblTempUsageDetail_20' ) end [2025-03-27 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:47:22] Production.INFO: ==24401== Releasing lock... [2025-03-27 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:47:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-27 23:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:48:06 [end_date_ymd] => 2025-03-27 23:48:06 [RateCDR] => 1 ) [2025-03-27 23:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:48:06' and `end` < '2025-03-27 23:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:48:19] Production.INFO: count ==1569 [2025-03-27 23:48:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:48:06 - End Time 2025-03-27 23:48:06 [2025-03-27 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777629', 'tblTempUsageDetail_20' ) start [2025-03-27 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777629', 'tblTempUsageDetail_20' ) end [2025-03-27 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777629', 'tblTempVendorCDR_20' ) start [2025-03-27 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777629', 'tblTempVendorCDR_20' ) end [2025-03-27 23:48:19] Production.INFO: ProcessCDR(1,14777629,1,1,2) [2025-03-27 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777629', 'tblTempUsageDetail_20' ) start [2025-03-27 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777629', 'tblTempUsageDetail_20' ) end [2025-03-27 23:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:48:23] Production.INFO: ==24481== Releasing lock... [2025-03-27 23:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:48:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-27 23:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:49:05 [end_date_ymd] => 2025-03-27 23:49:05 [RateCDR] => 1 ) [2025-03-27 23:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:49:05' and `end` < '2025-03-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-03-27 23:49:18] Production.INFO: count ==1568 [2025-03-27 23:49:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:49:05 - End Time 2025-03-27 23:49:05 [2025-03-27 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777634', 'tblTempUsageDetail_20' ) start [2025-03-27 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777634', 'tblTempUsageDetail_20' ) end [2025-03-27 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777634', 'tblTempVendorCDR_20' ) start [2025-03-27 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777634', 'tblTempVendorCDR_20' ) end [2025-03-27 23:49:19] Production.INFO: ProcessCDR(1,14777634,1,1,2) [2025-03-27 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777634', 'tblTempUsageDetail_20' ) start [2025-03-27 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777634', 'tblTempUsageDetail_20' ) end [2025-03-27 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:49:22] Production.INFO: ==24557== Releasing lock... [2025-03-27 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:49:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-27 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:50:06 [end_date_ymd] => 2025-03-27 23:50:06 [RateCDR] => 1 ) [2025-03-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-03-27 20:50:06' and `end` < '2025-03-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-03-27 23:50:18] Production.INFO: count ==1565 [2025-03-27 23:50:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:50:06 - End Time 2025-03-27 23:50:06 [2025-03-27 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777640', 'tblTempUsageDetail_20' ) start [2025-03-27 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777640', 'tblTempUsageDetail_20' ) end [2025-03-27 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777640', 'tblTempVendorCDR_20' ) start [2025-03-27 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777640', 'tblTempVendorCDR_20' ) end [2025-03-27 23:50:19] Production.INFO: ProcessCDR(1,14777640,1,1,2) [2025-03-27 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777640', 'tblTempUsageDetail_20' ) start [2025-03-27 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777640', 'tblTempUsageDetail_20' ) end [2025-03-27 23:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:50:24] Production.INFO: ==24640== Releasing lock... [2025-03-27 23:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:50:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-27 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:51:05 [end_date_ymd] => 2025-03-27 23:51:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:51:05' and `end` < '2025-03-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-03-27 23:51:18] Production.INFO: count ==1582 [2025-03-27 23:51:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:51:05 - End Time 2025-03-27 23:51:05 [2025-03-27 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777645', 'tblTempUsageDetail_20' ) start [2025-03-27 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777645', 'tblTempUsageDetail_20' ) end [2025-03-27 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777645', 'tblTempVendorCDR_20' ) start [2025-03-27 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777645', 'tblTempVendorCDR_20' ) end [2025-03-27 23:51:19] Production.INFO: ProcessCDR(1,14777645,1,1,2) [2025-03-27 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777645', 'tblTempUsageDetail_20' ) start [2025-03-27 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777645', 'tblTempUsageDetail_20' ) end [2025-03-27 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:51:22] Production.INFO: ==24725== Releasing lock... [2025-03-27 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:51:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-27 23:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:52:06 [end_date_ymd] => 2025-03-27 23:52:06 [RateCDR] => 1 ) [2025-03-27 23:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:52:06' and `end` < '2025-03-27 23:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:52:18] Production.INFO: count ==1578 [2025-03-27 23:52:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:52:06 - End Time 2025-03-27 23:52:06 [2025-03-27 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777650', 'tblTempUsageDetail_20' ) start [2025-03-27 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777650', 'tblTempUsageDetail_20' ) end [2025-03-27 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777650', 'tblTempVendorCDR_20' ) start [2025-03-27 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777650', 'tblTempVendorCDR_20' ) end [2025-03-27 23:52:19] Production.INFO: ProcessCDR(1,14777650,1,1,2) [2025-03-27 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777650', 'tblTempUsageDetail_20' ) start [2025-03-27 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777650', 'tblTempUsageDetail_20' ) end [2025-03-27 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:52:22] Production.INFO: ==24802== Releasing lock... [2025-03-27 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:52:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-27 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:53:05 [end_date_ymd] => 2025-03-27 23:53:05 [RateCDR] => 1 ) [2025-03-27 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:53:05' and `end` < '2025-03-27 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:53:18] Production.INFO: count ==1591 [2025-03-27 23:53:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:53:05 - End Time 2025-03-27 23:53:05 [2025-03-27 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777655', 'tblTempUsageDetail_20' ) start [2025-03-27 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777655', 'tblTempUsageDetail_20' ) end [2025-03-27 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777655', 'tblTempVendorCDR_20' ) start [2025-03-27 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777655', 'tblTempVendorCDR_20' ) end [2025-03-27 23:53:18] Production.INFO: ProcessCDR(1,14777655,1,1,2) [2025-03-27 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777655', 'tblTempUsageDetail_20' ) start [2025-03-27 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777655', 'tblTempUsageDetail_20' ) end [2025-03-27 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:53:22] Production.INFO: ==24881== Releasing lock... [2025-03-27 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:53:22] Production.INFO: 40 MB #Memory Used# [2025-03-27 23:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:54:06 [end_date_ymd] => 2025-03-27 23:54:06 [RateCDR] => 1 ) [2025-03-27 23:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:54:06' and `end` < '2025-03-27 23:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:54:18] Production.INFO: count ==1591 [2025-03-27 23:54:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:54:06 - End Time 2025-03-27 23:54:06 [2025-03-27 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777660', 'tblTempUsageDetail_20' ) start [2025-03-27 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777660', 'tblTempUsageDetail_20' ) end [2025-03-27 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777660', 'tblTempVendorCDR_20' ) start [2025-03-27 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777660', 'tblTempVendorCDR_20' ) end [2025-03-27 23:54:19] Production.INFO: ProcessCDR(1,14777660,1,1,2) [2025-03-27 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777660', 'tblTempUsageDetail_20' ) start [2025-03-27 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777660', 'tblTempUsageDetail_20' ) end [2025-03-27 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:54:22] Production.INFO: ==25002== Releasing lock... [2025-03-27 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:54:22] Production.INFO: 40 MB #Memory Used# [2025-03-27 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:55:05 [end_date_ymd] => 2025-03-27 23:55:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:55:05' and `end` < '2025-03-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-03-27 23:55:18] Production.INFO: count ==1577 [2025-03-27 23:55:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:55:05 - End Time 2025-03-27 23:55:05 [2025-03-27 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777665', 'tblTempUsageDetail_20' ) start [2025-03-27 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777665', 'tblTempUsageDetail_20' ) end [2025-03-27 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777665', 'tblTempVendorCDR_20' ) start [2025-03-27 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777665', 'tblTempVendorCDR_20' ) end [2025-03-27 23:55:19] Production.INFO: ProcessCDR(1,14777665,1,1,2) [2025-03-27 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777665', 'tblTempUsageDetail_20' ) start [2025-03-27 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777665', 'tblTempUsageDetail_20' ) end [2025-03-27 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:55:22] Production.INFO: ==25082== Releasing lock... [2025-03-27 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:55:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-27 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:56:06 [end_date_ymd] => 2025-03-27 23:56:06 [RateCDR] => 1 ) [2025-03-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-03-27 20:56:06' and `end` < '2025-03-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-03-27 23:56:18] Production.INFO: count ==1577 [2025-03-27 23:56:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:56:06 - End Time 2025-03-27 23:56:06 [2025-03-27 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777670', 'tblTempUsageDetail_20' ) start [2025-03-27 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777670', 'tblTempUsageDetail_20' ) end [2025-03-27 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777670', 'tblTempVendorCDR_20' ) start [2025-03-27 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777670', 'tblTempVendorCDR_20' ) end [2025-03-27 23:56:19] Production.INFO: ProcessCDR(1,14777670,1,1,2) [2025-03-27 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777670', 'tblTempUsageDetail_20' ) start [2025-03-27 23:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777670', 'tblTempUsageDetail_20' ) end [2025-03-27 23:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:56:23] Production.INFO: ==25158== Releasing lock... [2025-03-27 23:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:56:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-27 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:57:05 [end_date_ymd] => 2025-03-27 23:57:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:57:05' and `end` < '2025-03-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-03-27 23:57:17] Production.INFO: count ==1572 [2025-03-27 23:57:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:57:05 - End Time 2025-03-27 23:57:05 [2025-03-27 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777675', 'tblTempUsageDetail_20' ) start [2025-03-27 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777675', 'tblTempUsageDetail_20' ) end [2025-03-27 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777675', 'tblTempVendorCDR_20' ) start [2025-03-27 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777675', 'tblTempVendorCDR_20' ) end [2025-03-27 23:57:18] Production.INFO: ProcessCDR(1,14777675,1,1,2) [2025-03-27 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777675', 'tblTempUsageDetail_20' ) start [2025-03-27 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777675', 'tblTempUsageDetail_20' ) end [2025-03-27 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:57:22] Production.INFO: ==25231== Releasing lock... [2025-03-27 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:57:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-27 23:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:58:06 [end_date_ymd] => 2025-03-27 23:58:06 [RateCDR] => 1 ) [2025-03-27 23:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 20:58:06' and `end` < '2025-03-27 23:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-27 23:58:18] Production.INFO: count ==1557 [2025-03-27 23:58:19] Production.ERROR: pbx CDR StartTime 2025-03-27 20:58:06 - End Time 2025-03-27 23:58:06 [2025-03-27 23:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777680', 'tblTempUsageDetail_20' ) start [2025-03-27 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777680', 'tblTempUsageDetail_20' ) end [2025-03-27 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777680', 'tblTempVendorCDR_20' ) start [2025-03-27 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777680', 'tblTempVendorCDR_20' ) end [2025-03-27 23:58:19] Production.INFO: ProcessCDR(1,14777680,1,1,2) [2025-03-27 23:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777680', 'tblTempUsageDetail_20' ) start [2025-03-27 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777680', 'tblTempUsageDetail_20' ) end [2025-03-27 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:58:22] Production.INFO: ==25318== Releasing lock... [2025-03-27 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:58:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-27 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 20:59:05 [end_date_ymd] => 2025-03-27 23:59:05 [RateCDR] => 1 ) [2025-03-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-03-27 20:59:05' and `end` < '2025-03-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-03-27 23:59:17] Production.INFO: count ==1555 [2025-03-27 23:59:18] Production.ERROR: pbx CDR StartTime 2025-03-27 20:59:05 - End Time 2025-03-27 23:59:05 [2025-03-27 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-27 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777685', 'tblTempUsageDetail_20' ) start [2025-03-27 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777685', 'tblTempUsageDetail_20' ) end [2025-03-27 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777685', 'tblTempVendorCDR_20' ) start [2025-03-27 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777685', 'tblTempVendorCDR_20' ) end [2025-03-27 23:59:18] Production.INFO: ProcessCDR(1,14777685,1,1,2) [2025-03-27 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-27 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-27 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777685', 'tblTempUsageDetail_20' ) start [2025-03-27 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777685', 'tblTempUsageDetail_20' ) end [2025-03-27 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-27 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-27 23:59:21] Production.INFO: ==25395== Releasing lock... [2025-03-27 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-27 23:59:21] Production.INFO: 39.5 MB #Memory Used#